Changelog
<a name="v0-20-2" href="#v0-20-2">v0.20.2</a> (2017-09-13)
Changelog
<a name="v0-20-0" href="#v0-20-0">v0.20.0</a> (2017-08-16)
GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION
#4259Changelog
<a name="v0-19-0" href="#v0-19-0">v0.19.0</a> (2017-04-20)
mmap_ro_file
#4201odb.h
#4188map_free
macros #4166Changelog
<a name="v0-18-0" href="#v0-18-0">v0.18.0</a> (2017-02-28)
waitForResult
flag that can be true
/false
. Defaults to false. When true it will not stop libgit2 from continuing on before the JS code is fully executed and resolved (in cases of a Promise). This is useful for progress callbacks (like fetching) where the bubbling up of the progress to JS doesn't really need the C/C++ code to wait for the JS code to fully handle the event before continuing. This can have serious performance implications for many callbacks that can be fired quite frequently.given_opts
in Revert.revert
are now optionalcheckout_opts
in Reset.fromAnnotated
and Reset.reset
are now optionalReset.fromAnnotated
is now asyncmessage
on Stash.save
is now optionalprocessMergeMessageCallback
on Repository#mergeBranches
to allow for custom merge messagesbeforeFinishFn
to Repository#rebaseBranches
and Repository#continueRebase
. This is called before the invocation of finish()
. If the callback returns a promise, finish()
will be called when the promise resolves. The beforeFinishFn
will be called with an object that has on it:ontoName
The name of the branch that we rebased ontoontoSha
The sha that we rebased ontooriginalHeadName
The name of the branch that we rebasedoriginalHeadSha
The sha of the branch that was rebasedrewitten
which is an array of sha pairs that contain which contain what the commit sha was before the rebase and what the commit sha is after the rebasePR #1123 bumped libgit2 which brought in many changes and bug fixes.
given_opts
in Revert.revert
optional PR #1213Reset.fromAnnotated
async and checkout_opts
optional PR #1214message
on Stash.save
optional PR #1215Remote.ls
to NodeGit PR #1218processMergeMessageCallback
to Repository#mergeBranches
to allow for custom merge messages PR #1219sudo
requirement from linux 32-bit builds PR #1241Changelog
<a name="v0-17-0" href="#v0-17-0">v0.17.0</a> (2017-01-06)
In this release we had added support for Node v7 and latest Electron. We have removed support for Node v0.12 and v5.
We are also deprecating nw.js support since it is currently broken, no one in the current team uses it and we would not be able to currently support nw.js in an effective manner with a good user experience.
For proxy support we now use libcurl for HTTP/HTTPS transport which should have no noticeable change in NodeGit remote operations but if changes are noticed this is worth mentioning as a potential source.
Many PR's were made to fix memory leaks as they were found so memory usage should go down in this version for long running scripts. Additionally, when performing operations with callbacks (transfer progress, credentials, etc...) there was a small chance for a segfault when NodeGit would schedule the callback to go into JavaScript. This is now fixed.
Many users, especially on windows, were experiencing errors during the build. The build still isn't perfect but a lot of the bugs were fixed.
The majority of changes to NodeGit v17 were in libgit2. The API breaking changes that are known are:
RevWalk
is returning different results libgit2 PR #3921Summary of changes that were brought in:
https://github.com/nodegit/nodegit/pull/1187#issuecomment-277760323
Tree#getEntry
PR #1178Repository#createBranch
docs PR #1198lookup
and dwim
in Reference PR #1203Changelog
<a name="v0-16-0" href="#v0-16-0">v0.16.0</a> (2016-09-15)