Skip to content

Releases: nodegit/nodegit

v0.11.4

Choose a tag to compare

@johnhaley81 johnhaley81 released this 24 Feb 22:26
  • Fixed callback out values in callbacks from C++. This affects any NodeGit call that is passed a callback as an option PR #921
  • Fixed an issue with building the debug version of NodeGit on windows PR #918

v0.11.3

Choose a tag to compare

@johnhaley81 johnhaley81 released this 22 Feb 21:00
  • Fixed an issue where initializing NodeGit would sometimes seg fault. Also fixed an error when fetching concurrently PR #912

v0.11.2

Choose a tag to compare

@johnhaley81 johnhaley81 released this 18 Feb 22:25
  • Fixed an issue where when staging lines if the index is locked NodeGit just nuked it PR #906
  • Fixed diff calculation when staging lines/hunks PR #906
  • Fixed seg-fault in linux that happens when getting the diff of very small files PR #908
  • Fixed RevWalk#fastWalk dying when an error happens in libgit2 PR #909

v0.11.1

Choose a tag to compare

@maxkorp maxkorp released this 10 Feb 00:23
  • Numerous fixes and perf boosts to file history
  • Several doc fixes

v0.11.0

Choose a tag to compare

@johnhaley81 johnhaley81 released this 04 Feb 21:16
  • Change Revert.commit and Revert.revert to be async. [PR #887](#887
  • Added RevWalk#fileHistoryWalk for a faster way to retrieve history for a specific file. [PR #889](#889

v0.10.0

Choose a tag to compare

@johnhaley81 johnhaley81 released this 01 Feb 18:07
  • Clean mutexes are part of GC. No longer leaves processes running after the script ends [PR #880](#880
  • Increased the performance of ConvenientPatch by an order of magnitude [PR #883](#883

API changes

  • ConvenientPatch
    • ConvenientPatch does not have a patch or a delta property associated with it, if you were using the delta, please just use prototype methods oldFIle, newFile, and Status, which are stripped directly from the delta.
    • ConvenientPatch#hunks returns a promise with an array of ConvenientHunks.
  • ConvenientHunk
    • ConvenientHunk does not have an exposed diffHunk associated with it, but does have the same members as diffHunk:
      • size() : number of lines in the hunk
      • oldStart() : old starting position
      • oldLines() : number of lines in old file
      • newStart() : new starting position
      • newLines() : number of lines in new file
      • headerLen() : length of header
      • header() : returns the header of the hunk
      • lines() : returns a promise containing DiffLines, not ConvenientLines.
  • DiffLine
  • DiffLine now contains the members rawContent() and content().
    • rawContent() contains the unformatted content of the line. This is no longer a string from the line to the end of the file.
    • content() contains the utf8 formatted content of the line.

v0.9.0

Choose a tag to compare

@johnhaley81 johnhaley81 released this 22 Jan 01:05
  • Thread safe fix to stop crashing on releasing mutexes PR #876
  • Submodule#setIgnore, Submodule#setUpdate, and Submodule#setUrl are now all async. Submodule#status and Submodule#location are now available PR #867 and PR #870
  • Remote#defaultBranch is now available PR #872
  • Repository#mergeBranches now takes in a MergeOptions parameter PR #873
  • Remove a NodeGit specific hack to make Index#addAll faster since that is fixed in libgit2 PR #875

v0.8.0

Choose a tag to compare

@johnhaley81 johnhaley81 released this 15 Jan 20:31
  • Thread safe locking has been added and currently is defaulted to off. Use NodeGit.enableThreadSafety() to turn on
  • NodeGit no longer requires a specific Promise object from the nodegit-promise library to be passed in. You can now use whatever you want!
  • Repository#stageFilemode now can accept an array of strings for files to update
  • Submodule#addToIndex, Submodule#addFinalize, Submodule#init, Submodule#open, Submodule#sync, and Submodule#update are now all async methods

v0.7.0

Choose a tag to compare

@johnhaley81 johnhaley81 released this 08 Jan 18:59
  • Bumped openssl to 1.0.2e to fix issues with prebuilts on linux platforms
  • Fixed a bug with GIT_ITER_OVER breaking rebase and other iterative methods
  • Make GraphDescendentOf asynchronous
  • Fixed line length of utf8 strings

v0.6.3

Choose a tag to compare

@maxkorp maxkorp released this 16 Dec 17:57
  • Fixed a bug where manually building for vanilla node would fail without explicitly setting the target