bl 6.1.6 → 7.0.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/.github/dependabot.yml +4 -0
- package/.github/workflows/test-and-release.yml +18 -21
- package/BufferList.js +399 -317
- package/BufferListStream.js +134 -0
- package/CHANGELOG.md +28 -0
- package/README.md +49 -63
- package/package.json +32 -18
- package/test/convert.js +3 -5
- package/test/indexOf.js +3 -5
- package/test/isBufferList.js +3 -5
- package/test/test.js +27 -27
- package/test/types.ts +89 -0
- package/test/verify-types.js +51 -0
- package/tsconfig.json +24 -0
- package/types/BufferList.d.ts +109 -0
- package/types/BufferList.d.ts.map +1 -0
- package/types/BufferListStream.d.ts +54 -0
- package/types/BufferListStream.d.ts.map +1 -0
- package/types/augment.d.ts +50 -0
- package/types/index.d.ts +4 -0
- package/BufferList.d.ts +0 -431
- package/bl.js +0 -84
- package/index.d.ts +0 -88
package/.github/dependabot.yml
CHANGED
|
@@ -7,6 +7,8 @@ updates:
|
|
|
7
7
|
commit-message:
|
|
8
8
|
prefix: 'chore'
|
|
9
9
|
include: 'scope'
|
|
10
|
+
cooldown:
|
|
11
|
+
default-days: 5
|
|
10
12
|
- package-ecosystem: 'npm'
|
|
11
13
|
directory: '/'
|
|
12
14
|
schedule:
|
|
@@ -14,3 +16,5 @@ updates:
|
|
|
14
16
|
commit-message:
|
|
15
17
|
prefix: 'chore'
|
|
16
18
|
include: 'scope'
|
|
19
|
+
cooldown:
|
|
20
|
+
default-days: 5
|
|
@@ -1,61 +1,58 @@
|
|
|
1
1
|
name: Test & Maybe Release
|
|
2
2
|
on: [push, pull_request]
|
|
3
|
+
|
|
3
4
|
jobs:
|
|
4
5
|
test:
|
|
5
6
|
strategy:
|
|
6
7
|
fail-fast: false
|
|
7
8
|
matrix:
|
|
8
|
-
node: [
|
|
9
|
+
node: [lts/*, current]
|
|
9
10
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
10
11
|
runs-on: ${{ matrix.os }}
|
|
11
12
|
steps:
|
|
12
13
|
- name: Checkout Repository
|
|
13
14
|
uses: actions/checkout@v6
|
|
14
15
|
- name: Use Node.js ${{ matrix.node }}
|
|
15
|
-
uses: actions/setup-node@v6.
|
|
16
|
+
uses: actions/setup-node@v6.4.0
|
|
16
17
|
with:
|
|
17
18
|
node-version: ${{ matrix.node }}
|
|
18
19
|
- name: Install Dependencies
|
|
20
|
+
run: npm install --no-progress
|
|
21
|
+
- name: Check build is up to date
|
|
19
22
|
run: |
|
|
20
|
-
npm
|
|
23
|
+
npm run build
|
|
24
|
+
git diff --exit-code || (echo "::error::Build artifacts not committed. Run 'npm run build' and commit the changes." && exit 1)
|
|
21
25
|
- name: Run tests
|
|
22
26
|
run: |
|
|
23
27
|
npm config set script-shell bash
|
|
24
28
|
npm run test:ci
|
|
29
|
+
|
|
25
30
|
release:
|
|
26
31
|
name: Release
|
|
27
32
|
needs: test
|
|
28
33
|
runs-on: ubuntu-latest
|
|
29
34
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
|
35
|
+
permissions:
|
|
36
|
+
contents: write
|
|
37
|
+
issues: write
|
|
38
|
+
pull-requests: write
|
|
39
|
+
id-token: write
|
|
30
40
|
steps:
|
|
31
41
|
- name: Checkout
|
|
32
42
|
uses: actions/checkout@v6
|
|
33
43
|
with:
|
|
34
44
|
fetch-depth: 0
|
|
35
45
|
- name: Setup Node.js
|
|
36
|
-
uses: actions/setup-node@v6.
|
|
46
|
+
uses: actions/setup-node@v6.4.0
|
|
37
47
|
with:
|
|
38
48
|
node-version: lts/*
|
|
49
|
+
registry-url: 'https://registry.npmjs.org'
|
|
39
50
|
- name: Install dependencies
|
|
40
|
-
run:
|
|
41
|
-
npm install --no-progress --no-package-lock --no-save
|
|
51
|
+
run: npm install --no-progress --no-package-lock --no-save
|
|
42
52
|
- name: Build
|
|
43
|
-
run:
|
|
44
|
-
npm run build
|
|
45
|
-
- name: Install plugins
|
|
46
|
-
run: |
|
|
47
|
-
npm install \
|
|
48
|
-
@semantic-release/commit-analyzer \
|
|
49
|
-
conventional-changelog-conventionalcommits \
|
|
50
|
-
@semantic-release/release-notes-generator \
|
|
51
|
-
@semantic-release/npm \
|
|
52
|
-
@semantic-release/github \
|
|
53
|
-
@semantic-release/git \
|
|
54
|
-
@semantic-release/changelog \
|
|
55
|
-
--no-progress --no-package-lock --no-save
|
|
53
|
+
run: npm run build
|
|
56
54
|
- name: Release
|
|
57
55
|
env:
|
|
58
56
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
59
|
-
|
|
57
|
+
NPM_CONFIG_PROVENANCE: true
|
|
60
58
|
run: npx semantic-release
|
|
61
|
-
|