@podium/podlet 5.0.3 → 5.0.4

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [5.0.4](https://github.com/podium-lib/podlet/compare/v5.0.3...v5.0.4) (2024-01-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * mark proxy as optional ([#367](https://github.com/podium-lib/podlet/issues/367)) ([8374810](https://github.com/podium-lib/podlet/commit/8374810ff88aadb5ed8a24b84836e8a82e0e0685))
7
+
1
8
  ## [5.0.3](https://github.com/podium-lib/podlet/compare/v5.0.2...v5.0.3) (2023-12-11)
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").default.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podium/podlet",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "type": "module",
5
5
  "description": "Module for building page fragment servers in a micro frontend architecture.",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "scripts": {
27
27
  "lint": "eslint .",
28
28
  "lint:fix": "eslint --fix .",
29
- "test": "tap --no-check-coverage",
29
+ "test": "tap --disable-coverage --allow-empty-coverage",
30
30
  "types": "tsc --declaration --emitDeclarationOnly && ./fixup.sh"
31
31
  },
32
32
  "dependencies": {
@@ -56,7 +56,7 @@
56
56
  "express": "4.18.2",
57
57
  "prettier": "3.1.0",
58
58
  "semantic-release": "22.0.8",
59
- "tap": "16.3.9",
60
- "typescript": "5.3.2"
59
+ "tap": "18.6.1",
60
+ "typescript": "5.3.3"
61
61
  }
62
62
  }
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").default.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
@@ -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").default.PodiumProxyOptions;
606
+ proxy?: import("@podium/proxy").default.PodiumProxyOptions;
607
607
  };
608
608
  export type PodletContext = {
609
609
  debug: 'true' | 'false';