@changesets/apply-release-plan
Advanced tools
Comparing version 6.1.2 to 6.1.3
# @changesets/apply-release-plan | ||
## 6.1.3 | ||
### Patch Changes | ||
- Updated dependencies [[`598136a`](https://github.com/changesets/changesets/commit/598136a32a00b620c9521d7a7151fbbc721c17d7), [`521205d`](https://github.com/changesets/changesets/commit/521205dc8c70fe71b181bd3c4bb7c9c6d2e721d2), [`521205d`](https://github.com/changesets/changesets/commit/521205dc8c70fe71b181bd3c4bb7c9c6d2e721d2), [`598136a`](https://github.com/changesets/changesets/commit/598136a32a00b620c9521d7a7151fbbc721c17d7), [`598136a`](https://github.com/changesets/changesets/commit/598136a32a00b620c9521d7a7151fbbc721c17d7), [`521205d`](https://github.com/changesets/changesets/commit/521205dc8c70fe71b181bd3c4bb7c9c6d2e721d2)]: | ||
- @changesets/git@2.0.0 | ||
- @changesets/config@2.3.0 | ||
- @changesets/types@5.2.1 | ||
## 6.1.2 | ||
@@ -4,0 +13,0 @@ |
@@ -266,3 +266,6 @@ 'use strict'; | ||
const paths = changesetIds.map(id => `.changeset/${id}.md`); | ||
const commits = await git.getCommitsThatAddFiles(paths, cwd); | ||
const commits = await git.getCommitsThatAddFiles(paths, { | ||
cwd, | ||
short: true | ||
}); | ||
@@ -277,3 +280,6 @@ if (commits.every(stringDefined)) { | ||
const legacyPaths = missingIds.map(id => `.changeset/${id}/changes.json`); | ||
const commitsForLegacyPaths = await git.getCommitsThatAddFiles(legacyPaths, cwd); // Fill in the blanks in the array of commits | ||
const commitsForLegacyPaths = await git.getCommitsThatAddFiles(legacyPaths, { | ||
cwd, | ||
short: true | ||
}); // Fill in the blanks in the array of commits | ||
@@ -280,0 +286,0 @@ changesetIds.forEach((id, i) => { |
@@ -159,5 +159,11 @@ "use strict"; | ||
async function getCommitsThatAddChangesets(changesetIds, cwd) { | ||
const paths = changesetIds.map((id => `.changeset/${id}.md`)), commits = await git.getCommitsThatAddFiles(paths, cwd); | ||
const paths = changesetIds.map((id => `.changeset/${id}.md`)), commits = await git.getCommitsThatAddFiles(paths, { | ||
cwd: cwd, | ||
short: !0 | ||
}); | ||
if (commits.every(stringDefined)) return commits; | ||
const missingIds = changesetIds.map(((id, i) => commits[i] ? void 0 : id)).filter(stringDefined), legacyPaths = missingIds.map((id => `.changeset/${id}/changes.json`)), commitsForLegacyPaths = await git.getCommitsThatAddFiles(legacyPaths, cwd); | ||
const missingIds = changesetIds.map(((id, i) => commits[i] ? void 0 : id)).filter(stringDefined), legacyPaths = missingIds.map((id => `.changeset/${id}/changes.json`)), commitsForLegacyPaths = await git.getCommitsThatAddFiles(legacyPaths, { | ||
cwd: cwd, | ||
short: !0 | ||
}); | ||
return changesetIds.forEach(((id, i) => { | ||
@@ -164,0 +170,0 @@ if (!commits[i]) { |
@@ -251,3 +251,6 @@ import { defaultConfig } from '@changesets/config'; | ||
const paths = changesetIds.map(id => `.changeset/${id}.md`); | ||
const commits = await getCommitsThatAddFiles(paths, cwd); | ||
const commits = await getCommitsThatAddFiles(paths, { | ||
cwd, | ||
short: true | ||
}); | ||
@@ -262,3 +265,6 @@ if (commits.every(stringDefined)) { | ||
const legacyPaths = missingIds.map(id => `.changeset/${id}/changes.json`); | ||
const commitsForLegacyPaths = await getCommitsThatAddFiles(legacyPaths, cwd); // Fill in the blanks in the array of commits | ||
const commitsForLegacyPaths = await getCommitsThatAddFiles(legacyPaths, { | ||
cwd, | ||
short: true | ||
}); // Fill in the blanks in the array of commits | ||
@@ -265,0 +271,0 @@ changesetIds.forEach((id, i) => { |
{ | ||
"name": "@changesets/apply-release-plan", | ||
"version": "6.1.2", | ||
"version": "6.1.3", | ||
"description": "Takes a release plan and applies it to packages", | ||
@@ -10,7 +10,7 @@ "main": "dist/apply-release-plan.cjs.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.10.4", | ||
"@changesets/config": "^2.2.0", | ||
"@babel/runtime": "^7.20.1", | ||
"@changesets/config": "^2.3.0", | ||
"@changesets/get-version-range-type": "^0.3.2", | ||
"@changesets/git": "^1.5.0", | ||
"@changesets/types": "^5.2.0", | ||
"@changesets/git": "^2.0.0", | ||
"@changesets/types": "^5.2.1", | ||
"@manypkg/get-packages": "^1.1.3", | ||
@@ -27,5 +27,4 @@ "detect-indent": "^6.0.0", | ||
"@changesets/test-utils": "*", | ||
"fixturez": "^1.1.0", | ||
"spawndamnit": "^2.0.0" | ||
} | ||
} |
@@ -41,3 +41,3 @@ import { | ||
const paths = changesetIds.map((id) => `.changeset/${id}.md`); | ||
const commits = await git.getCommitsThatAddFiles(paths, cwd); | ||
const commits = await git.getCommitsThatAddFiles(paths, { cwd, short: true }); | ||
@@ -55,6 +55,6 @@ if (commits.every(stringDefined)) { | ||
const legacyPaths = missingIds.map((id) => `.changeset/${id}/changes.json`); | ||
const commitsForLegacyPaths = await git.getCommitsThatAddFiles( | ||
legacyPaths, | ||
cwd | ||
); | ||
const commitsForLegacyPaths = await git.getCommitsThatAddFiles(legacyPaths, { | ||
cwd, | ||
short: true, | ||
}); | ||
@@ -61,0 +61,0 @@ // Fill in the blanks in the array of commits |
/* eslint-disable import/no-extraneous-dependencies */ | ||
import startCase from "lodash.startcase"; | ||
import { getCommitThatAddsFile } from "@changesets/git"; | ||
import { getCommitsThatAddFiles } from "@changesets/git"; | ||
import { ComprehensiveRelease, NewChangeset } from "@changesets/types"; | ||
@@ -13,5 +13,5 @@ | ||
const commitThatAddsFile = await getCommitThatAddsFile( | ||
`.changeset/${changeset.id}.md`, | ||
cwd | ||
const [commitThatAddsFile] = await getCommitsThatAddFiles( | ||
[`.changeset/${changeset.id}.md`], | ||
{ cwd, short: true } | ||
); | ||
@@ -18,0 +18,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193173
2
4702
+ Added@changesets/git@2.0.0(transitive)
- Removed@changesets/git@1.5.0(transitive)
Updated@babel/runtime@^7.20.1
Updated@changesets/config@^2.3.0
Updated@changesets/git@^2.0.0
Updated@changesets/types@^5.2.1