@react-native-windows/telemetry 0.0.0-canary.21 → 0.0.0-canary.25

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.
Files changed (49) hide show
  1. package/lib-commonjs/index.d.ts +4 -2
  2. package/lib-commonjs/index.js +12 -5
  3. package/lib-commonjs/index.js.map +1 -1
  4. package/lib-commonjs/telemetry.d.ts +70 -20
  5. package/lib-commonjs/telemetry.js +255 -171
  6. package/lib-commonjs/telemetry.js.map +1 -1
  7. package/lib-commonjs/test/{sanitize.test.d.ts → basePropUtils.test.d.ts} +0 -0
  8. package/lib-commonjs/test/basePropUtils.test.js +116 -0
  9. package/lib-commonjs/test/basePropUtils.test.js.map +1 -0
  10. package/lib-commonjs/test/errorUtils.test.d.ts +7 -0
  11. package/lib-commonjs/test/errorUtils.test.js +161 -0
  12. package/lib-commonjs/test/errorUtils.test.js.map +1 -0
  13. package/lib-commonjs/test/projectUtils.test.d.ts +7 -0
  14. package/lib-commonjs/test/projectUtils.test.js +84 -0
  15. package/lib-commonjs/test/projectUtils.test.js.map +1 -0
  16. package/lib-commonjs/test/sanitizeUtils.test.d.ts +7 -0
  17. package/lib-commonjs/test/sanitizeUtils.test.js +88 -0
  18. package/lib-commonjs/test/sanitizeUtils.test.js.map +1 -0
  19. package/lib-commonjs/test/telemetry.test.d.ts +26 -0
  20. package/lib-commonjs/test/telemetry.test.js +469 -0
  21. package/lib-commonjs/test/telemetry.test.js.map +1 -0
  22. package/lib-commonjs/test/versionUtils.test.d.ts +7 -0
  23. package/lib-commonjs/test/versionUtils.test.js +122 -0
  24. package/lib-commonjs/test/versionUtils.test.js.map +1 -0
  25. package/lib-commonjs/utils/basePropUtils.d.ts +66 -0
  26. package/lib-commonjs/utils/basePropUtils.js +133 -0
  27. package/lib-commonjs/utils/basePropUtils.js.map +1 -0
  28. package/lib-commonjs/{CodedError.d.ts → utils/errorUtils.d.ts} +27 -8
  29. package/lib-commonjs/utils/errorUtils.js +164 -0
  30. package/lib-commonjs/utils/errorUtils.js.map +1 -0
  31. package/lib-commonjs/utils/optionUtils.d.ts +45 -0
  32. package/lib-commonjs/utils/optionUtils.js +96 -0
  33. package/lib-commonjs/utils/optionUtils.js.map +1 -0
  34. package/lib-commonjs/utils/projectUtils.d.ts +50 -0
  35. package/lib-commonjs/utils/projectUtils.js +187 -0
  36. package/lib-commonjs/utils/projectUtils.js.map +1 -0
  37. package/lib-commonjs/utils/sanitizeUtils.d.ts +12 -0
  38. package/lib-commonjs/utils/sanitizeUtils.js +80 -0
  39. package/lib-commonjs/utils/sanitizeUtils.js.map +1 -0
  40. package/lib-commonjs/utils/versionUtils.d.ts +38 -0
  41. package/lib-commonjs/utils/versionUtils.js +159 -0
  42. package/lib-commonjs/utils/versionUtils.js.map +1 -0
  43. package/package.json +22 -8
  44. package/CHANGELOG.json +0 -442
  45. package/CHANGELOG.md +0 -189
  46. package/lib-commonjs/CodedError.js +0 -77
  47. package/lib-commonjs/CodedError.js.map +0 -1
  48. package/lib-commonjs/test/sanitize.test.js +0 -258
  49. package/lib-commonjs/test/sanitize.test.js.map +0 -1
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ * @format
6
+ */
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.getVersionsOfNuGetPackages = exports.getVersionOfNpmPackage = exports.getVisualStudioVersion = exports.getYarnVersion = exports.getNpmVersion = exports.getNodeVersion = void 0;
12
+ const envinfo_1 = __importDefault(require("envinfo"));
13
+ const fs_1 = __importDefault(require("@react-native-windows/fs"));
14
+ const path_1 = __importDefault(require("path"));
15
+ const xmldom_1 = require("@xmldom/xmldom");
16
+ const xpath_1 = __importDefault(require("xpath"));
17
+ const msbuildSelect = xpath_1.default.useNamespaces({
18
+ msbuild: 'http://schemas.microsoft.com/developer/msbuild/2003',
19
+ });
20
+ /**
21
+ * Gets the version of node being used.
22
+ * @returns The version of node being used.
23
+ */
24
+ async function getNodeVersion() {
25
+ return process.version.slice(1);
26
+ }
27
+ exports.getNodeVersion = getNodeVersion;
28
+ /**
29
+ * Gets the version of npm installed, if available.
30
+ * @returns The version of npm installed, if available.
31
+ */
32
+ async function getNpmVersion() {
33
+ try {
34
+ const info = await envinfo_1.default.helpers.getnpmInfo();
35
+ return info[1];
36
+ }
37
+ catch (_a) { }
38
+ return null;
39
+ }
40
+ exports.getNpmVersion = getNpmVersion;
41
+ /**
42
+ * Gets the version of yarn installed, if available.
43
+ * @returns The version of yarn installed, if available.
44
+ */
45
+ async function getYarnVersion() {
46
+ try {
47
+ const info = await envinfo_1.default.helpers.getYarnInfo();
48
+ return info[1];
49
+ }
50
+ catch (_a) { }
51
+ return null;
52
+ }
53
+ exports.getYarnVersion = getYarnVersion;
54
+ /**
55
+ * Gets the latest version of Visual Studio installed, if available.
56
+ * @returns The latest version of Visual Studio installed, if available.
57
+ */
58
+ async function getVisualStudioVersion() {
59
+ try {
60
+ const info = await envinfo_1.default.helpers.getVisualStudioInfo();
61
+ const versions = info[1];
62
+ return versions
63
+ .sort()
64
+ .slice(-1)[0]
65
+ .split(' ')[0];
66
+ }
67
+ catch (_a) { }
68
+ return null;
69
+ }
70
+ exports.getVisualStudioVersion = getVisualStudioVersion;
71
+ /**
72
+ * Gets the version installed of the specified npm package.
73
+ * @param pkgName The npm package name.
74
+ * @returns The version installed, if available.
75
+ */
76
+ async function getVersionOfNpmPackage(pkgName) {
77
+ try {
78
+ const pkgJsonPath = require.resolve(`${pkgName.trim()}/package.json`, {
79
+ paths: [process.cwd(), __dirname],
80
+ });
81
+ const pkgJson = await fs_1.default.readJsonFile(pkgJsonPath);
82
+ if (pkgJson.name === pkgName) {
83
+ return pkgJson.version;
84
+ }
85
+ }
86
+ catch (_a) { }
87
+ return null;
88
+ }
89
+ exports.getVersionOfNpmPackage = getVersionOfNpmPackage;
90
+ /**
91
+ * Reads and parses an XML file into a Document.
92
+ * @param filePath The path to the XML file.
93
+ * @returns The parsed Document.
94
+ */
95
+ async function readXmlFile(filePath) {
96
+ const contents = await fs_1.default.readFile(filePath, 'utf-8');
97
+ return new xmldom_1.DOMParser().parseFromString(contents);
98
+ }
99
+ /**
100
+ * Gets the versions of the specified NuGet packages referenced in a packages.config file.
101
+ * @param projectDoc The XML document of the packages.connfig file.
102
+ * @param nugetPackages The NuGet package names to look for.
103
+ * @returns The mapping of NuGet package names and their versions.
104
+ */
105
+ function getVersionsFromPackagesConfig(packagesConfigDoc, nugetPackages) {
106
+ const versions = {};
107
+ for (const pkgName of nugetPackages) {
108
+ const version = xpath_1.default.select1(`//packages/package[@id='${pkgName}']/@version`, packagesConfigDoc);
109
+ if (version) {
110
+ const versionValue = version.nodeValue;
111
+ if (versionValue !== null) {
112
+ versions[pkgName] = versionValue;
113
+ }
114
+ }
115
+ }
116
+ return versions;
117
+ }
118
+ /**
119
+ * Gets the versions of the specified NuGet packages referenced in a project file.
120
+ * @param projectDoc The XML document of the project file.
121
+ * @param nugetPackages The NuGet package names to look for.
122
+ * @returns The mapping of NuGet package names and their versions.
123
+ */
124
+ function getVersionsFromProjectFile(projectDoc, nugetPackages) {
125
+ const versions = {};
126
+ for (const pkgName of nugetPackages) {
127
+ const version = msbuildSelect(`//msbuild:ItemGroup/msbuild:PackageReference[@Include='${pkgName}']/msbuild:Version`, projectDoc, true);
128
+ if (version) {
129
+ const versionValue = version.textContent;
130
+ if (versionValue !== null) {
131
+ versions[pkgName] = versionValue;
132
+ }
133
+ }
134
+ }
135
+ return versions;
136
+ }
137
+ /**
138
+ * Gets the versions of the specified NuGet packages referenced in a project file.
139
+ * @param projectFile Path to the native project file.
140
+ * @param nugetPackages The NuGet package names to look for.
141
+ * @returns The mapping of NuGet package names and their versions.
142
+ */
143
+ async function getVersionsOfNuGetPackages(projectFile, nugetPackages) {
144
+ try {
145
+ // First check for the presence of a packages.config file
146
+ const packagesConfigFile = path_1.default.join(path_1.default.dirname(projectFile), 'packages.config');
147
+ const packagesConfigDoc = await readXmlFile(packagesConfigFile);
148
+ return getVersionsFromPackagesConfig(packagesConfigDoc, nugetPackages);
149
+ }
150
+ catch (_a) { }
151
+ try {
152
+ const projectDoc = await readXmlFile(projectFile);
153
+ return getVersionsFromProjectFile(projectDoc, nugetPackages);
154
+ }
155
+ catch (_b) { }
156
+ return {};
157
+ }
158
+ exports.getVersionsOfNuGetPackages = getVersionsOfNuGetPackages;
159
+ //# sourceMappingURL=versionUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versionUtils.js","sourceRoot":"","sources":["../../src/utils/versionUtils.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,sDAA8B;AAC9B,kEAA0C;AAC1C,gDAAwB;AACxB,2CAAyC;AACzC,kDAA0B;AAE1B,MAAM,aAAa,GAAG,eAAK,CAAC,aAAa,CAAC;IACxC,OAAO,EAAE,qDAAqD;CAC/D,CAAC,CAAC;AAEH;;;GAGG;AACI,KAAK,UAAU,cAAc;IAClC,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAClC,CAAC;AAFD,wCAEC;AAED;;;GAGG;AACI,KAAK,UAAU,aAAa;IACjC,IAAI;QACF,MAAM,IAAI,GAAQ,MAAM,iBAAO,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,CAAC,CAAW,CAAC;KAC1B;IAAC,WAAM,GAAE;IACV,OAAO,IAAI,CAAC;AACd,CAAC;AAND,sCAMC;AAED;;;GAGG;AACI,KAAK,UAAU,cAAc;IAClC,IAAI;QACF,MAAM,IAAI,GAAQ,MAAM,iBAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC,CAAC,CAAW,CAAC;KAC1B;IAAC,WAAM,GAAE;IACV,OAAO,IAAI,CAAC;AACd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AAU,EAAE,aAAa,CAAC,CAAC;KAC9D;IAAC,WAAM,GAAE;IAEV,OAAO,EAAE,CAAC;AACZ,CAAC;AApBD,gEAoBC","sourcesContent":["/**\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n * @format\n */\n\nimport envinfo from 'envinfo';\nimport fs from '@react-native-windows/fs';\nimport path from 'path';\nimport {DOMParser} from '@xmldom/xmldom';\nimport xpath from 'xpath';\n\nconst msbuildSelect = xpath.useNamespaces({\n msbuild: 'http://schemas.microsoft.com/developer/msbuild/2003',\n});\n\n/**\n * Gets the version of node being used.\n * @returns The version of node being used.\n */\nexport async function getNodeVersion(): Promise<string | null> {\n return process.version.slice(1);\n}\n\n/**\n * Gets the version of npm installed, if available.\n * @returns The version of npm installed, if available.\n */\nexport async function getNpmVersion(): Promise<string | null> {\n try {\n const info: any = await envinfo.helpers.getnpmInfo();\n return info[1] as string;\n } catch {}\n return null;\n}\n\n/**\n * Gets the version of yarn installed, if available.\n * @returns The version of yarn installed, if available.\n */\nexport async function getYarnVersion(): Promise<string | null> {\n try {\n const info: any = await envinfo.helpers.getYarnInfo();\n return info[1] as string;\n } catch {}\n return null;\n}\n\n/**\n * Gets the latest version of Visual Studio installed, if available.\n * @returns The latest version of Visual Studio installed, if available.\n */\nexport async function getVisualStudioVersion(): Promise<string | null> {\n try {\n const info: any = await envinfo.helpers.getVisualStudioInfo();\n const versions = info[1] as string[];\n return versions\n .sort()\n .slice(-1)[0]\n .split(' ')[0];\n } catch {}\n return null;\n}\n\n/**\n * Gets the version installed of the specified npm package.\n * @param pkgName The npm package name.\n * @returns The version installed, if available.\n */\nexport async function getVersionOfNpmPackage(\n pkgName: string,\n): Promise<string | null> {\n try {\n const pkgJsonPath = require.resolve(`${pkgName.trim()}/package.json`, {\n paths: [process.cwd(), __dirname],\n });\n const pkgJson = await fs.readJsonFile<{name: string; version: string}>(\n pkgJsonPath,\n );\n if (pkgJson.name === pkgName) {\n return pkgJson.version;\n }\n } catch {}\n return null;\n}\n\n/**\n * Reads and parses an XML file into a Document.\n * @param filePath The path to the XML file.\n * @returns The parsed Document.\n */\nasync function readXmlFile(filePath: string): Promise<Document> {\n const contents = await fs.readFile(filePath, 'utf-8');\n return new DOMParser().parseFromString(contents);\n}\n\n/**\n * Gets the versions of the specified NuGet packages referenced in a packages.config file.\n * @param projectDoc The XML document of the packages.connfig file.\n * @param nugetPackages The NuGet package names to look for.\n * @returns The mapping of NuGet package names and their versions.\n */\nfunction getVersionsFromPackagesConfig(\n packagesConfigDoc: Document,\n nugetPackages: string[],\n): Record<string, string> {\n const versions: Record<string, string> = {};\n for (const pkgName of nugetPackages) {\n const version = xpath.select1(\n `//packages/package[@id='${pkgName}']/@version`,\n packagesConfigDoc,\n );\n\n if (version) {\n const versionValue = (version as Attr).nodeValue;\n if (versionValue !== null) {\n versions[pkgName] = versionValue;\n }\n }\n }\n return versions;\n}\n\n/**\n * Gets the versions of the specified NuGet packages referenced in a project file.\n * @param projectDoc The XML document of the project file.\n * @param nugetPackages The NuGet package names to look for.\n * @returns The mapping of NuGet package names and their versions.\n */\nfunction getVersionsFromProjectFile(\n projectDoc: Document,\n nugetPackages: string[],\n): Record<string, string> {\n const versions: Record<string, string> = {};\n for (const pkgName of nugetPackages) {\n const version = msbuildSelect(\n `//msbuild:ItemGroup/msbuild:PackageReference[@Include='${pkgName}']/msbuild:Version`,\n projectDoc,\n true,\n );\n\n if (version) {\n const versionValue = (version as Node).textContent;\n if (versionValue !== null) {\n versions[pkgName] = versionValue;\n }\n }\n }\n return versions;\n}\n\n/**\n * Gets the versions of the specified NuGet packages referenced in a project file.\n * @param projectFile Path to the native project file.\n * @param nugetPackages The NuGet package names to look for.\n * @returns The mapping of NuGet package names and their versions.\n */\nexport async function getVersionsOfNuGetPackages(\n projectFile: string,\n nugetPackages: string[],\n): Promise<Record<string, string>> {\n try {\n // First check for the presence of a packages.config file\n const packagesConfigFile = path.join(\n path.dirname(projectFile),\n 'packages.config',\n );\n const packagesConfigDoc = await readXmlFile(packagesConfigFile);\n return getVersionsFromPackagesConfig(packagesConfigDoc, nugetPackages);\n } catch {}\n\n try {\n const projectDoc = await readXmlFile(projectFile);\n return getVersionsFromProjectFile(projectDoc, nugetPackages);\n } catch {}\n\n return {};\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-windows/telemetry",
3
- "version": "0.0.0-canary.21",
3
+ "version": "0.0.0-canary.25",
4
4
  "license": "MIT",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "typings": "lib-commonjs/index.d.ts",
