@zapier/zapier-sdk 0.86.0 → 0.87.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 +8 -0
- package/dist/apps.cjs +2 -0
- package/dist/apps.mjs +2 -0
- package/dist/chunk-275CXIIT.cjs +15632 -0
- package/dist/chunk-OBGZSXTJ.cjs +10 -0
- package/dist/chunk-XUT7EPI7.mjs +15360 -0
- package/dist/chunk-Y6FXYEAI.mjs +8 -0
- package/dist/define.cjs +2 -0
- package/dist/define.mjs +2 -0
- package/dist/experimental.cjs +2176 -16647
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.mjs +5 -15298
- package/dist/{index-Pjitof_V.d.mts → index-CBvczsOD.d.mts} +58 -40
- package/dist/{index-Pjitof_V.d.ts → index-CBvczsOD.d.ts} +58 -40
- package/dist/index.cjs +1013 -15482
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -15295
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.87.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4e560c0: Added brand-based type guards for recognizing SDK errors and signals without `instanceof`: `isZapierError`, per-subclass guards (`isZapierValidationError`, `isZapierApprovalError`, `isZapierNotFoundError`, `isZapierBundleError`, `isZapierTimeoutError`, and the rest), `isZapierSignal`, and the trigger-inbox signal guards `isZapierReleaseTriggerMessageSignal` and `isZapierAbortDrainSignal`.
|
|
8
|
+
|
|
9
|
+
Prefer these over `instanceof` when handling SDK errors. `instanceof` compares class identity, which silently returns `false` when more than one copy of the SDK is loaded — for example a bundle that includes both the ESM and CommonJS builds, or a project that installs two versions. The guards match on a stable brand and the error `code`, so they keep working across those boundaries.
|
|
10
|
+
|
|
3
11
|
## 0.86.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/apps.cjs
CHANGED