Socket
Socket
Sign inDemoInstall

@changesets/git

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/git - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

7

CHANGELOG.md
# @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 @@

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc