@zapier/kitcore 0.9.0 → 0.10.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,11 @@
1
1
  # @zapier/kitcore
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4e560c0: Added `isCoreCancelledSignal`, a brand-based guard for the cancellation signal raised by `Controller.resolve`. It recognizes the signal across bundle boundaries where `instanceof CoreCancelledSignal` would not.
8
+
3
9
  ## 0.9.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -74,6 +74,7 @@ __export(index_exports, {
74
74
  getOutputSchema: () => getOutputSchema,
75
75
  getRegistryPlugin: () => getRegistryPlugin,
76
76
  getSchemaDescription: () => getSchemaDescription,
77
+ isCoreCancelledSignal: () => isCoreCancelledSignal,
77
78
  isCoreError: () => isCoreError,
78
79
  isCoreSignal: () => isCoreSignal,
79
80
  isNestedMethodCall: () => isNestedMethodCall,
@@ -2819,6 +2820,9 @@ var CoreCancelledSignal = class extends CoreSignal {
2819
2820
  this.code = "CANCELLED";
2820
2821
  }
2821
2822
  };
2823
+ function isCoreCancelledSignal(value) {
2824
+ return isCoreSignal(value) && value.code === "CANCELLED";
2825
+ }
2822
2826
 
2823
2827
  // src/model/resolution/plan.ts
2824
2828
  var import_zod3 = require("zod");
@@ -4117,6 +4121,7 @@ function createCorePlugin(options) {
4117
4121
  getOutputSchema,
4118
4122
  getRegistryPlugin,
4119
4123
  getSchemaDescription,
4124
+ isCoreCancelledSignal,
4120
4125
  isCoreError,
4121
4126
  isCoreSignal,
4122
4127
  isNestedMethodCall,