@replit/connectors 0.16.0 → 0.16.1

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.1 (2026-01-14)
4
+
5
+ Full Changelog: [v0.16.0...v0.16.1](https://github.com/replit/connectors-ts-sdk/compare/v0.16.0...v0.16.1)
6
+
7
+ ### Chores
8
+
9
+ * break long lines in snippets into multiline ([cf7b9df](https://github.com/replit/connectors-ts-sdk/commit/cf7b9dfcd1b8ac340ea5c7f5334b69180683bf03))
10
+ * fix typo in descriptions ([b46a014](https://github.com/replit/connectors-ts-sdk/commit/b46a014a66859474c9a018c13a7deb081378f1e8))
11
+ * **internal:** codegen related update ([e30a7bb](https://github.com/replit/connectors-ts-sdk/commit/e30a7bb68283125ad0b8c6b8a389227399fcc563))
12
+
13
+
14
+ ### Documentation
15
+
16
+ * add more examples ([8c6984d](https://github.com/replit/connectors-ts-sdk/commit/8c6984df518fb3cc26b4ab4f7da95790ee08e03a))
17
+
3
18
  ## 0.16.0 (2025-12-16)
4
19
 
5
20
  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.16.1",
4
4
  "description": "The official TypeScript library for the Replit API",
5
5
  "author": "Replit <support@repl.it>",
6
6
  "types": "./index.d.ts",
@@ -30782,7 +30782,7 @@ export interface ConnectorRpcParams {
30782
30782
  */
30783
30783
  connector_config_id: string;
30784
30784
  /**
30785
- * Body param:
30785
+ * Body param
30786
30786
  */
30787
30787
  input: {
30788
30788
  [key: string]: unknown;
@@ -30782,7 +30782,7 @@ export interface ConnectorRpcParams {
30782
30782
  */
30783
30783
  connector_config_id: string;
30784
30784
  /**
30785
- * Body param:
30785
+ * Body param
30786
30786
  */
30787
30787
  input: {
30788
30788
  [key: string]: unknown;
@@ -41760,7 +41760,7 @@ export interface ConnectorRpcParams {
41760
41760
  connector_config_id: string;
41761
41761
 
41762
41762
  /**
41763
- * Body param:
41763
+ * Body param
41764
41764
  */
41765
41765
  input: { [key: string]: unknown };
41766
41766
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.16.0'; // x-release-please-version
1
+ export const VERSION = '0.16.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.16.0";
1
+ export declare const VERSION = "0.16.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.16.0";
1
+ export declare const VERSION = "0.16.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.16.0'; // x-release-please-version
4
+ exports.VERSION = '0.16.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.16.0'; // x-release-please-version
1
+ export const VERSION = '0.16.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map