@nordicsemiconductor/pc-nrfconnect-shared 232.0.0 → 233.0.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
@@ -7,6 +7,12 @@ This project does _not_ adhere to
7
7
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
8
8
  every new version is a new major version.
9
9
 
10
+ ## 233.0.0 - 2025-10-10
11
+
12
+ ### Changed
13
+
14
+ - Use correct Chrome version when building for the renderer process.
15
+
10
16
  ## 232.0.0 - 2025-10-10
11
17
 
12
18
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "232.0.0",
3
+ "version": "233.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
package/release_notes.md CHANGED
@@ -1,16 +1,3 @@
1
1
  ### Changed
2
2
 
3
- - Disabled deprecated `no-return-await` ESLint rule.
4
- - Changed `no-unused-vars` ESLint rule config so that only unused args and vars
5
- beginning with an underscore are allowed.
6
-
7
- ### Added
8
-
9
- - Functions `createDisposableTempDir` and `createDisposableTempFile` for use in
10
- the main process.
11
-
12
- ### Fixed
13
-
14
- - `nrfutil-core` is now directly installed with the requested version. Before
15
- the bootstrap-version was first installed, which can lead to problems, if the
16
- bootstrap-version does not run correctly.
3
+ - Use correct Chrome version when building for the renderer process.
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env tsx
2
+
3
+ /*
4
+ * Copyright (c) 2025 Nordic Semiconductor ASA
5
+ *
6
+ * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
7
+ */
8
+
9
+ import { execSync } from 'child_process';
10
+
11
+ import * as versions from './versions';
12
+
13
+ const main = async () => {
14
+ const npmLsElectronResult = execSync('npm ls electron --json', {
15
+ encoding: 'utf8',
16
+ });
17
+ const installedElectronVersion =
18
+ JSON.parse(npmLsElectronResult).dependencies.electron.version;
19
+
20
+ const electronReleases = await (
21
+ await fetch('https://releases.electronjs.org/releases.json')
22
+ ).json();
23
+ const currentElectronRelease = electronReleases.find(
24
+ (release: { version: string }) =>
25
+ release.version === installedElectronVersion,
26
+ );
27
+
28
+ if (
29
+ currentElectronRelease.version !== versions.electron ||
30
+ currentElectronRelease.chrome !== versions.chrome ||
31
+ currentElectronRelease.node !== versions.node
32
+ ) {
33
+ console.error(
34
+ `Version mismatch! scripts/versions.ts contains the following versions:
35
+
36
+ - electron: ${versions.electron}
37
+ - chrome: ${versions.chrome}
38
+ - node: ${versions.node}
39
+
40
+ but it should contain these:
41
+
42
+ - electron: ${currentElectronRelease.version}
43
+ - chrome: ${currentElectronRelease.chrome}
44
+ - node: ${currentElectronRelease.node}
45
+ `,
46
+ );
47
+ process.exit(1);
48
+ }
49
+ };
50
+
51
+ main();
@@ -14,6 +14,8 @@ import * as module from 'node:module';
14
14
  import * as path from 'node:path';
15
15
  import tailwindcss from 'tailwindcss';
16
16
 
17
+ import { chromeWithoutBuild } from './versions';
18
+
17
19
  const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8'));
18
20
 
19
21
  const projectSpecificTailwindConfigPath = path.join(
@@ -42,7 +44,7 @@ const options = (
42
44
  ({
43
45
  format: 'iife',
44
46
  ...outfileOrDir(additionalOptions),
45
- target: 'chrome89',
47
+ target: `chrome${chromeWithoutBuild}`,
46
48
  sourcemap: true,
47
49
  metafile: false,
48
50
  minify: process.argv.includes('--prod'),
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Copyright (c) 2025 Nordic Semiconductor ASA
3
+ *
4
+ * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
5
+ */
6
+
7
+ export const electron = '32.1.2';
8
+ export const chrome = '128.0.6613.162';
9
+ export const node = '20.17.0';
10
+
11
+ export const chromeWithoutBuild = chrome.replace(/^(\d+\.\d+\.\d+).*$/, '$1');
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env tsx
2
+ export {};
3
+ //# sourceMappingURL=check-versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-versions.d.ts","sourceRoot":"","sources":["../../../scripts/check-versions.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"esbuild-renderer.d.ts","sourceRoot":"","sources":["../../../scripts/esbuild-renderer.ts"],"names":[],"mappings":"AAQA,OAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAqBhD,KAAK,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC,GAChE,OAAO,CAAC,YAAY,CAAC,CAAC;AA8F1B,eAAO,MAAM,KAAK,GACd,mBAAmB,iBAAiB,EACpC;;CAA8B,kBAYjC,CAAC"}
1
+ {"version":3,"file":"esbuild-renderer.d.ts","sourceRoot":"","sources":["../../../scripts/esbuild-renderer.ts"],"names":[],"mappings":"AAQA,OAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAuBhD,KAAK,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC,GAChE,OAAO,CAAC,YAAY,CAAC,CAAC;AA8F1B,eAAO,MAAM,KAAK,GACd,mBAAmB,iBAAiB,EACpC;;CAA8B,kBAYjC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const electron = "32.1.2";
2
+ export declare const chrome = "128.0.6613.162";
3
+ export declare const node = "20.17.0";
4
+ export declare const chromeWithoutBuild: string;
5
+ //# sourceMappingURL=versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../scripts/versions.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,WAAW,CAAC;AACjC,eAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,eAAO,MAAM,IAAI,YAAY,CAAC;AAE9B,eAAO,MAAM,kBAAkB,QAA8C,CAAC"}