simple-zstd 2.0.0-0 → 2.0.0

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.
Files changed (50) hide show
  1. package/.github/workflows/ci.yml +46 -0
  2. package/.github/workflows/release.yml +45 -0
  3. package/.prettierignore +5 -0
  4. package/.prettierrc +8 -0
  5. package/.release-it.json +28 -0
  6. package/CHANGELOG.md +26 -0
  7. package/README.md +657 -110
  8. package/dist/src/buffer-writable.d.ts +12 -0
  9. package/dist/src/buffer-writable.js +41 -0
  10. package/dist/src/index.d.ts +49 -0
  11. package/dist/src/index.js +430 -0
  12. package/dist/src/peek-transform.d.ts +16 -0
  13. package/dist/src/peek-transform.js +145 -0
  14. package/dist/src/process-duplex.d.ts +11 -0
  15. package/dist/src/process-duplex.js +157 -0
  16. package/dist/src/process-queue.d.ts +8 -0
  17. package/dist/src/process-queue.js +94 -0
  18. package/dist/src/types.d.ts +34 -0
  19. package/dist/src/types.js +3 -0
  20. package/eslint.config.js +49 -0
  21. package/package.json +29 -21
  22. package/src/buffer-writable.ts +30 -0
  23. package/src/index.ts +472 -0
  24. package/src/is-zst.d.ts +5 -0
  25. package/src/peek-transform.ts +153 -0
  26. package/src/process-duplex.ts +164 -0
  27. package/src/process-queue.ts +97 -0
  28. package/src/types.ts +35 -0
  29. package/tsconfig.json +110 -0
  30. package/.eslintrc.js +0 -19
  31. package/.nyc_output/88144029-aa5a-40fb-a072-f586e59e4a38.json +0 -1
  32. package/.nyc_output/cb2a47ed-9ada-42b3-863b-b8437ca49715.json +0 -1
  33. package/.nyc_output/processinfo/88144029-aa5a-40fb-a072-f586e59e4a38.json +0 -1
  34. package/.nyc_output/processinfo/cb2a47ed-9ada-42b3-863b-b8437ca49715.json +0 -1
  35. package/.nyc_output/processinfo/index.json +0 -1
  36. package/.travis.yml +0 -9
  37. package/buffer-writable.js +0 -23
  38. package/coverage/base.css +0 -224
  39. package/coverage/block-navigation.js +0 -87
  40. package/coverage/buffer-writable.js.html +0 -154
  41. package/coverage/favicon.png +0 -0
  42. package/coverage/index.html +0 -146
  43. package/coverage/index.js.html +0 -910
  44. package/coverage/oven.js.html +0 -244
  45. package/coverage/prettify.css +0 -1
  46. package/coverage/prettify.js +0 -2
  47. package/coverage/sort-arrow-sprite.png +0 -0
  48. package/coverage/sorter.js +0 -196
  49. package/index.js +0 -295
  50. package/process-queue.js +0 -74
