@speedkit/cli 4.41.0 → 4.41.2
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 +14 -0
- package/dist/commands/generate-pop-config.js +8 -1
- package/dist/services/onboarding/onboarding-model.js +6 -0
- package/dist/services/onboarding/spec/onboarding-model.spec.js +17 -0
- package/dist/templates/speedKit.Revalidated.js +1 -5
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [4.41.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.41.1...v4.41.2) (2026-10-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* wrong template escape for generate-pop-config ([c0689e1](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/c0689e1af52e16e40065a5bafbcc1735c498b79d))
|
|
7
|
+
|
|
8
|
+
## [4.41.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.41.0...v4.41.1) (2026-10-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **onboarding:** keep the debugging pipe when a debug port is set ([df363cc](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/df363cc7339465a3072168d4b04c6f7bd4d6b859))
|
|
14
|
+
|
|
1
15
|
# [4.41.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.40.0...v4.41.0) (2026-10-05)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -129,7 +129,14 @@ export default class GeneratePopConfig extends SkCommand {
|
|
|
129
129
|
const revalidationTemplate = await readFile(path.resolve(__dirname, "../templates/speedKit.Revalidated.js"), "utf-8");
|
|
130
130
|
const pops = await readFile(path.resolve(__dirname, "../templates/pops.js"), "utf-8");
|
|
131
131
|
popConfig = pops + popConfig;
|
|
132
|
-
|
|
132
|
+
// Inside a comment so that a formatter leaves it alone: as a bare
|
|
133
|
+
// `{{config}}` it was once reformatted into a block statement, and the
|
|
134
|
+
// module was generated without any PoPs.
|
|
135
|
+
const placeholder = "/* {{config}} */";
|
|
136
|
+
if (!revalidationTemplate.includes(placeholder)) {
|
|
137
|
+
this.error(`speedKit.Revalidated.js template lacks ${placeholder}`);
|
|
138
|
+
}
|
|
139
|
+
return revalidationTemplate.replace(placeholder, () => popConfig);
|
|
133
140
|
}
|
|
134
141
|
async deployPrewarmingConfig(app, config, deploy) {
|
|
135
142
|
const moduleName = "speedKit.Revalidated";
|
|
@@ -163,6 +163,12 @@ export class BrowserContext {
|
|
|
163
163
|
const args = [];
|
|
164
164
|
if (this.debuggingPort || this.headless) {
|
|
165
165
|
args.push(`--remote-debugging-port=${this.debugPort}`);
|
|
166
|
+
// Puppeteer adds the pipe switch for `pipe: true` only when no other
|
|
167
|
+
// `--remote-debugging-*` switch is present, and it refuses
|
|
168
|
+
// `enableExtensions` without the switch. The port above suppresses it.
|
|
169
|
+
if (this.environment?.settings.chromeExtensionPaths) {
|
|
170
|
+
args.push("--remote-debugging-pipe");
|
|
171
|
+
}
|
|
166
172
|
}
|
|
167
173
|
return args;
|
|
168
174
|
}
|
|
@@ -181,6 +181,23 @@ describe("BrowserContext launch options", () => {
|
|
|
181
181
|
expect(options.args.filter((arg) => /extension/.test(arg))).to.deep.equal([]);
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
+
it("keeps the pipe next to a debugging port", () => {
|
|
185
|
+
const withExtensions = {
|
|
186
|
+
settings: {
|
|
187
|
+
...environment.settings,
|
|
188
|
+
chromeExtensionPaths: "/ext/devtools",
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
for (const [debuggingPort, headless] of [
|
|
192
|
+
[true, false],
|
|
193
|
+
[false, true],
|
|
194
|
+
[true, true],
|
|
195
|
+
]) {
|
|
196
|
+
const { args } = new BrowserContext("example.com", "Google Chrome for Testing 154.0.8037.57", [], withExtensions, undefined, debuggingPort, headless, 9333).getPuppeteerLaunchOptions();
|
|
197
|
+
expect(args).to.include("--remote-debugging-port=9333");
|
|
198
|
+
expect(args).to.include("--remote-debugging-pipe");
|
|
199
|
+
}
|
|
200
|
+
});
|
|
184
201
|
it("launches without extensions when none are configured", () => {
|
|
185
202
|
const options = newContext(false).getPuppeteerLaunchOptions();
|
|
186
203
|
expect(options.enableExtensions).to.equal(undefined);
|
|
@@ -5,11 +5,7 @@ const https = require("node:https");
|
|
|
5
5
|
|
|
6
6
|
const agent = new https.Agent({ rejectUnauthorized: false });
|
|
7
7
|
|
|
8
|
-
{
|
|
9
|
-
{
|
|
10
|
-
config;
|
|
11
|
-
}
|
|
12
|
-
} // eslint-disable-line
|
|
8
|
+
/* {{config}} */ // eslint-disable-line
|
|
13
9
|
|
|
14
10
|
const ORIGIN_PATHS = Object.keys(ORIGIN_POPS).filter((origin) =>
|
|
15
11
|
origin.endsWith("/"),
|
package/oclif.manifest.json
CHANGED