@atlaskit/dependency-version-analytics 1.6.5 → 1.6.7
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 +12 -0
- package/cli/package.json +1 -1
- package/constants/package.json +1 -1
- package/dist/cjs/commands/populate-historic-data/product.js +2 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/yarn.js +2 -2
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/commands/populate-historic-data/lib/dependency-store.js +6 -4
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +3 -5
- package/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/dependency-version-analytics
|
|
2
2
|
|
|
3
|
+
## 1.6.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
|
|
9
|
+
## 1.6.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#69779](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69779) [`8dd71b2e0653`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8dd71b2e0653) - Updated bin property to string as the package name and bin name matches. https://yarnpkg.com/configuration/manifest#bin
|
|
14
|
+
|
|
3
15
|
## 1.6.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/cli/package.json
CHANGED
package/constants/package.json
CHANGED
|
@@ -14,8 +14,8 @@ var _generateCsv = require("./util/generate-csv");
|
|
|
14
14
|
var _assert = require("../../util/assert");
|
|
15
15
|
var _dependencyStore = require("./lib/dependency-store");
|
|
16
16
|
var _allowedScopes = require("./util/allowed-scopes");
|
|
17
|
-
function _getRequireWildcardCache(
|
|
18
|
-
function _interopRequireWildcard(
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
19
|
const getUpgradeEventsFromPkgChange = (oldDeps, newDeps, {
|
|
20
20
|
date,
|
|
21
21
|
commitHash
|
|
@@ -67,7 +67,7 @@ function createUpgradeEvent(name, version, previousVersion, date, optionalEventA
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
return {
|
|
70
|
-
cliVersion: "1.6.
|
|
70
|
+
cliVersion: "1.6.7",
|
|
71
71
|
dependencyName: name,
|
|
72
72
|
versionString: eventVersion,
|
|
73
73
|
major: parsedVersion ? `${parsedVersion.major}` : null,
|
package/dist/cjs/util/yarn.js
CHANGED
|
@@ -10,8 +10,8 @@ var _path = _interopRequireDefault(require("path"));
|
|
|
10
10
|
var _debug = _interopRequireDefault(require("debug"));
|
|
11
11
|
var _micromatch = _interopRequireDefault(require("micromatch"));
|
|
12
12
|
var git = _interopRequireWildcard(require("./git"));
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
const debug = (0, _debug.default)('atlaskit:yarn');
|
|
16
16
|
async function getWorkspacePackageJsonPaths(hash, subWorkDir) {
|
|
17
17
|
let file;
|
|
@@ -59,7 +59,7 @@ export function createUpgradeEvent(name, version, previousVersion, date, optiona
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
return {
|
|
62
|
-
cliVersion: "1.6.
|
|
62
|
+
cliVersion: "1.6.7",
|
|
63
63
|
dependencyName: name,
|
|
64
64
|
versionString: eventVersion,
|
|
65
65
|
major: parsedVersion ? `${parsedVersion.major}` : null,
|
|
@@ -50,7 +50,7 @@ export var DependencyStore = /*#__PURE__*/function () {
|
|
|
50
50
|
/** Scans the repo for dependencies at the specified git ref and return the flattened dependency map */
|
|
51
51
|
_createClass(DependencyStore, [{
|
|
52
52
|
key: "initialise",
|
|
53
|
-
value: function () {
|
|
53
|
+
value: (function () {
|
|
54
54
|
var _initialise = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(gitRef) {
|
|
55
55
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
56
56
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -78,9 +78,10 @@ export var DependencyStore = /*#__PURE__*/function () {
|
|
|
78
78
|
/** Updates the repo dependency store based on the changes in `logItem`.
|
|
79
79
|
* Returns the updated flattened dependencies
|
|
80
80
|
*/
|
|
81
|
+
)
|
|
81
82
|
}, {
|
|
82
83
|
key: "update",
|
|
83
|
-
value: function () {
|
|
84
|
+
value: (function () {
|
|
84
85
|
var _update = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref2) {
|
|
85
86
|
var item, subWorkDir, hash, changedPackageJsons, rootPackageJson, didRootPackageJsonChange, workspacePackageJsonPaths, workspacePackageJsonPathsChanged, changedWorkspaces, _iterator, _step, workspacePath, workspaceDeps, validWorkspace, noLongerWorkspace;
|
|
86
87
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -188,6 +189,7 @@ export var DependencyStore = /*#__PURE__*/function () {
|
|
|
188
189
|
* If multiple versions of a dependency exist, the lowest version is returned.
|
|
189
190
|
* If the dependency is listed under multiple dependency types, 'dependencies' is prioritised over 'devDependencies'
|
|
190
191
|
*/
|
|
192
|
+
)
|
|
191
193
|
}, {
|
|
192
194
|
key: "getFlattenedDeps",
|
|
193
195
|
value: function getFlattenedDeps() {
|
|
@@ -214,7 +216,7 @@ export var DependencyStore = /*#__PURE__*/function () {
|
|
|
214
216
|
/** Scans all workspaces in repo and rebuilds dependency store */
|
|
215
217
|
}, {
|
|
216
218
|
key: "resetStore",
|
|
217
|
-
value: function () {
|
|
219
|
+
value: (function () {
|
|
218
220
|
var _resetStore = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(hash) {
|
|
219
221
|
var workspaceGlobs, workspacePaths, _iterator2, _step2, wsPath, workspaceDeps;
|
|
220
222
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -284,7 +286,7 @@ export var DependencyStore = /*#__PURE__*/function () {
|
|
|
284
286
|
return _resetStore.apply(this, arguments);
|
|
285
287
|
}
|
|
286
288
|
return resetStore;
|
|
287
|
-
}()
|
|
289
|
+
}())
|
|
288
290
|
}, {
|
|
289
291
|
key: "getWorkspaceDependencies",
|
|
290
292
|
value: function () {
|
|
@@ -66,7 +66,7 @@ export function createUpgradeEvent(name, version, previousVersion, date) {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
return _objectSpread({
|
|
69
|
-
cliVersion: "1.6.
|
|
69
|
+
cliVersion: "1.6.7",
|
|
70
70
|
dependencyName: name,
|
|
71
71
|
versionString: eventVersion,
|
|
72
72
|
major: parsedVersion ? "".concat(parsedVersion.major) : null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dependency-version-analytics",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.7",
|
|
4
4
|
"description": "Tool to pull atlaskit version history from a repo",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,9 +24,7 @@
|
|
|
24
24
|
"team": "UIP - Platform Integration Trust (PITa)",
|
|
25
25
|
"releaseModel": "continuous"
|
|
26
26
|
},
|
|
27
|
-
"bin":
|
|
28
|
-
"dependency-version-analytics": "./bin/dependency-version-analytics.js"
|
|
29
|
-
},
|
|
27
|
+
"bin": "./bin/dependency-version-analytics.js",
|
|
30
28
|
"scripts": {
|
|
31
29
|
"test": "jest"
|
|
32
30
|
},
|
|
@@ -54,7 +52,7 @@
|
|
|
54
52
|
"jest": "^26.4.2",
|
|
55
53
|
"ts-jest": "26.5.6",
|
|
56
54
|
"ts-node": "^10.9.1",
|
|
57
|
-
"typescript": "~4.
|
|
55
|
+
"typescript": "~5.4.2"
|
|
58
56
|
},
|
|
59
57
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
60
58
|
"af:exports": {
|