Skip to content

Commit 2134344

Browse files
chore(zero-swift): version packages (#20)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e3d0da3 commit 2134344

5 files changed

Lines changed: 9 additions & 12 deletions

File tree

‎.changeset/closed-client-rejects.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎.changeset/json-parser-depth.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎packages/zero-swift-cli/CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# zero-swift
22

3+
## 0.4.2
4+
5+
### Patch Changes
6+
7+
- e3d0da3: On a closed `Zero`, a new `run` waiting for `.complete` or `.cached`, and a new preload's `cached` and `complete`, now throw the `QueryError` saying Zero was closed right away instead of never settling. Such a preload registers nothing, and a `run` with `.unknown` still returns the local rows. JS only rejects the calls pending at close, so this differs from JS.
8+
- 151ede9: JSON is parsed, written, compared, and hashed (also as a custom query's arguments) without recursion, so deeply nested JSON no longer overflows the stack. Before, a debug build overflowed at about 300 levels on a thread with a 512 KB stack, such as a test or cooperative thread on macOS. The parser's depth limit is lowered from 5,000 to 1,500 levels, so freeing a value, which still recurses, fits in a 512 KB stack in a release build. JS has no such limit: a row whose JSON column is nested deeper than about 1,495 levels is rejected, as described in JSParity.md. A debug build can still overflow a 512 KB stack when it frees objects nested more than about 1,000 deep.
9+
310
## 0.4.1
411

512
### Patch Changes

‎packages/zero-swift-cli/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zero-swift",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "Generates the Swift row types and schema of a Zero app for the Zero Swift client.",
55
"license": "Apache-2.0",
66
"repository": {

‎swift/VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.1
1+
0.4.2

0 commit comments

Comments
 (0)