@replit/connectors 0.16.0 → 0.17.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,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.0 (2026-01-14)
4
+
5
+ Full Changelog: [v0.16.1...v0.17.0](https://github.com/replit/connectors-ts-sdk/compare/v0.16.1...v0.17.0)
6
+
7
+ ### Features
8
+
9
+ * **sdk:** release ([4e0d1dd](https://github.com/replit/connectors-ts-sdk/commit/4e0d1dd1287799d7ba94317ad667992a4169a78d))
10
+
11
+ ## 0.16.1 (2026-01-14)
12
+
13
+ Full Changelog: [v0.16.0...v0.16.1](https://github.com/replit/connectors-ts-sdk/compare/v0.16.0...v0.16.1)
14
+
15
+ ### Chores
16
+
17
+ * break long lines in snippets into multiline ([cf7b9df](https://github.com/replit/connectors-ts-sdk/commit/cf7b9dfcd1b8ac340ea5c7f5334b69180683bf03))
18
+ * fix typo in descriptions ([b46a014](https://github.com/replit/connectors-ts-sdk/commit/b46a014a66859474c9a018c13a7deb081378f1e8))
19
+ * **internal:** codegen related update ([e30a7bb](https://github.com/replit/connectors-ts-sdk/commit/e30a7bb68283125ad0b8c6b8a389227399fcc563))
20
+
21
+
22
+ ### Documentation
23
+
24
+ * add more examples ([8c6984d](https://github.com/replit/connectors-ts-sdk/commit/8c6984df518fb3cc26b4ab4f7da95790ee08e03a))
25
+
3
26
  ## 0.16.0 (2025-12-16)
4
27
 
5
28
  Full Changelog: [v0.15.0...v0.16.0](https://github.com/replit/connectors-ts-sdk/compare/v0.15.0...v0.16.0)
package/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2025 Replit
189
+ Copyright 2026 Replit
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -121,6 +121,37 @@ On timeout, an `APIConnectionTimeoutError` is thrown.
121
121
 
122
122
  Note that requests which time out will be [retried twice by default](#retries).
123
123
 
124
+ ## Auto-pagination
125
+
126
+ List methods in the Replit API are paginated.
127
+ You can use the `for await … of` syntax to iterate through items across all pages:
128
+
129
+ ```ts
130
+ async function fetchAllListConnectorsResponses(params) {
131
+ const allListConnectorsResponses = [];
132
+ // Automatically fetches more pages as needed.
133
+ for await (const listConnectorsResponse of client.listConnectors()) {
134
+ allListConnectorsResponses.push(listConnectorsResponse);
135
+ }
136
+ return allListConnectorsResponses;
137
+ }
138
+ ```
139
+
140
+ Alternatively, you can request a single page at a time:
141
+
142
+ ```ts
143
+ let page = await client.listConnectors();
144
+ for (const listConnectorsResponse of page.items) {
145
+ console.log(listConnectorsResponse);
146
+ }
147
+
148
+ // Convenience methods are provided for manually paginating:
149
+ while (page.hasNextPage()) {
150
+ page = await page.getNextPage();
151
+ // ...
152
+ }
153
+ ```
154
+
124
155
  ## Advanced Usage
125
156
 
126
157
  ### Accessing raw Response data (e.g., headers)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/connectors",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "The official TypeScript library for the Replit API",
5
5
  "author": "Replit <support@repl.it>",
6
6
  "types": "./index.d.ts",