@prosopo/keyring 2.9.92 → 2.9.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/keyring@2.9.92 build:cjs
2
+ > @prosopo/keyring@2.9.95 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -7,8 +7,8 @@ ViteCommonJSConfig: .
7
7
  tsConfigPaths: [
8
8
  '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
9
9
  '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
10
- '/home/runner/work/captcha/captcha/packages/logger/tsconfig.json',
11
10
  '/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
11
+ '/home/runner/work/captcha/captcha/packages/logger/tsconfig.json',
12
12
  '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
13
13
  '/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json'
14
14
  ]
@@ -17,8 +17,8 @@ ViteCommonJSConfig: .
17
17
  externals: [
18
18
  '@prosopo/common',
19
19
  '@prosopo/locale',
20
- '@prosopo/logger',
21
20
  '@prosopo/util',
21
+ '@prosopo/logger',
22
22
  '@prosopo/types',
23
23
  '@prosopo/util-crypto'
24
24
  ]
@@ -44,4 +44,4 @@ dist/cjs/pair/decode.cjs 1.77 kB │ gzip: 0.70 kB
44
44
  dist/cjs/pair/index.cjs 7.26 kB │ gzip: 2.12 kB
45
45
  dist/cjs/keyring/keyring.cjs 11.14 kB │ gzip: 3.05 kB
46
46
 
47
- ✓ built in 77ms
47
+ ✓ built in 84ms
@@ -1,32 +1,32 @@
1
1
 
2
- > @prosopo/keyring@2.9.92 build:tsc
2
+ > @prosopo/keyring@2.9.95 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 2:42:31 PM - Projects in this build:
5
+ 3:28:37 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
- * ../locale/tsconfig.json
8
7
  * ../util/tsconfig.json
8
+ * ../locale/tsconfig.json
9
9
  * ../logger/tsconfig.json
10
10
  * ../util-crypto/tsconfig.json
11
11
  * ../types/tsconfig.json
12
12
  * ../common/tsconfig.json
13
13
  * tsconfig.json
14
14
 
15
- 2:42:31 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
15
+ 3:28:37 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
16
16
 
17
- 2:42:31 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
17
+ 3:28:37 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
18
18
 
19
- 2:42:31 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
19
+ 3:28:37 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
20
20
 
21
- 2:42:31 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
21
+ 3:28:37 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/logger.ts' is older than output '../logger/tsconfig.tsbuildinfo'
22
22
 
23
- 2:42:31 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
23
+ 3:28:37 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
24
24
 
25
- 2:42:31 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
25
+ 3:28:37 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
26
26
 
27
- 2:42:31 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/utils/batches.ts' is older than output '../common/tsconfig.tsbuildinfo'
27
+ 3:28:37 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/index.ts' is older than output '../common/tsconfig.tsbuildinfo'
28
28
 
29
- 2:42:31 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
29
+ 3:28:37 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
30
30
 
31
- 2:42:31 PM - Building project '/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json'...
31
+ 3:28:37 PM - Building project '/home/runner/work/captcha/captcha/packages/keyring/tsconfig.json'...
32
32
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/keyring@2.9.92 build
2
+ > @prosopo/keyring@2.9.95 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/keyring@2.9.92 build:cross-env
6
+ > @prosopo/keyring@2.9.95 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -11,8 +11,8 @@ ViteEsmConfig: .
11
11
  tsConfigPaths: [
12
12
  '/home/runner/work/captcha/captcha/packages/common/tsconfig.json',
13
13
  '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json',
14
- '/home/runner/work/captcha/captcha/packages/logger/tsconfig.json',
15
14
  '/home/runner/work/captcha/captcha/packages/util/tsconfig.json',
15
+ '/home/runner/work/captcha/captcha/packages/logger/tsconfig.json',
16
16
  '/home/runner/work/captcha/captcha/packages/types/tsconfig.json',
17
17
  '/home/runner/work/captcha/captcha/packages/util-crypto/tsconfig.json'
18
18
  ]
@@ -21,8 +21,8 @@ ViteEsmConfig: .
21
21
  externals: [
22
22
  '@prosopo/common',
23
23
  '@prosopo/locale',
24
- '@prosopo/logger',
25
24
  '@prosopo/util',
25
+ '@prosopo/logger',
26
26
  '@prosopo/types',
27
27
  '@prosopo/util-crypto'
28
28
  ]
@@ -49,4 +49,4 @@ dist/pair/decode.js 1.48 kB │ gzip: 0.66 kB
49
49
  dist/pair/index.js 6.96 kB │ gzip: 2.09 kB
50
50
  dist/keyring/keyring.js 10.74 kB │ gzip: 2.99 kB
51
51
 
52
- ✓ built in 116ms
52
+ ✓ built in 138ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # @prosopo/keyring
2
2
 
