@prosopo/cli 3.6.77 → 3.7.1

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/cli@3.6.77 build:cjs
2
+ > @prosopo/cli@3.7.1 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -80,7 +80,7 @@ dist/cjs/start.cjs 2.75 kB │ gzip: 0.85 kB
80
80
  dist/cjs/commands/siteKeyRegisterApi.cjs 3.08 kB │ gzip: 1.08 kB
81
81
  dist/cjs/commands/siteKeyRegister.cjs 3.48 kB │ gzip: 1.15 kB
82
82
  dist/cjs/prosopo.config.cjs 4.58 kB │ gzip: 1.46 kB
83
- dist/cjs/RateLimiter.cjs 5.41 kB │ gzip: 0.84 kB
83
+ dist/cjs/RateLimiter.cjs 5.42 kB │ gzip: 0.88 kB
84
84
 
85
85
  [EMPTY_IMPORT_META] `import.meta` may not be a valid syntax with the `cjs` output format.
86
86
  ╭─[ src/prosopo.config.ts:56:21 ]
@@ -90,4 +90,4 @@ dist/cjs/RateLimiter.cjs 5.41 kB │ gzip: 0.84 kB
90
90
   │ ╰─────── This `import.meta` will be replaced with an empty object (`{}`) automatically. If this is desired, you can suppress this warning by adding `transform.define: { 'import.meta': {} }`. If `import.meta` needs to be kept as-is, you need to set the output format to `esm`.
91
91
  ────╯
92
92
  
93
- ✓ built in 51ms
93
+ ✓ built in 53ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/cli@3.6.77 build:tsc
2
+ > @prosopo/cli@3.7.1 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 11:41:35 PM - Projects in this build:
5
+ 12:45:04 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -28,53 +28,53 @@
28
28
  * ../../dev/workspace/tsconfig.json
29
29
  * tsconfig.json
30
30
 
31
- 11:41:35 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'
31
+ 12:45:04 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/index.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
32
32
 
33
- 11:41:35 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
33
+ 12:45:04 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
34
34
 
35
- 11:41:35 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
35
+ 12:45:04 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
36
36
 
37
- 11:41:35 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'
37
+ 12:45:04 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'
38
38
 
39
- 11:41:35 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/procaptcha/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
39
+ 12:45:04 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'
40
40
 
41
- 11:41:35 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
41
+ 12:45:04 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
42
42
 
43
- 11:41:35 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
43
+ 12:45:04 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
44
44
 
45
- 11:41:35 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
45
+ 12:45:04 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
46
46
 
47
- 11:41:35 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
47
+ 12:45:04 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
48
48
 
49
- 11:41:35 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
49
+ 12:45:04 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
50
50
 
51
- 11:41:35 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/index.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
51
+ 12:45:04 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/apiRoutes.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
52
52
 
53
- 11:41:35 PM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
53
+ 12:45:04 PM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
54
54
 
55
- 11:41:35 PM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/transformRule.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
55
+ 12:45:04 PM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/transformRule.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
56
56
 
57
- 11:41:35 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types/captcha.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
57
+ 12:45:04 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types/captcha.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
58
58
 
59
- 11:41:35 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
59
+ 12:45:04 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
60
60
 
61
- 11:41:35 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
61
+ 12:45:04 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/pair/decode.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
62
62
 
63
- 11:41:35 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/env.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
63
+ 12:45:04 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/index.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
64
64
 
65
- 11:41:36 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/index.ts' is older than output '../env/tsconfig.tsbuildinfo'
65
+ 12:45:04 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
66
66
 
67
- 11:41:36 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/middlewares/requestLoggerMiddleware.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
67
+ 12:45:04 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/middlewares/requestLoggerMiddleware.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
68
68
 
69
- 11:41:36 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/dataset.unit.test.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
69
+ 12:45:04 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/mocks/data/captchas.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
70
70
 
