@prosopo/procaptcha-pow 2.12.3 → 2.12.5

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/procaptcha-pow@2.12.3 build:cjs
2
+ > @prosopo/procaptcha-pow@2.12.5 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -48,7 +48,7 @@ rendering chunks...
48
48
  computing gzip size...
49
49
  dist/cjs/index.cjs 0.20 kB │ gzip: 0.15 kB
50
50
  dist/cjs/components/ProcaptchaPoW.cjs 0.51 kB │ gzip: 0.27 kB
51
- dist/cjs/components/ProcaptchaWidget.cjs 5.23 kB │ gzip: 1.61 kB
51
+ dist/cjs/components/ProcaptchaWidget.cjs 5.31 kB │ gzip: 1.65 kB
52
52
  dist/cjs/services/Manager.cjs 9.22 kB │ gzip: 2.61 kB
53
53
 
54
- ✓ built in 85ms
54
+ ✓ built in 69ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/procaptcha-pow@2.12.3 build:tsc
2
+ > @prosopo/procaptcha-pow@2.12.5 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 1:49:12 PM - Projects in this build:
5
+ 1:04:39 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -20,37 +20,37 @@
20
20
  * ../procaptcha-common/tsconfig.json
21
21
  * tsconfig.json
22
22
 
23
- 1:49:12 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'
23
+ 1:04:39 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'
24
24
 
25
- 1:49:12 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
25
+ 1:04:39 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
26
26
 
27
- 1:49:12 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
27
+ 1:04:39 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
28
28
 
29
- 1:49:12 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'
29
+ 1:04:39 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'
30
30
 
31
- 1:49:12 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'
31
+ 1:04:40 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'
32
32
 
33
- 1:49:12 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
33
+ 1:04:40 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/tsconfig.tsbuildinfo'
34
34
 
35
- 1:49:12 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/logger.ts' is older than output '../logger/tsconfig.tsbuildinfo'
35
+ 1:04:40 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/logger.ts' is older than output '../logger/tsconfig.tsbuildinfo'
36
36
 
37
- 1:49:12 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
37
+ 1:04:40 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
38
38
 
39
- 1:49:12 PM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
39
+ 1:04:40 PM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
40
40
 
41
- 1:49:12 PM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/merkle.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
41
+ 1:04:40 PM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
42
42
 
43
- 1:49:12 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/balancer.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
43
+ 1:04:40 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/productionProviderList.unit.test.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
44
44
 
45
- 1:49:12 PM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/webComponent/createWidget.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
45
+ 1:04:40 PM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/webComponent/createWidget.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
46
46
 
47
- 1:49:12 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
47
+ 1:04:40 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/pair/decode.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
48
48
 
49
- 1:49:12 PM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/workers/cryptoWorker.ts' is older than output '../account/tsconfig.tsbuildinfo'
49
+ 1:04:40 PM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/tests/cryptoWorker.unit.test.ts' is older than output '../account/tsconfig.tsbuildinfo'
50
50
 
51
- 1:49:12 PM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/simdReadings.ts' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
51
+ 1:04:40 PM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/tests/challengeSurfaceRender.unit.test.tsx' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
52
52
 
53
- 1:49:12 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
53
+ 1:04:40 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
54
54
 
55
- 1:49:12 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-pow/tsconfig.json'...
55
+ 1:04:40 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-pow/tsconfig.json'...
56
56
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/procaptcha-pow@2.12.3 build
2
+ > @prosopo/procaptcha-pow@2.12.5 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/procaptcha-pow@2.12.3 build:cross-env
6
+ > @prosopo/procaptcha-pow@2.12.5 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -53,7 +53,7 @@ computing gzip size...
53
53
  dist/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
54
54
  dist/index.js 0.13 kB │ gzip: 0.11 kB
55
55
  dist/components/ProcaptchaPoW.js 0.37 kB │ gzip: 0.23 kB
56
- dist/components/ProcaptchaWidget.js 4.80 kB │ gzip: 1.59 kB
56
+ dist/components/ProcaptchaWidget.js 4.88 kB │ gzip: 1.63 kB
57
57
  dist/services/Manager.js 8.55 kB │ gzip: 2.57 kB
58
58
 