3
+ ## 2.9.95
4
+ ### Patch Changes
5
+
6
+ - a9141c3: Ship one copy of each crypto library in the widget instead of two or three.
7
+
8
+ The bundle contained three separate copies of `@noble/hashes` and two of `@polkadot/util`, because different packages asked for different major versions and npm installed each one in its own folder. Same code, bundled repeatedly. The widget's eager payload drops by about 6KB gzipped.
9
+
10
+ Two stale version pins caused it:
11
+
12
+ - `@prosopo/util-crypto` asked for `@noble/hashes` 1.8.0 while its own dependencies `@noble/curves` and `@scure/sr25519` asked for 2.4.0, so npm installed both majors. Everything is now on 2.4.0. The v2 import paths changed (`@noble/hashes/sha256` is now `@noble/hashes/sha2.js`, `blake2b` is `blake2.js`); the functions themselves are unchanged.
13
+ - `@prosopo/util-crypto` asked for `@polkadot/x-randomvalues` 13.5.7, which in turn demands exactly `@polkadot/util` 13.5.7. Every other package in the repo asks for 14.0.3, so npm put the old one in the shared folder and gave each package its own private copy of the new one. Bumping that single pin to 14.0.3 leaves one shared copy. As a side effect `@prosopo/util-crypto` now gets the `@scure/base` 2.4.0 it always asked for, rather than the 1.2.6 it was silently given.
14
+
15
+ `@prosopo/keyring` no longer depends on `@polkadot/util-crypto`. It was used for one type, which `@prosopo/util-crypto` already exports.
16
+
17
+ The repo root now names the versions the workspace standardises on (`@noble/hashes`, `@noble/curves`, `@scure/base`, `@scure/sr25519`), which is what keeps npm putting them in the shared folder. Older majors are still installed for the Polkadot web3 packages that require them; those load only in web3 mode and are unaffected.
18
+
19
+ Covered by the existing test suites for each package, all passing unchanged.
20
+ - Updated dependencies [a9141c3]
21
+ - Updated dependencies [a9141c3]
22
+ - Updated dependencies [a9141c3]
23
+ - @prosopo/common@3.1.59
24
+ - @prosopo/types@5.10.0
25
+ - @prosopo/util-crypto@13.5.33
26
+ - @prosopo/util@3.3.11
27
+
28
+ ## 2.9.94
29
+ ### Patch Changes
30
+
31
+ - @prosopo/common@3.1.58
32
+ - @prosopo/types@5.9.2
33
+
34
+ ## 2.9.93
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [a22069d]
38
+ - @prosopo/types@5.9.1
39
+ - @prosopo/common@3.1.57
40
+
3
41
  ## 2.9.92
4
42
  ### Patch Changes
5
43
 
@@ -1,4 +1,4 @@
1
- import type { EncryptedJsonEncoding } from "@polkadot/util-crypto/types";
1
+ import type { EncryptedJsonEncoding } from "@prosopo/util-crypto";
2
2
  export declare function decodePair(passphrase?: string, encrypted?: Uint8Array | null, _encType?: EncryptedJsonEncoding | EncryptedJsonEncoding[]): {
3
3
  publicKey: Uint8Array;
4
4
  secretKey: Uint8Array;
@@ -1 +1 @@
1
- {"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../src/pair/decode.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAsBzE,wBAAgB,UAAU,CACzB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,UAAU,GAAG,IAAI,EAC7B,QAAQ,CAAC,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,GACxD;IAAE,SAAS,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,UAAU,CAAA;CAAE,CAmClD"}
1
+ {"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../src/pair/decode.ts"],"names":[],"mappings":"AAI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E,OAAO;QACN,SAAS;QACT,SAAS;KACT,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/keyring",
3
- "version": "2.9.92",
3
+ "version": "2.9.95",
4
4
  "description": "Keypair generator for Prosopo",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -38,15 +38,14 @@
38
38
  "homepage": "https://github.com/prosopo/captcha#readme",
39
39
  "dependencies": {
40
40
  "@polkadot/util": "14.0.3",
41
- "@polkadot/util-crypto": "14.0.3",
42
- "@prosopo/common": "3.1.56",
43
- "@prosopo/types": "5.9.0",
44
- "@prosopo/util": "3.3.10",
45
- "@prosopo/util-crypto": "13.5.32",
41
+ "@prosopo/common": "3.1.59",
42
+ "@prosopo/types": "5.10.0",
43
+ "@prosopo/util": "3.3.11",
44
+ "@prosopo/util-crypto": "13.5.33",
46
45
  "dotenv": "16.4.5"
47
46
  },
48
47
  "devDependencies": {
49
- "@prosopo/config": "3.3.17",
48
+ "@prosopo/config": "3.4.0",
50
49
  "@types/node": "22.10.2",
51
50
  "@vitest/coverage-v8": "4.1.11",
52
51
  "concurrently": "9.0.1",
@@ -1,9 +1,8 @@
1
1
  // Copyright 2017-2025 @polkadot/keyring authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import type { EncryptedJsonEncoding } from "@polkadot/util-crypto/types";
5
-
6
4
  import { u8aEq } from "@polkadot/util";
5
+ import type { EncryptedJsonEncoding } from "@prosopo/util-crypto";
7
6
  import { jsonDecryptData } from "@prosopo/util-crypto";
8
7
 
9
8
  import {