@nordicsemiconductor/pc-nrfconnect-shared 86.0.0 → 88.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 +21 -3
- package/coverage/cobertura-coverage.xml +16 -16
- package/ipc/MetaFiles.ts +3 -1
- package/package.json +1 -1
- package/scripts/check-app-properties.ts +6 -1
- package/scripts/esbuild-renderer.js +5 -2
- package/scripts/nordic-publish.js +13 -13
- package/src/Dialog/Dialog.tsx +1 -1
- package/src/index.html +3 -2
- package/src/utils/appDirs.ts +1 -1
- package/test/testrenderer.tsx +4 -2
- package/typings/generated/ipc/MetaFiles.d.ts +3 -1
- package/typings/generated/ipc/MetaFiles.d.ts.map +1 -1
- package/typings/generated/test/testrenderer.d.ts +3 -1
- package/typings/generated/test/testrenderer.d.ts.map +1 -1
package/Changelog.md
CHANGED
|
@@ -7,6 +7,23 @@ 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
|
+
## 88 - 2023-08-17
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- `html` package json property has been moved to `nrfConnectForDesktop.html`.
|
|
15
|
+
- `nrfConnectForDesktop.html` is now opt-in and apps can be built without it.
|
|
16
|
+
|
|
17
|
+
### Steps to upgrade
|
|
18
|
+
|
|
19
|
+
- Change `html` to `nrfConnectForDesktop.html` in the app package json.
|
|
20
|
+
|
|
21
|
+
## 87 - 2023-08-14
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- Spinner in `Dialog` components was not inlined.
|
|
26
|
+
|
|
10
27
|
## 86 - 2023-08-14
|
|
11
28
|
|
|
12
29
|
### Changed
|
|
@@ -41,9 +58,10 @@ every new version is a new major version.
|
|
|
41
58
|
|
|
42
59
|
### Steps to upgrade when using this package
|
|
43
60
|
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
|
|
61
|
+
- Following this step will make the app incompatible with the currently
|
|
62
|
+
released launcher (v4.1.2): Add an `index`-property to package.json. The
|
|
63
|
+
following example will use the index bundled with shared that works with our
|
|
64
|
+
apps, but apps can also make their own instead if needed.
|
|
47
65
|
|
|
48
66
|
```json
|
|
49
67
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" ?>
|
|
2
2
|
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
|
|
3
|
-
<coverage lines-valid="2531" lines-covered="1575" line-rate="0.6222" branches-valid="
|
|
3
|
+
<coverage lines-valid="2531" lines-covered="1575" line-rate="0.6222" branches-valid="1088" branches-covered="392" branch-rate="0.3602" timestamp="1692256971404" complexity="0" version="0.1">
|
|
4
4
|
<sources>
|
|
5
5
|
<source>/home/vsts/work/1/s</source>
|
|
6
6
|
</sources>
|
|
@@ -5851,7 +5851,7 @@
|
|
|
5851
5851
|
</class>
|
|
5852
5852
|
</classes>
|
|
5853
5853
|
</package>
|
|
5854
|
-
<package name="src.utils" line-rate="0.6377" branch-rate="0.
|
|
5854
|
+
<package name="src.utils" line-rate="0.6377" branch-rate="0.2087">
|
|
5855
5855
|
<classes>
|
|
5856
5856
|
<class name="appDirs.ts" filename="src/utils/appDirs.ts" line-rate="0.4" branch-rate="0">
|
|
5857
5857
|
<methods>
|
|
@@ -5886,7 +5886,7 @@
|
|
|
5886
5886
|
<line number="8" hits="13" branch="false"/>
|
|
5887
5887
|
<line number="10" hits="13" branch="false"/>
|
|
5888
5888
|
<line number="12" hits="13" branch="false"/>
|
|
5889
|
-
<line number="20" hits="0" branch="true" condition-coverage="0% (0/
|
|
5889
|
+
<line number="20" hits="0" branch="true" condition-coverage="0% (0/10)"/>
|
|
5890
5890
|
<line number="21" hits="0" branch="false"/>
|
|
5891
5891
|
<line number="31" hits="0" branch="false"/>
|
|
5892
5892
|
<line number="40" hits="0" branch="false"/>
|
|
@@ -6550,22 +6550,22 @@
|
|
|
6550
6550
|
<methods>
|
|
6551
6551
|
<method name="(anonymous_4)" hits="39" signature="()V">
|
|
6552
6552
|
<lines>
|
|
6553
|
-
<line number="
|
|
6553
|
+
<line number="16" hits="39"/>
|
|
6554
6554
|
</lines>
|
|
6555
6555
|
</method>
|
|
6556
6556
|
<method name="(anonymous_7)" hits="0" signature="()V">
|
|
6557
6557
|
<lines>
|
|
6558
|
-
<line number="
|
|
6558
|
+
<line number="33" hits="0"/>
|
|
6559
6559
|
</lines>
|
|
6560
6560
|
</method>
|
|
6561
6561
|
<method name="(anonymous_8)" hits="0" signature="()V">
|
|
6562
6562
|
<lines>
|
|
6563
|
-
<line number="
|
|
6563
|
+
<line number="34" hits="0"/>
|
|
6564
6564
|
</lines>
|
|
6565
6565
|
</method>
|
|
6566
6566
|
<method name="(anonymous_9)" hits="39" signature="()V">
|
|
6567
6567
|
<lines>
|
|
6568
|
-
<line number="
|
|
6568
|
+
<line number="37" hits="39"/>
|
|
6569
6569
|
</lines>
|
|
6570
6570
|
</method>
|
|
6571
6571
|
</methods>
|
|
@@ -6574,16 +6574,16 @@
|
|
|
6574
6574
|
<line number="8" hits="9" branch="false"/>
|
|
6575
6575
|
<line number="9" hits="9" branch="false"/>
|
|
6576
6576
|
<line number="12" hits="9" branch="false"/>
|
|
6577
|
-
<line number="
|
|
6578
|
-
<line number="
|
|
6579
|
-
<line number="16" hits="39" branch="false"/>
|
|
6577
|
+
<line number="16" hits="9" branch="false"/>
|
|
6578
|
+
<line number="17" hits="39" branch="false"/>
|
|
6580
6579
|
<line number="18" hits="39" branch="false"/>
|
|
6581
|
-
<line number="
|
|
6582
|
-
<line number="
|
|
6583
|
-
<line number="
|
|
6584
|
-
<line number="
|
|
6585
|
-
<line number="35" hits="
|
|
6586
|
-
<line number="
|
|
6580
|
+
<line number="20" hits="39" branch="false"/>
|
|
6581
|
+
<line number="32" hits="0" branch="false"/>
|
|
6582
|
+
<line number="33" hits="9" branch="false"/>
|
|
6583
|
+
<line number="34" hits="0" branch="true" condition-coverage="0% (0/1)"/>
|
|
6584
|
+
<line number="35" hits="0" branch="false"/>
|
|
6585
|
+
<line number="37" hits="39" branch="false"/>
|
|
6586
|
+
<line number="41" hits="39" branch="false"/>
|
|
6587
6587
|
</lines>
|
|
6588
6588
|
</class>
|
|
6589
6589
|
</classes>
|
package/ipc/MetaFiles.ts
CHANGED
package/package.json
CHANGED
|
@@ -68,7 +68,6 @@ const checkMandatoryProperties = (packageJson: PackageJson) => {
|
|
|
68
68
|
`description`,
|
|
69
69
|
`displayName`,
|
|
70
70
|
`engines.nrfconnect`,
|
|
71
|
-
`html`,
|
|
72
71
|
];
|
|
73
72
|
|
|
74
73
|
const missingProperties = mandatoryProperties.filter(
|
|
@@ -86,6 +85,12 @@ const checkOptionalProperties = (packageJson: PackageJson) => {
|
|
|
86
85
|
warn('Please provide a property `homepage` in package.json.');
|
|
87
86
|
}
|
|
88
87
|
|
|
88
|
+
if (propertyIsMissing(packageJson)('nrfConnectForDesktop')) {
|
|
89
|
+
warn(
|
|
90
|
+
'Please provide a property `nrfConnectForDesktop.html` in package.json'
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
if (propertyIsMissing(packageJson)('repository.url')) {
|
|
90
95
|
warn('Please provide a property `repository.url` in package.json.');
|
|
91
96
|
} else if (existsSync('./.git')) {
|
|
@@ -27,7 +27,7 @@ const tailwindConfig = () =>
|
|
|
27
27
|
);
|
|
28
28
|
|
|
29
29
|
function options(additionalOptions) {
|
|
30
|
-
const { dependencies } = JSON.parse(
|
|
30
|
+
const { dependencies, nrfConnectForDesktop } = JSON.parse(
|
|
31
31
|
fs.readFileSync('package.json', 'utf8')
|
|
32
32
|
);
|
|
33
33
|
|
|
@@ -37,8 +37,10 @@ function options(additionalOptions) {
|
|
|
37
37
|
: undefined;
|
|
38
38
|
const outdir = outfile ? undefined : './dist';
|
|
39
39
|
|
|
40
|
+
const appHasOwnHtml = nrfConnectForDesktop?.html !== undefined;
|
|
41
|
+
|
|
40
42
|
return {
|
|
41
|
-
format: 'iife',
|
|
43
|
+
format: appHasOwnHtml ? 'iife' : 'cjs',
|
|
42
44
|
outfile,
|
|
43
45
|
outdir,
|
|
44
46
|
target: 'chrome89',
|
|
@@ -55,6 +57,7 @@ function options(additionalOptions) {
|
|
|
55
57
|
'serialport',
|
|
56
58
|
'@electron/remote',
|
|
57
59
|
'@nordicsemiconductor/nrf-device-lib-js',
|
|
60
|
+
...(appHasOwnHtml ? [] : ['react']),
|
|
58
61
|
|
|
59
62
|
// App dependencies
|
|
60
63
|
...Object.keys(dependencies ?? {}),
|