71
- 11:41:36 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'
71
+ 12:45:04 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/index.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
72
72
 
73
- 11:41:36 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/util.ts' is older than output '../provider/tsconfig.tsbuildinfo'
73
+ 12:45:04 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/utils/normalizeRequestIp.ts' is older than output '../provider/tsconfig.tsbuildinfo'
74
74
 
75
- 11:41:36 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/index.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
75
+ 12:45:04 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/tests/projectInfo.unit.test.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
76
76
 
77
- 11:41:36 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
77
+ 12:45:04 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
78
78
 
79
- 11:41:36 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
79
+ 12:45:04 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
80
80
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/cli@3.6.77 build
2
+ > @prosopo/cli@3.7.1 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/cli@3.6.77 build:cross-env
6
+ > @prosopo/cli@3.7.1 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -84,6 +84,6 @@ dist/start.js 2.49 kB │ gzip: 0.82 kB
84
84
  dist/commands/siteKeyRegisterApi.js 2.97 kB │ gzip: 1.06 kB
85
85
  dist/commands/siteKeyRegister.js 3.30 kB │ gzip: 1.14 kB
86
86
  dist/prosopo.config.js 4.43 kB │ gzip: 1.47 kB
87
- dist/RateLimiter.js 5.00 kB │ gzip: 0.84 kB
87
+ dist/RateLimiter.js 5.02 kB │ gzip: 0.87 kB
88
88
 
89
- ✓ built in 56ms
89
+ ✓ built in 55ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @prosopo/cli
2
2
 
3
+ ## 3.7.1
4
+ ### Patch Changes
5
+
6
+ - b68c3a1: Bump `@prosopo/cli` so the next release cuts 3.7.1.
7
+
8
+ `create_release_pr` derives the repo version from this package:
9
+
10
+ ```bash
11
+ root_version=$(npm -w @prosopo/cli pkg get version | jq -r '.["@prosopo/cli"]')
12
+ npm pkg set version="$root_version"
13
+ ```
14
+
15
+ The changesets pending after v3.7.0 target `@prosopo/procaptcha-bundle`, `@prosopo/procaptcha-frictionless` and `@prosopo/client-bundle-example`. `@prosopo/cli` depends on none of them, so `changeset version` left it at 3.7.0 and the release re-cut 3.7.0 rather than 3.7.1.
16
+
17
+ ## 3.7.0
18
+ ### Minor Changes
19
+
20
+ - 787017b: chore(detector): remove the legacy detector-key rotation machinery
21
+
22
+ Nothing has read these keys since the detector moved to per-session provider
23
+ bundles — the decrypt paths resolve a bundle's own keypair instead. Rotating
24
+ them was already a no-op, so the whole surface is removed rather than left
25
+ looking live.
26
+
27
+ **Breaking — the admin API loses two endpoints:**
28
+
29
+ - `POST /v1/prosopo/provider/admin/detector/update` (`AdminApiPaths.UpdateDetectorKey`)
30
+ - `POST /v1/prosopo/provider/admin/detector/remove` (`AdminApiPaths.RemoveDetectorKey`)
31
+
32
+ Also removed: `ProviderApi.updateDetectorKey` / `.removeDetectorKey`;
33
+ `ClientTaskManager.updateDetectorKey` / `.removeDetectorKey`;
34
+ `IProviderDatabase.storeDetectorKey` / `.getDetectorKeys` / `.removeDetectorKey`;
35
+ the `detector` Mongo collection and its `DetectorRecordSchema` / `DetectorSchema`
36
+ / `DetectorKey` types; the `UpdateDetectorKeyBody` / `RemoveDetectorKeyBodySpec`
37
+ / `UpdateDetectorKeyResponse` API types; and the rate-limit config for both
38
+ paths.
39
+
40
+ The `detector` collection itself is left in place on existing deployments — no
41
+ migration drops it. It can be dropped manually once the pool rollout is
42
+ confirmed.
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [787017b]
47
+ - Updated dependencies [787017b]
48
+ - Updated dependencies [787017b]
49
+ - Updated dependencies [787017b]
50
+ - Updated dependencies [787017b]
51
+ - Updated dependencies [6f19cde]
52
+ - @prosopo/provider@5.0.0
53
+ - @prosopo/types@5.0.0
54
+ - @prosopo/api@4.0.0
55
+ - @prosopo/env@3.6.23
56
+ - @prosopo/keyring@2.9.63
57
+
3
58
  ## 3.6.77
