@valtown/sdk 0.38.2 → 0.38.3

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.38.3 (2025-04-10)
4
+
5
+ Full Changelog: [v0.38.2...v0.38.3](https://github.com/val-town/sdk/compare/v0.38.2...v0.38.3)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **api:** improve type resolution when importing as a package ([#557](https://github.com/val-town/sdk/issues/557)) ([69bd63d](https://github.com/val-town/sdk/commit/69bd63dea354433f61eb4d4b0ec98a72255e7238))
10
+ * **mcp:** remove unused tools.ts ([#559](https://github.com/val-town/sdk/issues/559)) ([09521c3](https://github.com/val-town/sdk/commit/09521c31762e847b48fc39846deb3936b3a94da2))
11
+
12
+
13
+ ### Chores
14
+
15
+ * **internal:** reduce CI branch coverage ([f97da1a](https://github.com/val-town/sdk/commit/f97da1a1ebcb9f5a68bf5923642abe3b0ea2e13c))
16
+ * **internal:** upload builds and expand CI branch coverage ([26ec651](https://github.com/val-town/sdk/commit/26ec6517a2cfe1fd35a0bed35380947f73c1c4ea))
17
+ * **tests:** improve enum examples ([#561](https://github.com/val-town/sdk/issues/561)) ([4972039](https://github.com/val-town/sdk/commit/497203989c6bc519e90aefb694c0faa30b245d47))
18
+
19
+
20
+ ### Documentation
21
+
22
+ * swap examples used in readme ([#560](https://github.com/val-town/sdk/issues/560)) ([cffff95](https://github.com/val-town/sdk/commit/cffff95e104c38c4d751f703663b7e80a36e522f))
23
+
3
24
  ## 0.38.2 (2025-04-04)
4
25
 
5
26
  Full Changelog: [v0.38.1...v0.38.2](https://github.com/val-town/sdk/compare/v0.38.1...v0.38.2)
package/README.md CHANGED
@@ -67,36 +67,6 @@ main();
67
67
 
68
68
  Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
69
69
 
70
- ## File uploads
71
-
72
- Request parameters that correspond to file uploads can be passed in many different forms:
73
-
74
- - `File` (or an object with the same structure)
75
- - a `fetch` `Response` (or an object with the same structure)
76
- - an `fs.ReadStream`
77
- - the return value of our `toFile` helper
78
-
79
- ```ts
80
- import fs from 'fs';
81
- import fetch from 'node-fetch';
82
- import ValTown, { toFile } from '@valtown/sdk';
83
-
84
- const client = new ValTown();
85
-
86
- // If you have access to Node `fs` we recommend using `fs.createReadStream()`:
87
- await client.blobs.store('x', fs.createReadStream('/path/to/file'));
88
-
89
- // Or if you have the web `File` API you can pass a `File` instance:
90
- await client.blobs.store('x', new File(['my bytes'], 'file'));
91
-
92
- // You can also pass a `fetch` `Response`:
93
- await client.blobs.store('x', await fetch('https://somesite/file'));
94
-
95
- // Finally, if none of the above are convenient, you can use our `toFile` helper:
96
- await client.blobs.store('x', await toFile(Buffer.from('my bytes'), 'file'));
97
- await client.blobs.store('x', await toFile(new Uint8Array([0, 1, 2]), 'file'));
98
- ```
99
-
100
70
  ## Handling errors
101
71
 
102
72
  When the library is unable to connect to the API,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valtown/sdk",
3
- "version": "0.38.2",
3
+ "version": "0.38.3",
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.38.2'; // x-release-please-version
1
+ export const VERSION = '0.38.3'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.38.2";
1
+ export declare const VERSION = "0.38.3";
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.38.2'; // x-release-please-version
4
+ exports.VERSION = '0.38.3'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.38.2'; // x-release-please-version
1
+ export const VERSION = '0.38.3'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map