@inferencesh/sdk 0.36.1 → 0.36.2

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
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.36.2] - 2026-10-28
11
+
12
+ ### Fixed
13
+ - Data URI and base64 uploads send `size`. `POST /files` refused them with 400 "size is required". `ResolvedUpload.size` is now always set.
14
+
10
15
  ## [0.36.1] - 2026-10-28
11
16
 
12
17
  ### Added
@@ -22,7 +22,7 @@ export interface UploadFileOptions {
22
22
  export interface ResolvedUpload {
23
23
  contentType: string;
24
24
  filename?: string;
25
- size?: number;
25
+ size: number;
26
26
  /** The bytes to PUT, normalised from a Blob, a data URI or bare base64. */
27
27
  body: Blob;
28
28
  }
package/dist/api/files.js CHANGED
@@ -79,7 +79,7 @@ export function resolveUpload(data, options = {}) {
79
79
  return {
80
80
  contentType,
81
81
  filename,
82
- size: data instanceof Blob ? data.size : undefined,
82
+ size: body.size,
83
83
  body,
84
84
  };
85
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.36.1",
3
+ "version": "0.36.2",
4
4
  "description": "Official JavaScript/TypeScript SDK for inference.sh - Run AI models with a simple API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",