beachball 2.25.0 → 2.26.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.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,52 @@
2
2
  "name": "beachball",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 13 Jul 2022 21:17:48 GMT",
5
+ "date": "Fri, 05 Aug 2022 22:30:31 GMT",
6
+ "tag": "beachball_v2.26.1",
7
+ "version": "2.26.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "elcraig@microsoft.com",
12
+ "package": "beachball",
13
+ "commit": "b243be7c2944ab90bd613b5a1fac1bc7c366f607",
14
+ "comment": "Specify `files` in package.json to ensure only intended files are published"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 21 Jul 2022 00:41:14 GMT",
21
+ "tag": "beachball_v2.26.0",
22
+ "version": "2.26.0",
23
+ "comments": {
24
+ "minor": [
25
+ {
26
+ "author": "elcraig@microsoft.com",
27
+ "package": "beachball",
28
+ "commit": "1e95735b4897363a2100c797129b30db495d0bb6",
29
+ "comment": "Update workspace-tools to fix remote detection"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Thu, 14 Jul 2022 21:17:09 GMT",
36
+ "tag": "beachball_v2.25.1",
37
+ "version": "2.25.1",
38
+ "comments": {
39
+ "patch": [
40
+ {
41
+ "author": "viditganpi10@gmail.com",
42
+ "package": "beachball",
43
+ "commit": "c1490d51e33daf38ff7d0d14c79a8bcfc1708f61",
44
+ "comment": "Added error handling for git fetch"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Wed, 13 Jul 2022 21:17:51 GMT",
6
51
  "tag": "beachball_v2.25.0",
7
52
  "version": "2.25.0",
8
53
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,36 @@
1
1
  # Change Log - beachball
2
2
 
3
- This log was last generated on Wed, 13 Jul 2022 21:17:48 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 05 Aug 2022 22:30:31 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.26.1
8
+
9
+ Fri, 05 Aug 2022 22:30:31 GMT
10
+
11
+ ### Patches
12
+
13
+ - Specify `files` in package.json to ensure only intended files are published (elcraig@microsoft.com)
14
+
15
+ ## 2.26.0
16
+
17
+ Thu, 21 Jul 2022 00:41:14 GMT
18
+
19
+ ### Minor changes
20
+
21
+ - Update workspace-tools to fix remote detection (elcraig@microsoft.com)
22
+
23
+ ## 2.25.1
24
+
25
+ Thu, 14 Jul 2022 21:17:09 GMT
26
+
27
+ ### Patches
28
+
29
+ - Added error handling for git fetch (viditganpi10@gmail.com)
30
+
7
31
  ## 2.25.0
8
32
 
9
- Wed, 13 Jul 2022 21:17:48 GMT
33
+ Wed, 13 Jul 2022 21:17:51 GMT
10
34
 
11
35
  ### Minor changes
12
36
 
@@ -61,7 +61,10 @@ function getCliOptionsUncached(argv) {
61
61
  cliOptions.disallowedChangeTypes = disallowedChangeTypesArgs;
62
62
  }
63
63
  if (args.branch) {
64
- cliOptions.branch = args.branch.indexOf('/') > -1 ? args.branch : workspace_tools_1.getDefaultRemoteBranch(args.branch, cwd);
64
+ cliOptions.branch =
65
+ args.branch.indexOf('/') > -1
66
+ ? args.branch
67
+ : workspace_tools_1.getDefaultRemoteBranch({ branch: args.branch, verbose: args.verbose, cwd });
65
68
  }
66
69
  if (cliOptions.command === 'canary') {
67
70
  cliOptions.tag = cliOptions.canaryName || 'canary';
@@ -1 +1 @@
1
- {"version":3,"file":"getCliOptions.js","sourceRoot":"","sources":["../../src/options/getCliOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gEAAkC;AAElC,qDAA0E;AAE1E,IAAI,gBAA4B,CAAC;AAEjC,SAAgB,aAAa,CAAC,IAAc;IAC1C,iEAAiE;IACjE,IAAI,IAAI,KAAK,OAAO,CAAC,IAAI,EAAE;QACzB,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O,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAIpE,wBAAgB,cAAc,CAAC,UAAU,EAAE,UAAU,GAAG,WAAW,CAkClE"}
1
+ {"version":3,"file":"getRepoOptions.d.ts","sourceRoot":"","sources":["../../src/options/getRepoOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAoB,MAAM,2BAA2B,CAAC;AAItF,wBAAgB,cAAc,CAAC,UAAU,EAAE,UAAU,GAAG,WAAW,CAmClE"}
@@ -5,7 +5,7 @@ const cosmiconfig_1 = require("cosmiconfig");
5
5
  const workspace_tools_1 = require("workspace-tools");
6
6
  let cachedRepoOptions = new Map();
7
7
  function getRepoOptions(cliOptions) {
8
- const { configPath, path: repoRoot, branch } = cliOptions;
8
+ const { configPath, path: cwd, branch } = cliOptions;
9
9
  if (cachedRepoOptions.has(cliOptions)) {
10
10
  return cachedRepoOptions.get(cliOptions);
11
11
  }
@@ -25,13 +25,14 @@ function getRepoOptions(cliOptions) {
25
25
  // avoid potential for log messages/errors which aren't relevant if the branch was specified on
26
26
  // the command line.)
27
27
  if (!branch) {
28
+ const verbose = repoOptions.verbose;
28
29
  if (repoOptions.branch && !repoOptions.branch.includes('/')) {
29
30
  // Add a remote to the branch if it's not already included
30
- repoOptions.branch = workspace_tools_1.getDefaultRemoteBranch(repoOptions.branch, repoRoot);
31
+ repoOptions.branch = workspace_tools_1.getDefaultRemoteBranch({ branch: repoOptions.branch, cwd, verbose });
31
32
  }
32
33
  else if (!repoOptions.branch) {
33
34
  // Branch is not specified at all. Add in the default remote and branch.
34
- repoOptions.branch = workspace_tools_1.getDefaultRemoteBranch(undefined, cliOptions.path);
35
+ repoOptions.branch = workspace_tools_1.getDefaultRemoteBranch({ cwd, verbose });
35
36
  }
36
37
  }
37
38
  cachedRepoOptions.set(cliOptions, repoOptions);
@@ -1 +1 @@
1
- {"version":3,"file":"getRepoOptions.js","sourceRoot":"","sources":["../../src/options/getRepo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7D,wBAAsB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,iBAiErG"}
1
+ {"version":3,"file":"bumpAndPush.d.ts","sourceRoot":"","sources":["../../src/publish/bumpAndPush.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAQ7D,wBAAsB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,iBAsErG"}
@@ -30,11 +30,17 @@ function bumpAndPush(bumpInfo, publishBranch, options) {
30
30
  // pull in latest from origin branch
31
31
  console.log('Fetching from remote');
32
32
  if (options.fetch !== false) {
33
- if (options.depth) {
34
- workspace_tools_1.gitFailFast(['fetch', remote, remoteBranch, `--depth=${options.depth}`], { cwd });
33
+ try {
34
+ if (options.depth) {
35
+ workspace_tools_1.gitFailFast(['fetch', remote, remoteBranch, `--depth=${options.depth}`], { cwd });
36
+ }
37
+ else {
38
+ workspace_tools_1.gitFailFast(['fetch', remote, remoteBranch], { cwd });
39
+ }
35
40
  }
36
- else {
37
- workspace_tools_1.gitFailFast(['fetch', remote, remoteBranch], { cwd });
41
+ catch (err) {
42
+ console.warn(`[WARN ${tryNumber}/${BUMP_PUSH_RETRIES}]: fetch from ${branch} has failed!\n${err}`);
43
+ continue;
38
44
  }
39
45
  }
40
46
  const mergeResult = workspace_tools_1.git(['merge', '-X', 'theirs', `${branch}`], { cwd });
@@ -1 +1 @@
1
- {"version":3,"file":"bumpAndPush.js","sourceRoot":"","sources":["../../src/publish/bumpAndPush.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkD;AAGlD,qDAA0F;AAC1F,+CAAwD;AACxD,6DAA0D;AAC1D,mEAAgE;AAEhE,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B,SA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+C,CAAC,CAAC;YACjF,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,YAAY,EAAE,CAAC,CAAC;YACvG,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YAEzC,MAAM,UAAU,GAAG,qBAAG,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;YAE1C,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;gBACvB,OAAO,CAAC,IAAI,CAAC,SAAS,SAAS,IAAI,iBAAiB,cAAc,MAAM,iBAAiB,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;gBAC9G,SAAS;aACV;iBAAM;gBACL,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;gBAC1C,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;gBAC1C,SAAS,GAAG,IAAI,CAAC;aAClB;SACF;QAED,IAAI,CAAC,SAAS,EAAE;YACd,6CAAqB,CAAC,QAAQ,CAAC,CAAC;YAChC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACjB;IACH,CAAC;CAAA;AAtED,kCAsEC"}
@@ -1,6 +1,2 @@
1
- export declare function mergePublishBranch(publishBranch: string, branch: string, message: string, cwd: string): {
2
- stderr: string;
3
- stdout: string;
4
- success: boolean;
5
- };
1
+ export declare function mergePublishBranch(publishBranch: string, branch: string, message: string, cwd: string): import("workspace-tools").GitProcessOutput;
6
2
  //# sourceMappingURL=mergePublishBranch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mergePublishBranch.d.ts","sourceRoot":"","sources":["../../src/publish/mergePublishBranch.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;;;;EAoBrG"}
1
+ {"version":3,"file":"mergePublishBranch.d.ts","sourceRoot":"","sources":["../../src/publish/mergePublishBranch.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,8CAoBrG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beachball",
3
- "version": "2.25.0",
3
+ "version": "2.26.1",
4
4
  "description": "The Sunniest Semantic Version Bumper",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,6 +16,10 @@
16
16
  "engines": {
17
17
  "node": ">=12.0.0"
18
18
  },
19
+ "files": [
20
+ "bin",
21
+ "lib/!(__*)"
22
+ ],
19
23
  "scripts": {
20
24
  "build": "tsc",
21
25
  "change": "node ./lib/cli.js change",
@@ -45,7 +49,7 @@
45
49
  "semver": "^6.1.1",
46
50
  "toposort": "^2.0.2",
47
51
  "uuid": "^8.3.1",
48
- "workspace-tools": "^0.22.0",
52
+ "workspace-tools": "^0.24.0",
49
53
  "yargs-parser": "^20.2.4"
50
54
  },
51
55
  "devDependencies": {
package/CONTRIBUTING.md DELETED
@@ -1,13 +0,0 @@
1
- # Contributing
2
-
3
- This project welcomes contributions and suggestions. Most contributions require you to agree to a
4
- Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
5
- the rights to use your contribution. For details, visit https://cla.microsoft.com.
6
-
7
- When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
8
- a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
9
- provided by the bot. You will only need to do this once across all repos using our CLA.
10
-
11
- This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
12
- For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
13
- contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
package/SECURITY.md DELETED
@@ -1,41 +0,0 @@
1
- <!-- BEGIN MICROSOFT SECURITY.MD V0.0.6 BLOCK -->
2
-
3
- ## Security
4
-
5
- Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6
-
7
- If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
8
-
9
- ## Reporting Security Issues
10
-
11
- **Please do not report security vulnerabilities through public GitHub issues.**
12
-
13
- Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
14
-
15
- If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/msrc/pgp-key-msrc).
16
-
17
- You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
18
-
19
- Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20
-
21
- * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22
- * Full paths of source file(s) related to the manifestation of the issue
23
- * The location of the affected source code (tag/branch/commit or direct URL)
24
- * Any special configuration required to reproduce the issue
25
- * Step-by-step instructions to reproduce the issue
26
- * Proof-of-concept or exploit code (if possible)
27
- * Impact of the issue, including how an attacker might exploit the issue
28
-
29
- This information will help us triage your report more quickly.
30
-
31
- If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
32
-
33
- ## Preferred Languages
34
-
35
- We prefer all communications to be in English.
36
-
37
- ## Policy
38
-
39
- Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/msrc/cvd).
40
-
41
- <!-- END MICROSOFT SECURITY.MD BLOCK -->