@prosopo/client-example-server 2.7.152 → 2.7.154

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/client-example-server@2.7.152 build:cjs
2
+ > @prosopo/client-example-server@2.7.154 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -58,4 +58,4 @@ dist/cjs/_virtual/_rolldown/runtime.cjs 1.00 kB │ gzip: 0.50 kB
58
58
  dist/cjs/app.cjs 6.62 kB │ gzip: 2.36 kB
59
59
  dist/cjs/controllers/auth.cjs 7.77 kB │ gzip: 2.42 kB
60
60
 
61
- ✓ built in 49ms
61
+ ✓ built in 77ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/client-example-server@2.7.152 build:tsc
2
+ > @prosopo/client-example-server@2.7.154 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 1:56:47 PM - Projects in this build:
5
+ 1:15:57 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../../packages/locale/tsconfig.json
8
8
  * ../../packages/util/tsconfig.json
@@ -22,41 +22,41 @@
22
22
  * ../../packages/server/tsconfig.json
23
23
  * tsconfig.json
24
24
 
25
- 1:56:48 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'
25
+ 1:15:57 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'
26
26
 
27
- 1:56:48 PM - Project '../../packages/locale/tsconfig.json' is up to date because newest input '../../packages/locale/src/translationKey.ts' is older than output '../../packages/locale/tsconfig.tsbuildinfo'
27
+ 1:15:57 PM - Project '../../packages/locale/tsconfig.json' is up to date because newest input '../../packages/locale/src/translationKey.ts' is older than output '../../packages/locale/tsconfig.tsbuildinfo'
28
28
 
29
- 1:56:48 PM - Project '../../packages/util/tsconfig.json' is up to date because newest input '../../packages/util/src/url.ts' is older than output '../../packages/util/tsconfig.tsbuildinfo'
29
+ 1:15:57 PM - Project '../../packages/util/tsconfig.json' is up to date because newest input '../../packages/util/src/url.ts' is older than output '../../packages/util/tsconfig.tsbuildinfo'
30
30
 
31
- 1:56:48 PM - Project '../../packages/logger/tsconfig.json' is up to date because newest input '../../packages/logger/src/index.ts' is older than output '../../packages/logger/tsconfig.tsbuildinfo'
31
+ 1:15:57 PM - Project '../../packages/logger/tsconfig.json' is up to date because newest input '../../packages/logger/src/index.ts' is older than output '../../packages/logger/tsconfig.tsbuildinfo'
32
32
 
33
- 1:56:48 PM - Project '../../packages/util-crypto/tsconfig.json' is up to date because newest input '../../packages/util-crypto/src/types.ts' is older than output '../../packages/util-crypto/tsconfig.tsbuildinfo'
33
+ 1:15:57 PM - Project '../../packages/util-crypto/tsconfig.json' is up to date because newest input '../../packages/util-crypto/src/types.ts' is older than output '../../packages/util-crypto/tsconfig.tsbuildinfo'
34
34
 
35
- 1:56:48 PM - Project '../../packages/types/tsconfig.json' is up to date because newest input '../../packages/types/src/index.ts' is older than output '../../packages/types/tsconfig.tsbuildinfo'
35
+ 1:15:57 PM - Project '../../packages/types/tsconfig.json' is up to date because newest input '../../packages/types/src/types.test-d.ts' is older than output '../../packages/types/tsconfig.tsbuildinfo'
36
36
 
37
- 1:56:48 PM - Project '../../packages/common/tsconfig.json' is up to date because newest input '../../packages/common/src/index.ts' is older than output '../../packages/common/tsconfig.tsbuildinfo'
37
+ 1:15:57 PM - Project '../../packages/common/tsconfig.json' is up to date because newest input '../../packages/common/src/utils/batches.ts' is older than output '../../packages/common/tsconfig.tsbuildinfo'
38
38
 
39
- 1:56:48 PM - Project '../../packages/api-route/tsconfig.json' is up to date because newest input '../../packages/api-route/src/index.ts' is older than output '../../packages/api-route/tsconfig.tsbuildinfo'
39
+ 1:15:57 PM - Project '../../packages/api-route/tsconfig.json' is up to date because newest input '../../packages/api-route/src/apiRoutes.ts' is older than output '../../packages/api-route/tsconfig.tsbuildinfo'
40
40
 
41
- 1:56:48 PM - Project '../../packages/redis-client/tsconfig.json' is up to date because newest input '../../packages/redis-client/src/index.ts' is older than output '../../packages/redis-client/tsconfig.tsbuildinfo'
41
+ 1:15:57 PM - Project '../../packages/redis-client/tsconfig.json' is up to date because newest input '../../packages/redis-client/src/index.ts' is older than output '../../packages/redis-client/tsconfig.tsbuildinfo'
42
42
 
