@zapier/zapier-sdk 0.122.2 → 0.124.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 +47 -0
- package/dist/beta.cjs +291 -287
- package/dist/beta.d.mts +6 -6
- package/dist/beta.d.ts +6 -6
- package/dist/beta.mjs +2 -2
- package/dist/{chunk-YVMXEARO.cjs → chunk-AXVD22XH.cjs} +245 -196
- package/dist/{chunk-7NTLOQZI.mjs → chunk-DQALS345.mjs} +3 -6
- package/dist/{chunk-3WRZWB3X.mjs → chunk-EWFUUFGE.mjs} +243 -198
- package/dist/{chunk-W7TKBIW6.cjs → chunk-NRDB2MRP.cjs} +87 -90
- package/dist/experimental.cjs +321 -320
- package/dist/experimental.d.mts +47 -47
- package/dist/experimental.d.ts +47 -47
- package/dist/experimental.mjs +6 -9
- package/dist/{index-BnMxdUcw.d.mts → index-CJ0cHgVT.d.mts} +38 -54
- package/dist/{index-BnMxdUcw.d.ts → index-CJ0cHgVT.d.ts} +38 -54
- package/dist/index.cjs +285 -281
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.124.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- be5d20b: Added `createSdk`'s `imports` option. To build your own SDK on
|
|
8
|
+
`zapierSdkPlugin`, pass your options as a typed provider:
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
createSdk(zapierSdkPlugin, {
|
|
12
|
+
imports: [defineProperty(sdkOptionsPluginRef, { value: options })],
|
|
13
|
+
});
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Use `imports`, not `configuration`, for SDK options and core options.
|
|
17
|
+
`configuration` keeps working, but its values are untyped and unchecked, so
|
|
18
|
+
avoid it unless the ids are only known at runtime.
|
|
19
|
+
|
|
20
|
+
`zapierSdkPlugin` now provides `zapierCoreOptions` by default, so an SDK built
|
|
21
|
+
on it reports Zapier errors and deprecation notices without passing
|
|
22
|
+
`CORE_OPTIONS_ID`. To use different core options, pass your own
|
|
23
|
+
`defineProperty(coreOptionsPluginRef, { value })` in `imports`, which takes
|
|
24
|
+
precedence.
|
|
25
|
+
|
|
26
|
+
Added the `coreOptionsPluginRef` export.
|
|
27
|
+
|
|
28
|
+
Deprecated the id constants `SDK_OPTIONS_ID`, `CORE_OPTIONS_ID`, `API_ID`,
|
|
29
|
+
`RESOLVE_CREDENTIALS_ID`, `CONNECTIONS_ID`, `EVENT_EMISSION_ID`, and
|
|
30
|
+
`MANIFEST_ID`. Pass the matching stand-in instead (`sdkOptionsPluginRef`,
|
|
31
|
+
`coreOptionsPluginRef`, `apiPluginRef`, and so on), or read its `.id`. The
|
|
32
|
+
constants keep working.
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [be5d20b]
|
|
37
|
+
- @zapier/kitcore@0.23.0
|
|
38
|
+
|
|
39
|
+
## 0.123.0
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- 69f19ce: Removed the `sendHttpRequest` option from the deprecated `createZapierApi`. If it is still passed, it is ignored and requests go through the SDK's built-in transport. To replace the network layer, build an SDK with `createSdk` and add a hook (`defineHook` from `@zapier/kitcore`) that wraps `dispatchHttpRequestPlugin`. Routing and authentication run before your hook, deprecation notices are read from the response it returns, and the SDK's retries wrap it, so it can be called more than once per request (set `maxNetworkRetries: 0` to turn retries off).
|
|
44
|
+
|
|
45
|
+
Request routing and deprecation notices also changed:
|
|
46
|
+
- Request paths where a query string or fragment immediately follows a route key (e.g. `/relay?x=1`) now resolve against the configured routes instead of falling through unrouted.
|
|
47
|
+
- The `api:deprecation_notice` event now fires on every response that carries a notice rather than once per logical call: a request retried on a 429 or 5xx, and a request that goes through the approval flow, can emit more than one event. The console warning still prints once per notice id, so a different notice on one of those extra responses prints its own warning.
|
|
48
|
+
- The `path` field on `api:rate_limit_retry` now reports the request path as passed (e.g. `/tables/api/v1/tables`) rather than the fully resolved URL.
|
|
49
|
+
|
|
3
50
|
## 0.122.2
|
|
4
51
|
|
|
5
52
|
### Patch Changes
|