@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 +16 -0
- package/README.md +1 -1
- package/dist/services/customer-config/templates/config_dynamicBlocks.es6.hbs +1 -0
- package/dist/services/customer-config/templates/config_dynamicStyles.css.hbs +1 -2
- package/dist/services/onboarding/fetch-events/customer-domain-document-response.js +3 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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
|
@@ -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
|
-
|
|
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;
|
package/oclif.manifest.json
CHANGED