43
- 1:56:48 PM - Project '../../packages/api/tsconfig.json' is up to date because newest input '../../packages/api/src/index.ts' is older than output '../../packages/api/tsconfig.tsbuildinfo'
43
+ 1:15:57 PM - Project '../../packages/api/tsconfig.json' is up to date because newest input '../../packages/api/src/tests/apiHarness.ts' is older than output '../../packages/api/tsconfig.tsbuildinfo'
44
44
 
45
- 1:56:48 PM - Project '../../packages/user-access-policy/tsconfig.json' is up to date because newest input '../../packages/user-access-policy/src/rule.ts' is older than output '../../packages/user-access-policy/tsconfig.tsbuildinfo'
45
+ 1:15:57 PM - Project '../../packages/user-access-policy/tsconfig.json' is up to date because newest input '../../packages/user-access-policy/src/transformRule.ts' is older than output '../../packages/user-access-policy/tsconfig.tsbuildinfo'
46
46
 
47
- 1:56:48 PM - Project '../../packages/types-database/tsconfig.json' is up to date because newest input '../../packages/types-database/src/index.ts' is older than output '../../packages/types-database/tsconfig.tsbuildinfo'
47
+ 1:15:57 PM - Project '../../packages/types-database/tsconfig.json' is up to date because newest input '../../packages/types-database/src/types.test-d.ts' is older than output '../../packages/types-database/tsconfig.tsbuildinfo'
48
48
 
49
- 1:56:48 PM - Project '../../packages/database/tsconfig.json' is up to date because newest input '../../packages/database/src/tests/mongoGlobalSetup.ts' is older than output '../../packages/database/tsconfig.tsbuildinfo'
49
+ 1:15:57 PM - Project '../../packages/database/tsconfig.json' is up to date because newest input '../../packages/database/src/tests/unit/captchaLabel.unit.test.ts' is older than output '../../packages/database/tsconfig.tsbuildinfo'
50
50
 
51
- 1:56:48 PM - Project '../../packages/dotenv/tsconfig.json' is up to date because newest input '../../packages/dotenv/src/index.ts' is older than output '../../packages/dotenv/tsconfig.tsbuildinfo'
51
+ 1:15:57 PM - Project '../../packages/dotenv/tsconfig.json' is up to date because newest input '../../packages/dotenv/src/env.ts' is older than output '../../packages/dotenv/tsconfig.tsbuildinfo'
52
52
 
53
- 1:56:48 PM - Project '../../packages/keyring/tsconfig.json' is up to date because newest input '../../packages/keyring/src/index.ts' is older than output '../../packages/keyring/tsconfig.tsbuildinfo'
53
+ 1:15:58 PM - Project '../../packages/keyring/tsconfig.json' is up to date because newest input '../../packages/keyring/src/keyring/keyring.test.ts' is older than output '../../packages/keyring/tsconfig.tsbuildinfo'
54
54
 
55
- 1:56:48 PM - Project '../../packages/load-balancer/tsconfig.json' is up to date because newest input '../../packages/load-balancer/src/balancer.ts' is older than output '../../packages/load-balancer/tsconfig.tsbuildinfo'
55
+ 1:15:58 PM - Project '../../packages/load-balancer/tsconfig.json' is up to date because newest input '../../packages/load-balancer/src/balancer.ts' is older than output '../../packages/load-balancer/tsconfig.tsbuildinfo'
56
56
 
57
- 1:56:48 PM - Project '../../packages/server/tsconfig.json' is up to date because newest input '../../packages/server/src/config.ts' is older than output '../../packages/server/tsconfig.tsbuildinfo'
57
+ 1:15:58 PM - Project '../../packages/server/tsconfig.json' is up to date because newest input '../../packages/server/src/index.ts' is older than output '../../packages/server/tsconfig.tsbuildinfo'
58
58
 
59
- 1:56:48 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
59
+ 1:15:58 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
60
60
 
61
- 1:56:48 PM - Building project '/home/runner/work/captcha/captcha/demos/client-example-server/tsconfig.json'...
61
+ 1:15:58 PM - Building project '/home/runner/work/captcha/captcha/demos/client-example-server/tsconfig.json'...
62
62
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/client-example-server@2.7.152 build
2
+ > @prosopo/client-example-server@2.7.154 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/client-example-server@2.7.152 build:cross-env
6
+ > @prosopo/client-example-server@2.7.154 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -62,4 +62,4 @@ dist/routes/routes.js 0.79 kB │ gzip: 0.37 kB
62
62
  dist/app.js 5.54 kB │ gzip: 2.16 kB
63
63
  dist/controllers/auth.js 7.06 kB │ gzip: 2.29 kB
64
64
 
65
- ✓ built in 112ms
65
+ ✓ built in 88ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,70 @@
1
1
  # @prosopo/client-example-server
2
2
 
