Skip to content

Commit

Permalink
Effect 2.1.0 and Schema 0.60.3
Browse files Browse the repository at this point in the history
  • Loading branch information
steida committed Jan 16, 2024
1 parent b639147 commit ffb503b
Show file tree
Hide file tree
Showing 14 changed files with 436 additions and 314 deletions.
10 changes: 10 additions & 0 deletions .changeset/late-donkeys-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@evolu/common-react": patch
"@evolu/react-native": patch
"@evolu/common-web": patch
"@evolu/common": patch
"@evolu/server": patch
"@evolu/react": patch
---

Effect 2.1.0 and Schema 0.60.3
8 changes: 4 additions & 4 deletions apps/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"clean": "rm -rf .turbo .expo node_modules dist"
},
"dependencies": {
"@effect/schema": "^0.59.0",
"@effect/schema": "^0.60.3",
"@evolu/react-native": "workspace:*",
"@react-native-community/netinfo": "9.3.10",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
"effect": "2.0.2",
"effect": "2.1.0",
"events": "^3.3.0",
"expo": "^49.0.21",
"expo-sqlite": "~11.3.3",
Expand All @@ -32,10 +32,10 @@
"@babel/core": "^7.23.3",
"@babel/plugin-proposal-dynamic-import": "^7.18.6",
"@babel/plugin-transform-private-methods": "^7.23.3",
"@types/react": "^18.2.46",
"@types/react": "^18.2.48",
"eslint": "^8.56.0",
"eslint-config-evolu": "workspace:*",
"prettier": "^3.1.1",
"prettier": "^3.2.2",
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@evolu/tsconfig": "workspace:*",
"@types/node": "^20.10.8",
"@types/node": "^20.11.4",
"ts-node": "^10.9.1",
"typescript": "^5.3.3"
},
Expand Down
10 changes: 5 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"clean": "rm -rf .turbo .next node_modules"
},
"dependencies": {
"@effect/schema": "^0.59.0",
"@effect/schema": "^0.60.3",
"@evolu/common": "workspace:*",
"@evolu/react": "workspace:*",
"clsx": "^2.1.0",
"effect": "2.0.2",
"effect": "2.1.0",
"next": "14.0.4",
"nextra": "^2.13.2",
"nextra-theme-docs": "^2.13.2",
Expand All @@ -23,14 +23,14 @@
},
"devDependencies": {
"@evolu/tsconfig": "workspace:*",
"@types/node": "^20.10.8",
"@types/react": "^18.2.46",
"@types/node": "^20.11.4",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"autoprefixer": "^10.4.16",
"eslint": "^8.56.0",
"eslint-config-evolu": "workspace:*",
"postcss": "^8.4.32",
"prettier": "^3.1.1",
"prettier": "^3.2.2",
"prettier-plugin-tailwindcss": "^0.5.10",
"tailwindcss": "^3.4.0",
"typescript": "^5.3.3"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@changesets/cli": "^2.27.1",
"eslint": "^8.56.0",
"eslint-config-evolu": "workspace:*",
"prettier": "^3.1.1",
"prettier": "^3.2.2",
"prettier-plugin-jsdoc": "^1.3.0",
"turbo": "^1.11.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-evolu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"clean": "rm -rf node_modules"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint-config-next": "14.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^1.11.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/evolu-common-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
"devDependencies": {
"@evolu/common": "workspace:*",
"@evolu/tsconfig": "workspace:*",
"@types/react": "^18.2.46",
"@types/react": "^18.2.48",
"eslint": "^8.56.0",
"eslint-config-evolu": "workspace:*",
"react": "^18.2.0",
"typescript": "^5.3.3",
"vitest": "^1.1.0"
"vitest": "^1.2.0"
},
"peerDependencies": {
"@evolu/common": "^3.0.10",
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 @@ -43,7 +43,7 @@
"eslint-config-evolu": "workspace:*",
"typescript": "^5.3.3",
"user-agent-data-types": "^0.4.2",
"vitest": "^1.1.0"
"vitest": "^1.2.0"
},
"peerDependencies": {
"@evolu/common": "^3.0.10",
Expand Down
10 changes: 5 additions & 5 deletions packages/evolu-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@
"nanoid": "^5.0.4"
},
"devDependencies": {
"@effect/schema": "^0.59.0",
"@effect/schema": "^0.60.3",
"@evolu/tsconfig": "workspace:*",
"@protobuf-ts/plugin": "^2.9.3",
"@protobuf-ts/protoc": "^2.9.3",
"array-shuffle": "^3.0.0",
"effect": "2.0.2",
"effect": "2.1.0",
"eslint": "^8.56.0",
"eslint-config-evolu": "workspace:*",
"typescript": "^5.3.3",
"vitest": "^1.1.0"
"vitest": "^1.2.0"
},
"peerDependencies": {
"@effect/schema": "^0.59.0",
"effect": "2.0.2"
"@effect/schema": "^0.60.3",
"effect": "2.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/evolu-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"expo-sqlite": "~11.3.3",
"react-native": "0.72.6",
"typescript": "^5.3.3",
"vitest": "^1.1.0"
"vitest": "^1.2.0"
},
"peerDependencies": {
"@evolu/common-react": "^4.0.2",
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 @@ -45,7 +45,7 @@
"eslint-config-evolu": "workspace:*",
"react-dom": "^18.2.0",
"typescript": "^5.3.3",
"vitest": "^1.1.0"
"vitest": "^1.2.0"
},
"peerDependencies": {
"@evolu/common": "^3.0.10",
Expand Down
6 changes: 3 additions & 3 deletions packages/evolu-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"better-sqlite3": "^9.2.2",
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"effect": "2.0.2",
"effect": "2.1.0",
"express": "^4.18.2",
"kysely": "^0.27.0"
},
Expand All @@ -41,11 +41,11 @@
"@types/body-parser": "^1.19.5",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/node": "^20.10.8",
"@types/node": "^20.11.4",
"eslint": "^8.56.0",
"eslint-config-evolu": "workspace:*",
"typescript": "^5.3.3",
"vitest": "^1.1.0"
"vitest": "^1.2.0"
},
"peerDependencies": {
"@evolu/common": "^3.0.10"
Expand Down
7 changes: 3 additions & 4 deletions packages/evolu-server/src/frameworks/Express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ export const createExpressApp = Effect.gen(function* (_) {
app.use(bodyParser.raw({ limit: "20mb" }));

app.post("/", (req, res) => {
Effect.runCallback(
server.sync(req.body as Uint8Array),
Exit.match({
Effect.runCallback(server.sync(req.body as Uint8Array), {
onExit: Exit.match({
onFailure: flow(
Cause.failureOrCause,
Either.match({
Expand All @@ -61,7 +60,7 @@ export const createExpressApp = Effect.gen(function* (_) {
res.send(buffer);
},
}),
);
});
});

return app;
Expand Down
Loading

1 comment on commit ffb503b

@vercel
Copy link

@vercel vercel bot commented on ffb503b Jan 16, 2024

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-git-main-evolu.vercel.app
evolu-evolu.vercel.app
www.evolu.dev
evolu.dev

Please sign in to comment.