@cratestack/api 0.17.1 → 0.18.0
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/README.md +11 -11
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -7,17 +7,17 @@ so existing `import { createBatchLink } from "@cratestack/api"` code keeps worki
|
|
|
7
7
|
|
|
8
8
|
## The split
|
|
9
9
|
|
|
10
|
-
| Package
|
|
11
|
-
|
|
|
12
|
-
| [`@cratestack/ts-types`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-ts-types)
|
|
13
|
-
| [`@cratestack/link-batch`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-link-batch)
|
|
14
|
-
| [`@cratestack/link-logger`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-link-logger)
|
|
15
|
-
| [`@cratestack/runtime-fetch`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-runtime-fetch)
|
|
16
|
-
| [`@cratestack/runtime-axios`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-runtime-axios)
|
|
17
|
-
| [`@cratestack/validator-zod`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-validator-zod)
|
|
18
|
-
| [`@cratestack/validator-yup`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-validator-yup)
|
|
19
|
-
| [`@cratestack/adapter-tanstack-query`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-adapter-tanstack-query) | Generic TanStack Query option builders.
|
|
20
|
-
| [`@cratestack/adapter-rtk`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-adapter-rtk)
|
|
10
|
+
| Package | What it does |
|
|
11
|
+
| ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
|
12
|
+
| [`@cratestack/ts-types`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-ts-types) | Shared `RpcLink`/wire-frame interfaces. Types only — no runtime code. |
|
|
13
|
+
| [`@cratestack/link-batch`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-link-batch) | Automatic batch-scheduler `RpcLink`. |
|
|
14
|
+
| [`@cratestack/link-logger`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-link-logger) | Reference logging `RpcLink`. |
|
|
15
|
+
| [`@cratestack/runtime-fetch`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-runtime-fetch) | `typeof fetch` transport with an optional timeout. |
|
|
16
|
+
| [`@cratestack/runtime-axios`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-runtime-axios) | `typeof fetch` transport backed by axios. |
|
|
17
|
+
| [`@cratestack/validator-zod`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-validator-zod) | Input-validating `RpcLink`, zod schemas. |
|
|
18
|
+
| [`@cratestack/validator-yup`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-validator-yup) | Input-validating `RpcLink`, yup schemas. |
|
|
19
|
+
| [`@cratestack/adapter-tanstack-query`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-adapter-tanstack-query) | Generic TanStack Query option builders. |
|
|
20
|
+
| [`@cratestack/adapter-rtk`](https://github.com/cratestack/cratestack/tree/main/packages/cratestack-adapter-rtk) | RTK Query `BaseQueryFn` adapter. |
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratestack/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Compat umbrella over the split @cratestack/{ts-types,link-*,runtime-*,validator-*,adapter-*} family for CrateStack's generated TypeScript RPC client — batching, logging, and more.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -62,20 +62,20 @@
|
|
|
62
62
|
"lint": "biome check ."
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@cratestack/ts-types": "0.
|
|
66
|
-
"@cratestack/link-batch": "0.
|
|
67
|
-
"@cratestack/link-logger": "0.
|
|
68
|
-
"@cratestack/runtime-fetch": "0.
|
|
69
|
-
"@cratestack/runtime-axios": "0.
|
|
70
|
-
"@cratestack/validator-zod": "0.
|
|
71
|
-
"@cratestack/validator-yup": "0.
|
|
72
|
-
"@cratestack/adapter-tanstack-query": "0.
|
|
73
|
-
"@cratestack/adapter-rtk": "0.
|
|
65
|
+
"@cratestack/ts-types": "0.18.0",
|
|
66
|
+
"@cratestack/link-batch": "0.18.0",
|
|
67
|
+
"@cratestack/link-logger": "0.18.0",
|
|
68
|
+
"@cratestack/runtime-fetch": "0.18.0",
|
|
69
|
+
"@cratestack/runtime-axios": "0.18.0",
|
|
70
|
+
"@cratestack/validator-zod": "0.18.0",
|
|
71
|
+
"@cratestack/validator-yup": "0.18.0",
|
|
72
|
+
"@cratestack/adapter-tanstack-query": "0.18.0",
|
|
73
|
+
"@cratestack/adapter-rtk": "0.18.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@reduxjs/toolkit": "^2.13.0",
|
|
77
|
-
"@tanstack/query-core": "^5.
|
|
78
|
-
"axios": "^1.
|
|
77
|
+
"@tanstack/query-core": "^5.105.0",
|
|
78
|
+
"axios": "^1.21.0",
|
|
79
79
|
"typescript": "^7.0.2",
|
|
80
80
|
"vitest": "^5.0.5",
|
|
81
81
|
"yup": "^1.4.0",
|