Skip to content

Releases

v10.8.0

Choose a tag to compare

@Borewit Borewit released this 13 Nov 15:30

Changes

🚀 Improvements

  • Share reader close completion without changing cancellation policy @Borewit (#1363)
  • Align FileTokenizer partial-read completion @Borewit (#1361)

🐛 Bug Fixes

📚 Documentation

Full Changelog

📦 NPM release

NPM release: strtok3@10.8.0

v10.7.0

Choose a tag to compare

@Borewit Borewit released this 02 Nov 11:29

✨ Enhancements

Full Changelog

📦 NPM release

NPM release: strtok3@10.7.0

v10.6.3

Choose a tag to compare

@Borewit Borewit released this 26 Oct 20:17

Changes

🔒 Security

  • fix: reject stream peeks beyond known EOF before allocating lookahead @Borewit (#1345)

🐛 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)

Full Changelog

📦 NPM release

NPM release: strtok3@10.6.3

v10.6.2

Choose a tag to compare

@Borewit Borewit released this 18 Oct 13:10

Changes

🐛 Bug Fixes

  • fix: preserve caller-owned stream tokenizer options @Borewit (#1341)

🛠️ Under the hood

  • chore: check indexed access in tokenizer source @Borewit (#1342)

Full Changelog

📦 NPM release

NPM release: strtok3@10.6.2

v10.6.1

Choose a tag to compare

@Borewit Borewit released this 17 Oct 17:31

Changes

🐛 Bug Fixes

  • fix: support Node.js type checks without DOM globals @Borewit (#1340)

Full Changelog

📦 NPM release

NPM release: strtok3@10.6.1

v10.6.0

Choose a tag to compare

@Borewit Borewit released this 17 Oct 11:51

Changes

✨ Enhancements

🐛 Bug Fixes

  • fix: preserve tokenizer state on truncated input @Borewit (#1331)

📚 Documentation

Full Changelog

📦 NPM release

NPM release: strtok3@10.6.0

v10.5.0

Choose a tag to compare

@Borewit Borewit released this 13 Oct 15:57

Changes

✨ Enhancements

Full Changelog

📦 NPM release

NPM release: strtok3@10.5.0

v10.4.1

Choose a tag to compare

@Borewit Borewit released this 12 Oct 17:03

Changes

🐛 Bug Fixes

  • fix: preserve peeked data after normal Node stream close @Borewit (#1327)

Full Changelog

📦 NPM release

NPM release: strtok3@10.4.1

v10.4.0

Choose a tag to compare

@Borewit Borewit released this 11 Oct 13:27

✨ Enhancements

  • Add an opt-in tokenizer buffer allocation limit @Borewit (#1320)

    ⚠️ Recommendation: enable a buffer cap for untrusted input

    Applications parsing untrusted input should set a finite maxBufferSize when creating a tokenizer. The cap is opt-in and defaults to Infinity; 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's get() 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)

Full Changelog

📦 NPM release

NPM release: strtok3@10.4.0

v10.3.5

Choose a tag to compare

@Borewit Borewit released this 26 Mar 15:32

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