Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20, 22, 23]
platform: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.platform }}
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- run: corepack enable
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand All @@ -36,9 +36,6 @@ jobs:
- name: Test ${{ matrix.node-version }}
run: npm run coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm i -r
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
engine-strict=true
strict-peer-dependencies=false
8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,12 @@ export default [
'n/prefer-node-protocol': 'off',
},
},
{
files: [
'test-vectors/appendix_a.json',
],
rules: {
'json/no-unsafe-values': 'off',
},
},
];
31 changes: 12 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,41 +29,34 @@
"nofilter": "^3.0.2"
},
"devDependencies": {
"@cto.af/eslint-config": "^5.1.1",
"@cto.af/monopub": "0.1.2",
"@parcel/core": "2.13.3",
"@parcel/optimizer-data-url": "2.13.3",
"@parcel/transformer-inline-string": "2.13.3",
"@cto.af/eslint-config": "^6.0.0",
"@cto.af/monopub": "0.1.3",
"@parcel/core": "2.14.4",
"@parcel/optimizer-data-url": "2.14.4",
"@parcel/transformer-inline-string": "2.14.4",
"ava": "6.2.0",
"bignumber.js": "^9.1.2",
"bignumber.js": "^9.3.0",
"buffer": "^6.0.3",
"copyfiles": "2.4.1",
"docdash": "2.0.2",
"eslint": "^9.17.0",
"eslint": "^9.25.1",
"eslint-plugin-ava": "^15.0.1",
"eslint-plugin-jsdoc": "^50.6.1",
"eslint-plugin-jsdoc": "^50.6.11",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-node": "^11.1.0",
"events": "^3.3.0",
"jsdoc": "^4.0.4",
"minami": "*",
"nve": "^18.0.1",
"nve": "^18.0.2",
"nyc": "^17.1.0",
"process": "^0.11.10",
"rimraf": "5.0.10",
"stream-browserify": "^3.0.0",
"svgo": "3.3.2",
"typescript": "^5.7.2"
"typescript": "^5.8.3"
},
"pnpm": {
"overrides": {
"ip": "https://registry.npmjs.org/neoip/-/neoip-3.0.1.tgz",
"cross-spawn": "7.0.6",
"nanoid": "5.0.9"
}
},
"packageManager": "pnpm@9.15.0",
"packageManager": "pnpm@10.10.0",
"engines": {
"node": ">=18"
"node": ">=20"
}
}
6 changes: 3 additions & 3 deletions packages/browserify-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"author": "Joe Hildebrand <joe-github@cursive.net>",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/core": "^7.26.10",
"babelify": "^10.0.0",
"browserify": "^17.0.1",
"cbor-bigdecimal": "^10.0.3",
"copyfiles": "^2.4.1",
"node-inspect-extracted": "*",
"rimraf": "5.0.10",
"terser": "^5.37.0"
"terser": "^5.39.0"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
}
6 changes: 3 additions & 3 deletions packages/cbor-bigdecimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"bignumber.js": "^9.1.0"
},
"devDependencies": {
"bignumber.js": "^9.1.2",
"webpack": "^5.97.1",
"bignumber.js": "^9.3.0",
"webpack": "^5.99.7",
"webpack-cli": "^5.1.4"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
}
3 changes: 2 additions & 1 deletion packages/cbor-cli/bin/cbor2comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const {program} = require('commander');

const opts = program
.version(pkg.version)
.usage('[options] <file ...>')
.argument('[file...]', 'Files to read, "-" for stdin')
.usage('[options] [file ...]')
.option('-x, --hex <string>', 'Hex string input')
.option('-t, --tabsize [spaces]', 'Indent amount')
.parse(process.argv)
Expand Down
3 changes: 2 additions & 1 deletion packages/cbor-cli/bin/cbor2diag.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const {program} = require('commander');

program
.version(pkg.version)
.usage('[options] <file ...>')
.argument('[file...]', 'Files to read, "-" for stdin')
.usage('[options] [file ...]')
.option('-x, --hex <STRING>', 'Hex string input')
.parse(process.argv);

Expand Down
3 changes: 2 additions & 1 deletion packages/cbor-cli/bin/cbor2js.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const {program} = require('commander');

program
.version(pkg.version)
.usage('[options] <file ...>')
.argument('[file...]', 'Files to read, "-" for stdin')
.usage('[options] [file ...]')
.option('-x, --hex <STRING>', 'Hex string input')
.option('-e, --exports', 'add module.exports= to the beginning')
.option('-H, --hidden', 'Include non-enumerable symbols and properties')
Expand Down
3 changes: 2 additions & 1 deletion packages/cbor-cli/bin/cbor2json.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const {program} = require('commander');

program
.version(pkg.version)
.usage('[options] <file ...>')
.argument('[file...]', 'Files to read, "-" for stdin')
.usage('[options] [file ...]')
.option('-x, --hex <STRING>', 'Hex string input')
.parse(process.argv);

Expand Down
3 changes: 2 additions & 1 deletion packages/cbor-cli/bin/js2cbor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ bdec(cbor);

