@oneaddress/partner-sdk 1.6.0 → 1.6.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 CHANGED
@@ -7,6 +7,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.6.1] - 2026-08-21
11
+
12
+ ### Fixed
13
+
14
+ - **The skipped-event warning blamed your SDK version for something only your
15
+ own handler can fix.** Three of the four events this SDK handles are
16
+ conditional on a callback you supply: `address.verify` on `onVerify`,
17
+ `account.verify` on `onAccountVerify`, and `address.test` on `onTest`. Leave
18
+ the callback out and the event falls through to the unhandled branch even
19
+ though the build knows it perfectly well.
20
+
21
+ The single message that branch logged then said the event was *"not handled
22
+ by this build"* while listing that same event under *"this build handles"*,
23
+ and closed by advising `update @oneaddress/partner-sdk` — the one action that
24
+ cannot help, because the SDK is already new enough. An integrator who reads
25
+ it goes looking for a release that does not exist instead of adding four
26
+ lines to their handler.
27
+
28
+ It now names the missing callback, states plainly that upgrading will not fix
29
+ it, and says the sender saw a clean `200` and processed nothing — which is
30
+ why this goes unnoticed at all. The upgrade advice is kept for the case it
31
+ actually fits: an event this build has never heard of.
32
+
33
+ **Upgrading to 1.6.0 does not by itself make a receiver answer
34
+ `address.test`.** The event was added in 1.5.0, but `onTest` is opt-in, so a
35
+ handler that does not pass it still skips connection-verification records and
36
+ still returns five clean `200`s. That is marlowe-reports#125 surviving the
37
+ release that was supposed to end it, and this warning is what makes it
38
+ visible rather than silent.
39
+
40
+ Note also what conformance cannot tell you here: the *"acknowledges unknown
41
+ event type gracefully"* check asserts a clean no-op ack for a genuinely
42
+ unrecognised event. It passed before 1.5.0 and passes now, on a receiver with
43
+ `onTest` wired and on one without. A green conformance run is not evidence
44
+ that `address.test` is handled.
45
+
10
46
  ## [1.6.0] - 2026-08-20
11
47
 
12
48
  ### Added
@@ -831,10 +831,21 @@ function createOneAddressHandler(options) {
831
831
  });
832
832
  }
833
833
  const evt = typeof body.event === "string" ? body.event : "(none)";
834
+ const callbackFor = {
835
+ "address.verify": onVerify,
836
+ "account.verify": onAccountVerify,
837
+ "address.test": onTest
838
+ };
839
+ const callbackNameFor = {
840
+ "address.verify": "onVerify",
841
+ "account.verify": "onAccountVerify",
842
+ "address.test": "onTest"
843
+ };
844
+ const unwired = evt in callbackFor && !callbackFor[evt] ? callbackNameFor[evt] : null;
834
845
  if (!warnedUnhandledEvents.has(evt)) {
835
846
  warnedUnhandledEvents.add(evt);
836
847
  console.warn(
837
- `[OneAddress SDK] Event "${evt}" is not handled by this build and was SKIPPED. It was acknowledged with 200 so OneAddress does not retry, but your onUpdate callback did NOT run. This build handles: ${HANDLED_EVENTS.join(", ")}. If you expected this event to be processed, update @oneaddress/partner-sdk.`
848
+ unwired ? `[OneAddress SDK] Event "${evt}" was SKIPPED because you did not pass a \`${unwired}\` callback to createOneAddressHandler. This build supports "${evt}" - upgrading the SDK will NOT fix it. It was acknowledged with 200 so OneAddress does not retry, which means the sender sees a clean delivery and nothing was processed. Add \`${unwired}\` to your handler options.` : `[OneAddress SDK] Event "${evt}" is not handled by this build and was SKIPPED. It was acknowledged with 200 so OneAddress does not retry, but your onUpdate callback did NOT run. This build handles: ${HANDLED_EVENTS.join(", ")}. If you expected this event to be processed, update @oneaddress/partner-sdk.`
838
849
  // NOSONAR
839
850
  );
840
851
  }
package/dist/edge.js CHANGED
@@ -4945,10 +4945,21 @@ function createOneAddressHandler(options) {
4945
4945
  });
4946
4946
  }
4947
4947
  const evt = typeof body.event === "string" ? body.event : "(none)";
