Skip to content

Commit

Permalink
Update devdeps and ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 18, 2025
1 parent 0c37996 commit 4ad43c0
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
types: [created]
jobs:
release-js:
name: "jsbt v0.3.0" # Should match commit below
uses: paulmillr/jsbt/.github/workflows/release.yml@973650a225c0344aa5f993a6cd63835a262077e9
name: 'jsbt v0.3.1' # Should match commit below
uses: paulmillr/jsbt/.github/workflows/release.yml@c45f03360e0171b138f04568d2fdd35d7bbc0d35
with:
build-path: test/build
secrets:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ on:
- pull_request
jobs:
test-js:
name: "jsbt v0.3.0" # Should match commit below
uses: paulmillr/jsbt/.github/workflows/test-js.yml@973650a225c0344aa5f993a6cd63835a262077e9
name: 'jsbt v0.3.1' # Should match commit below
uses: paulmillr/jsbt/.github/workflows/test-js.yml@c45f03360e0171b138f04568d2fdd35d7bbc0d35
16 changes: 12 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
"url": "git+https://github.com/paulmillr/scure-base.git"
},
"devDependencies": {
"@noble/hashes": "1.7.0",
"@paulmillr/jsbt": "0.3.0",
"@noble/hashes": "1.7.1",
"@paulmillr/jsbt": "0.3.1",
"fast-check": "3.0.0",
"micro-bmark": "0.4.0",
"micro-should": "0.5.1",
"prettier": "3.3.2",
"typescript": "5.5.2"
Expand Down
6 changes: 3 additions & 3 deletions test/benchmark/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const bench = require('micro-bmark');
const { run, mark } = bench; // or bench.mark
const mark = bench; // or bench.mark
const { base64, base58, hex } = require('../..');
const stableBase64 = require('@stablelib/base64');
const microBase58 = require('micro-base58');
Expand Down Expand Up @@ -59,7 +59,7 @@ const buffers = {
};

const main = () =>
run(async () => {
(async () => {
for (let [k, libs] of Object.entries(CODERS)) {
console.log(`==== ${k} ====`);
for (const [size, [samples, buf]] of Object.entries(buffers)) {
Expand All @@ -72,7 +72,7 @@ const main = () =>
console.log();
}
}
});
})();

module.exports = { main };
if (require.main === module) main();
4 changes: 1 addition & 3 deletions test/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
"bench": "node ./index.js"
},
"devDependencies": {
"micro-bmark": "0.3.1",
"micro-should": "0.4.0",
"prettier": "2.8.4",
"typescript": "5.0.2"
"typescript": "5.5.2"
},
"dependencies": {
"@faustbrian/node-base58": "1.0.0",
Expand Down
7 changes: 4 additions & 3 deletions test/build/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4ad43c0

Please sign in to comment.