simple-zstd 1.4.2 → 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.
- package/.github/workflows/ci.yml +46 -0
- package/.github/workflows/release.yml +45 -0
- package/.prettierignore +5 -0
- package/.prettierrc +8 -0
- package/.release-it.json +28 -0
- package/CHANGELOG.md +26 -0
- package/README.md +690 -47
- package/dist/src/buffer-writable.d.ts +12 -0
- package/dist/src/buffer-writable.js +41 -0
- package/dist/src/index.d.ts +49 -0
- package/dist/src/index.js +430 -0
- package/dist/src/peek-transform.d.ts +16 -0
- package/dist/src/peek-transform.js +145 -0
- package/dist/src/process-duplex.d.ts +11 -0
- package/dist/src/process-duplex.js +157 -0
- package/dist/src/process-queue.d.ts +8 -0
- package/dist/src/process-queue.js +94 -0
- package/dist/src/types.d.ts +34 -0
- package/dist/src/types.js +3 -0
- package/eslint.config.js +49 -0
- package/package.json +32 -16
- package/src/buffer-writable.ts +30 -0
- package/src/index.ts +472 -0
- package/src/is-zst.d.ts +5 -0
- package/src/peek-transform.ts +153 -0
- package/src/process-duplex.ts +164 -0
- package/src/process-queue.ts +97 -0
- package/src/types.ts +35 -0
- package/tsconfig.json +110 -0
- package/.eslintrc.js +0 -18
- package/.nyc_output/4b36a1ef-a01d-4de7-a4be-e966f315cbd7.json +0 -1
- package/.nyc_output/5d73987b-f188-488b-8441-66c67bb19076.json +0 -1
- package/.nyc_output/processinfo/4b36a1ef-a01d-4de7-a4be-e966f315cbd7.json +0 -1
- package/.nyc_output/processinfo/5d73987b-f188-488b-8441-66c67bb19076.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/.travis.yml +0 -9
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/buffer-writable.js.html +0 -154
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -146
- package/coverage/index.js.html +0 -841
- package/coverage/oven.js.html +0 -235
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/index.js +0 -68
|
@@ -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 }}
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
package/.release-it.json
ADDED
|
@@ -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)
|