@@ -18,13 +18,22 @@
18
18
  "watch": "rnw-scripts watch"
19
19
  },
20
20
  "dependencies": {
21
- "applicationinsights": "^1.8.8"
21
+ "@react-native-windows/fs": "^1.0.0",
22
+ "applicationinsights": "^2.1.5",
23
+ "ci-info": "^3.2.0",
24
+ "envinfo": "^7.8.1",
25
+ "lodash": "^4.17.21",
26
+ "node-machine-id": "^1.1.12",
27
+ "os-locale": "^5.0.0",
28
+ "@xmldom/xmldom": "^0.7.5",
29
+ "xpath": "^0.0.27"
22
30
  },
23
31
  "devDependencies": {
24
- "@rnw-scripts/eslint-config": "1.1.7",
25
- "@rnw-scripts/jest-unittest-config": "1.2.3",
26
- "@rnw-scripts/just-task": "2.2.0",
27
- "@rnw-scripts/ts-config": "2.0.0",
32
+ "@rnw-scripts/eslint-config": "1.1.9",
33
+ "@rnw-scripts/jest-unittest-config": "1.2.4",
34
+ "@rnw-scripts/just-task": "2.2.1",
35
+ "@rnw-scripts/ts-config": "2.0.1",
36
+ "@types/envinfo": "^7.8.1",
28
37
  "@types/jest": "^26.0.20",
29
38
  "@types/node": "^14.14.22",
30
39
  "@types/semver": "^7.3.3",
@@ -32,8 +41,10 @@
32
41
  "eslint": "7.12.0",
33
42
  "jest": "^26.6.3",
34
43
  "just-scripts": "^1.3.3",
44
+ "lookpath": "^1.2.1",
35
45
  "prettier": "1.19.1",
36
- "typescript": "^3.8.3"
46
+ "semver": "^7.3.5",
47
+ "typescript": "^4.4.4"
37
48
  },
