@speedkit/cli 3.14.0 → 3.15.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
+ ## [3.15.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.15.0...v3.15.1) (2025-11-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **wizard:** doc-handler-config ([609a840](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/609a8401885f2bb2c2f48feeb9ed6ff6d2a85ea7))
7
+
8
+ # [3.15.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.14.0...v3.15.0) (2025-11-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * enable font preloads from SSR ([804f066](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/804f066631288302c2e49eea2612c532adfa5920))
14
+
1
15
  # [3.14.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v3.13.1...v3.14.0) (2025-11-06)
2
16
 
3
17
 
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.14.0 linux-x64 node-v20.19.5
24
+ @speedkit/cli/3.15.1 linux-x64 node-v20.19.5
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -208,7 +208,7 @@ export const post = async (db, req, res) => {
208
208
  function injectServiceWorkerScript(document, searchedSwPath) {
209
209
  const swScript = document.createElement("script");
210
210
  swScript.setAttribute("id", "speed-kit-service-worker");
211
- swScript.type = 'text/javascript';
211
+ swScript.setAttribute("type", "text/javascript");
212
212
  swScript.innerHTML = `
213
213
  var serviceWorkerRegister = ServiceWorkerContainer.prototype.register;
214
214
  ServiceWorkerContainer.prototype.register = function (swPath, options) {
@@ -259,6 +259,11 @@ export const post = async (db, req, res) => {
259
259
  link.setAttribute("href", styleLink.getAttribute("href"));
260
260
  head.append(link);
261
261
  });
262
+
263
+ // preload fonts by moving font declarations from nested css to the head, as they are not supported in shadow doms
264
+ customShadowRoot.querySelectorAll(".speed-kit-font-face-preloads").forEach((fontFaceRules) => {
265
+ head.append(fontFaceRules);
266
+ });
262
267
  }
263
268
  }
264
269
 
@@ -732,5 +732,5 @@
732
732
  ]
733
733
  }
734
734
  },
735
- "version": "3.14.0"
735
+ "version": "3.15.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.14.0",
4
+ "version": "3.15.1",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"