@speedkit/cli 3.15.2 → 3.16.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
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [3.16.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.15.2...v3.16.0) (2025-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **customer-config:** add rejection for non-ssr documents ([ed22d78](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/ed22d780ac5eaadd1c7cbbc16a0e8746f05a7bb3))
|
|
7
|
+
* **customer-config:** remove non-ssr rejection ([42f5882](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/42f5882c9c86a7713d9bf4cf011252499e397cd7))
|
|
8
|
+
|
|
1
9
|
## [3.15.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.15.1...v3.15.2) (2025-11-14)
|
|
2
10
|
|
|
3
11
|
|
package/README.md
CHANGED
|
@@ -98,6 +98,7 @@ const config = {
|
|
|
98
98
|
{{/if}}
|
|
99
99
|
{{#if addSSR}}
|
|
100
100
|
// SSR specific:
|
|
101
|
+
if (!isPreRendered(document)) return;
|
|
101
102
|
createPreloadsForInnerStyleLinks(document);
|
|
102
103
|
removeInnerScriptNodes(document);
|
|
103
104
|
assignDynamicStylesToShadowDom(document);
|
|
@@ -240,6 +241,15 @@ export const post = async (db, req, res) => {
|
|
|
240
241
|
document.querySelector("body").prepend(customContainer);
|
|
241
242
|
}
|
|
242
243
|
|
|
244
|
+
/**
|
|
245
|
+
* Checks if the document is pre-rendered.
|
|
246
|
+
*
|
|
247
|
+
* @param document
|
|
248
|
+
*/
|
|
249
|
+
function isPreRendered(document) {
|
|
250
|
+
return !!document.querySelector("html.speed-kit-pre-rendered");
|
|
251
|
+
}
|
|
252
|
+
|
|
243
253
|
/**
|
|
244
254
|
* Creates preloads for inner style links in the given document.
|
|
245
255
|
*
|
package/oclif.manifest.json
CHANGED