@darksheep/express 2.0.0 → 2.1.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/CHANGELOG.md +29 -0
- package/package.json +6 -6
- package/src/content-type/router.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.0](https://github.com/DarkSheepSoftware/node-packages/compare/express-v2.0.1...express-v2.1.0) (2025-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### 🌟 Features
|
|
7
|
+
|
|
8
|
+
* Support node 24 ([#761](https://github.com/DarkSheepSoftware/node-packages/issues/761)) ([f13caae](https://github.com/DarkSheepSoftware/node-packages/commit/f13caaef978c7a657e4599f775e0a62d1738f475))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @darksheep/errors bumped from 1.1.1 to 1.2.0
|
|
16
|
+
* @darksheep/prune bumped from 1.0.4 to 1.1.0
|
|
17
|
+
* devDependencies
|
|
18
|
+
* @darksheep/json-schema bumped to 0.1.1
|
|
19
|
+
* @darksheep/logger bumped from 1.2.0 to 1.3.0
|
|
20
|
+
* peerDependencies
|
|
21
|
+
* @darksheep/json-schema bumped to 0.1.1
|
|
22
|
+
* @darksheep/logger bumped from >=1.0.10 to >=1.3.0
|
|
23
|
+
|
|
24
|
+
## [2.0.1](https://github.com/DarkSheepSoftware/node-packages/compare/express-v2.0.0...express-v2.0.1) (2025-09-17)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### 🩹 Fixes
|
|
28
|
+
|
|
29
|
+
* Allow passing parameters into routed content types ([4d02de3](https://github.com/DarkSheepSoftware/node-packages/commit/4d02de3d49a9eaa289b625d5088bcb2998425426))
|
|
30
|
+
* extend logger peer deps range ([8f1b3bc](https://github.com/DarkSheepSoftware/node-packages/commit/8f1b3bcae7aec6324195d0f2a3974632b3132053))
|
|
31
|
+
|
|
3
32
|
## [2.0.0](https://github.com/DarkSheepSoftware/node-packages/compare/express-v1.0.1...express-v2.0.0) (2025-07-19)
|
|
4
33
|
|
|
5
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darksheep/express",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "express utilites and other bits",
|
|
5
5
|
"license": "UNLICENCED",
|
|
6
6
|
"type": "module",
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"test:watch": "node --watch --test src/**/*.test.js"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@darksheep/errors": "1.
|
|
26
|
-
"@darksheep/prune": "1.0
|
|
25
|
+
"@darksheep/errors": "1.2.0",
|
|
26
|
+
"@darksheep/prune": "1.1.0",
|
|
27
27
|
"on-finished": "2.4.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@darksheep/json-schema": "",
|
|
31
|
-
"@darksheep/logger": "1.
|
|
31
|
+
"@darksheep/logger": "1.3.0",
|
|
32
32
|
"@types/express": "~5.0.0",
|
|
33
33
|
"@types/on-finished": "^2",
|
|
34
34
|
"express": "~5.1.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@darksheep/json-schema": "",
|
|
38
|
-
"@darksheep/logger": "
|
|
38
|
+
"@darksheep/logger": ">=1.0.10",
|
|
39
39
|
"express": "~4.21.2 || ~5"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
@@ -47,6 +47,6 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"node": "^20.13.1 ||
|
|
50
|
+
"node": "^20.13.1 || >=22.2.0"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -11,7 +11,7 @@ import { createContentTypeMiddleware, unsupportedMediaType } from './middleware.
|
|
|
11
11
|
* @returns {Router}
|
|
12
12
|
*/
|
|
13
13
|
export function createContentTypeRouter(contentTypeRoutes) {
|
|
14
|
-
const router = Router({ strict: true });
|
|
14
|
+
const router = Router({ strict: true, mergeParams: true });
|
|
15
15
|
|
|
16
16
|
for (const [ contentType, route ] of Object.entries(contentTypeRoutes)) {
|
|
17
17
|
router.all(
|