@apexdevtools/git-ops 1.0.1 → 1.0.2

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.md CHANGED
@@ -1,4 +1,8 @@
1
- # test-runner - Changelog
1
+ # git-ops - Changelog
2
+
3
+ ## 1.0.2 - 2023-03-20
4
+
5
+ - downgrade min git version to 2.30.0
2
6
 
3
7
  ## 1.0.1 - 2023-03-14
4
8
 
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Library to do git operations to find changed files in a given git repository.
4
4
 
5
+ ## Prerequisite
6
+
7
+ Minimum `git` version of `2.30.0` must already be installed on the host machine.
8
+
5
9
  ## Getting Started
6
10
 
7
11
  To build run
@@ -104,6 +104,6 @@ class Git {
104
104
  }
105
105
  exports.Git = Git;
106
106
  Git.MIN_GIT_VERSION_MAJOR = 2;
107
- Git.MIN_GIT_VERSION_MINOR = 37;
107
+ Git.MIN_GIT_VERSION_MINOR = 30;
108
108
  Git.MIN_GIT_VERSION_PATCH = 0;
109
109
  Git.gitInstance = undefined;
@@ -28,10 +28,10 @@ describe('Git', () => {
28
28
  yield repoManager.tearDown();
29
29
  }));
30
30
  describe('version check', () => {
31
- it('does not fail when Git version is equal to 2.37.0', () => {
31
+ it('does not fail when Git version is equal to 2.30.0', () => {
32
32
  //Given/When
33
33
  const mock = {
34
- version: jest.fn().mockReturnValue({ major: 2, minor: 37, patch: 0 }),
34
+ version: jest.fn().mockReturnValue({ major: 2, minor: 30, patch: 0 }),
35
35
  };
36
36
  expect(Git_1.Git.versionCheck(mock)).resolves;
37
37
  });
@@ -41,7 +41,7 @@ describe('Git', () => {
41
41
  version: jest.fn().mockReturnValue({ major: 1 }),
42
42
  };
43
43
  //Then
44
- yield expect(Git_1.Git.versionCheck(mock)).rejects.toThrow(Error('Unsupported version of git. Min version must be 2.37.0'));
44
+ yield expect(Git_1.Git.versionCheck(mock)).rejects.toThrow(Error('Unsupported version of git. Min version must be 2.30.0'));
45
45
  }));
46
46
  it('fails when Git minor version is lower', () => __awaiter(void 0, void 0, void 0, function* () {
47
47
  //Given/When
@@ -49,7 +49,7 @@ describe('Git', () => {
49
49
  version: jest.fn().mockReturnValue({ major: 3, minor: 36 }),
50
50
  };
51
51
  //Then
52
- yield expect(Git_1.Git.versionCheck(mock)).rejects.toThrow(Error('Unsupported version of git. Min version must be 2.37.0'));
52
+ yield expect(Git_1.Git.versionCheck(mock)).rejects.toThrow(Error('Unsupported version of git. Min version must be 2.30.0'));
53
53
  }));
54
54
  it('fails when Git patch version is more than 0', () => {
55
55
  //Given/When
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexdevtools/git-ops",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Library to do git operations to find changed files in a given git repository",
5
5
  "author": {
6
6
  "name": "Apex Dev Tools Team",