Skip to content

Commit

Permalink
[ci] release (#192)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Aug 18, 2023
1 parent 5f9f10b commit f242c25
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 25 deletions.
5 changes: 0 additions & 5 deletions .changeset/pink-masks-flow.md

This file was deleted.

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

## 0.0.74

### Patch Changes

- Updated dependencies [5f9f10b]
- [email protected]
- [email protected]

## 0.0.73

### 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": "0.0.73",
"version": "0.0.74",
"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

## 0.0.74

### Patch Changes

- [email protected]

## 0.0.73

### 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": "0.0.73",
"version": "0.0.74",
"private": true,
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions apps/web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# web

## 0.0.74

### Patch Changes

- Updated dependencies [5f9f10b]
- [email protected]

## 0.0.73

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

Expand Down Expand Up @@ -51,7 +51,7 @@ const { useQuery, useMutation, useEvoluError, useOwner, useOwnerActions } =
const prompt = <From extends string, To>(
schema: Schema.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 Expand Up @@ -94,7 +94,7 @@ const TodoCategorySelect: FC<{
.where("isDeleted", "is not", Evolu.cast(true))
.orderBy("createdAt"),
// Filter out rows with nullable names.
({ name, ...rest }) => name && { name, ...rest }
({ name, ...rest }) => name && { name, ...rest },
);

const nothingSelected = "";
Expand Down Expand Up @@ -176,7 +176,7 @@ const Todos: FC = () => {
.orderBy("createdAt"),
// (row) => row
({ title, isCompleted, ...rest }) =>
title && isCompleted != null && { title, isCompleted, ...rest }
title && isCompleted != null && { title, isCompleted, ...rest },
);

return (
Expand All @@ -195,7 +195,7 @@ const Todos: FC = () => {
"What needs to be done?",
(title) => {
create("todo", { title, isCompleted: false });
}
},
);
}}
/>
Expand All @@ -213,7 +213,7 @@ const TodoCategories: FC = () => {
.where("isDeleted", "is not", Evolu.cast(true))
.orderBy("createdAt"),
// (row) => row
({ name, ...rest }) => name && { name, ...rest }
({ name, ...rest }) => name && { name, ...rest },
);

return (
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

## 1.0.13

### Patch Changes

- Updated dependencies [5f9f10b]
- [email protected]

## 1.0.12

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/evolu-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "evolu-server",
"version": "1.0.12",
"version": "1.0.13",
"description": "Node.js server for Evolu library",
"author": "Daniel Steigerwald <[email protected]>",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions packages/evolu/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# evolu

## 6.2.3

### Patch Changes

- 5f9f10b: Replace micro-aes-gcm with @noble/ciphers

## 6.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/evolu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "evolu",
"version": "6.2.2",
"version": "6.2.3",
"description": "React Hooks library for local-first apps with end-to-end encrypted backup and sync using SQLite and CRDT.",
"keywords": [
"evolu",
Expand Down
18 changes: 9 additions & 9 deletions packages/evolu/src/CryptoLive.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const importBip39WithEnglish = Effect.all(
Effect.promise(() => import("@scure/bip39")),
Effect.promise(() => import("@scure/bip39/wordlists/english")),
],
{ concurrency: "unbounded" }
{ concurrency: "unbounded" },
);

export const Bip39Live = Layer.succeed(
Expand All @@ -29,13 +29,13 @@ export const Bip39Live = Layer.succeed(
make: importBip39WithEnglish.pipe(
Effect.map(
([{ generateMnemonic }, { wordlist }]) =>
generateMnemonic(wordlist, 128) as Mnemonic
)
generateMnemonic(wordlist, 128) as Mnemonic,
),
),

toSeed: (mnemonic) =>
Effect.promise(() => import("@scure/bip39")).pipe(
Effect.flatMap((a) => Effect.promise(() => a.mnemonicToSeed(mnemonic)))
Effect.flatMap((a) => Effect.promise(() => a.mnemonicToSeed(mnemonic))),
),

parse: (mnemonic) =>
Expand All @@ -45,10 +45,10 @@ export const Bip39Live = Layer.succeed(
? Effect.succeed(mnemonic as Mnemonic)
: Effect.fail<InvalidMnemonicError>({
_tag: "InvalidMnemonicError",
})
)
}),
),
),
})
}),
);

export const HmacLive = Layer.succeed(Hmac, hmac);
Expand All @@ -62,7 +62,7 @@ export const NanoIdLive = Layer.succeed(
NanoId.of({
nanoid: Effect.sync(() => nanoid()),
nanoidAsNodeId: Effect.sync(() => nanoidForNodeId() as NodeId),
})
}),
);

export const AesGcmLive = Layer.succeed(
Expand All @@ -72,5 +72,5 @@ export const AesGcmLive = Layer.succeed(
Effect.promise(() => aes_encrypt(sharedKey, plaintext)),
decrypt: (sharedKey, ciphertext) =>
Effect.promise(() => aes_decrypt(sharedKey, ciphertext)),
})
}),
);

1 comment on commit f242c25

@vercel
Copy link

@vercel vercel bot commented on f242c25 Aug 18, 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.vercel.app
evolu-evolu.vercel.app
www.evolu.dev
evolu.dev
evolu-git-main-evolu.vercel.app

Please sign in to comment.