@@ -0,0 +1,46 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - '**'
7
+ pull_request:
8
+ branches:
9
+ - main
10
+
11
+ jobs:
12
+ test:
13
+ name: Test on Node.js ${{ matrix.node-version }}
14
+ runs-on: ubuntu-latest
15
+
16
+ strategy:
17
+ matrix:
18
+ node-version: [20.x, 22.x, 24.x]
19
+
20
+ steps:
21
+ - name: Install zstd
22
+ run: sudo apt-get update && sudo apt-get install -y zstd
23
+
24
+ - name: Checkout code
25
+ uses: actions/checkout@v4
26
+
27
+ - name: Setup Node.js ${{ matrix.node-version }}
28
+ uses: actions/setup-node@v4
29
+ with:
30
+ node-version: ${{ matrix.node-version }}
31
+ cache: 'npm'
32
+
33
+ - name: Install dependencies
34
+ run: npm ci
35
+
36
+ - name: Check formatting
37
+ run: npm run format:check
38
+
39
+ - name: Run linter
40
+ run: npm run lint
41
+
42
+ - name: Build TypeScript
43
+ run: npm run build
44
+
45
+ - name: Run tests
46
+ run: npm run test-ci
@@ -0,0 +1,45 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ permissions:
7
+ contents: write
8
+ id-token: write
9
+
10
+ jobs:
11
+ release:
12
+ name: Release new version
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Install zstd
17
+ run: sudo apt-get update && sudo apt-get install -y zstd
18
+
19
+ - name: Checkout code
20
+ uses: actions/checkout@v4
21
+ with:
22
+ fetch-depth: 0
23
+
24
+ - name: Setup Node.js
25
+ uses: actions/setup-node@v4
26
+ with:
27
+ node-version: '24.x'
28
+ cache: 'npm'
29
+ registry-url: 'https://registry.npmjs.org'
30
+
31
+ - name: Verify npm version
32
+ run: npm --version
33
+
34
+ - name: Install dependencies
35
+ run: npm ci
36
+
37
+ - name: Configure git
38
+ run: |
39
+ git config user.name "github-actions[bot]"
40
+ git config user.email "github-actions[bot]@users.noreply.github.com"
41
+
42
+ - name: Run release-it
43
+ run: npx release-it
44
+ env:
45
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,5 @@
1
+ node_modules
2
+ dist
3
+ coverage
4
+ *.log
5
+ .git
package/.prettierrc ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "semi": true,
3
+ "trailingComma": "es5",
4
+ "singleQuote": true,
5
+ "printWidth": 100,
6
+ "tabWidth": 2,
7
+ "arrowParens": "always"
8
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "git": {
3
+ "commitMessage": "chore: release v${version}",
4
+ "tagName": "v${version}",
5
+ "requireCleanWorkingDir": true,
6
+ "requireUpstream": true
7
+ },
8
+ "github": {
9
+ "release": true,
10
+ "releaseName": "v${version}"
11
+ },
12
+ "npm": {
13
+ "publish": true,
14
+ "publishArgs": ["--provenance", "--access", "public"],
15
+ "skipChecks": true
16
+ },
17
+ "hooks": {
18
+ "before:init": ["npm run lint", "npm run test-ci"]
19
+ },
20
+ "plugins": {
21
+ "@release-it/conventional-changelog": {
22
+ "preset": {
23
+ "name": "conventionalcommits"
24
+ },
25
+ "infile": "CHANGELOG.md"
26
+ }
27
+ }
28
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+
3
+ ## [2.0.0](https://github.com/Stieneee/simple-zstd/compare/1.4.2...v2.0.0) (2025-11-12)
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * modernize dependencies and migrate to native Node.js tooling
8
+
9
+ ### Features
10
+
11
+ * add dictionary caching and improve API design ([9a98a4f](https://github.com/Stieneee/simple-zstd/commit/9a98a4f6cc614006a681a7b3280a4f50af3d6e60)), closes [#26](https://github.com/Stieneee/simple-zstd/issues/26) [#26](https://github.com/Stieneee/simple-zstd/issues/26)
12
+ * modernize dependencies and migrate to native Node.js tooling ([29acc39](https://github.com/Stieneee/simple-zstd/commit/29acc39011578dfd280f2d185630050d8401b77f)), closes [#destroyed](https://github.com/Stieneee/simple-zstd/issues/destroyed)
13
+
14
+ ### Bug Fixes
15
+
16
+ * properly cleanup child processes and prevent test suite hangs ([f4f7736](https://github.com/Stieneee/simple-zstd/commit/f4f7736d52de5b083a167287e52d85cd9cca3660))
17
+ ## [1.4.2](https://github.com/Stieneee/simple-zstd/compare/1.4.1...1.4.2) (2022-10-19)
18
+ ## [1.4.1](https://github.com/Stieneee/simple-zstd/compare/1.4.0...1.4.1) (2022-10-19)
19
+ ## [1.4.0](https://github.com/Stieneee/simple-zstd/compare/1.3.1...1.4.0) (2021-09-03)
20
+ ## [1.3.1](https://github.com/Stieneee/simple-zstd/compare/1.3.0...1.3.1) (2021-07-07)
21
+ ## [1.3.0](https://github.com/Stieneee/simple-zstd/compare/1.1.2...1.3.0) (2021-03-31)
22
+ ## [1.1.2](https://github.com/Stieneee/simple-zstd/compare/1.1.1...1.1.2) (2020-05-08)
23
+ ## [1.1.1](https://github.com/Stieneee/simple-zstd/compare/1.1.0...1.1.1) (2019-09-23)
24
+ ## [1.1.0](https://github.com/Stieneee/simple-zstd/compare/1.0.1...1.1.0) (2019-08-08)
25
+ ## [1.0.1](https://github.com/Stieneee/simple-zstd/compare/1.0.0...1.0.1) (2019-06-27)
26
+ ## 1.0.0 (2019-06-17)