@speedkit/cli 4.8.0 → 4.10.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,19 @@
1
+ # [4.10.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.9.0...v4.10.0) (2026-06-18)
2
+
3
+
4
+ ### Features
5
+
6
+ * **onboarding:** use nonce for install if present ([eb9de23](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/eb9de232b2b867e43f5d77ad6af3467b40eb51a7))
7
+
8
+ # [4.9.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.8.0...v4.9.0) (2026-06-13)
9
+
10
+
11
+ ### Features
12
+
13
+ * **onboarding:** add link[rel="alternate"] as default dynamic block entry ([51f7252](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/51f7252ec06862decdeffbdf55d7ee9647010023))
14
+ * **onboarding:** replace opacity with filter blend for disabled add2cart style ([c5cfddd](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/c5cfdddda57903c11b2ba7eac132b641df100b2d))
15
+ * **onboarding:** scope alternate dynamic block to hreflang with removeIfMissing/appendTo ([10a8db7](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/10a8db79e2a2dfa877e8d44b8b6682e70793553c))
16
+
1
17
  # [4.8.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.7.0...v4.8.0) (2026-06-02)
2
18
 
3
19
 
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/4.8.0 linux-x64 node-v22.22.3
24
+ @speedkit/cli/4.10.0 linux-x64 node-v22.22.3
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -95,6 +95,7 @@
95
95
 
96
96
  // default entries
97
97
  { selector: 'link[rel="canonical"]'},
98
+ { selector: 'link[rel="alternate"][hreflang]', idAttribute: "hreflang", removeIfMissing: true, appendTo: "head"},
98
99
  { selector: "meta[name]", idAttribute: "name"},
99
100
  { selector: 'meta[property]', idAttribute: "property"},
100
101
  { selector: 'script[type="application/ld+json"]'},
@@ -132,7 +132,6 @@ html > body {
132
132
  /* Disable Add2Cart: */
133
133
  .dummy-add2cart-class {
134
134
  pointer-events: none !important;
135
- opacity: 0.5 !important;
136
- filter: grayscale(1) !important;
135
+ filter: grayscale(1) contrast(0.333) brightness(1.5) !important; /* = grayscale + blending 50% with white */
137
136
  }
138
137
  }
@@ -144,14 +144,15 @@ export class CustomerDomainDocumentResponse {
144
144
  text = text.replace(SpeedKitInstallRegex, "");
145
145
  const matchOpeningHead = /<\s*head\b[^>]*>/;
146
146
  const matchClosingHead = /<\/\s*head\s*>/;
147
+ const nonceMatch = text.match(/<script\s(?:[^>]*?\s)?nonce\s*=\s*["']?([^\s"'>]*)/i);
147
148
  if (matchOpeningHead.test(text)) {
148
149
  return text.replace(matchOpeningHead, (head) => {
149
- return `${head}\n<script src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>`;
150
+ return `${head}\n<script ${nonceMatch ? 'nonce="' + nonceMatch[1] + '"' : ""} src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>`;
150
151
  });
151
152
  }
152
153
  if (matchClosingHead.test(text)) {
153
154
  return text.replace(matchClosingHead, (head) => {
154
- return `<script src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>${head}\n`;
155
+ return `<script ${nonceMatch ? 'nonce="' + nonceMatch[1] + '"' : ""} src="${this.customerConfig.installPath}" ${this.customerConfig.installParams}></script>${head}\n`;
155
156
  });
156
157
  }
157
158
  return text;
@@ -759,5 +759,5 @@
759
759
  ]
760
760
  }
761
761
  },
762
- "version": "4.8.0"
762
+ "version": "4.10.0"
763
763
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "4.8.0",
4
+ "version": "4.10.0",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"