better-call 1.0.0-beta.3 → 1.0.0-beta.5
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 +2 -4
- package/dist/client.d.cts +1 -2
- package/dist/client.d.ts +1 -2
- package/dist/index.cjs +3896 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3892 -3
- package/dist/index.js.map +1 -1
- package/dist/node.d.cts +1 -2
- package/dist/node.d.ts +1 -2
- package/dist/{router-DNpkEV0c.d.cts → router-G7pIJBUB.d.cts} +59 -4
- package/dist/{router-DNpkEV0c.d.ts → router-G7pIJBUB.d.ts} +59 -4
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Better Call
|
|
2
2
|
|
|
3
3
|
Better call is a tiny web framework for creating endpoints that can be invoked as a normal function or mounted to a router to be served by any web standard compatible server (like Bun, node, nextjs, sveltekit...) and also includes a typed RPC client for typesafe client-side invocation of these endpoints.
|
|
4
4
|
|
|
5
5
|
Built for typescript and it comes with a very high performance router based on [rou3](https://github.com/unjs/rou3).
|
|
6
6
|
|
|
7
|
-
> ⚠️ This project in development and not ready for production use. But feel free to try it out and give feedback.
|
|
8
|
-
|
|
9
7
|
## Install
|
|
10
8
|
|
|
11
9
|
```bash
|
|
12
10
|
pnpm i better-call
|
|
13
11
|
```
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
Make sure to install [standard schema](https://github.com/standard-schema/standard-schema) compatible validation library like zod.
|
|
16
14
|
|
|
17
15
|
```bash
|
|
18
16
|
pnpm i zod
|
package/dist/client.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BetterFetchOption, BetterFetchResponse } from '@better-fetch/fetch';
|
|
2
|
-
import { j as Router,
|
|
3
|
-
import '@standard-schema/spec';
|
|
2
|
+
import { j as Router, W as UnionToIntersection, b as Endpoint, T as HasRequiredKeys } from './router-G7pIJBUB.cjs';
|
|
4
3
|
|
|
5
4
|
type HasRequired<T extends {
|
|
6
5
|
body?: any;
|
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BetterFetchOption, BetterFetchResponse } from '@better-fetch/fetch';
|
|
2
|
-
import { j as Router,
|
|
3
|
-
import '@standard-schema/spec';
|
|
2
|
+
import { j as Router, W as UnionToIntersection, b as Endpoint, T as HasRequiredKeys } from './router-G7pIJBUB.js';
|
|
4
3
|
|
|
5
4
|
type HasRequired<T extends {
|
|
6
5
|
body?: any;
|