@maestro-js/password 1.0.0-alpha.23 → 1.0.0-alpha.25

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -0
  2. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -73,6 +73,11 @@ declare namespace Password {
73
73
  createdDate: Iso.Instant;
74
74
  }
75
75
  interface ResetOptions<Id> {
76
+ /**
77
+ * Persists the reset token, atomically replacing any existing token for the same authenticatable so
78
+ * exactly one is ever valid. Implement as an upsert (e.g. `INSERT ... ON DUPLICATE KEY UPDATE`) keyed
79
+ * on the authenticatable, not a separate delete-then-insert, so concurrent calls can't race.
80
+ */
76
81
  create(record: Password.ResetTokenRecord<Id>): Promise<void>;
77
82
  getBySelector(selector: string): Promise<Password.ResetTokenRecord<Id> | null>;
78
83
  getByAuthenticatableId(authenticatableId: Id): Promise<Password.ResetTokenRecord<Id> | null>;
package/package.json CHANGED
@@ -7,24 +7,24 @@
7
7
  "default": "./dist/index.js"
8
8
  }
9
9
  },
10
- "version": "1.0.0-alpha.23",
10
+ "version": "1.0.0-alpha.25",
11
11
  "publishConfig": {
12
- "access": "restricted"
12
+ "access": "public"
13
13
  },
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
18
  "iso-fns2": "npm:iso-fns@2.0.0-alpha.26",
19
- "@maestro-js/custom-errors": "1.0.0-alpha.23",
20
- "@maestro-js/service-registry": "1.0.0-alpha.23"
19
+ "@maestro-js/custom-errors": "1.0.0-alpha.25",
20
+ "@maestro-js/service-registry": "1.0.0-alpha.25"
21
21
  },
22
22
  "peerDependencies": {
23
- "@maestro-js/hash": "1.0.0-alpha.23"
23
+ "@maestro-js/hash": "1.0.0-alpha.25"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^22.19.11",
27
- "@maestro-js/hash": "1.0.0-alpha.23"
27
+ "@maestro-js/hash": "1.0.0-alpha.25"
28
28
  },
29
29
  "license": "UNLICENSED",
30
30
  "engines": {