59
- ✓ built in 82ms
59
+ ✓ built in 63ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,71 @@
1
1
  # @prosopo/procaptcha-pow
2
2
 
3
+ ## 2.12.5
4
+ ### Patch Changes
5
+
6
+ - f4e4a83: chore(deps): roll up the open dependabot bumps (react 19.3, mongoose 9.10, @polkadot/util 14, redis 6, cron-parser 5, react-i18next 17 with i18next 26, @scure/base 2, cypress 16, rollup/babel plugin majors, vitest 4.1.11, angular 20.3.28, js-yaml)
7
+ - Updated dependencies [f4e4a83]
8
+ - Updated dependencies [c386199]
9
+ - Updated dependencies [d710b7f]
10
+ - Updated dependencies [d4e9425]
11
+ - Updated dependencies [ae121df]
12
+ - Updated dependencies [0be8838]
13
+ - @prosopo/common@3.1.56
14
+ - @prosopo/locale@3.4.3
15
+ - @prosopo/procaptcha-common@2.14.1
16
+ - @prosopo/types@5.8.4
17
+ - @prosopo/util-crypto@13.5.32
18
+ - @prosopo/util@3.3.10
19
+ - @prosopo/api@4.2.4
20
+ - @prosopo/fingerprint@2.7.47
21
+
22
+ ## 2.12.4
23
+ ### Patch Changes
24
+
25
+ - 864ddde: Make the challenges usable with a keyboard and a screen reader.
26
+
27
+ The puzzle could only be solved by dragging with a mouse or a finger. The piece
28
+ was a plain `div`, so it could not be tabbed to, had no name or role, and a
29
+ screen reader announced nothing at all — a user on assistive tech could tick "I
30
+ am human", get a silent overlay, and have no way forward. The image captcha had
31
+ the same problem in its tiles.
32
+
33
+ What changed:
34
+
35
+ - The puzzle piece can now be focused and moved with the arrow keys (hold shift
36
+ for smaller steps, Home to start over, Enter or Space to submit). It has a
37
+ name, a role, and a visible focus ring.
38
+ - The puzzle announces its state as you go: where the piece is, as a percentage
39
+ across and down the board; that an answer is being checked; and that a failed
40
+ go has been replaced by a fresh puzzle.
41
+ - The image captcha tiles are now buttons rather than clickable `div`s, so they
42
+ can be tabbed to and activated with Enter or Space, and they report whether
43
+ they are selected instead of only looking selected.
44
+ - Both challenges now open as a proper dialog: it takes focus when it opens,
45
+ keeps Tab inside itself, and gives focus back to the checkbox on close.
46
+ - The spinner that replaces the checkbox while a check runs used to drop focus
47
+ to the top of the page without saying why. It now takes focus in the
48
+ checkbox's place, names itself, and hands focus back when the check finishes.
49
+ This affects the pow, image and puzzle flows.
50
+ - The puzzle's on-screen text was hardcoded English. It now goes through the
51
+ locale package, and the new strings are translated into all 32 locales.
52
+
53
+ A visual puzzle still cannot be solved by someone who cannot see it — the widget
54
+ is never told where the target is, so there is nothing it could describe. Sites
55
+ that need a challenge a blind user can complete should use the pow captcha type,
56
+ which needs no interaction beyond the checkbox.
57
+ - Updated dependencies [028a158]
58
+ - Updated dependencies [028a158]
59
+ - Updated dependencies [3958046]
60
+ - Updated dependencies [864ddde]
61
+ - Updated dependencies [028a158]
62
+ - @prosopo/procaptcha-common@2.14.0
63
+ - @prosopo/types@5.8.3
64
+ - @prosopo/locale@3.4.2
65
+ - @prosopo/api@4.2.3
66
+ - @prosopo/common@3.1.55
67
+ - @prosopo/fingerprint@2.7.46
68
+
3
69
  ## 2.12.3
4
70
  ### Patch Changes
5
71
 
@@ -122,6 +122,7 @@ var Procaptcha = (props) => {
122
122
  labelText: isTranslationReady ? t("WIDGET.I_AM_HUMAN") : "",
123
123
  error: state.error?.message,
124
124
  "aria-label": "human checkbox",
125
+ loadingText: t("WIDGET.CHECKING", { defaultValue: "Checking that you are human" }),
125
126
  loading
126
127
  })] });
