Latest deps (incl. bn.js revert) (#1364)
* Bump dev (w/ no import.meta.url) * Latest deps (incl. bn.js revert) * CHANGELOG * Adjust expectation
This commit is contained in:
+3
-3
@@ -1,14 +1,14 @@
|
||||
# CHANGELOG
|
||||
|
||||
**Important** Webpack 4 has known issues with `import.meta.url` that is solvable via a rule, see https://polkadot.js.org/docs/api/FAQ/#on-webpack-4-i-have-a-parse-error-on-importmetaurl
|
||||
**Important** Webpack 4 has known issues with `import.meta.url` that is solvable via a rule, see https://polkadot.js.org/docs/usage/FAQ#on-webpack-4-i-have-a-parse-error-on-importmetaurl
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix `util-crypto` bundle generation (adjust `x-randomvalues`)
|
||||
- Add all known Rococo genesis hashes
|
||||
- Ensure package path is availble under ESM & CJS
|
||||
- `detectPackage` now uses optional `path` & `type` (`esm` or `cjs`) info
|
||||
- Upgrade 3rd party dependencies, including `bn.js` to latest
|
||||
- Ensure package paths are available via ESM and CJS
|
||||
- Upgrade 3rd party dependencies to latest
|
||||
- Pin `@noble/hashes` to 0.5.9 (0.5.6 version is broken for rollup, 0.5.8 is non-buildable)
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.16.7",
|
||||
"@polkadot/dev": "^0.65.16",
|
||||
"@polkadot/dev": "^0.65.20",
|
||||
"@types/jest": "^27.4.0"
|
||||
},
|
||||
"resolutions": {
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
"@polkadot/x-global": "8.2.3-27",
|
||||
"@polkadot/x-textdecoder": "8.2.3-27",
|
||||
"@polkadot/x-textencoder": "8.2.3-27",
|
||||
"@types/bn.js": "^5.1.0",
|
||||
"bn.js": "^5.2.0",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.12.0",
|
||||
"ip-regex": "^4.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -14,18 +14,18 @@ describe('stringify', (): void => {
|
||||
it('stringifies an array of values', (): void => {
|
||||
expect(
|
||||
stringify(['a', 1, 2n, new BN(3)])
|
||||
).toEqual('["a",1,"2","03"]');
|
||||
).toEqual('["a",1,"2","3"]');
|
||||
});
|
||||
|
||||
it('stringifies an array of values (with spaces)', (): void => {
|
||||
expect(
|
||||
stringify(['a', 1, 2n, new BN(3)], 2)
|
||||
).toEqual('[\n "a",\n 1,\n "2",\n "03"\n]');
|
||||
).toEqual('[\n "a",\n 1,\n "2",\n "3"\n]');
|
||||
});
|
||||
|
||||
it('stringifies a nested object', (): void => {
|
||||
expect(
|
||||
stringify({ a: 'a', b: 1, c: { d: 2n, e: new BN(3) } })
|
||||
).toEqual('{"a":"a","b":1,"c":{"d":"2","e":"03"}}');
|
||||
).toEqual('{"a":"a","b":1,"c":{"d":"2","e":"3"}}');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1958,9 +1958,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/dev@npm:^0.65.16":
|
||||
version: 0.65.16
|
||||
resolution: "@polkadot/dev@npm:0.65.16"
|
||||
"@polkadot/dev@npm:^0.65.20":
|
||||
version: 0.65.20
|
||||
resolution: "@polkadot/dev@npm:0.65.20"
|
||||
dependencies:
|
||||
"@babel/cli": ^7.16.7
|
||||
"@babel/core": ^7.16.7
|
||||
@@ -2046,7 +2046,7 @@ __metadata:
|
||||
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
|
||||
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
|
||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
|
||||
checksum: 0b3c310278cfa86dfb13f88496d61cab64ad4c4cdf2876a38f62637eb1c376930881c6315ecda55ae0a2ae1592a67d69be4a55711a937a00fbe939b7abe644b1
|
||||
checksum: 42ea21b92bddcc3c00c139a3305bf86d3c2f3591bbe0769d6fa82fd1cbace91851f30e57a6562e95d41f4b02f77720edeac2611718d4116de456820ef5e64dbb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2133,8 +2133,8 @@ __metadata:
|
||||
"@polkadot/x-randomvalues": 8.2.3-27
|
||||
"@polkadot/x-textdecoder": 8.2.3-27
|
||||
"@polkadot/x-textencoder": 8.2.3-27
|
||||
"@types/bn.js": ^5.1.0
|
||||
bn.js: ^5.2.0
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.12.0
|
||||
ip-regex: ^4.3.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -2418,12 +2418,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/bn.js@npm:^5.1.0":
|
||||
version: 5.1.0
|
||||
resolution: "@types/bn.js@npm:5.1.0"
|
||||
"@types/bn.js@npm:^4.11.6":
|
||||
version: 4.11.6
|
||||
resolution: "@types/bn.js@npm:4.11.6"
|
||||
dependencies:
|
||||
"@types/node": "*"
|
||||
checksum: 1dc1cbbd7a1e8bf3614752e9602f558762a901031f499f3055828b5e3e2bba16e5b88c27b3c4152ad795248fbe4086c731a5c4b0f29bb243f1875beeeabee59c
|
||||
checksum: 7f66f2c7b7b9303b3205a57184261974b114495736b77853af5b18d857c0b33e82ce7146911e86e87a87837de8acae28986716fd381ac7c301fd6e8d8b6c811f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3450,14 +3450,14 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"bn.js@npm:^4.11.8, bn.js@npm:^4.11.9":
|
||||
"bn.js@npm:^4.11.8, bn.js@npm:^4.11.9, bn.js@npm:^4.12.0":
|
||||
version: 4.12.0
|
||||
resolution: "bn.js@npm:4.12.0"
|
||||
checksum: 39afb4f15f4ea537b55eaf1446c896af28ac948fdcf47171961475724d1bb65118cca49fa6e3d67706e4790955ec0e74de584e45c8f1ef89f46c812bee5b5a12
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"bn.js@npm:^5.1.1, bn.js@npm:^5.2.0":
|
||||
"bn.js@npm:^5.1.1":
|
||||
version: 5.2.0
|
||||
resolution: "bn.js@npm:5.2.0"
|
||||
checksum: 6117170393200f68b35a061ecbf55d01dd989302e7b3c798a3012354fa638d124f0b2f79e63f77be5556be80322a09c40339eda6413ba7468524c0b6d4b4cb7a
|
||||
@@ -9176,7 +9176,7 @@ resolve@^2.0.0-next.3:
|
||||
resolution: "root-workspace-0b6124@workspace:."
|
||||
dependencies:
|
||||
"@babel/core": ^7.16.7
|
||||
"@polkadot/dev": ^0.65.16
|
||||
"@polkadot/dev": ^0.65.20
|
||||
"@types/jest": ^27.4.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
Reference in New Issue
Block a user