Repository navigation
v5.1.0 — Browser core, batch inspection and lossless item tools
New APIs
cs2-inspect-lib/core: browser-safe embedded-link codecs and item tools, with no node-cs2 or steam-user imports.cs2-inspect-lib/steam: explicit authenticated functionality; existing root imports remain supported.inspectBatch: mixed embedded and legacy links, ordered per-item results, progress, cancellation and duplicate suppression through the existing queue.- Separate wire and game-data validation using a versioned weapon/paint/wear snapshot, with an explicit permissive mode for new items.
- Semantic item comparison, structured link diagnostics and immutable lossless protobuf editing, including preservation of nested unknown attachment fields.
Compatibility and migration
Use /core in browser projects. Root imports, existing overloads and historical dist/* imports remain available. Strict document decoding validates CRC; the historical decoder retains its previous behavior. Editing preserves untouched protobuf segments, not necessarily the complete encoded URL. See the item-tools guide for resource limits, field occurrence rules and nested preservation guarantees.
The node-cs2 minimum is now 2.6.0, already published. Sent requests with uncertain outcomes are quarantined for that client lifetime; reconnecting does not make automatic retries safe. Cancelling a sent batch read stops the caller waiting while the underlying queue slot remains occupied until response or timeout. Errors retain the upstream structured cause and message.
Validation
- 520 tests; build, lint, strict TypeScript usage tests, pinned game-data generation and documentation build pass.
- Packed npm consumers tested on Node 22.12, 24 and 26 against published node-cs2 2.6.0.
- All 56 independent shared fixtures agree semantically across both libraries. Coverage includes uint64 boundaries, float32, Unicode/repeated names, stickers, charms, opaque bytes, nested unknown fields and malformed payloads.
- Package contents, exports, declarations and CLI verified; browser bundle executes without Buffer or Steam dependencies.
Authenticated Steam/GC behavior remains unverified. No authenticated mutation or sanitized live replay was available. Offline fixture coverage does not establish server acceptance.