@valtown/sdk 0.22.0 → 0.23.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,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.23.0 (2024-09-16)
4
+
5
+ Full Changelog: [v0.22.0...v0.23.0](https://github.com/val-town/sdk/compare/v0.22.0...v0.23.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** OpenAPI spec update via Stainless API ([#434](https://github.com/val-town/sdk/issues/434)) ([d1e134e](https://github.com/val-town/sdk/commit/d1e134e6517f5a404fac9e606b3ec83b9bb2c143))
10
+ * **api:** OpenAPI spec update via Stainless API ([#437](https://github.com/val-town/sdk/issues/437)) ([5238a22](https://github.com/val-town/sdk/commit/5238a2243767bd09a46682e43189dc78bd8a4e2f))
11
+
12
+
13
+ ### Chores
14
+
15
+ * **internal:** codegen related update ([#429](https://github.com/val-town/sdk/issues/429)) ([1a3a455](https://github.com/val-town/sdk/commit/1a3a45521eebf23d3daa6304f8269bbb15bff441))
16
+ * **internal:** codegen related update ([#431](https://github.com/val-town/sdk/issues/431)) ([5201d12](https://github.com/val-town/sdk/commit/5201d12f874281e5e1ee5043b9115a94f600823d))
17
+ * **internal:** codegen related update ([#438](https://github.com/val-town/sdk/issues/438)) ([45aea24](https://github.com/val-town/sdk/commit/45aea24213b022c2395f147f38dc6cc4903926bd))
18
+
19
+
20
+ ### Documentation
21
+
22
+ * update CONTRIBUTING.md ([#439](https://github.com/val-town/sdk/issues/439)) ([cf82ebc](https://github.com/val-town/sdk/commit/cf82ebc114be37cbbbf0806b32ca92e676c685ee))
23
+
3
24
  ## 0.22.0 (2024-09-11)
4
25
 
5
26
  Full Changelog: [v0.21.3...v0.22.0](https://github.com/val-town/sdk/compare/v0.21.3...v0.22.0)
package/README.md CHANGED
@@ -25,9 +25,9 @@ import ValTown from '@valtown/sdk';
25
25
  const client = new ValTown();
26
26
 
27
27
  async function main() {
28
- const emailSendResponse = await client.emails.send();
28
+ const response = await client.emails.send();
29
29
 
30
- console.log(emailSendResponse.message);
30
+ console.log(response.message);
31
31
  }
32
32
 
33
33
  main();
@@ -44,7 +44,7 @@ import ValTown from '@valtown/sdk';
44
44
  const client = new ValTown();
45
45
 
46
46
  async function main() {
47
- const emailSendResponse: ValTown.EmailSendResponse = await client.emails.send();
47
+ const response: ValTown.EmailSendResponse = await client.emails.send();
48
48
  }
49
49
 
50
50
  main();
@@ -61,7 +61,7 @@ a subclass of `APIError` will be thrown:
61
61
  <!-- prettier-ignore -->
62
62
  ```ts
63
63
  async function main() {
64
- const emailSendResponse = await client.emails.send().catch(async (err) => {
64
+ const response = await client.emails.send().catch(async (err) => {
65
65
  if (err instanceof ValTown.APIError) {
66
66
  console.log(err.status); // 400
67
67
  console.log(err.name); // BadRequestError
@@ -146,9 +146,9 @@ const response = await client.emails.send().asResponse();
146
146
  console.log(response.headers.get('X-My-Header'));
147
147
  console.log(response.statusText); // access the underlying Response object
148
148
 
149
- const { data: emailSendResponse, response: raw } = await client.emails.send().withResponse();
149
+ const { data: response, response: raw } = await client.emails.send().withResponse();
150
150
  console.log(raw.headers.get('X-My-Header'));
151
- console.log(emailSendResponse.message);
151
+ console.log(response.message);
152
152
  ```
153
153
 
154
154
  ### Making custom/undocumented requests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valtown/sdk",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "The official TypeScript library for the Val Town API",
5
5
  "author": "Val Town <support@val.town>",
6
6
  "types": "./index.d.ts",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.22.0'; // x-release-please-version
1
+ export const VERSION = '0.23.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.22.0";
1
+ export declare const VERSION = "0.23.0";
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.22.0'; // x-release-please-version
4
+ exports.VERSION = '0.23.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.22.0'; // x-release-please-version
1
+ export const VERSION = '0.23.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map