Repository navigation
Releases
Releases · Borewit/strtok3
v10.8.0
Changes
🚀 Improvements
- Share reader close completion without changing cancellation policy @Borewit (#1363)
- Align FileTokenizer partial-read completion @Borewit (#1361)
🐛 Bug Fixes
📚 Documentation
- docs: make read completion contracts explicit @Borewit (#1364)
- docs: update README badges @Borewit (#1365)
📦 NPM release
NPM release: strtok3@10.8.0
v10.7.0
v10.6.3
Changes
🔒 Security
🐛 Bug Fixes
- fix: detach Node stream tokenizer lifecycle listeners @Borewit (#1346)
- fix: run tokenizer close cleanup and callbacks once @Borewit (#1349)
- fix: validate random-access positions and clamp EOF ignores @Borewit (#1348)
- fix: restore 80-bit float support in numeric helpers @Borewit (#1347)
- Reject stream skips beyond known input size before reading @Borewit (#1344)
📦 NPM release
NPM release: strtok3@10.6.3
v10.6.2
v10.6.1
v10.6.0
Changes
✨ Enhancements
- feat: add finite borrowed tokenizer views @Borewit (#1332)
- feat: add random-access tokenizer type guard @Borewit (#1330)
🐛 Bug Fixes
📚 Documentation
📦 NPM release
NPM release: strtok3@10.6.0
v10.5.0
v10.4.1
v10.4.0
✨ Enhancements
-
Add an opt-in tokenizer buffer allocation limit @Borewit (#1320)
⚠️ Recommendation: enable a buffer cap for untrusted inputApplications parsing untrusted input should set a finite
maxBufferSizewhen creating a tokenizer. The cap is opt-in and defaults toInfinity; choose a limit appropriate for your application, for example 64 MiB:import { fromStream } from 'strtok3'; const tokenizer = await fromStream(stream, { maxBufferSize: 64 * 1024 * 1024 });
This limits dynamically sized tokenizer buffers and stream lookahead spans. Oversized buffer or lookahead requests reject with
BufferSizeError. It does not cap total process memory, caller-owned buffers, allocations inside a token'sget()method, or chunks supplied by stream sources.See the tokenizer options documentation for details.
🐛 Bug Fixes
- fix: respect AbortSignal lifecycle and detach listeners @Borewit (#1324)
- fix: detach cancelled Node stream read requests @Borewit (#1323)
- fix: handle AbortSignal cancellation rejections @Borewit (#1322)
📚 Documentation
- docs: clarify Web stream source cancellation behavior @Borewit (#1325)
- docs: correct README API documentation and examples @Borewit (#1316)
📦 NPM release
NPM release: strtok3@10.4.0
v10.3.5
Changes
⬆️ Dependencies
- Bump js-yaml from 4.1.0 to 4.1.1 in the npm_and_yarn group across 1 directory @dependabot[bot] (#1277)
📦 NPM release
NPM release: strtok3@10.3.5