@changesets/git
Advanced tools
Comparing version 1.3.0 to 1.3.1
# @changesets/git | ||
## 1.3.1 | ||
### Patch Changes | ||
- Updated dependencies [[`27a5a82`](https://github.com/changesets/changesets/commit/27a5a82188914570d192162f9d045dfd082a3c15)]: | ||
- @changesets/types@4.1.0 | ||
## 1.3.0 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@changesets/git", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Some git helpers that changesets use to get information", | ||
@@ -12,3 +12,3 @@ "main": "dist/git.cjs.js", | ||
"@changesets/errors": "^0.1.4", | ||
"@changesets/types": "^4.0.2", | ||
"@changesets/types": "^4.1.0", | ||
"@manypkg/get-packages": "^1.1.3", | ||
@@ -15,0 +15,0 @@ "is-subdir": "^1.1.1", |
@@ -6,3 +6,2 @@ import fixtures from "fixturez"; | ||
import { | ||
getCommitThatAddsFile, | ||
getCommitsThatAddFiles, | ||
@@ -244,19 +243,2 @@ getChangedFilesSince, | ||
// We have replaced the single-file version with a multi-file version | ||
// which will correctly run all the file retrieves in parallel, safely | ||
// deepening a shallow clone as necessary. We've deprecated the | ||
// single-file version and can remove it in a major release. | ||
it("exposes a deprecated single-file call", async () => { | ||
await add("packages/pkg-b/package.json", cwd); | ||
await commit("added packageB package.json", cwd); | ||
const headSha = await getCurrentCommitShort(cwd); | ||
const commitHash = await getCommitThatAddsFile( | ||
"packages/pkg-b/package.json", | ||
cwd | ||
); | ||
expect(commitHash).toEqual(headSha); | ||
}); | ||
describe("with shallow clone", () => { | ||
@@ -336,3 +318,3 @@ // We will add these three well-known files | ||
// Finding this commit will require deepening the clone until it appears. | ||
const commit = await getCommitThatAddsFile(file2, clone); | ||
const commit = (await getCommitsThatAddFiles([file2], clone))[0]; | ||
expect(commit).toEqual(originalCommit); | ||
@@ -354,3 +336,3 @@ | ||
// Finding this commit will require fully deepening the repo | ||
const commit = await getCommitThatAddsFile(file3, clone); | ||
const commit = (await getCommitsThatAddFiles([file3], clone))[0]; | ||
expect(commit).toEqual(originalCommit); | ||
@@ -357,0 +339,0 @@ |
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
60089
1236
Updated@changesets/types@^4.1.0