@springbrand/http 0.1.0-alpha.8 → 0.1.0-alpha.9
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.
|
@@ -5,7 +5,7 @@ description: Use SpringBrand shared HTTP contracts, Axios request clients, Query
|
|
|
5
5
|
|
|
6
6
|
# Dune React HTTP
|
|
7
7
|
|
|
8
|
-
Shared error codes, canonical statuses and their HTTP statuses are defined in `@springbrand/errors`; this package reads them and does not restate them.
|
|
8
|
+
Shared error codes, canonical statuses and their HTTP statuses are defined in `@springbrand/errors`; this package reads them and does not restate them. `@springbrand/errors` is a peer dependency accepting any version: the consumer installs it directly and its version is the one HTTP uses.
|
|
9
9
|
|
|
10
10
|
Read the installed declarations and README before configuring a client. Public entry points own different runtime needs; import only the capability needed.
|
|
11
11
|
|
package/README.md
CHANGED
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
pnpm add @springbrand/http@alpha
|
|
8
|
+
pnpm add @springbrand/http@alpha @springbrand/errors@alpha
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
`@springbrand/errors` 是 peer 依赖,接受任意版本:由使用方安装并决定版本,HTTP 包直接使用它,不需要为 errors 更新而重新发布。
|
|
12
|
+
|
|
11
13
|
使用 Query 入口时,另外安装兼容的 `@tanstack/react-query`。
|
|
12
14
|
|
|
13
15
|
## 入口
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springbrand/http",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"axios": "1.20.0",
|
|
63
|
-
"content-disposition": "2.0.1"
|
|
64
|
-
"@springbrand/errors": "^0.1.0-alpha.4"
|
|
63
|
+
"content-disposition": "2.0.1"
|
|
65
64
|
},
|
|
66
65
|
"peerDependencies": {
|
|
66
|
+
"@springbrand/errors": ">=0.0.0-0",
|
|
67
67
|
"@tanstack/react-query": "^5.104.1",
|
|
68
68
|
"hono": "^4.12.0",
|
|
69
69
|
"zod": "^4.0.0"
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
"typescript": "^5.0.2",
|
|
89
89
|
"vite": "^5.4.19",
|
|
90
90
|
"vitest": "3.2.6",
|
|
91
|
-
"zod": "4.6.5"
|
|
91
|
+
"zod": "4.6.5",
|
|
92
|
+
"@springbrand/errors": "0.1.0-alpha.4"
|
|
92
93
|
},
|
|
93
94
|
"scripts": {
|
|
94
95
|
"build": "vite build && tsc -p tsconfig.build.json",
|