@podium/podlet 5.0.1 → 5.0.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 +7 -0
- package/lib/podlet.js +2 -2
- package/package.json +2 -2
- package/types/podlet.d.ts +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [5.0.2](https://github.com/podium-lib/podlet/compare/v5.0.1...v5.0.2) (2023-12-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Pass podlet name to proxy ([190eddd](https://github.com/podium-lib/podlet/commit/190eddd4c017c0da5d6c8206a015419d77ac395c))
|
|
7
|
+
|
|
1
8
|
## [5.0.1](https://github.com/podium-lib/podlet/compare/v5.0.0...v5.0.1) (2023-12-06)
|
|
2
9
|
|
|
3
10
|
|
package/lib/podlet.js
CHANGED
|
@@ -47,7 +47,7 @@ const { template } = utils;
|
|
|
47
47
|
* @property {string} [fallback] - path where the podlet fallback HTML markup is served from (default '/fallback')
|
|
48
48
|
* @property {boolean} [development] - a boolean flag that, when true, enables additional development setup (default false)
|
|
49
49
|
* @property {Console | AbsLogger} [logger] - a logger to use when provided. Can be the console object if console logging is desired but can also be any Log4j compatible logging object as well. Nothing is logged if no logger is provided. (default null)
|
|
50
|
-
* @property {import("@podium/proxy").PodiumProxyOptions} proxy - options that can be provided to configure the @podium/proxy instance used by the podlet. See that module for details.
|
|
50
|
+
* @property {import("@podium/proxy").default.PodiumProxyOptions} proxy - options that can be provided to configure the @podium/proxy instance used by the podlet. See that module for details.
|
|
51
51
|
*
|
|
52
52
|
* @typedef {{ debug: 'true' | 'false', locale: string, deviceType: string, requestedBy: string, mountOrigin: string, mountPathname: string, publicPathname: string }} PodletContext
|
|
53
53
|
* @typedef {{ as?: string | false | null, crossorigin?: string | null | boolean, disabled?: boolean | '' | null, hreflang?: string | false | null, title?: string | false | null, media?: string | false | null, rel?: string | false | null, type?: string | false | null, value: string | false | null, data?: Array<{ key: string; value: string }>, strategy?: "beforeInteractive" | "afterInteractive" | "lazy", scope?: "content" | "fallback" | "all", [key: string]: any }} AssetCssLike
|
|
@@ -684,7 +684,7 @@ export default class PodiumPodlet {
|
|
|
684
684
|
|
|
685
685
|
if (this.development) {
|
|
686
686
|
// @ts-ignore
|
|
687
|
-
this.httpProxy.register(this.toJSON());
|
|
687
|
+
this.httpProxy.register(this.name, this.toJSON());
|
|
688
688
|
}
|
|
689
689
|
|
|
690
690
|
return target;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podium/podlet",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Module for building page fragment servers in a micro frontend architecture.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@metrics/client": "2.5.2",
|
|
34
|
-
"@podium/proxy": "5.0.
|
|
34
|
+
"@podium/proxy": "5.0.2",
|
|
35
35
|
"@podium/schemas": "5.0.0",
|
|
36
36
|
"@podium/utils": "5.0.0",
|
|
37
37
|
"abslog": "2.4.0",
|
package/types/podlet.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @property {string} [fallback] - path where the podlet fallback HTML markup is served from (default '/fallback')
|
|
12
12
|
* @property {boolean} [development] - a boolean flag that, when true, enables additional development setup (default false)
|
|
13
13
|
* @property {Console | AbsLogger} [logger] - a logger to use when provided. Can be the console object if console logging is desired but can also be any Log4j compatible logging object as well. Nothing is logged if no logger is provided. (default null)
|
|
14
|
-
* @property {import("@podium/proxy").PodiumProxyOptions} proxy - options that can be provided to configure the @podium/proxy instance used by the podlet. See that module for details.
|
|
14
|
+
* @property {import("@podium/proxy").default.PodiumProxyOptions} proxy - options that can be provided to configure the @podium/proxy instance used by the podlet. See that module for details.
|
|
15
15
|
*
|
|
16
16
|
* @typedef {{ debug: 'true' | 'false', locale: string, deviceType: string, requestedBy: string, mountOrigin: string, mountPathname: string, publicPathname: string }} PodletContext
|
|
17
17
|
* @typedef {{ as?: string | false | null, crossorigin?: string | null | boolean, disabled?: boolean | '' | null, hreflang?: string | false | null, title?: string | false | null, media?: string | false | null, rel?: string | false | null, type?: string | false | null, value: string | false | null, data?: Array<{ key: string; value: string }>, strategy?: "beforeInteractive" | "afterInteractive" | "lazy", scope?: "content" | "fallback" | "all", [key: string]: any }} AssetCssLike
|
|
@@ -105,7 +105,7 @@ export default class PodiumPodlet {
|
|
|
105
105
|
* An instance of the `@podium/proxy` module
|
|
106
106
|
* @see https://github.com/podium-lib/proxy
|
|
107
107
|
*/
|
|
108
|
-
httpProxy:
|
|
108
|
+
httpProxy: Proxy;
|
|
109
109
|
/**
|
|
110
110
|
* The pathname for the manifest of the podlet. Defaults to /manifest.json. (set in the constructor)
|
|
111
111
|
* The value should be relative to the value set on the pathname argument.
|
|
@@ -603,7 +603,7 @@ export type PodletOptions = {
|
|
|
603
603
|
/**
|
|
604
604
|
* - options that can be provided to configure the
|
|
605
605
|
*/
|
|
606
|
-
proxy: import("@podium/proxy").PodiumProxyOptions;
|
|
606
|
+
proxy: import("@podium/proxy").default.PodiumProxyOptions;
|
|
607
607
|
};
|
|
608
608
|
export type PodletContext = {
|
|
609
609
|
debug: 'true' | 'false';
|
|
@@ -649,6 +649,7 @@ export type AssetJsLike = {
|
|
|
649
649
|
strategy?: "beforeInteractive" | "afterInteractive" | "lazy";
|
|
650
650
|
scope?: "content" | "fallback" | "all";
|
|
651
651
|
};
|
|
652
|
+
import Proxy from '@podium/proxy';
|
|
652
653
|
import { AssetCss } from '@podium/utils';
|
|
653
654
|
import { AssetJs } from '@podium/utils';
|
|
654
655
|
import Metrics from '@metrics/client';
|