@zapier/zapier-sdk 0.84.3 → 0.85.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/AGENTS.md CHANGED
@@ -105,11 +105,13 @@ const { data: moreApps } = await zapier.listApps({ cursor: nextCursor });
105
105
 
106
106
  ```typescript
107
107
  // Iterate over pages (each page has { data, nextCursor })
108
- for await (const page of zapier.listApps()) {
108
+ for await (const page of zapier.listApps().pages()) {
109
109
  console.log(`Got ${page.data.length} apps`);
110
110
  }
111
111
  ```
112
112
 
113
+ Iterating the result directly (`for await (const page of zapier.listApps())`) still works but is deprecated: the result is also a promise, so returning it from an `async` function silently collapses it to the first page. `.pages()` returns a plain iterable that survives that boundary.
114
+
113
115
  ### Iterate Individual Items
114
116
 
115
117
  ```typescript
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.85.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 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.
8
+
9
+ ## 0.84.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 840aca3: Added a `slug` field (e.g. `"google-sheets"`) to connection items returned by `getConnection`, `listConnections`, `findFirstConnection`, and `findUniqueConnection` (and their deprecated `listAuthentications` / `getAuthentication` / `findFirstAuthentication` / `findUniqueAuthentication` aliases).
14
+
3
15
  ## 0.84.3
4
16
 
5
17
  ### Patch Changes