@confect/foldkit 10.0.0-next.19 → 10.0.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +3 -1
- package/package.json +8 -8
- package/dist/WebSocketClient.d.ts +0 -16
- package/dist/WebSocketClient.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @confect/foldkit
|
|
2
2
|
|
|
3
|
+
## 10.0.0-next.21
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- a6425c5: Raise the minimum supported Node.js version to 24.
|
|
8
|
+
|
|
9
|
+
### Breaking Changes
|
|
10
|
+
- `engines.node` is now `>=24` on every `@confect/*` package, raised from `>=22`.
|
|
11
|
+
|
|
12
|
+
Node 22 has entered maintenance, so Confect now targets Node 24, the active LTS line. To migrate, move the Node version your project builds and runs on to 24 or later — on Node 22, installing `@confect/*` now fails your package manager's engine check. No API changes accompany the raise: code already running on Node 24 needs no edits.
|
|
13
|
+
|
|
14
|
+
## 10.0.0-next.20
|
|
15
|
+
|
|
3
16
|
## 10.0.0-next.19
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -5,7 +5,9 @@ Confect is a framework that deeply integrates Effect with Convex. It's more than
|
|
|
5
5
|
- Define your Convex database schema using Effect schemas.
|
|
6
6
|
- Write Convex function args and returns validators using Effect's schema library.
|
|
7
7
|
- Use Confect functions to automatically decode and encode your data according to your Effect schema definitions for end-to-end rich types, from client to function to database (and back).
|
|
8
|
-
-
|
|
8
|
+
- Add reusable, type-safe middleware to function groups or individual functions to provide Effect services and run logic around handlers.
|
|
9
|
+
- Declare typed errors on functions and middleware using Effect schemas, then handle the decoded errors at every call site.
|
|
10
|
+
- Use Effect's native HTTP API modules to define your HTTP API.
|
|
9
11
|
- Access Convex platform capabilities via Effect services.
|
|
10
12
|
|
|
11
13
|
Want to learn more? Read the [docs](https://confect.dev)!
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@confect/foldkit",
|
|
3
3
|
"description": "Client-side bindings for Foldkit apps",
|
|
4
|
-
"version": "10.0.0-next.
|
|
4
|
+
"version": "10.0.0-next.21",
|
|
5
5
|
"author": "RJ Dellecese",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/rjdellecese/confect/issues"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@effect/vitest": "4.0.0-rc.112",
|
|
11
|
-
"@types/node": "
|
|
12
|
-
"convex": "1.
|
|
11
|
+
"@types/node": "24.13.3",
|
|
12
|
+
"convex": "1.45.0",
|
|
13
13
|
"effect": "4.0.0-rc.112",
|
|
14
14
|
"foldkit": "0.148.1",
|
|
15
15
|
"tsdown": "0.22.14",
|
|
16
16
|
"typescript": "7.0.2",
|
|
17
17
|
"unrun": "0.3.1",
|
|
18
|
-
"vitest": "4.1.
|
|
18
|
+
"vitest": "4.1.11"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=24"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"main": "./dist/index.js",
|
|
51
51
|
"module": "./dist/index.js",
|
|
52
52
|
"peerDependencies": {
|
|
53
|
+
"@confect/core": "^10.0.0-next.21",
|
|
54
|
+
"@confect/js": "^10.0.0-next.21",
|
|
53
55
|
"effect": "^4.0.0-rc.112",
|
|
54
|
-
"foldkit": "^0.148.0"
|
|
55
|
-
"@confect/core": "^10.0.0-next.19",
|
|
56
|
-
"@confect/js": "^10.0.0-next.19"
|
|
56
|
+
"foldkit": "^0.148.0"
|
|
57
57
|
},
|
|
58
58
|
"repository": {
|
|
59
59
|
"type": "git",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { layer, WebSocketClient, WebSocketClientError } from "@confect/js/WebSocketClient";
|
|
2
|
-
/**
|
|
3
|
-
* The Confect WebSocket client, re-exported from `@confect/js` for use as a
|
|
4
|
-
* Foldkit resource. Pass `layer(address)` to `Runtime.makeApplication`'s
|
|
5
|
-
* `resources` so the client lives for the lifetime of the app and the socket
|
|
6
|
-
* closes at teardown:
|
|
7
|
-
*
|
|
8
|
-
* ```ts
|
|
9
|
-
* Runtime.makeApplication({
|
|
10
|
-
* // ...
|
|
11
|
-
* resources: WebSocketClient.layer(import.meta.env.VITE_CONVEX_URL),
|
|
12
|
-
* })
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export { layer, WebSocketClient, WebSocketClientError };
|
|
16
|
-
//# sourceMappingURL=WebSocketClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebSocketClient.d.ts","sourceRoot":"","sources":["../src/WebSocketClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,eAAe,EACf,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,CAAC"}
|