Skip to content

Commit

Permalink
Merge pull request #279 from evoluhq/changeset-release/main
Browse files Browse the repository at this point in the history
[ci] release
  • Loading branch information
steida authored Dec 5, 2023
2 parents 3611c26 + a5844c9 commit cc6f6e2
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 25 deletions.
6 changes: 0 additions & 6 deletions .changeset/nice-impalas-smell.md

This file was deleted.

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

## 1.0.3

### Patch Changes

- Updated dependencies [07fd60d]
- @evolu/react-native@3.0.1

## 1.0.2

### 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.2",
"version": "1.0.3",
"private": true,
"main": "index.js",
"scripts": {
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 @@ -36,7 +36,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 @@ -71,7 +71,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 @@ -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 @@ -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
6 changes: 6 additions & 0 deletions packages/evolu-common-web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @evolu/common-web

## 3.0.1

### Patch Changes

- 07fd60d: Add docs for local-only tables

## 3.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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": "3.0.0",
"version": "3.0.1",
"description": "Common code for Evolu libraries targeting web",
"keywords": [
"evolu",
Expand Down
4 changes: 3 additions & 1 deletion packages/evolu-common/test/Evolu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ test("createQuery", () => {
db.selectFrom("users").select(["id", "name"]),
);

expect(users1).toMatchInlineSnapshot(`"{"sql":"select \\"id\\", \\"name\\" from \\"users\\"","parameters":[]}"`);
expect(users1).toMatchInlineSnapshot(
`"{"sql":"select \\"id\\", \\"name\\" from \\"users\\"","parameters":[]}"`,
);
expect(users1).toBe(users2);
});

Expand Down
6 changes: 6 additions & 0 deletions packages/evolu-react-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @evolu/react-native

## 3.0.1

### Patch Changes

- 07fd60d: Add docs for local-only tables

## 3.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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": "3.0.0",
"version": "3.0.1",
"description": "Evolu for React Native",
"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 @@ -50,7 +50,7 @@
"peerDependencies": {
"@evolu/common": "^2.1.0",
"@evolu/common-react": "^3.0.0",
"@evolu/common-web": "^3.0.0",
"@evolu/common-web": "^3.0.1",
"@types/react-dom": "^18.2.7",
"react-dom": "^18.2.0"
},
Expand Down

1 comment on commit cc6f6e2

@vercel
Copy link

@vercel vercel bot commented on cc6f6e2 Dec 5, 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-evolu.vercel.app
evolu.dev
evolu.vercel.app
www.evolu.dev

Please sign in to comment.