@atlaskit/dependency-version-analytics 0.3.12 → 0.4.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
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/dependency-version-analytics
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`00ea8db4763`](https://bitbucket.org/atlassian/atlassian-frontend/commits/00ea8db4763) - Upgrading the simple-git version
8
+
9
+ ## 0.3.13
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
14
+
3
15
  ## 0.3.12
4
16
 
5
17
  ### Patch Changes
package/cli/package.json CHANGED
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/cli.js",
5
5
  "module:es2019": "../dist/es2019/cli.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/cli.d.ts"
7
+ "types": "../dist/types/cli.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/cli.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/constants.js",
5
5
  "module:es2019": "../dist/es2019/constants.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/constants.d.ts"
7
+ "types": "../dist/types/constants.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/constants.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -17,7 +17,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
17
17
 
18
18
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
19
19
 
20
- var _constants = require("./../../constants");
20
+ var _constants = require("../../constants");
21
21
 
22
22
  var _chalk = _interopRequireDefault(require("chalk"));
23
23
 
@@ -22,7 +22,7 @@ var _debug = _interopRequireDefault(require("debug"));
22
22
 
23
23
  var _micromatch = _interopRequireDefault(require("micromatch"));
24
24
 
25
- var git = _interopRequireWildcard(require("../util/git"));
25
+ var git = _interopRequireWildcard(require("./git"));
26
26
 
27
27
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
28
28
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dependency-version-analytics",
3
- "version": "0.3.12",
3
+ "version": "0.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,4 +1,4 @@
1
- import { DEFAULT_TAG } from './../../constants';
1
+ import { DEFAULT_TAG } from '../../constants';
2
2
  import chalk from 'chalk';
3
3
  import { createUpgradeEvent, sendAnalytics } from '../../util/analytics';
4
4
  import { getChangesSince, tagCommit, doesTagExist, refetchTag, getHash } from '../../util/git';
@@ -1,7 +1,7 @@
1
1
  import path from 'path';
2
2
  import debugModule from 'debug';
3
3
  import micromatch from 'micromatch';
4
- import * as git from '../util/git';
4
+ import * as git from './git';
5
5
  const rootPackageJsonPath = 'package.json';
6
6
  const debug = debugModule('atlaskit:yarn');
7
7
  export async function getWorkspaceGlobs(ref, cwd) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dependency-version-analytics",
3
- "version": "0.3.12",
3
+ "version": "0.4.0",
4
4
  "sideEffects": false
5
5
  }
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _regeneratorRuntime from "@babel/runtime/regenerator";
5
- import { DEFAULT_TAG } from './../../constants';
5
+ import { DEFAULT_TAG } from '../../constants';
6
6
  import chalk from 'chalk';
7
7
  import { createUpgradeEvent, sendAnalytics } from '../../util/analytics';
8
8
  import { getChangesSince, tagCommit, doesTagExist, refetchTag, getHash } from '../../util/git';
@@ -4,7 +4,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import path from 'path';
5
5
  import debugModule from 'debug';
6
6
  import micromatch from 'micromatch';
7
- import * as git from '../util/git';
7
+ import * as git from './git';
8
8
  var rootPackageJsonPath = 'package.json';
9
9
  var debug = debugModule('atlaskit:yarn');
10
10
  export function getWorkspaceGlobs(_x, _x2) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dependency-version-analytics",
3
- "version": "0.3.12",
3
+ "version": "0.4.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dependency-version-analytics",
3
- "version": "0.3.12",
3
+ "version": "0.4.0",
4
4
  "description": "Tool to pull atlaskit version history from a repo",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -13,7 +13,7 @@
13
13
  "sideEffects": false,
14
14
  "atlaskit:src": "src/index.ts",
15
15
  "atlassian": {
16
- "team": "UIP: Monorepo",
16
+ "team": "UIP - Platform Integration Trust (PITa)",
17
17
  "deprecatedAutoEntryPoints": true,
18
18
  "releaseModel": "continuous"
19
19
  },
