Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/zero-rust-faster-launch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/zero-rust-prepare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/zero-swift-faster-launch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/zero-swift-prepare.md

This file was deleted.

2 changes: 1 addition & 1 deletion apps/zbugs-gpui/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/zbugs-model/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/zbugs-rune/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions packages/zero-rust-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# zero-rust

## 0.5.0

### Minor Changes

- 607f99d: `Zero::prepare(schema, context, mutators, options)` opens the client's SQLite store and reads its replica on a thread of its own, and `Zero::from_prepared(prepared, scheduler, socket_factory)` makes the client from it on the app's thread. Call `prepare` as early as the app knows its options, and `from_prepared` where the first frame needs the client: it waits for whatever is left, and the client and its views have their rows at once, as with `Zero::new`. At launch, Zero then takes 5.6 ms of the app's thread on a Mac for a replica of 8,000 rows instead of 17.8 ms, and 2.8 ms instead of 7.1 ms for 2,000. Loading the replica into the query sources and hydrating the first views stay on the app's thread. `Zero::new` and `materialize` don't change.

### Patch Changes

- edec2e7: `Zero::new` takes less time on a replica of thousands of rows: on a Mac, 19.0 ms instead of 23.0 ms for 8,000 rows, and 7.0 ms instead of 7.6 ms for 2,000. The replica goes into the query sources without a diff against an empty one, the first report of its queries and mutation results reads only those keys, and a diff of two whole copies of the replica walks them once instead of sorting their keys.

## 0.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/zero-rust-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zero-rust",
"version": "0.4.0",
"version": "0.5.0",
"description": "Generates the Rust row types, schema, and query builder of a Zero app for the Zero Rust client.",
"license": "Apache-2.0",
"repository": {
Expand Down
10 changes: 10 additions & 0 deletions packages/zero-swift-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# zero-swift

## 0.10.0

### Minor Changes

- 73d5f6b: `Zero.prepare(schema:context:mutators:options:queries:)` opens the client's store, reads its replica, and hydrates the queries the app's first frame shows, off the main actor, and `Zero(prepared)` takes the result over on the main actor. Call `prepare` as early as the app knows its options, such as in `App.init`, and make the client where the first frame needs it: it waits for whatever is left, and the views of the prepared queries have their rows at once, as with `Zero.init`. At launch, Zero then takes about 2 ms of the main thread on a Mac however large the replica is, instead of 10 ms for a replica of 2,000 rows and 25 ms for 8,000. `Zero.init` and `materialize` don't change.

### Patch Changes

- cd2855b: Opening a client takes less of the main thread before the app's first frame: a third less for a replica of about 2,000 rows (on a Mac, 10.9 ms instead of 15.6 ms; on the iOS Simulator, 20.4 ms instead of 26.2 ms), and 40% less for 8,000 rows. The replica goes into the query sources without a diff against an empty one, and the first report of its queries and mutation results reads only those keys. The URLSession is made by the first connect, the network monitor starts on its own queue, and the storage folder is excluded from backups in the background.

## 0.9.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/zero-swift-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zero-swift",
"version": "0.9.0",
"version": "0.10.0",
"description": "Generates the Swift row types and schema of a Zero app for the Zero Swift client.",
"license": "Apache-2.0",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ resolver = "3"
members = ["zero-client", "conformance", "codegen-tests", "benchmarks"]

[workspace.package]
version = "0.4.0"
version = "0.5.0"
edition = "2024"
rust-version = "1.88"
license = "Apache-2.0"
repository = "https://github.com/wevm/zero"

[workspace.dependencies]
zero-client = { path = "zero-client", version = "0.4.0" }
zero-client = { path = "zero-client", version = "0.5.0" }

[workspace.lints.rust]
unsafe_code = "forbid"
Expand Down
2 changes: 1 addition & 1 deletion swift/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.0
0.10.0
Loading