balena-deploy-request 0.9.1-build-renovate-major-husky-6438a3d0a94b2e8093dff0eed4055f55c81af4ab-1 → 0.9.1-build-renovate-major-prettier-7f7def9c5eab1602b586c17cadf85df75bbeff71-1

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.
@@ -1,15 +1,15 @@
1
1
  - commits:
2
- - subject: Update dependency husky to v8
3
- hash: 6438a3d0a94b2e8093dff0eed4055f55c81af4ab
2
+ - subject: Update dependency prettier to v3
3
+ hash: 7f7def9c5eab1602b586c17cadf85df75bbeff71
4
4
  body: |
5
- Update husky from 2.7.0 to 8.0.3
5
+ Update prettier from 1.19.1 to 3.1.1
6
6
  footer:
7
7
  Change-type: patch
8
8
  change-type: patch
9
9
  author: Self-hosted Renovate Bot
10
10
  version: 0.9.1
11
11
  title: ""
12
- date: 2024-01-08T17:45:20.767Z
12
+ date: 2024-01-08T17:46:12.717Z
13
13
  - commits:
14
14
  - subject: Add nested changelog entries to the proposed notable changes
15
15
  hash: 9e55bbf2170308b11872060089ad6e7e668ee444
package/CHANGELOG.md CHANGED
@@ -7,7 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
7
7
  # v0.9.1
8
8
  ## (2024-01-08)
9
9
 
10
- * Update dependency husky to v8 [Self-hosted Renovate Bot]
10
+ * Update dependency prettier to v3 [Self-hosted Renovate Bot]
11
11
 
12
12
  # v0.9.0
13
13
  ## (2023-06-16)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balena-deploy-request",
3
- "version": "0.9.1-build-renovate-major-husky-6438a3d0a94b2e8093dff0eed4055f55c81af4ab-1",
3
+ "version": "0.9.1-build-renovate-major-prettier-7f7def9c5eab1602b586c17cadf85df75bbeff71-1",
4
4
  "description": "A simple script for generating deploy requests along with release notes",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -30,11 +30,11 @@
30
30
  },
31
31
  "homepage": "https://github.com/balena-io-modules/balena-deploy-request#readme",
32
32
  "devDependencies": {
33
- "husky": "^8.0.0",
33
+ "husky": "^2.2.0",
34
34
  "lint-staged": "^8.1.6",
35
- "prettier": "^1.17.1"
35
+ "prettier": "^3.0.0"
36
36
  },
37
37
  "versionist": {
38
- "publishedAt": "2024-01-08T17:45:20.824Z"
38
+ "publishedAt": "2024-01-08T17:46:12.773Z"
39
39
  }
40
40
  }
package/src/index.js CHANGED
@@ -45,12 +45,12 @@ function getLatestProdInfo() {
45
45
 
46
46
  let latestProdVersionTag = gitMultilineResults(
47
47
  `log ${latestProdTag} --skip 0 -n 1 --pretty=tformat:%s`,
48
- ).filter(line => line.match(/^v/))[0];
48
+ ).filter((line) => line.match(/^v/))[0];
49
49
  if (!latestProdVersionTag) {
50
50
  // for VB v1 tags
51
51
  latestProdVersionTag = gitMultilineResults(
52
52
  `log ${latestProdTag} --skip 1 -n 1 --pretty=tformat:%s`,
53
- ).filter(line => line.match(/^v/))[0];
53
+ ).filter((line) => line.match(/^v/))[0];
54
54
  }
55
55
  return {
56
56
  latestProdTag,
@@ -63,7 +63,7 @@ const prevVersionTag = latestProdInfo.latestProdVersionTag;
63
63
 
64
64
  const rawChangelog = gitMultilineResults(
65
65
  `diff -U0 ${prevVersionTag} CHANGELOG.md`,
66
- ).filter(line => line.match(/^[+-]/) && !line.match(/^--- a\/|[+]{3} b/));
66
+ ).filter((line) => line.match(/^[+-]/) && !line.match(/^--- a\/|[+]{3} b/));
67
67
 
68
68
  const CHANGELOG_VERSION_REGEX = /#?#\W+v?(\d+\.\d+\.\d+)/;
69
69
  const newVersionMatchGroups =
@@ -85,7 +85,7 @@ const newVersion = `v${newVersionMatchGroups[1]}`;
85
85
 
86
86
  const date = new Date().toISOString().match(/\d+-\d+-\d+/)[0];
87
87
 
88
- const changelog = rawChangelog.map(l => l.replace(/^\+/, ''));
88
+ const changelog = rawChangelog.map((l) => l.replace(/^\+/, ''));
89
89
 
90
90
  const notableChanges = [];
91
91
  for (const l of changelog) {
package/src/utils.js CHANGED
@@ -23,11 +23,11 @@ exports.gitMultilineResults = function gitMultilineResults(args) {
23
23
  return exports
24
24
  .git(args)
25
25
  .split('\n')
26
- .filter(line => !!line);
26
+ .filter((line) => !!line);
27
27
  };
28
28
 
29
29
  exports.toTitleCase = function toTitleCase(str) {
30
- return str.replace(/\w\S*/g, function(txt) {
30
+ return str.replace(/\w\S*/g, function (txt) {
31
31
  return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
32
32
  });
33
33
  };