3
+ ## 2.7.154
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [f8a41fe]
7
+ - Updated dependencies [6f57ee9]
8
+ - Updated dependencies [6f57ee9]
9
+ - Updated dependencies [d288371]
10
+ - @prosopo/database@4.0.28
11
+ - @prosopo/types@5.7.0
12
+ - @prosopo/util@3.3.9
13
+ - @prosopo/common@3.1.54
14
+ - @prosopo/dotenv@3.0.55
15
+ - @prosopo/keyring@2.9.85
16
+ - @prosopo/logger@2.0.9
17
+ - @prosopo/server@2.11.7
18
+
19
+ ## 2.7.153
20
+ ### Patch Changes
21
+
22
+ - 89dd38a: chore(deps): batch the outstanding dependabot bumps into one upgrade
23
+
24
+ Rolls up dependabot PRs #3112, #3127-#3134 and #3159. Majors: `mongoose`
25
+ 8 -> 9, `bson` 6 -> 7, `@noble/curves` 1 -> 2, `@polkadot/util-crypto`
26
+ 13 -> 14, `@typegoose/auto-increment` 4 -> 5, `@babel/preset-env` 7 -> 8,
27
+ `@types/jsdom` 21 -> 30, `@types/bcrypt` 5 -> 6, `@actions/github` 6 -> 9,
28
+ `testcontainers` 11 -> 12. The rest are minor/patch.
29
+
30
+ Code changes the majors forced:
31
+ - `@noble/curves` v2 requires `.js` specifiers and renamed the point API,
32
+ so `secp256k1.ProjectivePoint.fromHex(...).toRawBytes()` becomes
33
+ `secp256k1.Point.fromBytes(...).toBytes()`, `RistrettoPoint` becomes
34
+ `ristretto255.Point`, and `abstract/utils` moves to `utils.js`.
35
+ - mongoose 9 drops `RootFilterQuery` (now `QueryFilter`), no longer sets
36
+ `background: true` on schema indexes by default, and no longer declares
37
+ `id` on `Document`, which un-hid a mismatch between
38
+ `updateDappUserCommitment`'s `Hash` parameter and the `string` `id` it
39
+ filters on.
40
+ - mongoose 9 rejects an aggregation-pipeline update (an array) unless the
41
+ call passes `updatePipeline: true`, so the six pipeline writes in
42
+ `ProviderDatabase` now opt in explicitly.
43
+ - mongoose 9's `castUpdate` throws on a `$setOnInsert` key inside `$set`.
44
+ `storeUserImageCaptchaSolution` passed its record straight in as the
45
+ update, and mongoose's `moveImmutableProperties` mutates that object on
46
+ an upsert -- adding the very `$setOnInsert` key the record then carried
47
+ into `CentralDbStreamer.streamImageRecord`. Image records stopped
48
+ reaching the central DB (the streamer is fire-and-forget, so it only
49
+ logged) and signup verification returned 500. The update is now an
50
+ explicit `$set` over a shallow copy.
51
+ - `@prosopo/database` moves from mongodb 6.20 to 7.5 to match the driver
52
+ mongoose 9 pulls, so bson 7 is the only copy resolvable in the package.
53
+ - `vitest`/`@vitest/coverage-v8` go to 4.1.11 alongside dependabot's
54
+ `@vitest/spy` bump; leaving them at 4.1.10 installed a second copy of
55
+ `@vitest/spy` and broke type inference in the provider test utils.
56
+ - Updated dependencies [89dd38a]
57
+ - Updated dependencies [80f73c1]
58
+ - Updated dependencies [8a670d3]
59
+ - @prosopo/common@3.1.53
60
+ - @prosopo/database@4.0.27
61
+ - @prosopo/dotenv@3.0.54
62
+ - @prosopo/keyring@2.9.84
63
+ - @prosopo/logger@2.0.8
64
+ - @prosopo/server@2.11.6
65
+ - @prosopo/types@5.6.0
66
+ - @prosopo/util@3.3.8
67
+
3
68
  ## 2.7.152
4
69
  ### Patch Changes
5
70
 
@@ -6,14 +6,36 @@ export interface UserInterface {
6
6
  password: string;
7
7
  salt: string;
8
8
  }
