mnfst 0.5.187 → 0.5.188
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.
|
@@ -128,7 +128,10 @@ window.ManifestComponentsLoader = {
|
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
130
|
const base = (typeof window.getManifestBase === 'function' ? window.getManifestBase() : '') || '/';
|
|
131
|
-
|
|
131
|
+
let url = path.startsWith('/') || path.startsWith('http') ? path : base + path;
|
|
132
|
+
// Version stamp (publish-injected `deployment`, or authored `version`) busts browser-cached component HTML
|
|
133
|
+
const stamp = registry.manifest.deployment || registry.manifest.version;
|
|
134
|
+
if (stamp) url += (url.includes('?') ? '&' : '?') + 'v=' + encodeURIComponent(String(stamp));
|
|
132
135
|
const promise = (async () => {
|
|
133
136
|
try {
|
|
134
137
|
const response = await fetch(url);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"manifest.color.js": "sha384-6Rv3LxyTcZNjrhtayQfqRdCx0uSZ4BiEbgEI98I62eTvp8Aw7LBIoNJ0Je1oktwL",
|
|
9
9
|
"manifest.colorpicker.js": "sha384-N5ezEwgKrDodV4YdURxhdyZKmg1n/QhqvmAC4SEG03mw1pEAZAA8Gphp+NLAOxts",
|
|
10
10
|
"manifest.combobox.js": "sha384-CqMe9F/Aw0fAwNCevlWOTOX+jl2yVz0zejztF97wvEu9uXH3zg2v87fceBlTXCq0",
|
|
11
|
-
"manifest.components.js": "sha384-
|
|
11
|
+
"manifest.components.js": "sha384-N9RY5uBUIULem7WT5/TRGxSXsrYr7gTZeaaOoS/+xYmvgdXmqpS4rJ+tqbcX2i++",
|
|
12
12
|
"manifest.data.js": "sha384-3lLvGnqcQr4Ium80MdaQTr8RytjVbs5rnxd0q41BF3ppcoQccMFAcvgFSyZP/0sl",
|
|
13
13
|
"manifest.datepicker.js": "sha384-52BBZdlLN+EATiUorwTEQOWGJZiSNu0voy9q+WQxxWpUeYsGGkuS0QPPXGx2akxG",
|
|
14
14
|
"manifest.dropdowns.js": "sha384-5NccbUMdqSi/T4+Z/rUBRZl/UVtW4pqvXxbNqKgyiR3LtyYsb0JQ12ZkjK0uq1p9",
|
package/lib/manifest.schema.json
CHANGED
|
@@ -75,6 +75,14 @@
|
|
|
75
75
|
"description": "Component HTML files registered as <x-name> tags.",
|
|
76
76
|
"items": { "type": "string" }
|
|
77
77
|
},
|
|
78
|
+
"version": {
|
|
79
|
+
"type": ["string", "number"],
|
|
80
|
+
"description": "Optional author-set release stamp. Appended as ?v= to component HTML fetches so browser caches bust on change. mnfst-publish injects a content-derived `deployment` stamp automatically, which takes precedence."
|
|
81
|
+
},
|
|
82
|
+
"deployment": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "Publish-injected content hash of the component files (set by mnfst-publish; not hand-authored). Appended as ?v= to component HTML fetches."
|
|
85
|
+
},
|
|
78
86
|
"preloadedComponents": {
|
|
79
87
|
"type": "array",
|
|
80
88
|
"description": "Components loaded eagerly on initial page load (header, logo, etc.).",
|