4
59
  ### Patch Changes
5
60
 
@@ -55,14 +55,6 @@ export declare const getRateLimitConfig: () => {
55
55
  windowMs: string | undefined;
56
56
  limit: string | undefined;
57
57
  };
58
- "/v1/prosopo/provider/admin/detector/update": {
59
- windowMs: string | undefined;
60
- limit: string | undefined;
61
- };
62
- "/v1/prosopo/provider/admin/detector/remove": {
63
- windowMs: string | undefined;
64
- limit: string | undefined;
65
- };
66
58
  "/v1/prosopo/provider/admin/maintenance/toggle": {
67
59
  windowMs: string | undefined;
68
60
  limit: string | undefined;
@@ -111,5 +103,13 @@ export declare const getRateLimitConfig: () => {
111
103
  windowMs: string | undefined;
112
104
  limit: string | undefined;
113
105
  };
106
+ "/v1/prosopo/provider/client/detector/assign": {
107
+ windowMs: string | undefined;
108
+ limit: string | undefined;
109
+ };
110
+ "/v1/prosopo/provider/admin/detector/pool/replace": {
111
+ windowMs: string | undefined;
112
+ limit: string | undefined;
113
+ };
114
114
  };
115
115
  //# sourceMappingURL=RateLimiter.d.ts.map
@@ -58,14 +58,6 @@ var getRateLimitConfig = () => {
58
58
  windowMs: process.env.PROSOPO_SITE_KEYS_REMOVE_WINDOW,
59
59
  limit: process.env.PROSOPO_SITE_KEYS_REMOVE_LIMIT
60
60
  },
61
- [AdminApiPaths.UpdateDetectorKey]: {
62
- windowMs: process.env.PROSOPO_UPDATE_DETECTOR_KEY_WINDOW,
63
- limit: process.env.PROSOPO_UPDATE_DETECTOR_KEY_LIMIT
64
- },
65
- [AdminApiPaths.RemoveDetectorKey]: {
66
- windowMs: process.env.PROSOPO_REMOVE_DETECTOR_KEY_WINDOW,
67
- limit: process.env.PROSOPO_REMOVE_DETECTOR_KEY_LIMIT
68
- },
69
61
  [AdminApiPaths.ToggleMaintenanceMode]: {
70
62
  windowMs: process.env.PROSOPO_TOGGLE_MAINTENANCE_MODE_WINDOW,
71
63
  limit: process.env.PROSOPO_TOGGLE_MAINTENANCE_MODE_LIMIT
@@ -113,6 +105,14 @@ var getRateLimitConfig = () => {
113
105
  [AdminApiPaths.DnsEvent]: {
114
106
  windowMs: process.env.PROSOPO_DNS_EVENT_WINDOW,
115
107
  limit: process.env.PROSOPO_DNS_EVENT_LIMIT
108
+ },
109
+ [ClientApiPaths.AssignDetectorBundle]: {
110
+ windowMs: process.env.PROSOPO_ASSIGN_DETECTOR_BUNDLE_WINDOW,
111
+ limit: process.env.PROSOPO_ASSIGN_DETECTOR_BUNDLE_LIMIT
112
+ },
113
+ [AdminApiPaths.ReplaceDetectorPool]: {
114
+ windowMs: process.env.PROSOPO_REPLACE_DETECTOR_POOL_WINDOW,
115
+ limit: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