Releases: vlydev/cs2-masked-inspect-python
Releases · vlydev/cs2-masked-inspect-python
v1.1.5 — Reject malformed inspect URLs cleanly
Bug fix: reject malformed inspect URLs cleanly
Real-world URLs from a buggy upstream source arrive truncated mid-keychain with an odd number of hex characters. The library now rejects them with one consistent MalformedInspectLinkException (or equivalent per language) before the binary decode step is even attempted.
What was wrong
- PHP:
hex2bin()emitted anE_WARNINGthat Symfony escalated toErrorException(log noise even though the lib already returnedfalse). - JS/TS:
Buffer.from(oddHex, 'hex')silently truncated odd input — downstream proto parse failed with a cryptic native error or succeeded on garbage. - Python/Go/Rust/C#/Kotlin: threw, but with implementation-specific error types leaking through.
What changed
- Pre-validate hex parity, length, and character set before any binary decode.
- Wrap proto-decode failures so callers always get the same exception type for "this URL is bad".
- New exception type extends the previous parent class for backwards compatibility.
- 9 real-world malformed URLs added as negative test fixtures + synthetic odd-length / empty / non-hex cases.
v1.1.4
v1.1.2
v1.1.1
What's new
paintKit — Sticker Slab identification (proto field 12)
All Sticker Slabs previously decoded identically: stickerId = 37 with no way to distinguish variants. The underlying proto field 12 inside the Sticker sub-message was silently ignored.
paintKit now exposes this field. For Sticker Slabs it contains the sticker catalog ID that uniquely identifies the variant (e.g. 7256 → Sticker | Natus Vincere (Holo) | Copenhagen 2024). For regular stickers and keychains the value is absent (null/None/nil).
Also included
rarityandqualityfields are now correctly decoded for Sticker Slabs (rarity3/4/5,quality8)
Test vectors added
defIndex=1355,rarity=5,paintKit=7256— NaVi (Holo) | Copenhagen 2024defIndex=1355,rarity=3,paintKit=275— Eco Rush
v1.1.0
CI release added
v1.0.2 ci: add PyPI release workflow
Initial release
v1.0.1 chore: bump version to 1.0.1