Skip to content

Commit

Permalink
Merge pull request #294 from evoluhq/changeset-release/main
Browse files Browse the repository at this point in the history
[ci] release
  • Loading branch information
steida authored Dec 13, 2023
2 parents a969843 + 99d9100 commit 2c39a9c
Show file tree
Hide file tree
Showing 16 changed files with 70 additions and 48 deletions.
12 changes: 0 additions & 12 deletions .changeset/rich-coats-explain.md

This file was deleted.

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.16

### Patch Changes

- @evolu/server@3.0.1

## 1.0.15

### 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.15",
"version": "1.0.16",
"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.14

### Patch Changes

- Updated dependencies [a969843]
- @evolu/common@3.0.1
- @evolu/react@4.0.0

## 1.0.13

### 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.13",
"version": "1.0.14",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
14 changes: 7 additions & 7 deletions examples/electron-app/src/Example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type TodoCategoryId = S.Schema.To<typeof TodoCategoryId>;
const NonEmptyString50 = String.pipe(
S.minLength(1),
S.maxLength(50),
S.brand("NonEmptyString50")
S.brand("NonEmptyString50"),
);
type NonEmptyString50 = S.Schema.To<typeof NonEmptyString50>;

Expand Down Expand Up @@ -73,7 +73,7 @@ const createFixtures = (): Promise<void> =>
evolu.loadQueries([
evolu.createQuery((db) => db.selectFrom("todo").selectAll()),
evolu.createQuery((db) => db.selectFrom("todoCategory").selectAll()),
])
]),
).then(([todos, categories]) => {
if (todos.row || categories.row) return;

Expand Down Expand Up @@ -167,9 +167,9 @@ const todosWithCategories = evolu.createQuery((db) =>
.selectFrom("todoCategory")
.select(["todoCategory.id", "todoCategory.name"])
.where("isDeleted", "is not", cast(true))
.orderBy("createdAt")
.orderBy("createdAt"),
).as("categories"),
])
]),
);

const Todos: FC = () => {
Expand Down Expand Up @@ -285,7 +285,7 @@ const todoCategories = evolu.createQuery((db) =>
// Filter null value and ensure non-null type. Evolu will provide a helper.
.where("name", "is not", null)
.$narrowType<{ name: NonEmptyString50 }>()
.orderBy("createdAt")
.orderBy("createdAt"),
);

const TodoCategories: FC = () => {
Expand Down Expand Up @@ -360,7 +360,7 @@ const OwnerActions: FC = () => {
isRestoringOwner(true);
evolu.restoreOwner(mnemonic);
},
})
}),
);
});
};
Expand Down Expand Up @@ -415,7 +415,7 @@ const Button: FC<{
const prompt = <From extends string, To>(
schema: S.Schema<From, To>,
message: string,
onSuccess: (value: To) => void
onSuccess: (value: To) => void,
): void => {
const value = window.prompt(message);
if (value == null) return; // on cancel
Expand Down
14 changes: 7 additions & 7 deletions examples/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type TodoCategoryId = S.Schema.To<typeof TodoCategoryId>;
const NonEmptyString50 = String.pipe(
S.minLength(1),
S.maxLength(50),
S.brand("NonEmptyString50")
S.brand("NonEmptyString50"),
);
type NonEmptyString50 = S.Schema.To<typeof NonEmptyString50>;

Expand Down Expand Up @@ -75,7 +75,7 @@ const createFixtures = (): Promise<void> =>
evolu.loadQueries([
evolu.createQuery((db) => db.selectFrom("todo").selectAll()),
evolu.createQuery((db) => db.selectFrom("todoCategory").selectAll()),
])
]),
).then(([todos, categories]) => {
if (todos.row || categories.row) return;

Expand Down Expand Up @@ -169,9 +169,9 @@ const todosWithCategories = evolu.createQuery((db) =>
.selectFrom("todoCategory")
.select(["todoCategory.id", "todoCategory.name"])
.where("isDeleted", "is not", cast(true))
.orderBy("createdAt")
.orderBy("createdAt"),
).as("categories"),
])
]),
);

const Todos: FC = () => {
Expand Down Expand Up @@ -287,7 +287,7 @@ const todoCategories = evolu.createQuery((db) =>
// Filter null value and ensure non-null type. Evolu will provide a helper.
.where("name", "is not", null)
.$narrowType<{ name: NonEmptyString50 }>()
.orderBy("createdAt")
.orderBy("createdAt"),
);

const TodoCategories: FC = () => {
Expand Down Expand Up @@ -362,7 +362,7 @@ const OwnerActions: FC = () => {
isRestoringOwner(true);
evolu.restoreOwner(mnemonic);
},
})
}),
);
});
};
Expand Down Expand Up @@ -417,7 +417,7 @@ const Button: FC<{
const prompt = <From extends string, To>(
schema: S.Schema<From, To>,
message: string,
onSuccess: (value: To) => void
onSuccess: (value: To) => void,
): void => {
const value = window.prompt(message);
if (value == null) return; // on cancel
Expand Down
14 changes: 7 additions & 7 deletions examples/remix/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type TodoCategoryId = S.Schema.To<typeof TodoCategoryId>;
const NonEmptyString50 = String.pipe(
S.minLength(1),
S.maxLength(50),
S.brand("NonEmptyString50")
S.brand("NonEmptyString50"),
);
type NonEmptyString50 = S.Schema.To<typeof NonEmptyString50>;

Expand Down Expand Up @@ -77,7 +77,7 @@ const createFixtures = (): Promise<void> =>
evolu.loadQueries([
evolu.createQuery((db) => db.selectFrom("todo").selectAll()),
evolu.createQuery((db) => db.selectFrom("todoCategory").selectAll()),
])
]),
).then(([todos, categories]) => {
if (todos.row || categories.row) return;

Expand Down Expand Up @@ -171,9 +171,9 @@ const todosWithCategories = evolu.createQuery((db) =>
.selectFrom("todoCategory")
.select(["todoCategory.id", "todoCategory.name"])
.where("isDeleted", "is not", cast(true))
.orderBy("createdAt")
.orderBy("createdAt"),
).as("categories"),
])
]),
);