program
.version(pkg.version)
.usage('[options] <file ...>')
.argument('[file...]', 'Files to read, "-" for stdin')
.usage('[options] [file...]')
.option('-x, --hex', 'Hex string output')
.option('-c, --canonical', 'Canonical output')
.parse(process.argv);
Expand Down
3 changes: 2 additions & 1 deletion packages/cbor-cli/bin/json2cbor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const {program} = require('commander');

program
.version(pkg.version)
.usage('[options] <file ...>')
.argument('[file...]', 'Files to read, "-" for stdin')
.usage('[options] [file ...]')
.option('-x, --hex', 'Hex string output')
.option('-c, --canonical', 'Canonical output')
.parse(process.argv);
Expand Down
8 changes: 4 additions & 4 deletions packages/cbor-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"email": "joe-github@cursive.net"
},
"devDependencies": {
"marked": "^15.0.4",
"marked": "^15.0.11",
"marked-man": "^2.1.0",
"mock-stdio": "^1.0.3",
"nofilter": "^3.0.2",
Expand All @@ -51,13 +51,13 @@
"license": "MIT",
"readmeFilename": "README.md",
"dependencies": {
"bignumber.js": "^9.1.2",
"bignumber.js": "^9.3.0",
"cbor": "^10.0.3",
"cbor-bigdecimal": "^10.0.3",
"commander": "^12.1.0",
"commander": "^13.1.0",
"json-text-sequence": "1.0.1"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
}
2 changes: 1 addition & 1 deletion packages/cbor-rn-prereqs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"stream-browserify": "^3.0.0"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
}
2 changes: 1 addition & 1 deletion packages/cbor-web/dist/cbor.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/cbor-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"inherits": "^2.0.4",
"nofilter": "^3.0.2",
"process": "^0.11.10",
"readable-stream": "^4.6.0",
"readable-stream": "^4.7.0",
"safe-buffer": "^5.2.1",
"stream-browserify": "^3.0.0",
"string_decoder": "^1.3.0",
"util-deprecate": "^1.0.2",
"webpack": "^5.97.1",
"webpack": "^5.99.7",
"webpack-cli": "^5.1.4"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
}
4 changes: 2 additions & 2 deletions packages/cbor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
},
"devDependencies": {
"@types/node": "^22",
"bignumber.js": "^9.1.2",
"bignumber.js": "^9.3.0",
"garbage": "~0.0.0",
"p-event": "^4.2.0",
"rimraf": "5.0.10"
},
"license": "MIT",
"readmeFilename": "README.md",
"engines": {
"node": ">=18"
"node": ">=20"
}
}
14 changes: 7 additions & 7 deletions packages/parcel-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@
"directory": "packages/parcel-demo"
},
"devDependencies": {
"@parcel/core": "2.13.3",
"@parcel/optimizer-data-url": "2.13.3",
"@parcel/transformer-inline-string": "2.13.3",
"bignumber.js": "9.1.2",
"@parcel/core": "2.14.4",
"@parcel/optimizer-data-url": "2.14.4",
"@parcel/transformer-inline-string": "2.14.4",
"bignumber.js": "9.3.0",
"buffer": "6.0.3",
"cbor": "^10.0.3",
"cbor-bigdecimal": "^10.0.3",
"copyfiles": "^2.4.1",
"events": "3.3.0",
"node-inspect-extracted": "^3.0.2",
"parcel": "2.13.3",
"postcss": "^8.4.49",
"parcel": "2.14.4",
"postcss": "^8.5.3",
"process": "0.11.10",
"regenerator-runtime": "^0.14.1",
"rimraf": "5.0.10",
"stream-browserify": "3.0.0",
"svgo": "3.3.2"
},
"engines": {
"node": ">=18"
"node": ">=20"
},
"browserslist": [
"> 0.2%",
Expand Down
4 changes: 2 additions & 2 deletions packages/plain-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"directory": "packages/plain-demo"
},
"devDependencies": {
"bignumber.js": "^9.1.2",
"bignumber.js": "^9.3.0",
"browser-resolve": "^2.0.0",
"cbor-bigdecimal": "^10.0.3",
"cbor-web": "^10.0.3",
"copyfiles": "^2.4.1",
"node-inspect-extracted": "^3.0.2"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
}
4 changes: 2 additions & 2 deletions packages/puppeteer-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"license": "MIT",
"devDependencies": {
"chrome-finder": "^1.0.7",
"puppeteer": "^23.11.1"
"puppeteer": "^24.7.2"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
}
8 changes: 4 additions & 4 deletions packages/webpack-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"@cto.af/textdecoder": "^0.2.0",
"base64-js": "^1.5.1",
"bignumber.js": "^9.1.2",
"bignumber.js": "^9.3.0",
"buffer": "^6.0.3",
"cbor-bigdecimal": "^10.0.3",
"cbor-web": "^10.0.3",
Expand All @@ -31,16 +31,16 @@
"inherits": "^2.0.4",
"node-inspect-extracted": "*",
"process": "^0.11.10",
"readable-stream": "^4.6.0",
"readable-stream": "^4.7.0",
"safe-buffer": "^5.2.1",
"stream-browserify": "^3.0.0",
"string_decoder": "^1.3.0",
"style-loader": "^4.0.0",
"util-deprecate": "^1.0.2",
"webpack": "^5.97.1",
"webpack": "^5.99.7",
"webpack-cli": "^5.1.4"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
}
Loading