@podium/podlet 5.0.7 → 5.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 +12 -0
- package/lib/podlet.js +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [5.1.0](https://github.com/podium-lib/podlet/compare/v5.0.7...v5.1.0) (2024-04-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* pass res.locals to HttpIncoming constructor ([f9b6336](https://github.com/podium-lib/podlet/commit/f9b63360921d2ca045ddd3379ece9d67edac63ef))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* pass a new res.locals.params object to http-incoming ([b9ef277](https://github.com/podium-lib/podlet/commit/b9ef2778e4e5b68d93c2bc8d3825a0d14b3a5d0a))
|
|
12
|
+
|
|
1
13
|
## [5.0.7](https://github.com/podium-lib/podlet/compare/v5.0.6...v5.0.7) (2024-04-08)
|
|
2
14
|
|
|
3
15
|
|
package/lib/podlet.js
CHANGED
|
@@ -903,7 +903,7 @@ export default class PodiumPodlet {
|
|
|
903
903
|
*/
|
|
904
904
|
middleware() {
|
|
905
905
|
return async (req, res, next) => {
|
|
906
|
-
const incoming = new HttpIncoming(req, res);
|
|
906
|
+
const incoming = new HttpIncoming(req, res, res.locals);
|
|
907
907
|
// @ts-ignore
|
|
908
908
|
incoming.url = new URL(
|
|
909
909
|
req.originalUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podium/podlet",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Module for building page fragment servers in a micro frontend architecture.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"eslint-plugin-import": "2.29.1",
|
|
55
55
|
"eslint-plugin-prettier": "5.1.3",
|
|
56
56
|
"express": "4.19.2",
|
|
57
|
+
"json-stringify-safe": "5.0.1",
|
|
57
58
|
"prettier": "3.2.4",
|
|
58
59
|
"semantic-release": "23.0.6",
|
|
59
60
|
"tap": "18.7.2",
|