127
128
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProcaptchaWidget.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaWidget.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAQhE,QAAA,MAAM,UAAU,UAAW,eAAe,4DAwMzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ProcaptchaWidget.d.ts","sourceRoot":"","sources":["../../src/components/ProcaptchaWidget.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAQhE,QAAA,MAAM,UAAU,UAAW,eAAe,4DA2MzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -123,6 +123,7 @@ var Procaptcha = (props) => {
123
123
  labelText: isTranslationReady ? t("WIDGET.I_AM_HUMAN") : "",
124
124
  error: state.error?.message,
125
125
  "aria-label": "human checkbox",
126
+ loadingText: t("WIDGET.CHECKING", { defaultValue: "Checking that you are human" }),
126
127
  loading
127
128
  })] });
128
129
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProcaptchaWidget.js","sourceRoot":"","sources":["../../src/components/ProcaptchaWidget.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAwB,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAEtD,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IAC7C,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE,CAAC;IAC1D,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC5B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACxB,MAAM,K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AAC,CAAC,CAAC,CAAC,EAAE,EAC3D,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,OAAO,gBAChB,gBAAgB,EAC3B,WAAW,EAAE,CAAC,CAAC,iBAAiB,EAAE;oBACjC,YAAY,EAAE,6BAA6B;iBAC3C,CAAC,EACF,OAAO,EAAE,OAAO,GACf,IACA,CACH,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-pow",
3
- "version": "2.12.3",
3
+ "version": "2.12.5",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -32,29 +32,29 @@
32
32
  },
33
33
  "browserslist": ["> 0.5%, last 2 versions, not dead"],
34
34
  "dependencies": {
35
- "@polkadot/util": "13.5.7",
36
- "@prosopo/api": "4.2.2",
37
- "@prosopo/common": "3.1.54",
38
- "@prosopo/fingerprint": "2.7.45",
39
- "@prosopo/locale": "3.4.1",
40
- "@prosopo/procaptcha-common": "2.13.3",
41
- "@prosopo/types": "5.8.2",
42
- "@prosopo/util": "3.3.9",
43
- "@prosopo/util-crypto": "13.5.31",
35
+ "@polkadot/util": "14.0.3",
36
+ "@prosopo/api": "4.2.4",
37
+ "@prosopo/common": "3.1.56",
38
+ "@prosopo/fingerprint": "2.7.47",
39
+ "@prosopo/locale": "3.4.3",
40
+ "@prosopo/procaptcha-common": "2.14.1",
41
+ "@prosopo/types": "5.8.4",
42
+ "@prosopo/util": "3.3.10",
43
+ "@prosopo/util-crypto": "13.5.32",
44
44
  "@prosopo/widget-skeleton": "2.8.7",
45
- "react": "19.2.8"
45
+ "react": "19.3.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@emotion/react": "11.14.0",
49
49
  "@emotion/styled": "11.14.1",
50
- "@prosopo/config": "3.3.16",
50
+ "@prosopo/config": "3.3.17",
51
51
  "@types/node": "22.10.2",
52
52
  "@vitest/coverage-v8": "4.1.11",
53
53
  "concurrently": "9.0.1",
54
54
  "del-cli": "6.0.0",
55
55
  "jsdom": "26.1.0",
56
56
  "npm-run-all": "4.1.5",
57
- "react-dom": "19.2.8",
57
+ "react-dom": "19.3.0",
58
58
  "tslib": "2.7.0",
59
59
  "tsx": "4.20.3",
60
60
  "typescript": "5.6.2",
@@ -219,6 +219,9 @@ const Procaptcha = (props: ProcaptchaProps) => {
219
219
  labelText={isTranslationReady ? t("WIDGET.I_AM_HUMAN") : ""}
220
220
  error={state.error?.message}
221
221
  aria-label="human checkbox"
222
+ loadingText={t("WIDGET.CHECKING", {
223
+ defaultValue: "Checking that you are human",
224
+ })}
222
225
  loading={loading}
223
226
  />
224
227
  </>