@speedkit/cli 3.15.2 → 3.16.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,18 @@
1
+ ## [3.16.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.16.0...v3.16.1) (2025-11-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **wizard:** sk-config ([e8dd28e](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/e8dd28ef34b5060b518a6e0fd01b55600509a68b))
7
+
8
+ # [3.16.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.15.2...v3.16.0) (2025-11-19)
9
+
10
+
11
+ ### Features
12
+
13
+ * **customer-config:** add rejection for non-ssr documents ([ed22d78](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/ed22d780ac5eaadd1c7cbbc16a0e8746f05a7bb3))
14
+ * **customer-config:** remove non-ssr rejection ([42f5882](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/42f5882c9c86a7713d9bf4cf011252499e397cd7))
15
+
1
16
  ## [3.15.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.15.1...v3.15.2) (2025-11-14)
2
17
 
3
18
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/3.15.2 linux-x64 node-v20.19.5
24
+ @speedkit/cli/3.16.1 linux-x64 node-v20.19.5
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -95,11 +95,11 @@
95
95
  /^\/$/, // Home
96
96
 
97
97
  {{#if isShopify}}
98
- "/collections/", // Category & PLP
99
- "/products/", // PDP
98
+ /\/collections\//i, // Category & PLP
99
+ /\/products\//i, // PDP
100
100
  {{else}}
101
- "/c/", // Category & PLP
102
- "/p/", // PDP
101
+ /\/c\//, // Category & PLP
102
+ /\/p\//, // PDP
103
103
  {{/if}}
104
104
  ],
105
105
  },
@@ -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
  *
@@ -732,5 +732,5 @@
732
732
  ]
733
733
  }
734
734
  },
735
- "version": "3.15.2"
735
+ "version": "3.16.1"
736
736
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "3.15.2",
4
+ "version": "3.16.1",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"