@zero-server/sdk 0.9.3 → 0.9.6
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 +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
<p align="center">
|
|
14
14
|
<a href="https://github.com/tonywied17/zero-server/actions"><img src="https://img.shields.io/github/actions/workflow/status/tonywied17/zero-server/ci.yml?branch=main&style=flat-square&logo=githubactions&logoColor=white&label=CI" alt="CI"></a>
|
|
15
15
|
<a href="https://github.com/tonywied17/zero-server/actions"><img src="https://img.shields.io/badge/tests-7443%20passing-brightgreen?style=flat-square&logo=vitest&logoColor=white" alt="tests"></a>
|
|
16
|
-
<a href="https://github.com/tonywied17/zero-server"><img src="https://img.shields.io/badge/coverage-
|
|
16
|
+
<a href="https://github.com/tonywied17/zero-server"><img src="https://img.shields.io/badge/coverage-96.97%25-brightgreen?style=flat-square&logo=vitest&logoColor=white" alt="coverage"></a>
|
|
17
17
|
<a href="https://z-server.dev"><img src="https://img.shields.io/badge/docs-z--server.dev-00d8e0?style=flat-square&logo=readthedocs&logoColor=white" alt="docs"></a>
|
|
18
18
|
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-00d8e0?style=flat-square&logo=opensourceinitiative&logoColor=white" alt="MIT"></a>
|
|
19
19
|
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen?style=flat-square&logo=nodedotjs&logoColor=white" alt="node >=18"></a>
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
|
-
> **Zero-dependency backend framework for Node.js — routing, ORM, auth, WebSocket, SSE, observability, and 20+ middleware
|
|
22
|
+
> **Zero-dependency backend framework for Node.js — routing, ORM, auth, WebSocket, SSE, observability, and 20+ middleware as one SDK or focused scoped packages.**
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
25
25
|
<strong>
|
|
@@ -37,9 +37,15 @@ npm install @zero-server/sdk
|
|
|
37
37
|
|
|
38
38
|
Requires Node.js 18+. No external dependencies — everything is built on Node.js core APIs.
|
|
39
39
|
|
|
40
|
+
`@zero-server/sdk` is the recommended install — it re-exports the entire framework from a single import. Use it for new projects, demos, and most production apps.
|
|
41
|
+
|
|
40
42
|
### Or install only what you need (scoped packages)
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
Every section of the framework is also published as its own standalone scoped package, so libraries and microservices that only touch a slice of the surface can install just those packages and skip the rest:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install @zero-server/core @zero-server/body @zero-server/middleware
|
|
48
|
+
```
|
|
43
49
|
|
|
44
50
|
| Package | Surface |
|
|
45
51
|
|---|---|
|
|
@@ -57,11 +63,7 @@ Requires Node.js 18+. No external dependencies — everything is built on Node.j
|
|
|
57
63
|
| `@zero-server/errors` | every typed `HttpError` class plus ORM/framework errors |
|
|
58
64
|
| `@zero-server/cli` | programmatic `CLI` / `runCLI` entry points for `zh` / `zs` |
|
|
59
65
|
|
|
60
|
-
|
|
61
|
-
npm install @zero-server/core @zero-server/body @zero-server/middleware
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
> All scoped packages depend on `@zero-server/sdk` and pin to the same version, so mixing-and-matching is safe.
|
|
66
|
+
> Each scoped package is fully standalone at runtime — its own `index.js`, its own bundled lib, its own types. Mix and match freely; versions stay aligned across the `@zero-server/*` release set.
|
|
65
67
|
|
|
66
68
|
---
|
|
67
69
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zero-server/sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Zero-dependency backend framework for Node.js — routing, ORM, auth, WebSocket, SSE, gRPC, observability, and 20+ middleware. Distributed as a single SDK and as scoped @zero-server/* packages.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|