workspace-tools 0.21.0 → 0.22.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.
Files changed (50) hide show
  1. package/CHANGELOG.json +24 -1
  2. package/CHANGELOG.md +14 -2
  3. package/package.json +5 -3
  4. package/.github/workflows/pr.yml +0 -29
  5. package/.github/workflows/release.yml +0 -36
  6. package/.prettierrc +0 -6
  7. package/CODE_OF_CONDUCT.md +0 -9
  8. package/SECURITY.md +0 -41
  9. package/beachball.config.js +0 -12
  10. package/docs/.nojekyll +0 -1
  11. package/docs/assets/highlight.css +0 -22
  12. package/docs/assets/icons.css +0 -1043
  13. package/docs/assets/icons.png +0 -0
  14. package/docs/assets/icons@2x.png +0 -0
  15. package/docs/assets/main.js +0 -52
  16. package/docs/assets/search.js +0 -1
  17. package/docs/assets/style.css +0 -1414
  18. package/docs/assets/widgets.png +0 -0
  19. package/docs/assets/widgets@2x.png +0 -0
  20. package/docs/index.html +0 -42
  21. package/docs/interfaces/NpmLockFile.html +0 -1
  22. package/docs/interfaces/NpmSymlinkInfo.html +0 -1
  23. package/docs/interfaces/NpmWorkspacesInfo.html +0 -1
  24. package/docs/interfaces/PackageInfo.html +0 -1
  25. package/docs/interfaces/PackageInfos.html +0 -1
  26. package/docs/interfaces/PnpmLockFile.html +0 -1
  27. package/docs/modules.html +0 -70
  28. package/jest.config.js +0 -11
  29. package/lib/__tests__/dependencies.test.d.ts +0 -1
  30. package/lib/__tests__/dependencies.test.js +0 -141
  31. package/lib/__tests__/getChangedPackages.test.d.ts +0 -1
  32. package/lib/__tests__/getChangedPackages.test.js +0 -142
  33. package/lib/__tests__/getDefaultRemote.test.d.ts +0 -1
  34. package/lib/__tests__/getDefaultRemote.test.js +0 -26
  35. package/lib/__tests__/getInitDefaultBranch.test.d.ts +0 -1
  36. package/lib/__tests__/getInitDefaultBranch.test.js +0 -26
  37. package/lib/__tests__/getPackagesByFiles.test.d.ts +0 -1
  38. package/lib/__tests__/getPackagesByFiles.test.js +0 -54
  39. package/lib/__tests__/getScopedPackages.test.d.ts +0 -1
  40. package/lib/__tests__/getScopedPackages.test.js +0 -74
  41. package/lib/__tests__/getWorkspaceRoot.test.d.ts +0 -1
  42. package/lib/__tests__/getWorkspaceRoot.test.js +0 -40
  43. package/lib/__tests__/getWorkspaces.test.d.ts +0 -1
  44. package/lib/__tests__/getWorkspaces.test.js +0 -122
  45. package/lib/__tests__/graph.test.d.ts +0 -1
  46. package/lib/__tests__/graph.test.js +0 -117
  47. package/lib/__tests__/lockfile.test.d.ts +0 -1
  48. package/lib/__tests__/lockfile.test.js +0 -42
  49. package/lib/__tests__/queryLockFile.test.d.ts +0 -1
  50. package/lib/__tests__/queryLockFile.test.js +0 -43
package/CHANGELOG.json CHANGED
@@ -2,7 +2,30 @@
2
2
  "name": "workspace-tools",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 01 Jul 2022 14:55:58 GMT",
