@podium/podlet 5.3.4 → 5.4.1

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,17 @@
1
+ ## [5.4.1](https://github.com/podium-lib/podlet/compare/v5.4.0...v5.4.1) (2026-04-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @podium/proxy to v5.0.36 ([#488](https://github.com/podium-lib/podlet/issues/488)) ([e1980b3](https://github.com/podium-lib/podlet/commit/e1980b37183389df63622a7dfcfb53ce25c1eac4))
7
+
8
+ # [5.4.0](https://github.com/podium-lib/podlet/compare/v5.3.4...v5.4.0) (2026-04-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * add support for fetchpriority in podlet assets ([#487](https://github.com/podium-lib/podlet/issues/487)) ([11a85e5](https://github.com/podium-lib/podlet/commit/11a85e57293e4fb4a4bd2cc5dc792a4131bd0f3b))
14
+
1
15
  ## [5.3.4](https://github.com/podium-lib/podlet/compare/v5.3.3...v5.3.4) (2026-02-16)
2
16
 
3
17
 
package/lib/podlet.js CHANGED
@@ -49,8 +49,8 @@ const { template } = utils;
49
49
  * @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
50
  *
51
51
  * @typedef {{ debug: 'true' | 'false', locale: string, deviceType: string, requestedBy: string, mountOrigin: string, mountPathname: string, publicPathname: string }} PodletContext
52
- * @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, strategy?: "beforeInteractive" | "afterInteractive" | "lazy" | "shadow-dom", scope?: "content" | "fallback" | "all", [key: string]: any }} AssetCssLike
53
- * @typedef {{ value: string | null, crossorigin?: string | null | boolean, type?: string | null | false, integrity?: string | null | false, referrerpolicy?: string | null | false, nomodule?: boolean | null | '', async?: boolean | null | '', defer?: boolean | null | '', data?: {[key: string]: string} | Array<{ key: string; value: string }>, strategy?: "beforeInteractive" | "afterInteractive" | "lazy" | "shadow-dom", scope?: "content" | "fallback" | "all" | "shadow-dom", [key: string]: any }} AssetJsLike
52
+ * @typedef {{ as?: string | false | null, crossorigin?: string | null | boolean, disabled?: boolean | '' | null, fetchpriority?: string | 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, strategy?: "beforeInteractive" | "afterInteractive" | "lazy" | "shadow-dom", scope?: "content" | "fallback" | "all", [key: string]: any }} AssetCssLike
53
+ * @typedef {{ value: string | null, crossorigin?: string | null | boolean, fetchpriority?: string | null, type?: string | null | false, integrity?: string | null | false, referrerpolicy?: string | null | false, nomodule?: boolean | null | '', async?: boolean | null | '', defer?: boolean | null | '', data?: {[key: string]: string} | Array<{ key: string; value: string }>, strategy?: "beforeInteractive" | "afterInteractive" | "lazy" | "shadow-dom", scope?: "content" | "fallback" | "all" | "shadow-dom", [key: string]: any }} AssetJsLike
54
54
  */
55
55
 