9
- declare const UserSchema: mongoose.Schema<UserInterface, mongoose.Model<UserInterface, any, any, any, mongoose.Document<unknown, any, UserInterface, any, {}> & UserInterface & {
9
+ declare const UserSchema: mongoose.Schema<UserInterface, mongoose.Model<UserInterface, any, any, any, any, any, UserInterface>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, UserInterface, mongoose.Document<unknown, {}, UserInterface, {}, mongoose.DefaultSchemaOptions> & UserInterface & {
10
10
  _id: mongoose.Types.ObjectId;
11
11
  } & {
12
12
  __v: number;
13
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, UserInterface, mongoose.Document<unknown, {}, mongoose.FlatRecord<UserInterface>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<UserInterface> & {
14
- _id: mongoose.Types.ObjectId;
15
- } & {
16
- __v: number;
17
- }>;
13
+ }, {
14
+ id?: mongoose.SchemaDefinitionProperty<number, UserInterface, mongoose.Document<unknown, {}, UserInterface, {}, mongoose.DefaultSchemaOptions> & UserInterface & {
15
+ _id: mongoose.Types.ObjectId;
16
+ } & {
17
+ __v: number;
18
+ }> | undefined;
19
+ email?: mongoose.SchemaDefinitionProperty<string, UserInterface, mongoose.Document<unknown, {}, UserInterface, {}, mongoose.DefaultSchemaOptions> & UserInterface & {
20
+ _id: mongoose.Types.ObjectId;
21
+ } & {
22
+ __v: number;
23
+ }> | undefined;
24
+ name?: mongoose.SchemaDefinitionProperty<string, UserInterface, mongoose.Document<unknown, {}, UserInterface, {}, mongoose.DefaultSchemaOptions> & UserInterface & {
25
+ _id: mongoose.Types.ObjectId;
26
+ } & {
27
+ __v: number;
28
+ }> | undefined;
29
+ password?: mongoose.SchemaDefinitionProperty<string, UserInterface, mongoose.Document<unknown, {}, UserInterface, {}, mongoose.DefaultSchemaOptions> & UserInterface & {
30
+ _id: mongoose.Types.ObjectId;
31
+ } & {
32
+ __v: number;
33
+ }> | undefined;
34
+ salt?: mongoose.SchemaDefinitionProperty<string, UserInterface, mongoose.Document<unknown, {}, UserInterface, {}, mongoose.DefaultSchemaOptions> & UserInterface & {
35
+ _id: mongoose.Types.ObjectId;
36
+ } & {
37
+ __v: number;
38
+ }> | undefined;
39
+ }, UserInterface>;
18
40
  export default UserSchema;
19
41
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAaA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,UAAU;;;;;;;;EAmBd,CAAC;AAEH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAaA,OAAO,QAAoB,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBd,CAAC;AAEH,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/client-example-server",
3
- "version": "2.7.152",
3
+ "version": "2.7.154",
4
4
  "description": "Backend for client-example",
5
5
  "main": "dist/app.js",
6
6
  "types": "dist/app.d.ts",
@@ -47,28 +47,28 @@
47
47
  "dependencies": {
48
48
  "@noble/hashes": "1.8.0",
49
49
  "@polkadot/util": "13.5.7",
50
- "@polkadot/util-crypto": "13.5.7",
51
- "@prosopo/common": "3.1.52",
52
- "@prosopo/database": "4.0.26",
53
- "@prosopo/logger": "2.0.7",
54
- "@prosopo/dotenv": "3.0.53",
55
- "@prosopo/keyring": "2.9.83",
56
- "@prosopo/server": "2.11.5",
57
- "@prosopo/types": "5.5.3",
58
- "@prosopo/util": "3.3.7",
59
- "@typegoose/auto-increment": "4.13.0",
50
+ "@polkadot/util-crypto": "14.0.3",
51
+ "@prosopo/common": "3.1.54",
52
+ "@prosopo/database": "4.0.28",
53
+ "@prosopo/logger": "2.0.9",
54
+ "@prosopo/dotenv": "3.0.55",
55
+ "@prosopo/keyring": "2.9.85",
56
+ "@prosopo/server": "2.11.7",
57
+ "@prosopo/types": "5.7.0",
58
+ "@prosopo/util": "3.3.9",
59
+ "@typegoose/auto-increment": "5.0.1",
60
60
  "cors": "2.8.6",
61
61
  "express": "4.22.2",
62
62
  "jsonwebtoken": "9.0.3",
63
63
  "mongodb-memory-server": "10.3.0",
64
- "mongoose": "8.24.1",
64
+ "mongoose": "9.9.4",
65
65
  "zod": "3.23.8"
66
66
  },
67
67
  "devDependencies": {
68
- "@prosopo/config": "3.3.12",
68
+ "@prosopo/config": "3.3.14",
69
69
  "@types/jsonwebtoken": "9.0.10",
70
70
  "@types/node": "22.10.2",
71
- "@vitest/coverage-v8": "4.1.10",
71
+ "@vitest/coverage-v8": "4.1.11",
72
72
  "concurrently": "9.0.1",
73
73
  "del-cli": "6.0.0",
74
74
  "npm-run-all": "4.1.5",
@@ -76,6 +76,6 @@
76
76
  "tsx": "4.20.3",
77
77
  "typescript": "5.6.2",
78
78
  "vite": "8.1.5",
79
- "vitest": "4.1.10"
79
+ "vitest": "4.1.11"
80
80
  }
81
81
  }