Skip to content

Commit

Permalink
Remove node-fetch (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas authored Aug 22, 2024
1 parent 730b1bc commit eef5d0c
Show file tree
Hide file tree
Showing 6 changed files with 398 additions and 496 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: "latest"
- uses: actions/setup-node@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: "https://registry.npmjs.org"
- run: pnpm install
- run: npm test -- --bail --ci
- run: npm run build && npm publish

- run: pnpm install && pnpm test -- --bail --ci

- run: pnpm run build && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 12 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [18, 20]
node: [18, 20, 22]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: "latest"
- uses: actions/setup-node@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

- run: pnpm install
- run: npm test -- --bail --ci
- uses: codecov/codecov-action@v3
- run: npm run build && npm publish --dry-run
- run: pnpm install && pnpm test -- --bail --ci

- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- run: pnpm run build && npm publish --dry-run
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Changelog

## 0.4.1 ~ 0.4.7
## 0.4.1 ~ 0.4.8

- Revamp util functions
- Drop Node 16 support
Expand Down
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git",
"url": "git+https://github.com/ecies/js.git"
},
"version": "0.4.7",
"version": "0.4.8",
"engines": {
"node": ">=16.0.0"
},
Expand All @@ -35,20 +35,18 @@
"test": "jest"
},
"dependencies": {
"@noble/ciphers": "^0.5.3",
"@noble/curves": "^1.4.2",
"@noble/ciphers": "0.6.0",
"@noble/curves": "^1.5.0",
"@noble/hashes": "^1.4.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^22.0.2",
"@types/node-fetch": "^2.6.11",
"https-proxy-agent": "^7.0.5",
"@types/node": "^22.4.0",
"jest": "^29.7.0",
"node-fetch": "^2.7.0",
"ts-jest": "^29.1.5",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
"typescript": "^5.5.4",
"undici": "^6.19.7"
},
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
"packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247"
}
Loading

0 comments on commit eef5d0c

Please sign in to comment.