feat: support npm v9 (#2318)

* add support for npm v9

* Update package-lock.json

* Update nodejs.yml

* update changelogs

* update PR template
This commit is contained in:
Mayukha Vadari
2023-05-25 16:01:42 -04:00
committed by GitHub
parent 317e2054de
commit 82c5b3598a
8 changed files with 21 additions and 20 deletions

View File

@@ -31,13 +31,6 @@ Please check relevant options, delete irrelevant ones.
- [ ] Documentation Updates
- [ ] Release
## Before / After
<!--
If just refactoring / back-end changes, this can be just an in-English description of the change at a technical level.
If a UI change, screenshots should be included.
-->
## Test Plan
<!--

View File

@@ -25,9 +25,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Setup npm version 7
- name: Setup npm version 9
run: |
npm i -g npm@7 --registry=https://registry.npmjs.org
npm i -g npm@9 --registry=https://registry.npmjs.org
- name: Cache node modules
id: cache-nodemodules
@@ -66,9 +66,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Setup npm version 7
- name: Setup npm version 9
run: |
npm i -g npm@7 --registry=https://registry.npmjs.org
npm i -g npm@9 --registry=https://registry.npmjs.org
- name: Cache node modules
id: cache-nodemodules
@@ -112,9 +112,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Setup npm version 7
- name: Setup npm version 9
run: |
npm i -g npm@7 --registry=https://registry.npmjs.org
npm i -g npm@9 --registry=https://registry.npmjs.org
- name: Cache node modules
id: cache-nodemodules
@@ -164,9 +164,9 @@ jobs:
run: |
docker run --detach --rm --name rippled-service -p 6006:6006 --volume "${{ github.workspace }}/.ci-config/":"/config/" --health-cmd="wget localhost:6006 || exit 1" --health-interval=5s --health-retries=10 --health-timeout=2s --env "ENV_ARGS=-a --start" --env GITHUB_ACTIONS=true --env CI=true xrpllabsofficial/xrpld:latest
- name: Setup npm version 7
- name: Setup npm version 9
run: |
npm i -g npm@7 --registry=https://registry.npmjs.org
npm i -g npm@9 --registry=https://registry.npmjs.org
- name: Cache node modules
id: cache-nodemodules

2
package-lock.json generated
View File

@@ -69,7 +69,7 @@
},
"engines": {
"node": ">=12.0.0",
"npm": ">=7.0.0 < 9.0.0"
"npm": ">=7.0.0 < 10.0.0"
}
},
"node_modules/@ampproject/remapping": {

View File

@@ -76,6 +76,6 @@
],
"engines": {
"node": ">=12.0.0",
"npm": ">=7.0.0 < 9.0.0"
"npm": ">=7.0.0 < 10.0.0"
}
}

View File

@@ -3,6 +3,9 @@
## Unreleased
## 4.2.5 (2023-03-08)
### Added
* Adds support for npm v9
### Changed
- All tests now use the Jest test runner and have been refactored for consistency across all packages

View File

@@ -3,6 +3,7 @@
## Unreleased
### Added
- Allow custom type definitions to be used for encoding/decoding transactions at runtime (e.g. for sidechains/new amendments)
* Adds support for npm v9
## 1.5.0 (2023-03-08)
### Changed

View File

@@ -2,6 +2,9 @@
## Unreleased
### Added
* Adds support for npm v9
## 1.1.5 (2023-03-08)
### Changed
- All tests now use the Jest test runner and have been refactored for consistency across all packages

View File

@@ -4,14 +4,15 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr
## Unreleased
### Added
* Guard check for signing algorithm used in `Wallet.generate()`
* Null and undefined values in transactions are now treated as though the field was not passed in.
* Adds support for npm v9
### Fixed
* Fixed `ServerState.transitions` typing, it is now a string instead of a number. (Only used in return from `server_state` request)
* Added `destination_amount` to `PathOption` which is returned as part of a `path_find` request
* Removed the `decode(encode(tx)) == tx` check from the wallet signing process
* Fixed the location of `signer_lists` in the `account_info` response so that it matches rippled
* Guard check for signing algorithm used in `Wallet.generate()`
* Null and undefined values in transactions are now treated as though the field was not passed in.
### Removed
* RPCs and utils related to the old sidechain design