@speedkit/cli 4.44.0-beta.2 → 4.44.0-beta.4
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 +15 -0
- package/dist/services/bundler/bundle-service.d.ts +2 -2
- package/dist/services/bundler/bundle-service.js +2 -2
- package/dist/services/bundler/packjockel-service.d.ts +1 -1
- package/dist/services/bundler/packjockel-service.js +1 -1
- package/dist/services/document-handler-runtime/document-handler-server.d.ts +2 -2
- package/dist/services/document-handler-runtime/document-handler-server.js +2 -2
- package/dist/services/integration-api/spec/speed-kit-config-file.spec.js +2 -2
- package/dist/services/integration-api/struct/customer-config.d.ts +6 -6
- package/dist/services/integration-api/struct/customer-config.js +5 -5
- package/dist/services/integration-api/struct/speed-kit-config-file.d.ts +1 -1
- package/dist/services/integration-api/struct/speed-kit-config-file.js +2 -2
- package/dist/services/onboarding/config-renderer/speed-kit-install-context.js +5 -0
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [4.44.0-beta.4](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.44.0-beta.3...v4.44.0-beta.4) (2026-10-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **bundler:** run packjockel 3.1.0 for the bare document-handler import ([b3771ea](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/b3771ea5551fb812cda2689bb2be8b752de69a27))
|
|
7
|
+
* **onboarding:** set the app on SpeedKit.config like the install script of the server ([89e6073](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/89e6073933a1ff081a8918eec75d8c7f8c512e26))
|
|
8
|
+
|
|
9
|
+
# [4.44.0-beta.3](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.44.0-beta.2...v4.44.0-beta.3) (2026-10-12)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **integration-api:** name the feature flag enableSpeedKitConfigPlugins like the server ([23f5ffb](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/23f5ffb307aa1743f8434c7ad136a2bf251363e0))
|
|
15
|
+
|
|
1
16
|
# [4.44.0-beta.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.44.0-beta.1...v4.44.0-beta.2) (2026-10-09)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -12,11 +12,11 @@ export declare class BundleService {
|
|
|
12
12
|
private readonly packjockelService?;
|
|
13
13
|
/**
|
|
14
14
|
* @param moduleDiscoveryDir the directory bundled code resolves its own imports from
|
|
15
|
-
* @param packjockelService bundles instead of esbuild for customers with the `
|
|
15
|
+
* @param packjockelService bundles instead of esbuild for customers with the `enableSpeedKitConfigPlugins` feature
|
|
16
16
|
*/
|
|
17
17
|
constructor(moduleDiscoveryDir: string, packjockelService?: PackjockelService);
|
|
18
18
|
/**
|
|
19
|
-
* The packjockel bundler for customers with the `
|
|
19
|
+
* The packjockel bundler for customers with the `enableSpeedKitConfigPlugins` feature.
|
|
20
20
|
*
|
|
21
21
|
* @throws ApplicationError when the service was built without one
|
|
22
22
|
*/
|
|
@@ -13,14 +13,14 @@ export class BundleService {
|
|
|
13
13
|
packjockelService;
|
|
14
14
|
/**
|
|
15
15
|
* @param moduleDiscoveryDir the directory bundled code resolves its own imports from
|
|
16
|
-
* @param packjockelService bundles instead of esbuild for customers with the `
|
|
16
|
+
* @param packjockelService bundles instead of esbuild for customers with the `enableSpeedKitConfigPlugins` feature
|
|
17
17
|
*/
|
|
18
18
|
constructor(moduleDiscoveryDir, packjockelService) {
|
|
19
19
|
this.moduleDiscoveryDir = moduleDiscoveryDir;
|
|
20
20
|
this.packjockelService = packjockelService;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* The packjockel bundler for customers with the `
|
|
23
|
+
* The packjockel bundler for customers with the `enableSpeedKitConfigPlugins` feature.
|
|
24
24
|
*
|
|
25
25
|
* @throws ApplicationError when the service was built without one
|
|
26
26
|
*/
|
|
@@ -42,7 +42,7 @@ export declare class PackjockelService {
|
|
|
42
42
|
private readonly resolveBinary;
|
|
43
43
|
/**
|
|
44
44
|
* @param resolveBinary returns the packjockel binary; it runs only when a bundle is needed, so
|
|
45
|
-
* a platform without a packjockel package fails only for the `
|
|
45
|
+
* a platform without a packjockel package fails only for the `enableSpeedKitConfigPlugins` feature
|
|
46
46
|
*/
|
|
47
47
|
constructor(resolveBinary?: () => string);
|
|
48
48
|
/**
|
|
@@ -21,7 +21,7 @@ export class PackjockelService {
|
|
|
21
21
|
resolveBinary;
|
|
22
22
|
/**
|
|
23
23
|
* @param resolveBinary returns the packjockel binary; it runs only when a bundle is needed, so
|
|
24
|
-
* a platform without a packjockel package fails only for the `
|
|
24
|
+
* a platform without a packjockel package fails only for the `enableSpeedKitConfigPlugins` feature
|
|
25
25
|
*/
|
|
26
26
|
constructor(resolveBinary = binaryPath) {
|
|
27
27
|
this.resolveBinary = resolveBinary;
|
|
@@ -14,7 +14,7 @@ export declare class DocumentHandlerServer {
|
|
|
14
14
|
private documentHandlerCode;
|
|
15
15
|
private documentHandlerConfigCode;
|
|
16
16
|
/**
|
|
17
|
-
* The packjockel bundle for a customer with the `
|
|
17
|
+
* The packjockel bundle for a customer with the `enableSpeedKitConfigPlugins` feature: the handler, its config
|
|
18
18
|
* and the Speed Kit config in one CommonJS module, which exports `post`.
|
|
19
19
|
*/
|
|
20
20
|
private documentHandlerBundle?;
|
|
@@ -36,7 +36,7 @@ export declare class DocumentHandlerServer {
|
|
|
36
36
|
buildDocumentHandler(): Promise<void>;
|
|
37
37
|
/**
|
|
38
38
|
* Bundles the handler, its config and the Speed Kit config into one module, the way the server
|
|
39
|
-
* deploys a customer with the `
|
|
39
|
+
* deploys a customer with the `enableSpeedKitConfigPlugins` feature.
|
|
40
40
|
*/
|
|
41
41
|
private bundleWithPackjockel;
|
|
42
42
|
private deactivateReleaseAndDeploymentDetection;
|
|
@@ -27,7 +27,7 @@ export class DocumentHandlerServer {
|
|
|
27
27
|
documentHandlerCode;
|
|
28
28
|
documentHandlerConfigCode;
|
|
29
29
|
/**
|
|
30
|
-
* The packjockel bundle for a customer with the `
|
|
30
|
+
* The packjockel bundle for a customer with the `enableSpeedKitConfigPlugins` feature: the handler, its config
|
|
31
31
|
* and the Speed Kit config in one CommonJS module, which exports `post`.
|
|
32
32
|
*/
|
|
33
33
|
documentHandlerBundle;
|
|
@@ -136,7 +136,7 @@ export class DocumentHandlerServer {
|
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
138
|
* Bundles the handler, its config and the Speed Kit config into one module, the way the server
|
|
139
|
-
* deploys a customer with the `
|
|
139
|
+
* deploys a customer with the `enableSpeedKitConfigPlugins` feature.
|
|
140
140
|
*/
|
|
141
141
|
async bundleWithPackjockel() {
|
|
142
142
|
const customDocumentHandler = this.files.getByName(INTEGRATION_FILES.CUSTOM.DOCUMENT_HANDLER);
|
|
@@ -126,11 +126,11 @@ describe("SpeedKitConfigFile", () => {
|
|
|
126
126
|
expect(deployed).to.deep.equal(local);
|
|
127
127
|
expect(remote.getContent()).to.equal(source);
|
|
128
128
|
});
|
|
129
|
-
describe("with the
|
|
129
|
+
describe("with the enableSpeedKitConfigPlugins feature", () => {
|
|
130
130
|
const SOURCE = "window.speedKit = { split: 0.1 };";
|
|
131
131
|
const EMBEDDED = {
|
|
132
132
|
app: "shop-de",
|
|
133
|
-
features: {
|
|
133
|
+
features: { enableSpeedKitConfigPlugins: true },
|
|
134
134
|
configPluginsVersion: "@release",
|
|
135
135
|
};
|
|
136
136
|
function embeddedFile(bundled) {
|
|
@@ -8,7 +8,7 @@ export interface CustomerFeatures {
|
|
|
8
8
|
* embeds it into the document handler and the install script. The config
|
|
9
9
|
* writes `SpeedKit.config`.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
enableSpeedKitConfigPlugins?: boolean | null;
|
|
12
12
|
[feature: string]: unknown;
|
|
13
13
|
}
|
|
14
14
|
export interface CustomerConfigs {
|
|
@@ -36,19 +36,19 @@ export declare class CustomerConfig {
|
|
|
36
36
|
readonly needsCustomerApproval?: boolean;
|
|
37
37
|
readonly features?: CustomerFeatures;
|
|
38
38
|
/**
|
|
39
|
-
* The tag of Speed Kit (snippet, service worker, dynamic fetcher) for the `
|
|
39
|
+
* The tag of Speed Kit (snippet, service worker, dynamic fetcher) for the `enableSpeedKitConfigPlugins` feature: a
|
|
40
40
|
* version such as `2.22.4`, or a channel such as `@release`; `latest` when not set. This and the other
|
|
41
41
|
* tags are named like the client config keys of packjockel.
|
|
42
42
|
*/
|
|
43
43
|
readonly speedKitVersion?: string;
|
|
44
|
-
/** The tag of RUM for the `
|
|
44
|
+
/** The tag of RUM for the `enableSpeedKitConfigPlugins` feature, see {@link speedKitVersion}. */
|
|
45
45
|
readonly rumPluginVersion?: string;
|
|
46
|
-
/** The tag of predictive preloading for the `
|
|
46
|
+
/** The tag of predictive preloading for the `enableSpeedKitConfigPlugins` feature, see {@link speedKitVersion}. */
|
|
47
47
|
readonly ppVersion?: string;
|
|
48
|
-
/** The tag of the speed-kit-config plugins for the `
|
|
48
|
+
/** The tag of the speed-kit-config plugins for the `enableSpeedKitConfigPlugins` feature, see {@link speedKitVersion}. */
|
|
49
49
|
readonly configPluginsVersion?: string;
|
|
50
50
|
/**
|
|
51
|
-
* The tag of the published document handler for the `
|
|
51
|
+
* The tag of the published document handler for the `enableSpeedKitConfigPlugins` feature, see {@link speedKitVersion}.
|
|
52
52
|
* A `custom_documentHandler.js` replaces it.
|
|
53
53
|
*/
|
|
54
54
|
readonly documentHandlerVersion?: string;
|
|
@@ -20,19 +20,19 @@ export class CustomerConfig {
|
|
|
20
20
|
needsCustomerApproval;
|
|
21
21
|
features;
|
|
22
22
|
/**
|
|
23
|
-
* The tag of Speed Kit (snippet, service worker, dynamic fetcher) for the `
|
|
23
|
+
* The tag of Speed Kit (snippet, service worker, dynamic fetcher) for the `enableSpeedKitConfigPlugins` feature: a
|
|
24
24
|
* version such as `2.22.4`, or a channel such as `@release`; `latest` when not set. This and the other
|
|
25
25
|
* tags are named like the client config keys of packjockel.
|
|
26
26
|
*/
|
|
27
27
|
speedKitVersion;
|
|
28
|
-
/** The tag of RUM for the `
|
|
28
|
+
/** The tag of RUM for the `enableSpeedKitConfigPlugins` feature, see {@link speedKitVersion}. */
|
|
29
29
|
rumPluginVersion;
|
|
30
|
-
/** The tag of predictive preloading for the `
|
|
30
|
+
/** The tag of predictive preloading for the `enableSpeedKitConfigPlugins` feature, see {@link speedKitVersion}. */
|
|
31
31
|
ppVersion;
|
|
32
|
-
/** The tag of the speed-kit-config plugins for the `
|
|
32
|
+
/** The tag of the speed-kit-config plugins for the `enableSpeedKitConfigPlugins` feature, see {@link speedKitVersion}. */
|
|
33
33
|
configPluginsVersion;
|
|
34
34
|
/**
|
|
35
|
-
* The tag of the published document handler for the `
|
|
35
|
+
* The tag of the published document handler for the `enableSpeedKitConfigPlugins` feature, see {@link speedKitVersion}.
|
|
36
36
|
* A `custom_documentHandler.js` replaces it.
|
|
37
37
|
*/
|
|
38
38
|
documentHandlerVersion;
|
|
@@ -63,5 +63,5 @@ export declare class VirtualSpeedKitConfigFile extends SpeedKitConfigFile implem
|
|
|
63
63
|
delete(): Promise<void>;
|
|
64
64
|
onChange(): void;
|
|
65
65
|
}
|
|
66
|
-
/** The customer has the `
|
|
66
|
+
/** The customer has the `enableSpeedKitConfigPlugins` feature: packjockel bundles its config. */
|
|
67
67
|
export declare function usesConfigPlugins(customer: SpeedKitConfigCustomer): boolean;
|
|
@@ -218,9 +218,9 @@ function safeFileContentWrapper(fileContent) {
|
|
|
218
218
|
}
|
|
219
219
|
`;
|
|
220
220
|
}
|
|
221
|
-
/** The customer has the `
|
|
221
|
+
/** The customer has the `enableSpeedKitConfigPlugins` feature: packjockel bundles its config. */
|
|
222
222
|
export function usesConfigPlugins(customer) {
|
|
223
|
-
return customer.features?.
|
|
223
|
+
return customer.features?.enableSpeedKitConfigPlugins === true;
|
|
224
224
|
}
|
|
225
225
|
async function bundle(bundler, content, customer) {
|
|
226
226
|
if (!content) {
|
|
@@ -35,6 +35,11 @@ export class SpeedKitInstallContext {
|
|
|
35
35
|
const entryPoints = {
|
|
36
36
|
"rum.js": this.prepareConfigLoadHandler(),
|
|
37
37
|
"config.js": configJs,
|
|
38
|
+
// Like the install script of the server (packjockel!121), without skVersion and installationId:
|
|
39
|
+
// a local run has no installation.
|
|
40
|
+
...(configPlugins && {
|
|
41
|
+
"installation.js": "Object.assign(SpeedKit.config, { app: APP });",
|
|
42
|
+
}),
|
|
38
43
|
"loader.js": this.files
|
|
39
44
|
.getByName(INTEGRATION_FILES.CUSTOM.LOADER)
|
|
40
45
|
.getContent(),
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@speedkit/cli",
|
|
3
3
|
"description": "Speed Kit CLI",
|
|
4
|
-
"version": "4.44.0-beta.
|
|
4
|
+
"version": "4.44.0-beta.4",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Baqend.com",
|
|
7
7
|
"email": "info@baqend.com"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"@oclif/plugin-help": "^6.2.45",
|
|
111
111
|
"@oclif/plugin-not-found": "^3.2.81",
|
|
112
112
|
"@oclif/plugin-warn-if-update-available": "^3.1.61",
|
|
113
|
-
"@speedkit/packjockel": "3.
|
|
113
|
+
"@speedkit/packjockel": "3.1.0",
|
|
114
114
|
"@speedkit/rules": "^1.3.0-0",
|
|
115
115
|
"baqend": "^4.2.5",
|
|
116
116
|
"chalk": "^5.6.2",
|