@zeroxsolutions/server 0.6.1 → 0.6.2
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 +29 -25
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 0.6.2 (2026-10-18)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for @zeroxsolutions/server to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
1
5
|
## 0.6.1 (2026-10-06)
|
|
2
6
|
|
|
3
7
|
No code changes. It depends on @zeroxsolutions/response, so its version follows response 0.14.4.
|
|
@@ -6,11 +10,11 @@ No code changes. It depends on @zeroxsolutions/response, so its version follows
|
|
|
6
10
|
|
|
7
11
|
### 🚀 Features
|
|
8
12
|
|
|
9
|
-
- ⚠️
|
|
13
|
+
- ⚠️ **server:** answer an update a resource does not support 403 ([7607c77](https://github.com/zeroxsolutions/zeroxsolutions/commit/7607c77))
|
|
10
14
|
|
|
11
|
-
### ⚠️
|
|
15
|
+
### ⚠️ Breaking Changes
|
|
12
16
|
|
|
13
|
-
- **server:** answer an update a resource does not support 403
|
|
17
|
+
- **server:** answer an update a resource does not support 403 ([7607c77](https://github.com/zeroxsolutions/zeroxsolutions/commit/7607c77))
|
|
14
18
|
jsonApiNotFound throws instead of rendering, so a surface
|
|
15
19
|
installing it installs createErrorHandler as its onError.
|
|
16
20
|
Refs: zeroxsolutions/travel#283
|
|
@@ -50,11 +54,11 @@ This was a version bump only for @zeroxsolutions/server to align it with other p
|
|
|
50
54
|
|
|
51
55
|
### 🩹 Fixes
|
|
52
56
|
|
|
53
|
-
- ⚠️
|
|
57
|
+
- ⚠️ **server:** read the negotiation headers, never the request body ([cf83e29](https://github.com/zeroxsolutions/zeroxsolutions/commit/cf83e29))
|
|
54
58
|
|
|
55
|
-
### ⚠️
|
|
59
|
+
### ⚠️ Breaking Changes
|
|
56
60
|
|
|
57
|
-
- **server:** read the negotiation headers, never the request body
|
|
61
|
+
- **server:** read the negotiation headers, never the request body ([cf83e29](https://github.com/zeroxsolutions/zeroxsolutions/commit/cf83e29))
|
|
58
62
|
jsonApiContentNegotiation no longer refuses a body sent
|
|
59
63
|
with no Content-Type or in another media type, and judges a Content-Type
|
|
60
64
|
on a bodyless request too. NEGOTIATION_RESPONSES describes the two
|
|
@@ -73,27 +77,27 @@ This was a version bump only for @zeroxsolutions/server to align it with other p
|
|
|
73
77
|
|
|
74
78
|
### 🚀 Features
|
|
75
79
|
|
|
76
|
-
- ⚠️
|
|
77
|
-
- ⚠️
|
|
80
|
+
- ⚠️ **server:** challenge a 401 and keep a thrown response's headers ([e252634](https://github.com/zeroxsolutions/zeroxsolutions/commit/e252634))
|
|
81
|
+
- ⚠️ **server:** answer a refused query as 400 with its parameter ([61ffe94](https://github.com/zeroxsolutions/zeroxsolutions/commit/61ffe94))
|
|
78
82
|
|
|
79
83
|
### 🩹 Fixes
|
|
80
84
|
|
|
81
85
|
- **server:** name the challenge on every 401 ([0a0b2af](https://github.com/zeroxsolutions/zeroxsolutions/commit/0a0b2af))
|
|
82
|
-
- ⚠️
|
|
83
|
-
- ⚠️
|
|
86
|
+
- ⚠️ **server:** point error sources at what exists, name unknown keys ([44d2116](https://github.com/zeroxsolutions/zeroxsolutions/commit/44d2116))
|
|
87
|
+
- ⚠️ **server:** label only json:api bodies and answer unmatched routes ([a6d3a08](https://github.com/zeroxsolutions/zeroxsolutions/commit/a6d3a08))
|
|
84
88
|
|
|
85
|
-
### ⚠️
|
|
89
|
+
### ⚠️ Breaking Changes
|
|
86
90
|
|
|
87
|
-
- **server:** point error sources at what exists, name unknown keys
|
|
91
|
+
- **server:** point error sources at what exists, name unknown keys ([44d2116](https://github.com/zeroxsolutions/zeroxsolutions/commit/44d2116))
|
|
88
92
|
a missing member points at its parent; a whole-target
|
|
89
93
|
issue carries pointer "" for a body and no source otherwise; an
|
|
90
94
|
unrecognized query key is its own 400.
|
|
91
|
-
- **server:** label only json:api bodies and answer unmatched routes
|
|
95
|
+
- **server:** label only json:api bodies and answer unmatched routes ([a6d3a08](https://github.com/zeroxsolutions/zeroxsolutions/commit/a6d3a08))
|
|
92
96
|
a body with no Content-Type is 415, and a response of
|
|
93
97
|
another media type keeps its own header.
|
|
94
|
-
- **server:** challenge a 401 and keep a thrown response's headers
|
|
98
|
+
- **server:** challenge a 401 and keep a thrown response's headers ([e252634](https://github.com/zeroxsolutions/zeroxsolutions/commit/e252634))
|
|
95
99
|
createErrorHandler requires authenticationChallenge.
|
|
96
|
-
- **server:** answer a refused query as 400 with its parameter
|
|
100
|
+
- **server:** answer a refused query as 400 with its parameter ([61ffe94](https://github.com/zeroxsolutions/zeroxsolutions/commit/61ffe94))
|
|
97
101
|
QueryNotPermitted is answered by the library before resolve, as <namespace>.query_not_permitted.
|
|
98
102
|
|
|
99
103
|
### ❤️ Thank You
|
|
@@ -150,11 +154,11 @@ This was a version bump only for @zeroxsolutions/server to align it with other p
|
|
|
150
154
|
|
|
151
155
|
### 💅 Refactors
|
|
152
156
|
|
|
153
|
-
- ⚠️
|
|
157
|
+
- ⚠️ **server:** render a rejected request through the error handler ([59b6f32](https://github.com/zeroxsolutions/zeroxsolutions/commit/59b6f32))
|
|
154
158
|
|
|
155
|
-
### ⚠️
|
|
159
|
+
### ⚠️ Breaking Changes
|
|
156
160
|
|
|
157
|
-
- **server:** render a rejected request through the error handler
|
|
161
|
+
- **server:** render a rejected request through the error handler ([59b6f32](https://github.com/zeroxsolutions/zeroxsolutions/commit/59b6f32))
|
|
158
162
|
`createValidationHook` throws the rejection instead of
|
|
159
163
|
answering it, so an app passing it to `OpenAPIHono` also needs
|
|
160
164
|
`createErrorHandler` as its `onError`; without one hono answers the
|
|
@@ -193,11 +197,11 @@ Repackaged only, no source change: the previous tarball still carried the pre-fl
|
|
|
193
197
|
|
|
194
198
|
### 🚀 Features
|
|
195
199
|
|
|
196
|
-
- ⚠️
|
|
200
|
+
- ⚠️ **server,jsonapi:** one surface, one error-code vocabulary ([32b4aed](https://github.com/zeroxsolutions/zeroxsolutions/commit/32b4aed))
|
|
197
201
|
|
|
198
|
-
### ⚠️
|
|
202
|
+
### ⚠️ Breaking Changes
|
|
199
203
|
|
|
200
|
-
- **server,jsonapi:** one surface, one error-code vocabulary
|
|
204
|
+
- **server,jsonapi:** one surface, one error-code vocabulary ([32b4aed](https://github.com/zeroxsolutions/zeroxsolutions/commit/32b4aed))
|
|
201
205
|
createErrorHandler, createValidationHook and
|
|
202
206
|
jsonApiContentNegotiation take a required `namespace`; negotiateJsonApi takes it
|
|
203
207
|
as a third argument. Codes these mint are now `<namespace>.<name>`.
|
|
@@ -210,11 +214,11 @@ Repackaged only, no source change: the previous tarball still carried the pre-fl
|
|
|
210
214
|
|
|
211
215
|
### 💅 Refactors
|
|
212
216
|
|
|
213
|
-
- ⚠️
|
|
217
|
+
- ⚠️ **query,response,server:** one wire spelling, flat exports ([5c57b3a](https://github.com/zeroxsolutions/zeroxsolutions/commit/5c57b3a))
|
|
214
218
|
|
|
215
|
-
### ⚠️
|
|
219
|
+
### ⚠️ Breaking Changes
|
|
216
220
|
|
|
217
|
-
- **query,response,server:** one wire spelling, flat exports
|
|
221
|
+
- **query,response,server:** one wire spelling, flat exports ([5c57b3a](https://github.com/zeroxsolutions/zeroxsolutions/commit/5c57b3a))
|
|
218
222
|
`@zeroxsolutions/response/http`, `@zeroxsolutions/query/http`
|
|
219
223
|
and `@zeroxsolutions/server/hono/http` are gone, and the surviving `/jsonapi`
|
|
220
224
|
and `/hono` subpaths move to the package root. Every import drops its subpath.
|
|
@@ -236,4 +240,4 @@ This was a version bump only for @zeroxsolutions/server to align it with other p
|
|
|
236
240
|
### ❤️ Thank You
|
|
237
241
|
|
|
238
242
|
- Claude Opus 5 (1M context)
|
|
239
|
-
- Lương Văn Tú
|
|
243
|
+
- Lương Văn Tú
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeroxsolutions/server",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"tslib": "^2.3.0",
|
|
24
|
-
"@zeroxsolutions/jsonapi": "0.13.
|
|
25
|
-
"@zeroxsolutions/query": "0.7.
|
|
24
|
+
"@zeroxsolutions/jsonapi": "0.13.3",
|
|
25
|
+
"@zeroxsolutions/query": "0.7.4",
|
|
26
26
|
"@zeroxsolutions/response": "0.14.4"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|