@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 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