@@ -29,7 +29,7 @@
29
29
  "micromatch": "^4.0.2",
30
30
  "node-fetch": "^2.6.7",
31
31
  "semver": "^7.3.0",
32
- "simple-git": "^3.5.0"
32
+ "simple-git": "^3.15.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@atlassiansox/analytics-node-client": "^1.2.2"
@@ -40,8 +40,8 @@
40
40
  "@types/jest": "^26.0.14",
41
41
  "@types/micromatch": "^4.0.1",
42
42
  "@types/node": "~16.11.27",
43
- "ts-node": "^10.0.0",
44
- "typescript": "4.3.5"
43
+ "ts-node": "^10.9.1",
44
+ "typescript": "4.5.5"
45
45
  },
46
46
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
47
47
  }
package/report.api.md CHANGED
@@ -1,19 +1,31 @@
1
- ## API Report File for "@atlaskit/dependency-version-analytics".
1
+ <!-- API Report Version: 2.3 -->
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ ## API Report File for "@atlaskit/dependency-version-analytics"
4
4
 
5
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
9
+
10
+ - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
12
+
13
+ ### Main Entry Types
14
+
15
+ <!--SECTION START: Main Entry Types-->
6
16
 
7
17
  ```ts
8
18
  import { ReleaseType } from 'semver';
9
19
 
10
- export declare type DependencyType =
11
- | 'devDependency'
20
+ // @public (undocumented)
21
+ export type DependencyType =
12
22
  | 'dependency'
23
+ | 'devDependency'
13
24
  | 'optionalDependency'
14
25
  | 'peerDependency';
15
26
 
16
- declare type PopulateHistoricDataFlags = {
27
+ // @public (undocumented)
28
+ type PopulateHistoricDataFlags = {
17
29
  cwd?: string;
18
30
  dev: boolean;
19
31
  dryRun: boolean;
@@ -21,20 +33,22 @@ declare type PopulateHistoricDataFlags = {
21
33
  interactive: boolean;
22
34
  };
23
35
 
24
- export declare function populatePackage(
36
+ // @public (undocumented)
37
+ export function populatePackage(
25
38
  flags: PopulatePackageFlags,
26
39
  ): Promise<UpgradeEvent[]>;
27
40
 
28
- declare type PopulatePackageFlags = PopulateHistoricDataFlags & {
41
+ // @public (undocumented)
42
+ type PopulatePackageFlags = PopulateHistoricDataFlags & {
29
43
  since?: string;
30
44
  pkg: string;
31
45
  };
32
46
 
33
- export declare function populateProduct(
34
- flags: PopulateProductFlags,
35
- ): Promise<void>;
47
+ // @public (undocumented)
48
+ export function populateProduct(flags: PopulateProductFlags): Promise<void>;
36
49
 
37
- declare type PopulateProductFlags = PopulateHistoricDataFlags & {
50
+ // @public (undocumented)
51
+ type PopulateProductFlags = PopulateHistoricDataFlags & {
38
52
  csv: boolean;
39
53
  product: string;
40
54
  reset: boolean;
@@ -42,7 +56,8 @@ declare type PopulateProductFlags = PopulateHistoricDataFlags & {
42
56
  tag?: string;
43
57
  };
44
58
 
45
- export declare function sendAnalytics(
59
+ // @public (undocumented)
60
+ export function sendAnalytics(
46
61
  analyticsEvents: UpgradeEvent[],
47
62
  {
48
63
  dev,
@@ -57,12 +72,13 @@ export declare function sendAnalytics(
57
72
  },
58
73
  ): Promise<void>;
59
74
 
60
- export declare type UpgradeEvent = {
75
+ // @public (undocumented)
76
+ export type UpgradeEvent = {
61
77
  dependencyName: string;
62
78
  versionString: string;
63
- major: string | null;
64
- minor: string | null;
65
- patch: string | null;
79
+ major: null | string;
80
+ minor: null | string;
81
+ patch: null | string;
66
82
  date: string;
67
83
  upgradeType: UpgradeType;
68
84
  upgradeSubType: UpgradeSubType;
@@ -72,9 +88,25 @@ export declare type UpgradeEvent = {
72
88
  commitHash?: string;
73
89
  };
74
90
 
75
- export declare type UpgradeSubType = ReleaseType | null;
91
+ // @public (undocumented)
92
+ export type UpgradeSubType = ReleaseType | null;
76
93
 
77
- export declare type UpgradeType = 'add' | 'upgrade' | 'remove' | 'downgrade';
94
+ // @public (undocumented)
95
+ export type UpgradeType = 'add' | 'downgrade' | 'remove' | 'upgrade';
78
96
 
79
- export {};
97
+ // (No @packageDocumentation comment for this package)
80
98
  ```
