Skip to content

Commit

Permalink
Merge pull request #399 from evoluhq/changeset-release/main
Browse files Browse the repository at this point in the history
[ci] release
  • Loading branch information
steida authored May 8, 2024
2 parents 79a6d0c + 422114a commit 8905031
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 34 deletions.
25 changes: 0 additions & 25 deletions .changeset/nine-cameras-pump.md

This file was deleted.

9 changes: 9 additions & 0 deletions apps/native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# native

## 1.0.37

### Patch Changes

- Updated dependencies [79a6d0c]
- @evolu/common@5.1.0
- @evolu/common-react@8.0.3
- @evolu/react-native@9.0.1

## 1.0.36

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "native",
"version": "1.0.36",
"version": "1.0.37",
"private": true,
"main": "index.js",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions apps/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# server

## 1.0.52

### Patch Changes

- @evolu/server@7.0.4

## 1.0.51

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "server",
"version": "1.0.51",
"version": "1.0.52",
"private": true,
"type": "module",
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions apps/web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# web

## 1.0.52

### Patch Changes

- Updated dependencies [79a6d0c]
- @evolu/common@5.1.0
- @evolu/react@8.0.1

## 1.0.51

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web",
"version": "1.0.51",
"version": "1.0.52",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/evolu-common-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"vitest": "^1.6.0"
},
"peerDependencies": {
"@evolu/common": "^5.0.3",
"@evolu/common": "^5.1.0",
"react": "^18.2.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/evolu-common-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"vitest": "^1.6.0"
},
"peerDependencies": {
"@evolu/common": "^5.0.3",
"@evolu/common": "^5.1.0",
"@sqlite.org/sqlite-wasm": "3.45.1-build1"
},
"publishConfig": {
Expand Down
26 changes: 26 additions & 0 deletions packages/evolu-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @evolu/common

## 5.1.0

### Minor Changes

- 79a6d0c: Time Travel

Evolu does not delete data; it only marks them as deleted. This is because local-first is a distributed system. There is no central authority (if there is, it's not local-first). Imagine you delete data on some disconnected device and update it on another. Should we throw away changes? Such a deletion would require additional logic to enforce data deletion on all devices forever, even in the future, when some outdated device syncs. It's possible (and planned for Evolu), but it's not trivial because every device has to track data to be rejected without knowing the data itself (for security reasons).

Not deleting data allows Evolu to provide a time-traveling feature. All data, even "deleted" or overridden, are stored in the evolu_message table. Here is how we can read such data.

```ts
const todoTitleHistory = (id: TodoId) =>
evolu.createQuery((db) =>
db
.selectFrom("evolu_message")
.select("value")
.where("table", "==", "todo")
.where("row", "==", id)
.where("column", "==", "title")
.$narrowType<{ value: TodoTable["title"] }>()
.orderBy("timestamp", "desc"),
);
```

Note that this API is not 100% typed, but it's not an issue because Evolu Schema shall be append-only. Once an app is released, we shall not change Schema names and types. We can only add new tables and columns because there is a chance current Schema is already used.

## 5.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/evolu-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evolu/common",
"version": "5.0.3",
"version": "5.1.0",
"description": "Local-first platform designed for privacy, ease of use, and no vendor lock-in to sync and backup people's lifetime data",
"keywords": [
"evolu",
Expand Down
2 changes: 1 addition & 1 deletion packages/evolu-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"vitest": "^1.6.0"
},
"peerDependencies": {
"@evolu/common": "^5.0.3",
"@evolu/common": "^5.1.0",
"@evolu/common-react": "^8.0.3",
"@evolu/common-web": "^8.0.1",
"react-dom": "^18.2.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/evolu-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @evolu/server

## 7.0.4

### Patch Changes

- Updated dependencies [79a6d0c]
- @evolu/common@5.1.0

## 7.0.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/evolu-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evolu/server",
"version": "7.0.3",
"version": "7.0.4",
"description": "Node.js server for Evolu",
"author": "Daniel Steigerwald <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -48,7 +48,7 @@
"vitest": "^1.6.0"
},
"peerDependencies": {
"@evolu/common": "^5.0.3",
"@evolu/common": "^5.1.0",
"express": "^4.19.2"
},
"publishConfig": {
Expand Down

0 comments on commit 8905031

Please sign in to comment.