pipework 0.83.0 → 0.84.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.
- package/CHANGELOG.md +13 -0
- package/dist/REFERENCE.md +1477 -0
- package/dist/auth/auth/audit.d.ts +7 -0
- package/dist/auth/auth/audit.d.ts.map +1 -0
- package/dist/auth/auth/audit.js +28 -0
- package/dist/auth/auth/audit.js.map +1 -0
- package/dist/auth/auth/email-links.d.ts +103 -0
- package/dist/auth/auth/email-links.d.ts.map +1 -0
- package/dist/auth/auth/email-links.js +166 -0
- package/dist/auth/auth/email-links.js.map +1 -0
- package/dist/auth/auth/index.d.ts +2 -0
- package/dist/auth/auth/index.d.ts.map +1 -1
- package/dist/auth/auth/index.js +1 -0
- package/dist/auth/auth/index.js.map +1 -1
- package/dist/auth/auth/namespace.d.ts +3 -0
- package/dist/auth/auth/namespace.d.ts.map +1 -1
- package/dist/auth/auth/namespace.js +3 -0
- package/dist/auth/auth/namespace.js.map +1 -1
- package/dist/auth/auth/schema.d.ts +45 -0
- package/dist/auth/auth/schema.d.ts.map +1 -1
- package/dist/auth/auth/schema.js +27 -0
- package/dist/auth/auth/schema.js.map +1 -1
- package/dist/auth/auth/sign-in.d.ts.map +1 -1
- package/dist/auth/auth/sign-in.js +2 -21
- package/dist/auth/auth/sign-in.js.map +1 -1
- package/dist/core/config/namespace.d.ts +1 -0
- package/dist/core/config/namespace.d.ts.map +1 -1
- package/dist/core/config/schema.d.ts +1 -0
- package/dist/core/config/schema.d.ts.map +1 -1
- package/dist/core/config/schema.js +2 -0
- package/dist/core/config/schema.js.map +1 -1
- package/dist/data/migrate/internal-definitions.d.ts.map +1 -1
- package/dist/data/migrate/internal-definitions.js +5 -0
- package/dist/data/migrate/internal-definitions.js.map +1 -1
- package/dist/infra/email/mail.d.ts +13 -0
- package/dist/infra/email/mail.d.ts.map +1 -1
- package/dist/infra/email/mail.js +32 -2
- package/dist/infra/email/mail.js.map +1 -1
- package/dist/infra/email/sigv4.d.ts +24 -0
- package/dist/infra/email/sigv4.d.ts.map +1 -0
- package/dist/infra/email/sigv4.js +55 -0
- package/dist/infra/email/sigv4.js.map +1 -0
- package/dist/test/savepoints.d.ts.map +1 -1
- package/dist/test/savepoints.js +28 -7
- package/dist/test/savepoints.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.84.1
|
|
4
|
+
|
|
5
|
+
- **Fixed: under the test harness, a transaction started inside a transaction block but not awaited by it no longer loses its savepoint.** The block now waits for it before releasing, and a call made after its block ended nests in the nearest open block or queues. A route calling `accessLinks.asLink` (whose child trace closes after the block) answered 500 in tests from 0.75.2 on (#526).
|
|
6
|
+
|
|
7
|
+
## 0.84.0
|
|
8
|
+
|
|
9
|
+
- **New: `auth.emailLinks(config)`**, emailed single-use links that prove control of an address: password reset and address verification (#511).
|
|
10
|
+
- `request` answers the same, and takes at least `minResponseMs`, whether or not the address has an account or is over its limit; limits per address and per client are counted in Postgres outside the request transaction.
|
|
11
|
+
- The token is `HMAC(secret, link id, nonce)`: the link table keeps only its hash, and the stored mail message keeps only a reference, so the database alone cannot produce a working link. A new link for the same purpose ends the older ones; `endResets` ends a user's reset links on a password change.
|
|
12
|
+
- `check` reports a link's state without using it; `use` is one atomic step; `completeReset` stores the new hash through the app's `store`, ends the other reset links and signs the user out everywhere else.
|
|
13
|
+
- Requests and uses are flow steps and audited (`PasswordReset:requested`, `:completed`, `EmailAddress:verification-requested`, `:verified`), never with the token, the password or an unknown address. Tables behind the `auth.emailLinks` blueprint flag.
|
|
14
|
+
- **New: mail late data.** `mail.registerLateData(name, fn)` and `send({ …, lateData })` supply template data computed at delivery and never stored.
|
|
15
|
+
|
|
3
16
|
## 0.83.0
|
|
4
17
|
|
|
5
18
|
- **Fixed: a reaped job (worker lost) is retried.** `reap()` now applies the same rule as a failure: retried with backoff while attempts remain, then dead-lettered with a notification. `error_payload.reason` is `reaped`. `reap()` returns the reaped jobs (`ReapedJob[]`) instead of a count (#503).
|