99
+
100
+ <!--SECTION END: Main Entry Types-->
101
+
102
+ ### Peer Dependencies
103
+
104
+ <!--SECTION START: Peer Dependencies-->
105
+
106
+ ```json
107
+ {
108
+ "@atlassiansox/analytics-node-client": "^1.2.2"
109
+ }
110
+ ```
111
+
112
+ <!--SECTION END: Peer Dependencies-->
@@ -0,0 +1,74 @@
1
+ ## API Report File for "@atlaskit/dependency-version-analytics"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { ReleaseType } from 'semver';
8
+
9
+ // @public (undocumented)
10
+ export type DependencyType = 'dependency' | 'devDependency' | 'optionalDependency' | 'peerDependency';
11
+
12
+ // @public (undocumented)
13
+ type PopulateHistoricDataFlags = {
14
+ cwd?: string;
15
+ dev: boolean;
16
+ dryRun: boolean;
17
+ limit?: number;
18
+ interactive: boolean;
19
+ };
20
+
21
+ // @public (undocumented)
22
+ export function populatePackage(flags: PopulatePackageFlags): Promise<UpgradeEvent[]>;
23
+
24
+ // @public (undocumented)
25
+ type PopulatePackageFlags = PopulateHistoricDataFlags & {
26
+ since?: string;
27
+ pkg: string;
28
+ };
29
+
30
+ // @public (undocumented)
31
+ export function populateProduct(flags: PopulateProductFlags): Promise<void>;
32
+
33
+ // @public (undocumented)
34
+ type PopulateProductFlags = PopulateHistoricDataFlags & {
35
+ csv: boolean;
36
+ product: string;
37
+ reset: boolean;
38
+ statlas?: boolean;
39
+ tag?: string;
40
+ };
41
+
42
+ // @public (undocumented)
43
+ export function sendAnalytics(analyticsEvents: UpgradeEvent[], { dev, limit, product, skipPrompt, }: {
44
+ dev?: boolean;
45
+ limit?: number;
46
+ product: string;
47
+ skipPrompt?: boolean;
48
+ }): Promise<void>;
49
+
50
+ // @public (undocumented)
51
+ export type UpgradeEvent = {
52
+ dependencyName: string;
53
+ versionString: string;
54
+ major: null | string;
55
+ minor: null | string;
56
+ patch: null | string;
57
+ date: string;
58
+ upgradeType: UpgradeType;
59
+ upgradeSubType: UpgradeSubType;
60
+ cliVersion: string;
61
+ dependencyType?: DependencyType;
62
+ historical?: boolean;
63
+ commitHash?: string;
64
+ };
65
+
66
+ // @public (undocumented)
67
+ export type UpgradeSubType = ReleaseType | null;
68
+
69
+ // @public (undocumented)
70
+ export type UpgradeType = 'add' | 'downgrade' | 'remove' | 'upgrade';
71
+
72
+ // (No @packageDocumentation comment for this package)
73
+
74
+ ```
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types.d.ts"
7
+ "types": "../dist/types/types.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/types.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }