@zapier/kitcore 0.7.0 → 0.9.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,30 @@
1
1
  # @zapier/kitcore
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fffa08a: Added `CallContext` with the `isCallContext`, `rootCallContext`, and `childCallContext` helpers: an explicit per-call context (call id, nesting depth, and a per-invocation annotation bag) that the method boundary threads through nested, `imports`-bound delegations.
8
+
9
+ The `depth` passed to `onMethodStart` / `onMethodEnd` hooks is now derived from this context, so nested method calls report the correct `depth` even in environments without Node's `async_hooks` (such as browsers), where it was previously always `0`.
10
+
11
+ - afa9c95: Added `additionalKeys` to object resolvers for resolving open-keyed records (a `z.record`). The resolution controller collects entries in an add/done loop, prompting for each entry's key and then its value.
12
+
13
+ ### Patch Changes
14
+
15
+ - ccedc0c: Interactive resolution now reads a method's resolvers only from its `defineMethod` registration. Resolvers attached through the deprecated legacy bridge are no longer surfaced to the resolution controller. Define methods with `defineMethod` to get interactive parameter resolution.
16
+ - d819031: The resolution controller now coerces a free-text answer for an object, array, or record parameter as JSON, so an interactively typed value resolves to the intended shape instead of failing validation. Scalar answers are unchanged.
17
+
18
+ ## 0.8.0
19
+
20
+ ### Minor Changes
21
+
22
+ - cec12cd: Added `concatLists`, which lists one page of several paginated lists joined end to end, returning a plain promise of `{ data, nextCursor }`. Pass a page's `nextCursor` to a fresh call to resume the concatenation.
23
+
24
+ Deprecated `concatPaginated` in favor of `concatLists`. It now delegates to `concatLists` and logs a deprecation warning; awaiting it yields the same page, but the page-iterable half of its old return shape is removed.
25
+
26
+ - 769751e: Paginated list results now expose `.pages()`, a plain async iterable over pages. Unlike iterating the result directly (which still works but is deprecated), `.pages()` is not also a promise, so returning it from an `async` function no longer silently collapses it to the first page. `.items()` is unchanged and remains the way to iterate individual items across pages. The `toIterable()` helper is deprecated in favor of `.pages()` and now logs a deprecation warning.
27
+
3
28
  ## 0.7.0
4
29
 
5
30
  ### Minor Changes