Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 2.2 KB

RELEASE-NOTES-V2.md

File metadata and controls

38 lines (23 loc) · 2.2 KB

simple-git release 2.x

Released on 28 April 2020

Major release 2.x changes the way the queue of tasks are handled to use promises internally and makes available the .then and .catch methods for integrating with promise consumers or async await.

TypeScript is used by default for all new code, allowing for auto-generated type definitions and a phased re-write of the library rather than a big-bang.

For a per-release overview of changes, see the changelog.

2.x Upgrade Notes

When upgrading to release 2.x from 1.x, see the changelog for the release 2.0.0

Altered APIs

  • 2.25.0 depends on Node.js version 12 or above, for use in lower versions of node.js ensure you are also importing the necessary polyfills from core-js, see Legacy Node Versions this change has been reverted in 2.30.0 and will be postponed until version 3.x.

  • 2.13.0 .push now returns a PushResult parsed representation of the response.

  • 2.11.0 treats tasks chained together as atomic, where any failure in the chain prevents later tasks from executing and tasks called from the root git instance as the origin of a new chain, and able to be run in parallel without failures impacting one anther. Prior to this version, tasks called on the root git instance would be cancelled when another one failed.

  • 2.7.0 deprecates use of .silent() in favour of using the debug library - see the debug logging guide for further details.

  • 2.6.0 introduced .then and .catch as a way to chain a promise onto the current step of the chain. Importing from simple-git/promise instead of just simple-git is no longer required and is actively discouraged.

For the full history see the changelog;