@zapier/zapier-sdk 0.123.0 → 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 +36 -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-6Q6UUDBM.cjs → chunk-AXVD22XH.cjs} +37 -28
- package/dist/{chunk-BAHETDA5.mjs → chunk-DQALS345.mjs} +3 -6
- package/dist/{chunk-WVAGDZLC.mjs → chunk-EWFUUFGE.mjs} +35 -30
- package/dist/{chunk-FRFRZLT3.cjs → chunk-NRDB2MRP.cjs} +87 -90
- package/dist/experimental.cjs +321 -320
- package/dist/experimental.d.mts +6 -6
- package/dist/experimental.d.ts +6 -6
- package/dist/experimental.mjs +6 -9
- package/dist/{index-DNLCvLBu.d.mts → index-CJ0cHgVT.d.mts} +37 -31
- package/dist/{index-DNLCvLBu.d.ts → index-CJ0cHgVT.d.ts} +37 -31
- 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,41 @@
|
|
|
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
|
+
|
|
3
39
|
## 0.123.0
|
|
4
40
|
|
|
5
41
|
### Minor Changes
|