@sitecore-jss/sitecore-jss-rendering-host 22.9.0-canary.4 → 22.9.0-canary.9

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.
@@ -60,7 +60,7 @@ function startDevServer({ port = 0, tunnelUrl, configFactory, buildArtifactsPath
60
60
  // timeout while the WDS server is busy compiling.
61
61
  // Therefore, attach a custom plugin to the `done` hook of the last compiler that is defined. Webpack
62
62
  // executes compilers serially, and we only want the plugin to run after everything is done.
63
- if (urlToOpenOnStart) {
63
+ if (urlToOpenOnStart && compiler) {
64
64
  let browserOpened = false;
65
65
  compiler.compilers[compiler.compilers.length - 1].hooks.done.tap('OpenBrowserAfterCompilationPlugin', (stats) => {
66
66
  if (!browserOpened) {
@@ -129,7 +129,7 @@ function startDevServer({ port = 0, tunnelUrl, configFactory, buildArtifactsPath
129
129
  if (clean) {
130
130
  const cleanPaths = [`${path_1.default.join(buildArtifactsPath, '**')}`, `!${buildArtifactsPath}`];
131
131
  console.log('cleaning paths', cleanPaths);
132
- const cleanedPaths = (0, del_1.sync)(cleanPaths);
132
+ const cleanedPaths = (0, del_1.deleteSync)(cleanPaths);
133
133
  console.log('cleaned paths', cleanedPaths);
134
134
  }
135
135
  // Give devs a chance to modify serverOptions and/or the compiler before creating the WDS instance.
@@ -1,4 +1,4 @@
1
- import { sync as delSync } from 'del';
1
+ import { deleteSync as delSync } from 'del';
2
2
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3
3
  // @ts-ignore
4
4
  import openBrowser from 'opn';
@@ -54,7 +54,7 @@ export function startDevServer({ port = 0, tunnelUrl, configFactory, buildArtifa
54
54
  // timeout while the WDS server is busy compiling.
55
55
  // Therefore, attach a custom plugin to the `done` hook of the last compiler that is defined. Webpack
56
56
  // executes compilers serially, and we only want the plugin to run after everything is done.
57
- if (urlToOpenOnStart) {
57
+ if (urlToOpenOnStart && compiler) {
58
58
  let browserOpened = false;
59
59
  compiler.compilers[compiler.compilers.length - 1].hooks.done.tap('OpenBrowserAfterCompilationPlugin', (stats) => {
60
60
  if (!browserOpened) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-rendering-host",
3
- "version": "22.9.0-canary.4",
3
+ "version": "22.9.0-canary.9",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -26,20 +26,20 @@
26
26
  "url": "https://github.com/sitecore/jss/issues"
27
27
  },
28
28
  "dependencies": {
29
- "compression": "^1.7.4",
30
- "del": "^6.1.1",
31
- "express": "^4.18.2",
32
- "import-fresh": "^3.3.0",
29
+ "compression": "^1.8.1",
30
+ "del": "^8.0.0",
31
+ "express": "^5.1.0",
32
+ "import-fresh": "^3.3.1",
33
33
  "ngrok": "^4.3.3",
34
34
  "opn": "^6.0.0",
35
- "webpack": "5.76.2"
35
+ "webpack": "5.101.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/chai": "^4.2.3",
39
- "@types/compression": "^1.7.2",
40
- "@types/express-serve-static-core": "^4.17.33",
39
+ "@types/compression": "^1.8.1",
40
+ "@types/express-serve-static-core": "^5.0.7",
41
41
  "@types/glob": "^8.0.1",
42
- "@types/mocha": "^10.0.1",
42
+ "@types/mocha": "^10.0.10",
43
43
  "@types/node": "^22.9.0",
44
44
  "@types/webpack": "5.28.5",
45
45
  "@types/webpack-dev-middleware": "2.0.5",
@@ -48,10 +48,10 @@
48
48
  "del-cli": "^5.0.0",
49
49
  "eslint": "^8.56.0",
50
50
  "eslint-plugin-jsdoc": "48.7.0",
51
- "mocha": "^10.2.0",
52
- "nyc": "^15.1.0",
51
+ "mocha": "^11.7.0",
52
+ "nyc": "^17.1.0",
53
53
  "ts-node": "^10.9.1",
54
- "typescript": "~5.6.3"
54
+ "typescript": "~5.9.2"
55
55
  },
56
56
  "description": "",
57
57
  "types": "types/index.d.ts",
@@ -67,5 +67,5 @@
67
67
  "types",
68
68
  "/global.d.ts"
69
69
  ],
70
- "gitHead": "842b72c250905314e45b8b1387407fd1efe1b241"
70
+ "gitHead": "0a43b0e00378ba1dcfeb30c18971d98da017fe0a"
71
71
  }