strtok3 10.1.2 → 10.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Node.js CI](https://github.com/Borewit/strtok3/actions/workflows/nodejs-ci.yml/badge.svg?branch=master)](https://github.com/Borewit/strtok3/actions/workflows/nodejs-ci.yml?query=branch%3Amaster)
1
+ [![Node.js CI](https://github.com/Borewit/strtok3/actions/workflows/ci.yml/badge.svg)](https://github.com/Borewit/strtok3/actions/workflows/ci.yml)
2
2
  [![CodeQL](https://github.com/Borewit/strtok3/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/Borewit/strtok3/actions/workflows/codeql.yml)
3
3
  [![NPM version](https://badge.fury.io/js/strtok3.svg)](https://npmjs.org/package/strtok3)
4
4
  [![npm downloads](http://img.shields.io/npm/dm/strtok3.svg)](https://npmcharts.com/compare/strtok3,token-types?start=1200&interval=30)
@@ -35,7 +35,7 @@ npm install strtok3
35
35
  Starting with version 7, the module has migrated from [CommonJS](https://en.wikipedia.org/wiki/CommonJS) to [pure ECMAScript Module (ESM)](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
36
36
  The distributed JavaScript codebase is compliant with the [ECMAScript 2020 (11th Edition)](https://en.wikipedia.org/wiki/ECMAScript_version_history#11th_Edition_%E2%80%93_ECMAScript_2020) standard.
37
37
 
38
- Requires a modern browser or Node.js ≥ 18 engine.
38
+ Requires a modern browser, Node.js (V8) ≥ 18 engine or Bun (JavaScriptCore) ≥ 1.2.
39
39
 
40
40
  For TypeScript CommonJs backward compatibility, you can use [load-esm](https://github.com/Borewit/load-esm).
41
41
 
package/lib/core.d.ts CHANGED
@@ -3,7 +3,7 @@ import { type AnyWebByteStream } from 'peek-readable';
3
3
  import { ReadStreamTokenizer } from './ReadStreamTokenizer.js';
4
4
  import { BufferTokenizer } from './BufferTokenizer.js';
5
5
  import type { ITokenizerOptions } from './types.js';
6
- export { EndOfStreamError, type AnyWebByteStream } from 'peek-readable';
6
+ export { EndOfStreamError, AbortError, type AnyWebByteStream } from 'peek-readable';
7
7
  export type { ITokenizer, IRandomAccessTokenizer, IFileInfo, IRandomAccessFileInfo, ITokenizerOptions, IReadChunkOptions, OnClose } from './types.js';
8
8
  export type { IToken, IGetToken } from '@tokenizer/token';
9
9
  export { AbstractTokenizer } from './AbstractTokenizer.js';
package/lib/core.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { StreamReader, makeWebStreamReader } from 'peek-readable';
2
2
  import { ReadStreamTokenizer } from './ReadStreamTokenizer.js';
3
3
  import { BufferTokenizer } from './BufferTokenizer.js';
4
- export { EndOfStreamError } from 'peek-readable';
4
+ export { EndOfStreamError, AbortError } from 'peek-readable';
5
5
  export { AbstractTokenizer } from './AbstractTokenizer.js';
6
6
  /**
7
7
  * Construct ReadStreamTokenizer from given Stream.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strtok3",
3
- "version": "10.1.2",
3
+ "version": "10.2.1",
4
4
  "description": "A promise based streaming tokenizer",
5
5
  "author": {
6
6
  "name": "Borewit",
@@ -22,6 +22,7 @@
22
22
  "lint": "yarn run lint-md && yarn run lint-ts",
23
23
  "fix": "yarn run biome lint --write",
24
24
  "test": "mocha",
25
+ "bun:test": "bun run --bun test",
25
26
  "test-coverage": "c8 yarn run test",
26
27
  "send-codacy": "c8 report --reporter=text-lcov | codacy-coverage",
27
28
  "start": "yarn run compile && yarn run lint && yarn run cover-test"
@@ -56,7 +57,7 @@
56
57
  "@types/chai-as-promised": "^8.0.1",
57
58
  "@types/debug": "^4.1.12",
58
59
  "@types/mocha": "^10.0.10",
59
- "@types/node": "^22.12.0",
60
+ "@types/node": "^22.13.1",
60
61
  "c8": "^10.1.3",
61
62
  "chai": "^5.1.2",
62
63
  "chai-as-promised": "^8.0.1",
@@ -71,7 +72,7 @@
71
72
  },
72
73
  "dependencies": {
73
74
  "@tokenizer/token": "^0.3.0",
74
- "peek-readable": "^6.0.2"
75
+ "peek-readable": "^6.1.1"
75
76
  },
76
77
  "keywords": [
77
78
  "tokenizer",