@zapier/zapier-sdk-cli 0.54.3 → 0.55.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 +27 -0
- package/README.md +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/experimental.cjs +1 -1
- package/dist/experimental.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/package.json +1 -1
- package/dist/src/plugins/signup/test-harness.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.55.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8f20472: `watchTriggerInbox` now retries transient drain failures (5xx, 429,
|
|
8
|
+
network blips) indefinitely with bounded backoff instead of rejecting
|
|
9
|
+
on the first error; it still rejects immediately on fail-fast handler
|
|
10
|
+
errors, `initialization_failure`, and permanent HTTP errors. When those
|
|
11
|
+
retries persist long enough to saturate the backoff, it warns once on
|
|
12
|
+
stderr (re-armed on recovery) so a stalled watch isn't silent.
|
|
13
|
+
|
|
14
|
+
New `ApiClient.fetchJsonStream` (with the `JsonSseMessage` type): like
|
|
15
|
+
`fetchStream` but JSON-parses each frame, surfacing a malformed frame
|
|
16
|
+
as `{ parsed: false, data: null, raw }` instead of throwing, so one
|
|
17
|
+
bad frame can't kill a long-lived stream. A non-ok response still
|
|
18
|
+
throws the shared `ZapierError` subclasses before the first frame.
|
|
19
|
+
|
|
20
|
+
Fixed: a fail-fast handler that throws a falsy value (`throw
|
|
21
|
+
undefined`) is no longer silently swallowed, and a handler-thrown
|
|
22
|
+
AbortError now rejects the watch instead of resolving it cleanly.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [8f20472]
|
|
27
|
+
- @zapier/zapier-sdk@0.70.0
|
|
28
|
+
- @zapier/zapier-sdk-mcp@0.13.28
|
|
29
|
+
|
|
3
30
|
## 0.54.3
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1473,7 +1473,7 @@ npx zapier-sdk update-trigger-inbox <inbox> [--notification-url]
|
|
|
1473
1473
|
|
|
1474
1474
|
#### `watch-trigger-inbox` 🧪 _experimental_
|
|
1475
1475
|
|
|
1476
|
-
Continuously consume a trigger inbox: drain currently-available messages via onMessage, then subscribe to SSE notifications for new arrivals until aborted. A periodic safety drain runs every maxDrainIntervalSeconds (default: 300) to guarantee forward progress if SSE events are missed. Resolves cleanly on signal abort or ZapierAbortDrainSignal from a handler
|
|
1476
|
+
Continuously consume a trigger inbox: drain currently-available messages via onMessage, then subscribe to SSE notifications for new arrivals until aborted. A periodic safety drain runs every maxDrainIntervalSeconds (default: 300) to guarantee forward progress if SSE events are missed. Resolves cleanly on signal abort or ZapierAbortDrainSignal from a handler. Transient drain failures (5xx, 429, network blips) retry indefinitely with bounded backoff until they succeed or the watch is aborted; it rejects on a fail-fast handler error, an initialization_failure, or a permanent HTTP error. Real-time wake-up health is reported on stderr: a warning when wake-ups pause and the watch falls back to the safety drain, plus (with debug) transient reconnect notices. Persistent drain failures likewise warn once on stderr while bounded-backoff retries continue. stdout (including --json NDJSON) is unaffected.
|
|
1477
1477
|
|
|
1478
1478
|
**Options:**
|
|
1479
1479
|
|
package/dist/cli.cjs
CHANGED
|
@@ -1573,7 +1573,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1573
1573
|
|
|
1574
1574
|
// package.json
|
|
1575
1575
|
var package_default = {
|
|
1576
|
-
version: "0.
|
|
1576
|
+
version: "0.55.0"};
|
|
1577
1577
|
|
|
1578
1578
|
// src/telemetry/builders.ts
|
|
1579
1579
|
function createCliBaseEvent(context = {}) {
|
|
@@ -7172,7 +7172,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
7172
7172
|
// package.json with { type: 'json' }
|
|
7173
7173
|
var package_default2 = {
|
|
7174
7174
|
name: "@zapier/zapier-sdk-cli",
|
|
7175
|
-
version: "0.
|
|
7175
|
+
version: "0.55.0"};
|
|
7176
7176
|
|
|
7177
7177
|
// src/sdk.ts
|
|
7178
7178
|
zapierSdk.injectCliLogin(login_exports);
|
package/dist/cli.mjs
CHANGED
|
@@ -1531,7 +1531,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1531
1531
|
|
|
1532
1532
|
// package.json
|
|
1533
1533
|
var package_default = {
|
|
1534
|
-
version: "0.
|
|
1534
|
+
version: "0.55.0"};
|
|
1535
1535
|
|
|
1536
1536
|
// src/telemetry/builders.ts
|
|
1537
1537
|
function createCliBaseEvent(context = {}) {
|
|
@@ -7130,7 +7130,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
7130
7130
|
// package.json with { type: 'json' }
|
|
7131
7131
|
var package_default2 = {
|
|
7132
7132
|
name: "@zapier/zapier-sdk-cli",
|
|
7133
|
-
version: "0.
|
|
7133
|
+
version: "0.55.0"};
|
|
7134
7134
|
|
|
7135
7135
|
// src/sdk.ts
|
|
7136
7136
|
injectCliLogin(login_exports);
|
package/dist/experimental.cjs
CHANGED
|
@@ -4525,7 +4525,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
4525
4525
|
// package.json with { type: 'json' }
|
|
4526
4526
|
var package_default = {
|
|
4527
4527
|
name: "@zapier/zapier-sdk-cli",
|
|
4528
|
-
version: "0.
|
|
4528
|
+
version: "0.55.0"};
|
|
4529
4529
|
|
|
4530
4530
|
// src/experimental.ts
|
|
4531
4531
|
experimental.injectCliLogin(login_exports);
|
package/dist/experimental.mjs
CHANGED
|
@@ -4489,7 +4489,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
4489
4489
|
// package.json with { type: 'json' }
|
|
4490
4490
|
var package_default = {
|
|
4491
4491
|
name: "@zapier/zapier-sdk-cli",
|
|
4492
|
-
version: "0.
|
|
4492
|
+
version: "0.55.0"};
|
|
4493
4493
|
|
|
4494
4494
|
// src/experimental.ts
|
|
4495
4495
|
injectCliLogin(login_exports);
|
package/dist/index.cjs
CHANGED
|
@@ -4524,7 +4524,7 @@ zapierSdk.definePlugin(
|
|
|
4524
4524
|
// package.json with { type: 'json' }
|
|
4525
4525
|
var package_default = {
|
|
4526
4526
|
name: "@zapier/zapier-sdk-cli",
|
|
4527
|
-
version: "0.
|
|
4527
|
+
version: "0.55.0"};
|
|
4528
4528
|
|
|
4529
4529
|
// src/sdk.ts
|
|
4530
4530
|
zapierSdk.injectCliLogin(login_exports);
|
|
@@ -4552,7 +4552,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4552
4552
|
|
|
4553
4553
|
// package.json
|
|
4554
4554
|
var package_default2 = {
|
|
4555
|
-
version: "0.
|
|
4555
|
+
version: "0.55.0"};
|
|
4556
4556
|
|
|
4557
4557
|
// src/telemetry/builders.ts
|
|
4558
4558
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -4488,7 +4488,7 @@ definePlugin(
|
|
|
4488
4488
|
// package.json with { type: 'json' }
|
|
4489
4489
|
var package_default = {
|
|
4490
4490
|
name: "@zapier/zapier-sdk-cli",
|
|
4491
|
-
version: "0.
|
|
4491
|
+
version: "0.55.0"};
|
|
4492
4492
|
|
|
4493
4493
|
// src/sdk.ts
|
|
4494
4494
|
injectCliLogin(login_exports);
|
|
@@ -4516,7 +4516,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4516
4516
|
|
|
4517
4517
|
// package.json
|
|
4518
4518
|
var package_default2 = {
|
|
4519
|
-
version: "0.
|
|
4519
|
+
version: "0.55.0"};
|
|
4520
4520
|
|
|
4521
4521
|
// src/telemetry/builders.ts
|
|
4522
4522
|
function createCliBaseEvent(context = {}) {
|
package/dist/package.json
CHANGED
|
@@ -51,6 +51,7 @@ function createSignupTestApi() {
|
|
|
51
51
|
poll: emptyApiResult,
|
|
52
52
|
fetch: () => Promise.resolve(new Response()),
|
|
53
53
|
fetchStream: async function* () { },
|
|
54
|
+
fetchJsonStream: async function* () { },
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
export function buildSignupTestContext(vi, mockEmit = () => undefined) {
|