dugite 3.0.0 → 3.2.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.
package/README.md CHANGED
@@ -4,6 +4,10 @@ This project provides bindings for Node applications to interact with Git reposi
4
4
 
5
5
  The source is in TypeScript, but can be consumed by any JavaScript application.
6
6
 
7
+ ## Migrating from 2.x to 3.x
8
+
9
+ See the migration guide in the [3.0.0 release](https://github.com/desktop/dugite/releases/tag/v3.0.0) for details on breaking changes and how to update your code.
10
+
7
11
  ### Getting Started
8
12
 
9
13
  Add it to your project:
@@ -21,17 +25,15 @@ or
21
25
  Then reference it in your application:
22
26
 
23
27
  ```js
24
- import { GitProcess, GitError, IGitResult } from 'dugite'
28
+ import { exec } from 'dugite'
25
29
 
26
30
  const pathToRepository = 'C:/path/to/git/repository/'
27
31
 
28
- const result = await GitProcess.exec(['status'], pathToRepository)
29
- if (result.exitCode === 0) {
30
- const output = result.stdout
31
- // do some things with the output
32
+ const { exitCode, stdout, stderr } = await exec(['status'], pathToRepository)
33
+ if (exitCode === 0) {
34
+ console.log(stdout)
32
35
  } else {
33
- const error = result.stderr
34
- // error handling
36
+ console.error(stderr)
35
37
  }
36
38
  ```
37
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dugite",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Elegant bindings for Git",
5
5
  "main": "./build/lib/index.js",
6
6
  "typings": "./build/lib/index.d.ts",
@@ -1,47 +1,47 @@
1
1
  {
2
2
  "win32-x64": {
3
- "name": "dugite-native-v2.47.3-b6d6cfa-windows-x64.tar.gz",
4
- "url": "https://github.com/desktop/dugite-native/releases/download/v2.47.3-1/dugite-native-v2.47.3-b6d6cfa-windows-x64.tar.gz",
5
- "checksum": "ca5e54cd64631fe47a74109913f79312a3cbae61288847e27bc8fac2c44151c3"
3
+ "name": "dugite-native-v2.53.0-6981a1f-windows-x64.tar.gz",
4
+ "url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-windows-x64.tar.gz",
5
+ "checksum": "6df0b7fbd3d28768356786719b9a81d1b071dbce2ed80705edd90c7151c4581f"
6
6
  },
7
7
  "win32-ia32": {
8
- "name": "dugite-native-v2.47.3-b6d6cfa-windows-x86.tar.gz",
9
- "url": "https://github.com/desktop/dugite-native/releases/download/v2.47.3-1/dugite-native-v2.47.3-b6d6cfa-windows-x86.tar.gz",
10
- "checksum": "280f80218e9644348d9161645bbcfa59a1731c2338d59c4ee7e8badd17f699e4"
8
+ "name": "dugite-native-v2.53.0-6981a1f-windows-x86.tar.gz",
9
+ "url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-windows-x86.tar.gz",
10
+ "checksum": "8b18afd8b84bd36e0af4839fdcac00dde3b21cdbcf7456ba54145c4d1ce23a81"
11
11
  },
12
12
  "win32-arm64": {
13
- "name": "dugite-native-v2.47.3-b6d6cfa-windows-arm64.tar.gz",
14
- "url": "https://github.com/desktop/dugite-native/releases/download/v2.47.3-1/dugite-native-v2.47.3-b6d6cfa-windows-arm64.tar.gz",
15
- "checksum": "2d74a925f07895ec965bbd89906cfff8e9a89cbd8cefad75e459bd8aaf169c5a"
13
+ "name": "dugite-native-v2.53.0-6981a1f-windows-arm64.tar.gz",
14
+ "url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-windows-arm64.tar.gz",
15
+ "checksum": "f581c79cc424d6eb31e7a8ce426d4caee8c55b13a160bdbef93c9ad72ec2f50e"
16
16
  },
17
17
  "darwin-x64": {
18
- "name": "dugite-native-v2.47.3-b6d6cfa-macOS-x64.tar.gz",
19
- "url": "https://github.com/desktop/dugite-native/releases/download/v2.47.3-1/dugite-native-v2.47.3-b6d6cfa-macOS-x64.tar.gz",
20
- "checksum": "c85f72432af33d621c9a51b0b1a3047f8f11873c16f765d83d916b8a2c47b0d6"
18
+ "name": "dugite-native-v2.53.0-6981a1f-macOS-x64.tar.gz",
19
+ "url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-macOS-x64.tar.gz",
20
+ "checksum": "d01649772ec5b997b01d9c605ac39ca7a782e4fb37584058c323043bb8803e53"
21
21
  },
22
22
  "darwin-arm64": {
23
- "name": "dugite-native-v2.47.3-b6d6cfa-macOS-arm64.tar.gz",
24
- "url": "https://github.com/desktop/dugite-native/releases/download/v2.47.3-1/dugite-native-v2.47.3-b6d6cfa-macOS-arm64.tar.gz",
25
- "checksum": "8fcc58fe84b05af6972cd2d7c62d81abd713778a5dfc20dd0849fd649866001c"
23
+ "name": "dugite-native-v2.53.0-6981a1f-macOS-arm64.tar.gz",
24
+ "url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-macOS-arm64.tar.gz",
25
+ "checksum": "7786cbf4874561b33a23faebb82bba0e8e9d1a26f1989722877fcc3d0376cebe"
26
26
  },
27
27
  "linux-x64": {
28
- "name": "dugite-native-v2.47.3-b6d6cfa-ubuntu-x64.tar.gz",
29
- "url": "https://github.com/desktop/dugite-native/releases/download/v2.47.3-1/dugite-native-v2.47.3-b6d6cfa-ubuntu-x64.tar.gz",
30
- "checksum": "a6cd111dd8d82a26b521d5bcaf28631d5e335f516aa8ec0a993acbd7229bdd08"
28
+ "name": "dugite-native-v2.53.0-6981a1f-ubuntu-x64.tar.gz",
29
+ "url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-ubuntu-x64.tar.gz",
30
+ "checksum": "3c7eed853f5d07a35c6e7e72735d473c08d8f0c414ab95b90f8bd9aeca3ad4f0"
31
31
  },
32
32
  "linux-ia32": {
33
- "name": "dugite-native-v2.47.3-b6d6cfa-ubuntu-x86.tar.gz",
34
- "url": "https://github.com/desktop/dugite-native/releases/download/v2.47.3-1/dugite-native-v2.47.3-b6d6cfa-ubuntu-x86.tar.gz",
35
- "checksum": "22602169f49dafe5e3f8863f24d2c7cd1c2c827332e2e8940b694105cec83f53"
33
+ "name": "dugite-native-v2.53.0-6981a1f-ubuntu-x86.tar.gz",
34
+ "url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-ubuntu-x86.tar.gz",
35
+ "checksum": "de201aa366f20fcceff3c1ce7b19ca92777963a475241c9e94d846d4bff39992"
36
36
  },
37
37
  "linux-arm": {
38
- "name": "dugite-native-v2.47.3-b6d6cfa-ubuntu-arm.tar.gz",
39
- "url": "https://github.com/desktop/dugite-native/releases/download/v2.47.3-1/dugite-native-v2.47.3-b6d6cfa-ubuntu-arm.tar.gz",
40
- "checksum": "f7f544d77ab48c64ccb79ca9fddc0c775f4f007ac44fef20d0fdb0369f45d744"
38
+ "name": "dugite-native-v2.53.0-6981a1f-ubuntu-arm.tar.gz",
39
+ "url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-ubuntu-arm.tar.gz",
40
+ "checksum": "90bcc12028a62ee7f87949142e91e44cb2fdef7b864740ac2bd1d37d46a5e834"
41
41
  },
42
42
  "linux-arm64": {
43
- "name": "dugite-native-v2.47.3-b6d6cfa-ubuntu-arm64.tar.gz",
44
- "url": "https://github.com/desktop/dugite-native/releases/download/v2.47.3-1/dugite-native-v2.47.3-b6d6cfa-ubuntu-arm64.tar.gz",
45
- "checksum": "51765f4bbda12e55d82410099503baa25be1dcff746a812d3e11894f5687b2d8"
43
+ "name": "dugite-native-v2.53.0-6981a1f-ubuntu-arm64.tar.gz",
44
+ "url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-ubuntu-arm64.tar.gz",
45
+ "checksum": "165b909437c1a9669ed989bd6ca6cfc2dcd9bc56d36760b6006cba5f2be7925c"
46
46
  }
47
47
  }