38
49
  "files": [
39
50
  "lib-commonjs"
@@ -47,5 +58,8 @@
47
58
  ]
48
59
  },
49
60
  "promoteRelease": true,
50
- "windowsOnly": true
61
+ "windowsOnly": true,
62
+ "engines": {
63
+ "node": ">= 12.0.0"
64
+ }
51
65
  }
package/CHANGELOG.json DELETED
@@ -1,442 +0,0 @@
1
- {
2
- "name": "@react-native-windows/telemetry",
3
- "entries": [
4
- {
5
- "date": "Fri, 11 Jun 2021 05:06:57 GMT",
6
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.21",
7
- "version": "0.0.0-canary.21",
8
- "comments": {
9
- "prerelease": [
10
- {
11
- "comment": "Mark windowsOnly",
12
- "author": "ngerlem@microsoft.com",
13
- "commit": "3d7c8d8fcf14a3cbda83a93c85b0bcf1e4e4f829",
14
- "package": "@react-native-windows/telemetry"
15
- }
16
- ],
17
- "patch": [
18
- {
19
- "comment": "Bump @rnw-scripts/just-task to v2.2.0",
20
- "author": "ngerlem@microsoft.com",
21
- "commit": "3d7c8d8fcf14a3cbda83a93c85b0bcf1e4e4f829",
22
- "package": "@react-native-windows/telemetry"
23
- }
24
- ]
25
- }
26
- },
27
- {
28
- "date": "Wed, 09 Jun 2021 05:10:07 GMT",
29
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.20",
30
- "version": "0.0.0-canary.20",
31
- "comments": {
32
- "patch": [
33
- {
34
- "comment": "Bump @rnw-scripts/just-task to v2.1.3",
35
- "author": "igklemen@microsoft.com",
36
- "commit": "2ba41a4f087cc3bf16cbe799575923fc7a626009",
37
- "package": "@react-native-windows/telemetry"
38
- },
39
- {
40
- "comment": "Bump @rnw-scripts/jest-unittest-config to v1.2.3",
41
- "author": "igklemen@microsoft.com",
42
- "commit": "2ba41a4f087cc3bf16cbe799575923fc7a626009",
43
- "package": "@react-native-windows/telemetry"
44
- }
45
- ]
46
- }
47
- },
48
- {
49
- "date": "Thu, 03 Jun 2021 05:09:47 GMT",
50
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.19",
51
- "version": "0.0.0-canary.19",
52
- "comments": {
53
- "prerelease": [
54
- {
55
- "comment": "Enable esModuleInterop Repo Wide",
56
- "author": "ngerlem@microsoft.com",
57
- "commit": "6c871e6ba27888804c776e5deeefbc7064e181d0",
58
- "package": "@react-native-windows/telemetry"
59
- }
60
- ],
61
- "patch": [
62
- {
63
- "comment": "Bump @rnw-scripts/just-task to v2.1.2",
64
- "author": "ngerlem@microsoft.com",
65
- "commit": "b481f0a4ea68a8100860eb061902b715fca6652e",
66
- "package": "@react-native-windows/telemetry"
67
- },
68
- {
69
- "comment": "Bump @rnw-scripts/ts-config to v2.0.0",
70
- "author": "ngerlem@microsoft.com",
71
- "commit": "6c871e6ba27888804c776e5deeefbc7064e181d0",
72
- "package": "@react-native-windows/telemetry"
73
- },
74
- {
75
- "comment": "Bump @rnw-scripts/eslint-config to v1.1.7",
76
- "author": "ngerlem@microsoft.com",
77
- "commit": "b481f0a4ea68a8100860eb061902b715fca6652e",
78
- "package": "@react-native-windows/telemetry"
79
- },
80
- {
81
- "comment": "Bump @rnw-scripts/jest-unittest-config to v1.2.2",
82
- "author": "ngerlem@microsoft.com",
83
- "commit": "b481f0a4ea68a8100860eb061902b715fca6652e",
84
- "package": "@react-native-windows/telemetry"
85
- }
86
- ]
87
- }
88
- },
89
- {
90
- "date": "Fri, 21 May 2021 05:17:18 GMT",
91
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.18",
92
- "version": "0.0.0-canary.18",
93
- "comments": {
94
- "prerelease": [
95
- {
96
- "comment": "Integrate Apr 28 (base of 0.65) Nightly RN Build",
97
- "author": "ngerlem@microsoft.com",
98
- "commit": "5cc9c87a48b392d287fa953d8d23a8188b689545",
99
- "package": "@react-native-windows/telemetry"
100
- }
101
- ],
102
- "patch": [
103
- {
104
- "comment": "Bump @rnw-scripts/just-task to v2.1.1",
105
- "author": "ngerlem@microsoft.com",
106
- "commit": "5cc9c87a48b392d287fa953d8d23a8188b689545",
107
- "package": "@react-native-windows/telemetry"
108
- },
109
- {
110
- "comment": "Bump @rnw-scripts/jest-unittest-config to v1.2.1",
111
- "author": "ngerlem@microsoft.com",
112
- "commit": "5cc9c87a48b392d287fa953d8d23a8188b689545",
113
- "package": "@react-native-windows/telemetry"
114
- }
115
- ]
116
- }
117
- },
118
- {
119
- "date": "Thu, 11 Feb 2021 05:08:29 GMT",
120
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.17",
121
- "version": "0.0.0-canary.17",
122
- "comments": {
123
- "patch": [
124
- {
125
- "comment": "Bump @rnw-scripts/just-task to v2.1.0",
126
- "author": "ngerlem@microsoft.com",
127
- "commit": "ab41a9b88db59cba0eae1ff7a59c1b550cc8c2bf",
128
- "package": "@react-native-windows/telemetry"
129
- },
130
- {
131
- "comment": "Bump @rnw-scripts/jest-unittest-config to v1.2.0",
132
- "author": "ngerlem@microsoft.com",
133
- "commit": "ab41a9b88db59cba0eae1ff7a59c1b550cc8c2bf",
134
- "package": "@react-native-windows/telemetry"
135
- }
136
- ]
137
- }
138
- },
139
- {
140
- "date": "Tue, 09 Feb 2021 05:07:37 GMT",
141
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.16",
142
- "version": "0.0.0-canary.16",
143
- "comments": {
144
- "prerelease": [
145
- {
146
- "comment": "Bump just-scripts from 1.3.2 to 1.3.3",
147
- "author": "dannyvv@microsoft.com",
148
- "commit": "ef4046c6a798446b6404dc26d0dd39224a0d7274",
149
- "package": "@react-native-windows/telemetry"
150
- }
151
- ],
152
- "patch": [
153
- {
154
- "comment": "Bump @rnw-scripts/just-task to v2.0.2",
155
- "author": "dannyvv@microsoft.com",
156
- "commit": "ef4046c6a798446b6404dc26d0dd39224a0d7274",
157
- "package": "@react-native-windows/telemetry"
158
- }
159
- ]
160
- }
161
- },
162
- {
163
- "date": "Fri, 05 Feb 2021 05:05:05 GMT",
164
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.15",
165
- "version": "0.0.0-canary.15",
166
- "comments": {
167
- "none": [
168
- {
169
- "comment": "Make @types/node version explicit",
170
- "author": "ngerlem@microsoft.com",
171
- "commit": "22ee9e8c47a0c794e7d509a471547ba873578e31",
172
- "package": "@react-native-windows/telemetry"
173
- }
174
- ]
175
- }
176
- },
177
- {
178
- "date": "Thu, 28 Jan 2021 05:06:47 GMT",
179
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.15",
180
- "version": "0.0.0-canary.15",
181
- "comments": {
182
- "prerelease": [
183
- {
184
- "comment": "Leverage default config support in Just library and factor out common tasks",
185
- "author": "dannyvv@microsoft.com",
186
- "commit": "54fb284afaf1b12ab51f1c29bb7ca67eddab8db1",
187
- "package": "@react-native-windows/telemetry"
188
- }
189
- ],
190
- "patch": [
191
- {
192
- "comment": "Bump @rnw-scripts/just-task to v2.0.1",
193
- "author": "dannyvv@microsoft.com",
194
- "commit": "54fb284afaf1b12ab51f1c29bb7ca67eddab8db1",
195
- "package": "@react-native-windows/telemetry"
196
- }
197
- ]
198
- }
199
- },
200
- {
201
- "date": "Tue, 26 Jan 2021 05:06:39 GMT",
202
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.14",
203
- "version": "0.0.0-canary.14",
204
- "comments": {
205
- "prerelease": [
206
- {
207
- "comment": "Update @types package versions in package.json from dependabot updates to yarn.lock",
208
- "author": "dannyvv@microsoft.com",
209
- "commit": "b8f2beec9851dffe3188156c859cb123de926ba0",
210
- "package": "@react-native-windows/telemetry"
211
- }
212
- ],
213
- "none": [
214
- {
215
- "comment": "Update just-scripts to remove yargs-parser resolution",
216
- "author": "ngerlem@microsoft.com",
217
- "commit": "3d41c761d18cdc771a635bf9f5ef1259db9a27be",
218
- "package": "@react-native-windows/telemetry"
219
- }
220
- ],
221
- "patch": [
222
- {
223
- "comment": "Bump @rnw-scripts/just-task to v2.0.0",
224
- "author": "ngerlem@microsoft.com",
225
- "commit": "3d41c761d18cdc771a635bf9f5ef1259db9a27be",
226
- "package": "@react-native-windows/telemetry"
227
- }
228
- ]
229
- }
230
- },
231
- {
232
- "date": "Wed, 20 Jan 2021 01:45:54 GMT",
233
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.13",
234
- "version": "0.0.0-canary.13",
235
- "comments": {
236
- "none": [
237
- {
238
- "comment": "Bump internally published packages to 1.0",
239
- "author": "ngerlem@microsoft.com",
240
- "commit": "982fb19448d7c9ed3f12fa27182fa69be83478c7",
241
- "package": "@react-native-windows/telemetry"
242
- }
243
- ]
244
- }
245
- },
246
- {
247
- "date": "Fri, 15 Jan 2021 05:07:01 GMT",
248
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.13",
249
- "version": "0.0.0-canary.13",
250
- "comments": {
251
- "prerelease": [
252
- {
253
- "comment": "Remove appium from package dependency",
254
- "author": "dannyvv@microsoft.com",
255
- "commit": "3ffbf9311ab77935b65c6616d33a6538f0582780",
256
- "package": "@react-native-windows/telemetry"
257
- }
258
- ]
259
- }
260
- },
261
- {
262
- "date": "Wed, 13 Jan 2021 05:05:37 GMT",
263
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.12",
264
- "version": "0.0.0-canary.12",
265
- "comments": {
266
- "none": [
267
- {
268
- "comment": "remove excessive change files",
269
- "author": "lehon@microsoft.com",
270
- "commit": "8c4a518552899dbacc7d9133e2e480c8f55df85d",
271
- "package": "@react-native-windows/telemetry"
272
- }
273
- ]
274
- }
275
- },
276
- {
277
- "date": "Tue, 05 Jan 2021 05:06:42 GMT",
278
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.12",
279
- "version": "0.0.0-canary.12",
280
- "comments": {
281
- "prerelease": [
282
- {
283
- "comment": "Rework error reporting/telemetry to only log the minimal amount of data",
284
- "author": "asklar@microsoft.com",
285
- "commit": "226fc2c5f4fc300ad90bfc413d275e0fe0adf87f",
286
- "package": "@react-native-windows/telemetry"
287
- }
288
- ]
289
- }
290
- },
291
- {
292
- "date": "Thu, 03 Dec 2020 23:59:32 GMT",
293
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.11",
294
- "version": "0.0.0-canary.11",
295
- "comments": {
296
- "prerelease": [
297
- {
298
- "comment": "Manual bump of @react-native-windows/telemetry to cause dependents to be republished",
299
- "author": "ngerlem@microsoft.com",
300
- "commit": "90ba61f3e43eafcac9e45b7c740bbfbda77fd5a1",
301
- "package": "@react-native-windows/telemetry"
302
- }
303
- ]
304
- }
305
- },
306
- {
307
- "date": "Tue, 24 Nov 2020 05:08:17 GMT",
308
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.10",
309
- "version": "0.0.0-canary.10",
310
- "comments": {
311
- "prerelease": [
312
- {
313
- "comment": "Fixup naming convention rules",
314
- "author": "ngerlem@microsoft.com",
315
- "commit": "adc0617836a0fba4112646595645e65f93e0106f",
316
- "package": "@react-native-windows/telemetry"
317
- }
318
- ]
319
- }
320
- },
321
- {
322
- "date": "Fri, 20 Nov 2020 05:08:43 GMT",
323
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.9",
324
- "version": "0.0.0-canary.9",
325
- "comments": {
326
- "none": [
327
- {
328
- "comment": "Integrate 11/18 RN Nightly Build 🎉",
329
- "author": "ngerlem@microsoft.com",
330
- "commit": "aba9483ea47b6d992877b325cc858a7e6309ead4",
331
- "package": "@react-native-windows/telemetry"
332
- }
333
- ]
334
- }
335
- },
336
- {
337
- "date": "Mon, 16 Nov 2020 14:39:19 GMT",
338
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.8",
339
- "version": "0.0.0-canary.8",
340
- "comments": {
341
- "prerelease": [
342
- {
343
- "comment": "anonymize paths with forward slashes and file shares",
344
- "author": "asklar@microsoft.com",
345
- "commit": "04e766ef7304d0852a06e772cbfc1982897a3808",
346
- "package": "@react-native-windows/telemetry"
347
- }
348
- ]
349
- }
350
- },
351
- {
352
- "date": "Thu, 12 Nov 2020 05:05:57 GMT",
353
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.7",
354
- "version": "0.0.0-canary.7",
355
- "comments": {
356
- "prerelease": [
357
- {
358
- "comment": "Disable telemetry in other CI systems",
359
- "author": "asklar@microsoft.com",
360
- "commit": "bcda5759d5d1bed770e7a8524e5cc3f94cbc0c6a",
361
- "package": "@react-native-windows/telemetry"
362
- }
363
- ]
364
- }
365
- },
366
- {
367
- "date": "Wed, 11 Nov 2020 05:05:29 GMT",
368
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.6",
369
- "version": "0.0.0-canary.6",
370
- "comments": {
371
- "prerelease": [
372
- {
373
- "comment": "Silence warnings from appinsights in production",
374
- "author": "asklar@microsoft.com",
375
- "commit": "1893d23fce2daedbf55ae90c5f6775141400f401",
376
- "package": "@react-native-windows/telemetry"
377
- }
378
- ]
379
- }
380
- },
381
- {
382
- "date": "Sat, 07 Nov 2020 05:04:58 GMT",
383
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.5",
384
- "version": "0.0.0-canary.5",
385
- "comments": {
386
- "prerelease": [
387
- {
388
- "comment": "Fix casing of msft domain",
389
- "author": "asklar@microsoft.com",
390
- "commit": "038cecd6638df6df39988fca433a104e82b3423e",
391
- "package": "@react-native-windows/telemetry"
392
- }
393
- ]
394
- }
395
- },
396
- {
397
- "date": "Fri, 06 Nov 2020 05:06:31 GMT",
398
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.4",
399
- "version": "0.0.0-canary.4",
400
- "comments": {
401
- "prerelease": [
402
- {
403
- "comment": "Remove roleInstance property",
404
- "author": "asklar@microsoft.com",
405
- "commit": "9254556d1726e6bec145a50c9935fae868060444",
406
- "package": "@react-native-windows/telemetry"
407
- }
408
- ]
409
- }
410
- },
411
- {
412
- "date": "Thu, 05 Nov 2020 17:30:59 GMT",
413
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.3",
414
- "version": "0.0.0-canary.3",
415
- "comments": {
416
- "prerelease": [
417
- {
418
- "comment": "sanitize paths in other drives too",
419
- "author": "asklar@microsoft.com",
420
- "commit": "10d82a2167557800fd518a13c170bdc7e7bffc14",
421
- "package": "@react-native-windows/telemetry"
422
- }
423
- ]
424
- }
425
- },
426
- {
427
- "date": "Thu, 05 Nov 2020 05:05:45 GMT",
428
- "tag": "@react-native-windows/telemetry_v0.0.0-canary.2",
429
- "version": "0.0.0-canary.2",
430
- "comments": {
431
- "prerelease": [
432
- {
433
- "comment": "Create telemetry package",
434
- "author": "asklar@microsoft.com",
435
- "commit": "61cc42e7f9b4dec313597fba6e99c6f22badbf7e",
436
- "package": "@react-native-windows/telemetry"
437
- }
438
- ]
439
- }
440
- }
441
- ]
442
- }