Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/evoluhq/evolu
Browse files Browse the repository at this point in the history
  • Loading branch information
steida committed May 6, 2024
2 parents dccdfe1 + 5407e7a commit 84fb22f
Show file tree
Hide file tree
Showing 20 changed files with 94 additions and 32 deletions.
10 changes: 0 additions & 10 deletions .changeset/tricky-beans-study.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.36

### Patch Changes

- Updated dependencies [e8f293f]
- @evolu/common-react@8.0.3
- @evolu/react-native@9.0.1
- @evolu/common@5.0.3

## 1.0.35

### 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.35",
"version": "1.0.36",
"private": true,
"main": "index.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions apps/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# server

## 1.0.51

### Patch Changes

- Updated dependencies [e8f293f]
- @evolu/server@7.0.3

## 1.0.50

### 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.50",
"version": "1.0.51",
"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.51

### Patch Changes

- Updated dependencies [e8f293f]
- @evolu/common@5.0.3
- @evolu/react@8.0.1

## 1.0.50

### 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.50",
"version": "1.0.51",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
12 changes: 6 additions & 6 deletions examples/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type TodoCategoryId = S.Schema.Type<typeof TodoCategoryId>;
const NonEmptyString50 = String.pipe(
S.minLength(1),
S.maxLength(50),
S.brand("NonEmptyString50")
S.brand("NonEmptyString50"),
);
type NonEmptyString50 = S.Schema.Type<typeof NonEmptyString50>;

Expand Down Expand Up @@ -174,13 +174,13 @@ const todosWithCategories = evolu.createQuery(
.selectFrom("todoCategory")
.select(["todoCategory.id", "todoCategory.name"])
.where("isDeleted", "is not", cast(true))
.orderBy("createdAt")
.orderBy("createdAt"),
).as("categories"),
]),
{
// logQueryExecutionTime: true,
// logExplainQueryPlan: true,
}
},
);

type TodosWithCategoriesRow = ExtractRow<typeof todosWithCategories>;
Expand Down Expand Up @@ -289,7 +289,7 @@ const todoCategories = evolu.createQuery((db) =>
// Filter null value and ensure non-null type.
.where("name", "is not", null)
.$narrowType<{ name: NotNull }>()
.orderBy("createdAt")
.orderBy("createdAt"),
);

type TodoCategoriesRow = ExtractRow<typeof todoCategories>;
Expand Down Expand Up @@ -365,7 +365,7 @@ const OwnerActions: FC = () => {
onSuccess: (mnemonic) => {
evolu.restoreOwner(mnemonic);
},
})
}),
);
});
};
Expand Down Expand Up @@ -419,7 +419,7 @@ const Button: FC<{
const prompt = <From extends string, To>(
schema: S.Schema<To, From, never>,
message: string,
onSuccess: (value: To) => void
onSuccess: (value: To) => void,
) => {
const value = window.prompt(message);
if (value == null) return; // on cancel
Expand Down
8 changes: 8 additions & 0 deletions packages/evolu-common-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @evolu/common-react

## 8.0.3

### Patch Changes

- e8f293f: Add exportDatabase
- Updated dependencies [e8f293f]
- @evolu/common@5.0.3

## 8.0.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/evolu-common-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evolu/common-react",
"version": "8.0.2",
"version": "8.0.3",
"description": "Common code for Evolu React libraries",
"keywords": [
"evolu",
Expand Down Expand Up @@ -49,7 +49,7 @@
"vitest": "^1.6.0"
},
"peerDependencies": {
"@evolu/common": "^5.0.2",
"@evolu/common": "^5.0.3",
"react": "^18.2.0"
},
"publishConfig": {
Expand Down
8 changes: 8 additions & 0 deletions packages/evolu-common-web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @evolu/common-web

## 8.0.1

### Patch Changes

- e8f293f: Add exportDatabase
- Updated dependencies [e8f293f]
- @evolu/common@5.0.3

## 8.0.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/evolu-common-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evolu/common-web",
"version": "8.0.0",
"version": "8.0.1",
"description": "Common code for Evolu libraries targeting web",
"keywords": [
"evolu",
Expand Down Expand Up @@ -46,7 +46,7 @@
"vitest": "^1.6.0"
},
"peerDependencies": {
"@evolu/common": "^5.0.2",
"@evolu/common": "^5.0.3",
"@sqlite.org/sqlite-wasm": "3.45.1-build1"
},
"publishConfig": {
Expand Down
6 changes: 6 additions & 0 deletions packages/evolu-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @evolu/common

## 5.0.3

### Patch Changes

- e8f293f: Add exportDatabase

## 5.0.2

### 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.2",
"version": "5.0.3",
"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
8 changes: 8 additions & 0 deletions packages/evolu-react-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @evolu/react-native

## 9.0.1

### Patch Changes

- e8f293f: Add exportDatabase
- Updated dependencies [e8f293f]
- @evolu/common-react@8.0.3

## 9.0.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/evolu-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evolu/react-native",
"version": "9.0.0",
"version": "9.0.1",
"description": "Evolu for React Native",
"keywords": [
"evolu",
Expand Down Expand Up @@ -53,7 +53,7 @@
"vitest": "^1.6.0"
},
"peerDependencies": {
"@evolu/common-react": "^8.0.2",
"@evolu/common-react": "^8.0.3",
"expo": "^50.0.14",
"expo-sqlite": "~13.4.0",
"react-native": "^0.73.6"
Expand Down
10 changes: 10 additions & 0 deletions packages/evolu-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @evolu/react

## 8.0.1

### Patch Changes

- e8f293f: Add exportDatabase
- Updated dependencies [e8f293f]
- @evolu/common-react@8.0.3
- @evolu/common-web@8.0.1
- @evolu/common@5.0.3

## 8.0.0

### Major Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/evolu-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evolu/react",
"version": "8.0.0",
"version": "8.0.1",
"description": "Evolu for React",
"keywords": [
"evolu",
Expand Down Expand Up @@ -48,9 +48,9 @@
"vitest": "^1.6.0"
},
"peerDependencies": {
"@evolu/common": "^5.0.2",
"@evolu/common-react": "^8.0.2",
"@evolu/common-web": "^8.0.0",
"@evolu/common": "^5.0.3",
"@evolu/common-react": "^8.0.3",
"@evolu/common-web": "^8.0.1",
"react-dom": "^18.2.0"
},
"publishConfig": {
Expand Down
8 changes: 8 additions & 0 deletions packages/evolu-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @evolu/server

## 7.0.3

### Patch Changes

- e8f293f: Add exportDatabase
- Updated dependencies [e8f293f]
- @evolu/common@5.0.3

## 7.0.2

### 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.2",
"version": "7.0.3",
"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.2",
"@evolu/common": "^5.0.3",
"express": "^4.19.2"
},
"publishConfig": {
Expand Down

0 comments on commit 84fb22f

Please sign in to comment.