@nordicsemiconductor/pc-nrfconnect-shared 130.0.0 → 131.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,19 @@ 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
+ ## 131 - 2023-11-14
11
+
12
+ ### Changed
13
+
14
+ - Storage key `isSendingUsageData` → `isSendingTelemetry`. The consequence of
15
+ this is that telemetry is only sent after users again agree to it, which is
16
+ required because we changed the agreement from Google Analytics to Microsoft
17
+ Azure.
18
+
19
+ ### Fixed
20
+
21
+ - Removed warning from `applicationinsights` in the console on start.
22
+
10
23
  ## 130 - 2023-11-14
11
24
 
12
25
  ### Fixed
@@ -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="3577" lines-covered="1905" line-rate="0.5325" branches-valid="1781" branches-covered="511" branch-rate="0.2869" timestamp="1699964512339" complexity="0" version="0.1">
3
+ <coverage lines-valid="3577" lines-covered="1905" line-rate="0.5325" branches-valid="1781" branches-covered="511" branch-rate="0.2869" timestamp="1699966095971" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/home/vsts/work/1/s</source>
6
6
  </sources>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "130.0.0",
3
+ "version": "131.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,6 +43,7 @@ const bundle = () => {
43
43
  build({
44
44
  define: {
45
45
  'process.env.PACKAGE_JSON': JSON.stringify(packageJson),
46
+ 'process.env.APPLICATIONINSIGHTS_CONFIGURATION_CONTENT': '"{}"', // Needed because of https://github.com/microsoft/ApplicationInsights-node.js/issues/1226
46
47
  },
47
48
  entryPoints: [entry()],
48
49
  });
@@ -29,7 +29,7 @@ export interface TerminalSettings {
29
29
 
30
30
  const sharedStore = new Store<{
31
31
  verboseLogging: boolean;
32
- isSendingUsageData: boolean | undefined;
32
+ isSendingTelemetry: boolean | undefined;
33
33
  clientId?: string;
34
34
  }>({
35
35
  name: 'pc-nrfconnect-shared',
@@ -117,11 +117,11 @@ export const getPersistedTerminalSettings = (
117
117
  };
118
118
 
119
119
  export const persistIsSendingUsageData = (value: boolean) =>
120
- sharedStore.set('isSendingUsageData', value);
120
+ sharedStore.set('isSendingTelemetry', value);
121
121
  export const getIsSendingUsageData = () =>
122
- sharedStore.get('isSendingUsageData', undefined) as boolean | undefined;
122
+ sharedStore.get('isSendingTelemetry', undefined) as boolean | undefined;
123
123
  export const deleteIsSendingUsageData = () =>
124
- sharedStore.delete('isSendingUsageData');
124
+ sharedStore.delete('isSendingTelemetry');
125
125
 
126
126
  const existingUsageDataClientId = () => sharedStore.get('clientId');
127
127
  const newUsageDataClientId = () => {