5
+ "date": "Wed, 13 Jul 2022 20:42:04 GMT",
6
+ "tag": "workspace-tools_v0.22.0",
7
+ "version": "0.22.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "elcraig@microsoft.com",
12
+ "package": "workspace-tools",
13
+ "comment": "Update git-url-parse (includes [possible breaking changes](https://github.com/IonicaBizau/git-url-parse/releases/tag/12.0.0))",
14
+ "commit": "beddff28642eecabce2c64fd387bcc922ed7b941"
15
+ }
16
+ ],
17
+ "patch": [
18
+ {
19
+ "author": "elcraig@microsoft.com",
20
+ "package": "workspace-tools",
21
+ "comment": "Remove unneeded files from published package",
22
+ "commit": "beddff28642eecabce2c64fd387bcc922ed7b941"
23
+ }
24
+ ]
25
+ }
26
+ },
27
+ {
28
+ "date": "Fri, 01 Jul 2022 14:56:01 GMT",
6
29
  "tag": "workspace-tools_v0.21.0",
7
30
  "version": "0.21.0",
8
31
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,24 @@
1
1
  # Change Log - workspace-tools
2
2
 
3
- This log was last generated on Fri, 01 Jul 2022 14:55:58 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 13 Jul 2022 20:42:04 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.22.0
8
+
9
+ Wed, 13 Jul 2022 20:42:04 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Update git-url-parse (includes [possible breaking changes](https://github.com/IonicaBizau/git-url-parse/releases/tag/12.0.0)) (elcraig@microsoft.com)
14
+
15
+ ### Patches
16
+
17
+ - Remove unneeded files from published package (elcraig@microsoft.com)
18
+
7
19
  ## 0.21.0
8
20
 
9
- Fri, 01 Jul 2022 14:55:58 GMT
21
+ Fri, 01 Jul 2022 14:56:01 GMT
10
22
 
11
23
  ### Minor changes
12
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workspace-tools",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,6 +8,9 @@
8
8
  },
9
9
  "main": "lib/index.js",
10
10
  "types": "lib/index.d.ts",
11
+ "files": [
12
+ "lib/!(__*)"
13
+ ],
11
14
  "scripts": {
12
15
  "build": "tsc",
13
16
  "build:docs": "typedoc src/index.ts",
@@ -21,7 +24,7 @@
21
24
  "dependencies": {
22
25
  "@yarnpkg/lockfile": "^1.1.0",
23
26
  "find-up": "^4.1.0",
24
- "git-url-parse": "^11.1.2",
27
+ "git-url-parse": "^12.0.0",
25
28
  "globby": "^11.0.0",
26
29
  "jju": "^1.4.0",
27
30
  "multimatch": "^4.0.0",
@@ -29,7 +32,6 @@
29
32
  },
30
33
  "devDependencies": {
31
34
  "@types/git-url-parse": "^9.0.0",
32
- "@types/glob": "^7.1.1",
33
35
  "@types/jest": "^25.2.2",
34
36
  "@types/jju": "^1.4.1",
35
37
  "@types/multimatch": "^4.0.0",
@@ -1,29 +0,0 @@
1
- # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
-
4
- name: PR
5
-
6
- on:
7
- pull_request:
8
- branches: [master]
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
-
14
- strategy:
15
- matrix:
16
- node-version: [12.x]
17
-
18
- steps:
19
- - uses: actions/checkout@v2
20
- with:
21
- fetch-depth: 0
22
- - name: Use Node.js ${{ matrix.node-version }}
23
- uses: actions/setup-node@v1
24
- with:
25
- node-version: ${{ matrix.node-version }}
26
- - run: yarn
27
- - run: yarn checkchange
28
- - run: yarn build
29
- - run: yarn test
@@ -1,36 +0,0 @@
1
- # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
-
4
- name: Release
5
-
6
- on:
7
- push:
8
- branches: [master]
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
-
14
- strategy:
15
- matrix:
16
- node-version: [12.x]
17
-
18
- steps:
19
- - uses: actions/checkout@v2
20
- with:
21
- token: ${{ secrets.repo_pat }}
22
- fetch-depth: 0
23
- - name: Use Node.js ${{ matrix.node-version }}
24
- uses: actions/setup-node@v1
25
- with:
26
- node-version: ${{ matrix.node-version }}
27
- - run: yarn
28
- - run: yarn checkchange
29
- - run: yarn build
30
- - run: yarn test
31
- - run: |
32
- git config user.email "kchau@microsoft.com"
33
- git config user.name "Ken Chau"
34
- - run: yarn release -y -n $NPM_AUTHTOKEN
35
- env:
36
- NPM_AUTHTOKEN: ${{ secrets.npm_authtoken }}
package/.prettierrc DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 2,
4
- "singleQuote": false,
5
- "printWidth": 120
6
- }
@@ -1,9 +0,0 @@
1
- # Microsoft Open Source Code of Conduct
2
-
3
- This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4
-
5
- Resources:
6
-
7
- - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8
- - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9
- - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
package/SECURITY.md DELETED
@@ -1,41 +0,0 @@
1
- <!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 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/en-us/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/en-us/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/en-us/msrc/cvd).
40
-
41
- <!-- END MICROSOFT SECURITY.MD BLOCK -->
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- scope: ["!src/__fixtures__/**/*"],
3
- ignorePatterns: [
4
- ".github/**",
5
- ".prettierrc",
6
- "jest.config.js",
7
- "src/__fixtures__/**",
8
- "src/__tests__/**",
9
- // This prevents dependabot from being blocked by change file requirements for lock file-only changes
10
- "yarn.lock",
11
- ],
12
- };
package/docs/.nojekyll DELETED
@@ -1 +0,0 @@
1
- TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -1,22 +0,0 @@
1
- :root {
2
- --light-code-background: #F5F5F5;
3
- --dark-code-background: #1E1E1E;
4
- }
5
-
6
- @media (prefers-color-scheme: light) { :root {
7
- --code-background: var(--light-code-background);
8
- } }
9
-
10
- @media (prefers-color-scheme: dark) { :root {
11
- --code-background: var(--dark-code-background);
12
- } }
13
-
14
- body.light {
15
- --code-background: var(--light-code-background);
16
- }
17
-
18
- body.dark {
19
- --code-background: var(--dark-code-background);
20
- }
21
-
22
- pre, code { background: var(--code-background); }