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
4 changes: 2 additions & 2 deletions .github/workflows/ci-casper-client-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [16.x, 18.x]
node-version: [18.x, 22.x]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
env:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
run: npm run lint:ci

- name: Unit Test
run: npm run test:node:unit
run: ${{ matrix.node-version == '22.x' && 'npm run test:node:unit:node22' || 'npm run test:node:unit' }}

- name: Test build
run: npm run build
139 changes: 52 additions & 87 deletions package-lock.json

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

41 changes: 39 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@
"url": "https://github.com/casper-ecosystem/casper-js-sdk.git"
},
"main": "dist/lib.node.js",
"module": "dist/lib.esm.mjs",
"browser": "dist/lib.web.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/lib.esm.mjs",
"require": "./dist/lib.node.js",
"default": "./dist/lib.node.js"
}
},
"scripts": {
"prepare": "husky-run install",
"lint": "eslint src/ --fix",
Expand All @@ -24,6 +33,7 @@
"test:node:unit:coverage": "nyc npm run test:node:unit",
"test:browser:unit": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
"test:unit": "cross-env NODE_ENV=test npm run test:node:unit && npm run test:browser:unit",
"test:esm:smoke": "node ./scripts/esm-smoke-test.mjs",
"test:node:e2e": "cross-env NODE_ENV=test TS_NODE_FILES=true mocha -r ts-node/register \"e2e/**/*.test.ts\" --timeout 5000000 --exit",
"test:e2e": "cross-env NODE_ENV=test npm run test:node:e2e",
"test": "npm run test:unit && npm run test:e2e",
Expand All @@ -32,6 +42,9 @@
"docs:preview": "cd site && vocs preview",
"prepublishOnly": "npm run build && npm run test:node:unit:node22"
},
"engines": {
"node": ">=18"
},
"keywords": [
"Casper",
"BlockChain",
Expand Down Expand Up @@ -113,7 +126,32 @@
"elliptic": "^6.6.1",
"minimatch": "^10.2.3",
"bn.js": "^5.2.1",
"@types/d3-dispatch": "3.0.6"
"@types/d3-dispatch": "3.0.6",
"brace-expansion": "^5.0.5",
"@rollup/pluginutils": {
"picomatch": "^4.0.4"
},
"@vanilla-extract/compiler": {
"picomatch": "^4.0.4",
"yaml": "^2.8.3"
},
"tinyglobby": {
"picomatch": "^4.0.4"
},
"vite-node": {
"picomatch": "^4.0.4",
"yaml": "^2.8.3"
},
"vocs": {
"picomatch": "^4.0.4",
"yaml": "^2.8.3"
},
"remark-mdx-frontmatter": {
"yaml": "^2.8.3"
},
"vfile-matter": {
"yaml": "^2.8.3"
}
},
"dependencies": {
"@ethersproject/bignumber": "^5.0.8",
Expand All @@ -123,7 +161,6 @@
"@noble/ed25519": "^1.7.3",
"@noble/hashes": "^1.2.0",
"@noble/secp256k1": "^1.7.1",
"@open-rpc/client-js": "^1.8.1",
"@scure/bip32": "^1.1.5",
"@scure/bip39": "^1.2.0",
"@types/ws": "^8.2.2",
Expand Down
Loading
Loading