sproutboat 0.24.0 → 0.26.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 +91 -0
- package/SURFACE.md +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,97 @@ maintained going forward by the `release` skill.
|
|
|
10
10
|
|
|
11
11
|
## Unreleased
|
|
12
12
|
|
|
13
|
+
## [0.26.0] - 2026-10-22
|
|
14
|
+
|
|
15
|
+
Built on `@sproutboat/runtime` 0.27.0 and `@sproutboat/wire` 0.16.0.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- R2 behaves as in Workers from compatibility date `2026-10-26`:
|
|
20
|
+
- `get`, `put`, `head`, `delete`, `list` and `createMultipartUpload` return
|
|
21
|
+
Promises, and errors reject them.
|
|
22
|
+
- An object's `etag` is the MD5 of its bytes, with `checksums.md5`. Objects
|
|
23
|
+
written before keep their old etag.
|
|
24
|
+
- Objects have `uploaded` as a `Date`, `version`, `storageClass`, `range` and
|
|
25
|
+
`writeHttpMetadata(headers)`. A body has `body` (a `ReadableStream`),
|
|
26
|
+
`bodyUsed`, `text()`, `json()`, `arrayBuffer()` and `blob()`.
|
|
27
|
+
- `get(key, { range, onlyIf })` takes `{ offset, length }`, `{ suffix }` or a
|
|
28
|
+
`Range` header, and `etagMatches`, `etagDoesNotMatch`, `uploadedBefore`,
|
|
29
|
+
`uploadedAfter` or `If-*` headers. When the condition fails it returns the
|
|
30
|
+
object without a body.
|
|
31
|
+
- `put(key, value, { onlyIf, httpMetadata })` takes a `ReadableStream` or a
|
|
32
|
+
`Blob`, and `httpMetadata` as `Headers`. When the condition fails it returns
|
|
33
|
+
`null`.
|
|
34
|
+
- `delete([keys])` deletes several keys.
|
|
35
|
+
- `list({ prefix, limit, cursor, delimiter, include })` pages at up to 1,000
|
|
36
|
+
entries, groups keys into `delimitedPrefixes`, and returns `httpMetadata` and
|
|
37
|
+
`customMetadata` only when `include` asks for them.
|
|
38
|
+
- A value of the wrong type and a key longer than 1,024 bytes fail with R2's
|
|
39
|
+
errors.
|
|
40
|
+
|
|
41
|
+
Apps with an earlier date keep the synchronous R2. Move `compatibility_date`
|
|
42
|
+
to `2026-10-26` to opt in.
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- An R2 `list()` prefix matches exactly, at every compatibility date. It used
|
|
47
|
+
SQL `LIKE`, so it ignored case and read `_` and `%` as wildcards.
|
|
48
|
+
|
|
49
|
+
## [0.25.0] - 2026-10-22
|
|
50
|
+
|
|
51
|
+
Built on `@sproutboat/runtime` 0.26.0 and `@sproutboat/wire` 0.15.0.
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
- KV behaves as in Workers from compatibility date `2026-10-25`:
|
|
56
|
+
- `get`, `getWithMetadata`, `put`, `delete` and `list` return Promises, and
|
|
57
|
+
errors reject them.
|
|
58
|
+
- `get(key, type)` takes `"text"`, `"json"`, `"arrayBuffer"` and `"stream"`;
|
|
59
|
+
`get([keys])` returns a `Map`.
|
|
60
|
+
- `put()` takes strings, bytes and `ReadableStream`s, with `expiration`,
|
|
61
|
+
`expirationTtl` and `metadata`; `getWithMetadata()` returns the metadata.
|
|
62
|
+
- `list({ prefix, limit, cursor })` returns each key's `expiration` and
|
|
63
|
+
`metadata`, `list_complete` and `cursor`, and pages at up to 1,000 keys.
|
|
64
|
+
- Bad keys, values, expirations, metadata and limits fail with KV's own errors.
|
|
65
|
+
|
|
66
|
+
Apps with an earlier date keep the synchronous KV. Move `compatibility_date`
|
|
67
|
+
to `2026-10-25` to opt in.
|
|
68
|
+
- D1 behaves as in workerd from compatibility date `2026-10-24`:
|
|
69
|
+
- every call except `bind()` returns a Promise, and errors reject it;
|
|
70
|
+
- `meta` has D1's keys, `raw({ columnNames: true })` and `first("name")` work
|
|
71
|
+
as in D1, and `withSession()` returns a session;
|
|
72
|
+
- parameters, parameter counts and foreign keys are checked as in D1, and
|
|
73
|
+
errors read `D1_ERROR: <message>: SQLITE_<CODE>`;
|
|
74
|
+
- `BEGIN`, `COMMIT`, `ROLLBACK`, `SAVEPOINT` and `RELEASE` are refused, and
|
|
75
|
+
`exec()` runs line by line, all or nothing.
|
|
76
|
+
|
|
77
|
+
Apps with an earlier date keep the synchronous D1.
|
|
78
|
+
|
|
79
|
+
### Added
|
|
80
|
+
|
|
81
|
+
- A storage quota for an app's data directory (KV, D1, R2, Durable Object
|
|
82
|
+
storage, queues): `SB_STORAGE_MAX_BYTES`, 10 GiB by default. Past it, writes
|
|
83
|
+
fail with an error that says so, and reads and deletes keep working. The size
|
|
84
|
+
is measured at most once a second, so the write that crosses the limit is
|
|
85
|
+
accepted. With LTX capture on, an over-quota D1 database refuses every write
|
|
86
|
+
until the app is under its quota again.
|
|
87
|
+
|
|
88
|
+
### Fixed
|
|
89
|
+
|
|
90
|
+
- These apply at every date:
|
|
91
|
+
- D1 bytes are no longer lost: a `Uint8Array`, `DataView` or `ArrayBuffer`
|
|
92
|
+
parameter stored NULL in a standalone sprout, with every parameter after it.
|
|
93
|
+
- A standalone sprout's D1 `batch()` is one transaction, as in D1.
|
|
94
|
+
- `meta.changes` is 0 for a statement that only reads.
|
|
95
|
+
- A KV `list()` prefix matches exactly. It used SQL `LIKE`, so `a_` also
|
|
96
|
+
listed `ab`, and `a` also listed `AB`.
|
|
97
|
+
- The quota counts a D1 database's WAL file. While the app is over its quota,
|
|
98
|
+
the runtime now checkpoints and truncates the WAL before measuring again, so
|
|
99
|
+
`DELETE` then `VACUUM` is enough to get back under it.
|
|
100
|
+
- LTX capture starts when a worker's filesystem sandbox allows writes only
|
|
101
|
+
under its own state directory: its scratch index file now lives in the
|
|
102
|
+
database's replication spool, not the global temporary directory.
|
|
103
|
+
|
|
13
104
|
## [0.24.0] - 2026-10-22
|
|
14
105
|
|
|
15
106
|
### Changed
|
package/SURFACE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sproutboat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Wrangler-shaped CLI for Sproutboat. Deploys workers to any control plane via --api-url / SPROUTBOAT_API_URL.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@sproutboat/artifact": "^0.3.0",
|
|
65
65
|
"@sproutboat/assets": "^0.3.0",
|
|
66
66
|
"@sproutboat/config": "^0.5.0",
|
|
67
|
-
"@sproutboat/runtime": "^0.
|
|
67
|
+
"@sproutboat/runtime": "^0.27.0",
|
|
68
68
|
"@sproutboat/toolchain": "^0.13.0",
|
|
69
|
-
"@sproutboat/wire": "^0.
|
|
69
|
+
"@sproutboat/wire": "^0.16.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@oxlint/plugins": "1.85.0",
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"typescript": "7.0.2"
|
|
79
79
|
},
|
|
80
80
|
"optionalDependencies": {
|
|
81
|
-
"@sproutboat/cli-darwin-arm64": "0.
|
|
82
|
-
"@sproutboat/cli-darwin-x64": "0.
|
|
83
|
-
"@sproutboat/cli-linux-arm64": "0.
|
|
84
|
-
"@sproutboat/cli-linux-x64": "0.
|
|
81
|
+
"@sproutboat/cli-darwin-arm64": "0.26.0",
|
|
82
|
+
"@sproutboat/cli-darwin-x64": "0.26.0",
|
|
83
|
+
"@sproutboat/cli-linux-arm64": "0.26.0",
|
|
84
|
+
"@sproutboat/cli-linux-x64": "0.26.0"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=18"
|