@oneaddress/partner-sdk 2.6.0 → 2.7.0
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 +32 -0
- package/dist/{chunk-QAOGKPD3.mjs → chunk-CLV6TLSP.mjs} +1183 -112
- package/dist/{chunk-XPQERNNN.mjs → chunk-OKAJO4T6.mjs} +34 -5
- package/dist/edge.js +1248 -119
- package/dist/edge.mjs +2 -2
- package/dist/index.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +1267 -119
- package/dist/index.mjs +4 -2
- package/dist/{src-BPES2DKY.mjs → src-FPYBM6X6.mjs} +13 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.7.0] - 2026-10-23
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **`signPullRequest`: headers for a signed request to the pull API, signature
|
|
15
|
+
version 2.** Version 2 covers the method, path and query as well as the
|
|
16
|
+
timestamp, so a captured header pair cannot be replayed against another
|
|
17
|
+
endpoint or query: `v2.${timestamp}.${METHOD}.${path}${query}.${body}`, sent
|
|
18
|
+
with `X-OneAddress-Signature-Version: 2`. Version 1 (timestamp only, no
|
|
19
|
+
version header) is still accepted during the transition and will be
|
|
20
|
+
withdrawn.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **The dispatch id is read from the signed body.** The handler used the
|
|
25
|
+
unsigned `X-OneAddress-Dispatch` header for its idempotency claim and the
|
|
26
|
+
confirm, so a captured, validly signed request replayed with a different
|
|
27
|
+
header could dodge the claim. It now prefers `body.dispatch_id`, and answers
|
|
28
|
+
`400 dispatch_id_mismatch` when the header disagrees. A body without the
|
|
29
|
+
field still falls back to the header.
|
|
30
|
+
- **`user_id` is now your own id for the consumer.** It is stable for you and
|
|
31
|
+
unrelated to the value any other partner receives; it is no longer the
|
|
32
|
+
consumer's OneAddress account or guest id. No code change is needed, but a
|
|
33
|
+
value stored before this change will not match the new one for the same
|
|
34
|
+
person.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- **`verifySignature` refuses an empty secret.** An HMAC under an empty key is
|
|
39
|
+
something anyone can compute, so it verified a forged request.
|
|
40
|
+
|
|
41
|
+
|
|
10
42
|
## [2.6.0] - 2026-10-18
|
|
11
43
|
|
|
12
44
|
### Added
|