const Todos: FC = () => {
Expand Down Expand Up @@ -289,7 +289,7 @@ const todoCategories = evolu.createQuery((db) =>
// Filter null value and ensure non-null type. Evolu will provide a helper.
.where("name", "is not", null)
.$narrowType<{ name: NonEmptyString50 }>()
.orderBy("createdAt")
.orderBy("createdAt"),
);

const TodoCategories: FC = () => {
Expand Down Expand Up @@ -364,7 +364,7 @@ const OwnerActions: FC = () => {
isRestoringOwner(true);
evolu.restoreOwner(mnemonic);
},
})
}),
);
});
};
Expand Down Expand Up @@ -419,7 +419,7 @@ const Button: FC<{
const prompt = <From extends string, To>(
schema: S.Schema<From, To>,
message: string,
onSuccess: (value: To) => void
onSuccess: (value: To) => void,
): void => {
const value = window.prompt(message);
if (value == null) return; // on cancel
Expand Down
14 changes: 7 additions & 7 deletions examples/vite/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type TodoCategoryId = S.Schema.To<typeof TodoCategoryId>;
const NonEmptyString50 = String.pipe(
S.minLength(1),
S.maxLength(50),
S.brand("NonEmptyString50")
S.brand("NonEmptyString50"),
);
type NonEmptyString50 = S.Schema.To<typeof NonEmptyString50>;

Expand Down Expand Up @@ -73,7 +73,7 @@ const createFixtures = (): Promise<void> =>
evolu.loadQueries([
evolu.createQuery((db) => db.selectFrom("todo").selectAll()),
evolu.createQuery((db) => db.selectFrom("todoCategory").selectAll()),
])
]),
).then(([todos, categories]) => {
if (todos.row || categories.row) return;

Expand Down Expand Up @@ -167,9 +167,9 @@ const todosWithCategories = evolu.createQuery((db) =>
.selectFrom("todoCategory")
.select(["todoCategory.id", "todoCategory.name"])
.where("isDeleted", "is not", cast(true))
.orderBy("createdAt")
.orderBy("createdAt"),
).as("categories"),
])
]),
);

const Todos: FC = () => {
Expand Down Expand Up @@ -285,7 +285,7 @@ const todoCategories = evolu.createQuery((db) =>
// Filter null value and ensure non-null type. Evolu will provide a helper.
.where("name", "is not", null)
.$narrowType<{ name: NonEmptyString50 }>()
.orderBy("createdAt")
.orderBy("createdAt"),
);

const TodoCategories: FC = () => {
Expand Down Expand Up @@ -360,7 +360,7 @@ const OwnerActions: FC = () => {
isRestoringOwner(true);
evolu.restoreOwner(mnemonic);
},
})
}),
);
});
};
Expand Down Expand Up @@ -415,7 +415,7 @@ const Button: FC<{
const prompt = <From extends string, To>(
schema: S.Schema<From, To>,
message: string,
onSuccess: (value: To) => void
onSuccess: (value: To) => void,
): void => {
const value = window.prompt(message);
if (value == null) return; // on cancel
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.0.4"
},
"peerDependencies": {
"@evolu/common": "^3.0.0",
"@evolu/common": "^3.0.1",
"@types/react": "^18.2.22",
"react": "^18.2.0"
},
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.0.4"
},
"peerDependencies": {
"@evolu/common": "^3.0.0",
"@evolu/common": "^3.0.1",
"@sqlite.org/sqlite-wasm": "3.43.2-build1"
},
"publishConfig": {
Expand Down
13 changes: 13 additions & 0 deletions packages/evolu-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @evolu/common

## 3.0.1

### Patch Changes

- a969843: Add ExtractRow type helper

Extract `Row` from `Query` instance.

```ts
const allTodos = evolu.createQuery((db) => db.selectFrom("todo").selectAll());
type AllTodosRow = ExtractRow<typeof allTodos>;
```

## 3.0.0

### Major 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": "3.0.0",
"version": "3.0.1",
"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.0.4"
},
"peerDependencies": {
"@evolu/common": "^3.0.0",
"@evolu/common": "^3.0.1",
"@evolu/common-react": "^4.0.0",
"@evolu/common-web": "^4.0.0",
"@types/react-dom": "^18.2.7",
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

## 3.0.1

### Patch Changes

- Updated dependencies [a969843]
- @evolu/common@3.0.1

## 3.0.0

### 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": "3.0.0",
"version": "3.0.1",
"description": "Node.js server for Evolu",
"author": "Daniel Steigerwald <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -48,7 +48,7 @@
"vitest": "^1.0.4"
},
"peerDependencies": {
"@evolu/common": "^3.0.0"
"@evolu/common": "^3.0.1"
},
"publishConfig": {
"access": "public"
Expand Down

1 comment on commit 2c39a9c

@vercel
Copy link

@vercel vercel bot commented on 2c39a9c Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

evolu – ./

evolu-git-main-evolu.vercel.app
evolu.vercel.app
www.evolu.dev
evolu-evolu.vercel.app
evolu.dev

Please sign in to comment.