56
56
  export default class PodiumPodlet {
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
1
  {
2
- "name": "@podium/podlet",
3
- "version": "5.3.4",
4
- "type": "module",
5
- "description": "Module for building page fragment servers in a micro frontend architecture.",
6
- "license": "MIT",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/podium-lib/podlet"
10
- },
11
- "bugs": {
12
- "url": "https://github.com/podium-lib/issues"
13
- },
14
- "homepage": "https://podium-lib.io/",
15
- "files": [
16
- "package.json",
17
- "CHANGELOG.md",
18
- "README.md",
19
- "LICENSE",
20
- "dist",
21
- "lib",
22
- "types"
23
- ],
24
- "main": "./lib/podlet.js",
25
- "types": "./types/podlet.d.ts",
26
- "scripts": {
27
- "lint": "eslint .",
28
- "lint:fix": "eslint --fix .",
29
- "test": "tap --disable-coverage --allow-empty-coverage",
30
- "types": "run-s types:tsc types:fixup types:test",
31
- "types:tsc": "tsc --declaration --emitDeclarationOnly",
32
- "types:test": "tsc --project tsconfig.test.json",
33
- "types:fixup": "node ./fixup.js"
34
- },
35
- "dependencies": {
36
- "@metrics/client": "2.5.5",
37
- "@podium/schemas": "5.1.2",
38
- "@podium/proxy": "5.0.35",
39
- "@podium/utils": "5.5.0",
40
- "abslog": "2.4.4",
41
- "ajv": "8.18.0",
42
- "objobj": "1.0.0"
43
- },
44
- "devDependencies": {
45
- "@podium/eslint-config": "1.0.19",
46
- "@podium/semantic-release-config": "2.0.7",
47
- "@podium/test-utils": "3.0.23",
48
- "@podium/typescript-config": "1.0.0",
49
- "@types/node": "24.10.9",
50
- "@types/readable-stream": "4.0.21",
51
- "eslint": "9.39.1",
52
- "express": "5.2.1",
53
- "json-stringify-safe": "5.0.1",
54
- "npm-run-all2": "8.0.4",
55
- "prettier": "3.7.3",
56
- "semantic-release": "25.0.2",
57
- "tap": "21.5.0",
58
- "typescript": "5.9.3",
59
- "undici": "7.16.0"
60
- }
2
+ "name": "@podium/podlet",
3
+ "version": "5.4.1",
4
+ "type": "module",
5
+ "description": "Module for building page fragment servers in a micro frontend architecture.",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/podium-lib/podlet"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/podium-lib/issues"
13
+ },
14
+ "homepage": "https://podium-lib.io/",
15
+ "files": [
16
+ "package.json",
17
+ "CHANGELOG.md",
18
+ "README.md",
19
+ "LICENSE",
20
+ "dist",
21
+ "lib",
22
+ "types"
23
+ ],
24
+ "main": "./lib/podlet.js",
25
+ "types": "./types/podlet.d.ts",
26
+ "scripts": {
27
+ "lint": "eslint .",
28
+ "lint:fix": "eslint --fix .",
29
+ "test": "tap --disable-coverage --allow-empty-coverage",
30
+ "types": "run-s types:tsc types:fixup types:test",
31
+ "types:tsc": "tsc --declaration --emitDeclarationOnly",
32
+ "types:test": "tsc --project tsconfig.test.json",
33
+ "types:fixup": "node ./fixup.js"
34
+ },
35
+ "dependencies": {
36
+ "@metrics/client": "2.5.5",
37
+ "@podium/schemas": "5.2.0",
38
+ "@podium/proxy": "5.0.36",
39
+ "@podium/utils": "5.6.0",
40
+ "abslog": "2.4.4",
41
+ "ajv": "8.18.0",
42
+ "objobj": "1.0.0"
43
+ },
44
+ "devDependencies": {
45
+ "@podium/eslint-config": "2.0.2",
46
+ "@podium/semantic-release-config": "2.0.7",
47
+ "@podium/test-utils": "3.0.25",
48
+ "@podium/typescript-config": "1.0.1",
49
+ "@types/node": "24.10.9",
50
+ "@types/readable-stream": "4.0.23",
51
+ "eslint": "9.39.1",
52
+ "express": "5.2.1",
53
+ "json-stringify-safe": "5.0.1",
54
+ "npm-run-all2": "8.0.4",
55
+ "prettier": "3.7.3",
56
+ "semantic-release": "25.0.2",
57
+ "tap": "21.5.0",
58
+ "typescript": "5.9.3",
59
+ "undici": "7.24.0"
60
+ }
61
61
  }
package/types/podlet.d.ts CHANGED
@@ -85,8 +85,8 @@ declare global {
85
85
  * @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.
86
86
  *
87
87
  * @typedef {{ debug: 'true' | 'false', locale: string, deviceType: string, requestedBy: string, mountOrigin: string, mountPathname: string, publicPathname: string }} PodletContext
88
- * @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, strategy?: "beforeInteractive" | "afterInteractive" | "lazy" | "shadow-dom", scope?: "content" | "fallback" | "all", [key: string]: any }} AssetCssLike
89
- * @typedef {{ value: string | null, crossorigin?: string | null | boolean, type?: string | null | false, integrity?: string | null | false, referrerpolicy?: string | null | false, nomodule?: boolean | null | '', async?: boolean | null | '', defer?: boolean | null | '', data?: {[key: string]: string} | Array<{ key: string; value: string }>, strategy?: "beforeInteractive" | "afterInteractive" | "lazy" | "shadow-dom", scope?: "content" | "fallback" | "all" | "shadow-dom", [key: string]: any }} AssetJsLike
88
+ * @typedef {{ as?: string | false | null, crossorigin?: string | null | boolean, disabled?: boolean | '' | null, fetchpriority?: string | 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, strategy?: "beforeInteractive" | "afterInteractive" | "lazy" | "shadow-dom", scope?: "content" | "fallback" | "all", [key: string]: any }} AssetCssLike
89
+ * @typedef {{ value: string | null, crossorigin?: string | null | boolean, fetchpriority?: string | null, type?: string | null | false, integrity?: string | null | false, referrerpolicy?: string | null | false, nomodule?: boolean | null | '', async?: boolean | null | '', defer?: boolean | null | '', data?: {[key: string]: string} | Array<{ key: string; value: string }>, strategy?: "beforeInteractive" | "afterInteractive" | "lazy" | "shadow-dom", scope?: "content" | "fallback" | "all" | "shadow-dom", [key: string]: any }} AssetJsLike
90
90
  */
91
91
  export default class PodiumPodlet {
92
92
  /**
@@ -695,6 +695,7 @@ export type AssetCssLike = {
695
695
  as?: string | false | null;
696
696
  crossorigin?: string | null | boolean;
697
697
  disabled?: boolean | "" | null;
698
+ fetchpriority?: string | null;
698
699
  hreflang?: string | false | null;
699
700
  title?: string | false | null;
700
701
  media?: string | false | null;
@@ -708,6 +709,7 @@ export type AssetCssLike = {
708
709
  export type AssetJsLike = {
709
710
  value: string | null;
710
711
  crossorigin?: string | null | boolean;
712
+ fetchpriority?: string | null;
711
713
  type?: string | null | false;
712
714
  integrity?: string | null | false;
713
715
  referrerpolicy?: string | null | false;