4948
+ const callbackFor = {
4949
+ "address.verify": onVerify,
4950
+ "account.verify": onAccountVerify,
4951
+ "address.test": onTest
4952
+ };
4953
+ const callbackNameFor = {
4954
+ "address.verify": "onVerify",
4955
+ "account.verify": "onAccountVerify",
4956
+ "address.test": "onTest"
4957
+ };
4958
+ const unwired = evt in callbackFor && !callbackFor[evt] ? callbackNameFor[evt] : null;
4948
4959
  if (!warnedUnhandledEvents.has(evt)) {
4949
4960
  warnedUnhandledEvents.add(evt);
4950
4961
  console.warn(
4951
- `[OneAddress SDK] Event "${evt}" is not handled by this build and was SKIPPED. It was acknowledged with 200 so OneAddress does not retry, but your onUpdate callback did NOT run. This build handles: ${HANDLED_EVENTS.join(", ")}. If you expected this event to be processed, update @oneaddress/partner-sdk.`
4962
+ unwired ? `[OneAddress SDK] Event "${evt}" was SKIPPED because you did not pass a \`${unwired}\` callback to createOneAddressHandler. This build supports "${evt}" - upgrading the SDK will NOT fix it. It was acknowledged with 200 so OneAddress does not retry, which means the sender sees a clean delivery and nothing was processed. Add \`${unwired}\` to your handler options.` : `[OneAddress SDK] Event "${evt}" is not handled by this build and was SKIPPED. It was acknowledged with 200 so OneAddress does not retry, but your onUpdate callback did NOT run. This build handles: ${HANDLED_EVENTS.join(", ")}. If you expected this event to be processed, update @oneaddress/partner-sdk.`
4952
4963
  // NOSONAR
4953
4964
  );
4954
4965
  }
package/dist/edge.mjs CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  verifyLOA,
21
21
  verifySignature,
22
22
  verifyWithGrace
23
- } from "./chunk-CE6M64CX.mjs";
23
+ } from "./chunk-3VG6MTRH.mjs";
24
24
  import {
25
25
  DEFAULT_REPLAY_WINDOW_SECS,
26
26
  computeBlindIndex,
package/dist/index.js CHANGED
@@ -5082,10 +5082,21 @@ function createOneAddressHandler(options) {
5082
5082
  });
5083
5083
  }
5084
5084
  const evt = typeof body.event === "string" ? body.event : "(none)";
5085
+ const callbackFor = {
5086
+ "address.verify": onVerify,
5087
+ "account.verify": onAccountVerify,
5088
+ "address.test": onTest
5089
+ };
5090
+ const callbackNameFor = {
5091
+ "address.verify": "onVerify",
5092
+ "account.verify": "onAccountVerify",
5093
+ "address.test": "onTest"
5094
+ };
5095
+ const unwired = evt in callbackFor && !callbackFor[evt] ? callbackNameFor[evt] : null;
5085
5096
  if (!warnedUnhandledEvents.has(evt)) {
5086
5097
  warnedUnhandledEvents.add(evt);
5087
5098
  console.warn(
5088
- `[OneAddress SDK] Event "${evt}" is not handled by this build and was SKIPPED. It was acknowledged with 200 so OneAddress does not retry, but your onUpdate callback did NOT run. This build handles: ${HANDLED_EVENTS.join(", ")}. If you expected this event to be processed, update @oneaddress/partner-sdk.`
5099
+ unwired ? `[OneAddress SDK] Event "${evt}" was SKIPPED because you did not pass a \`${unwired}\` callback to createOneAddressHandler. This build supports "${evt}" - upgrading the SDK will NOT fix it. It was acknowledged with 200 so OneAddress does not retry, which means the sender sees a clean delivery and nothing was processed. Add \`${unwired}\` to your handler options.` : `[OneAddress SDK] Event "${evt}" is not handled by this build and was SKIPPED. It was acknowledged with 200 so OneAddress does not retry, but your onUpdate callback did NOT run. This build handles: ${HANDLED_EVENTS.join(", ")}. If you expected this event to be processed, update @oneaddress/partner-sdk.`
5089
5100
  // NOSONAR
5090
5101
  );
5091
5102
  }
package/dist/index.mjs CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  verifyLOA,
26
26
  verifySignature,
27
27
  verifyWithGrace
28
- } from "./chunk-CE6M64CX.mjs";
28
+ } from "./chunk-3VG6MTRH.mjs";
29
29
  import {
30
30
  DEFAULT_REPLAY_WINDOW_SECS,
31
31
  computeBlindIndex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneaddress/partner-sdk",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Official OneAddress partner integration SDK — webhook verification, address decryption (legacy + D5 session-envelope), LOA validation",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",