New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodegit

Package Overview
Dependencies
Maintainers
0
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodegit - npm Package Versions

1
16

0.17.0

Diff

Changelog

Source

<a name="v0-17-0" href="#v0-17-0">v0.17.0</a> (2017-01-06)

Full Changelog

Targeted Platform Changes

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.

Now building against shared libcurl lib

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.

Memory leak fixes and stability increases

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.

Fixes to the build

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.

Bump libgit2 to 0bf0526

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 #3921
  • Changes in error messages returned libgit2 PR #4049

Summary of changes that were brought in:

https://github.com/nodegit/nodegit/pull/1187#issuecomment-277760323

Changes to NodeGit outside of libgit2 bump

  • Define GIT_SSH_MEMORY_CREDENTIALS for libgit2 PR #949
  • Add "Path" to ssh variable names in tests for clarity PR #1135
  • Fix revwalk memory leaks PR #1137
  • Fix tree entry leaks PR #1138
  • Fix typo in postinstall script PR #1141
  • Fix windows exception handling in build PR #1143
  • Fix CI failures on node 0.12 PR #1144
  • Fix postinstall script crash when install location has spaces in its path PR #1148
  • Update 0.13 changelog PR #1151
  • Minor documentation fix in Checkout.index PR #1164
  • FreeBSD also uses struct timespec st_mtim PR #1165
  • README.md needs to show where to get Slack invitation PR #1170
  • Add @async tag to Tree#getEntry PR #1178
  • Fix incorrect anchor link in TESTING.md PR #1179
  • Added tests for Tag PR #1180
  • Added tests for Branch PR #1181
  • Escape the spaces in dir for shell command PR #1186
  • Bump libgit to 0bf0526 PR #1187
  • Checkout's tree* functions do not support Oid as a parameter PR #1190
  • Build against shared library for libcurl PR #1195
  • Move libuv calls to correct thread PR #1197
  • Update Repository#createBranch docs PR #1198
  • Remove Node v0.12 and v5 PR #1199
  • Specify acceptable types for lookup and dwim in Reference PR #1203
  • Build for Node 7.4.0 PR #1204
  • Write the index to a repository directly in merge-cleanly.js examples PR #1205
maxkorp
published 0.16.0 •

Changelog

Source

<a name="v0-16-0" href="#v0-16-0">v0.16.0</a> (2016-09-15)

Full Changelog

  • Bump libssh2 to 1.7.0 PR #1071
  • Js cleanup PR #1074
  • Expose merge options and diff flags PR #1076
  • Fix Tree#entryByName function and add test PR #1079
  • Add isSubmodule() method PR #1080
  • Fix two typos in the documentation for Commit#parents PR #1081
  • Memory management: duplicate time PR #1090
  • Preempt nan to fix deprecated calls to Get/SetHiddenValue PR #1106
  • Try re-enabling node >6.2 PR #1107
  • Bump openssl to 1.0.2h (same as node 6.3.1) PR #1108
  • Don't run postbuild when we detect electron install PR #1111
  • Added instructions for CircleCI users PR #1113
  • Fix up electron and nw.js docs PR #1114
  • Patch libssh2 to work with vs2015 PR #1125
  • Fix CI PR #1126
johnhaley81
published 0.14.1 •

Changelog

Source

<a name="v0-14-1" href="#v0-14-1">v0.14.1</a> (2016-06-20)

Full Changelog

  • Fix postinstall breaking build if it fails.
johnhaley81
published 0.15.1 •

Changelog

Source

<a name="v0-15-1" href="#v0-15-1">v0.15.1</a> (2016-06-20)

Full Changelog

  • Fix postinstall breaking build if it fails.
johnhaley81
published 0.15.0 •

Changelog

Source

<a name="v0-15-0" href="#v0-15-0">v0.15.0</a> (2016-06-20)

Full Changelog

This updates NodeGit to use the latest HEAD version of libgit2. The plan for staying on the official tagged releases of libgit2 is that they will get a maintenance branch and not-breaking API fixes will be backported to them. The first branch of this sort is maint/0.14. Going forward new releases of NodeGit will follow closely to the master branch of libgit2.

Summary of changes that were brought in:

https://github.com/libgit2/libgit2/commit/37dba1a739b5ee6c45dc9f3c0bd1f7f7a18f13f7

Changes or improvements

  • NodeGit.FetchOptions, and NodeGit.PushOptions now have a proxyOpts field that accepts a NodeGit.ProxyOptions object that allows NodeGit to use a proxy for all remote communication

  • NodeGit.MergeOptions has a defaultDriver field that lets the caller change the driver used to when both sides of a merge have changed

API additions

  • Commit.createWithSignature allows the caller to create a signed commit. There are no tests for this currently so it's labelled experimental.

  • Blob, Commit, Tag, and Tree all have a new prototype dup method on them to make a low-level copy of the libgit2 object if needed.

  • Odb#expandIds is exposed which takes in a list of short ids and expands them in-place to the full id of the object in the database

johnhaley81
published 0.14.0 •

Changelog

Source

<a name="v0-14-0" href="#v0-14-0">v0.14.0</a> (2016-06-20)

Full Changelog

johnhaley81
published 0.13.2 •

Changelog

Source

<a name="v0-13-2" href="#v0-13-2">v0.13.2</a> (2016-06-09)

Full Changelog

  • Stop RevWalk#walk from swallowing errors in the callback PR #1047
  • Stop swallowing errors in the install script PR #1048
  • Fix initializing submodules when installing from npm PR #1050
johnhaley81
published 0.13.1 •

Changelog

Source

<a name="v0-13-1" href="#v0-13-1">v0.13.1</a> (2016-06-03)

Full Changelog

Added

  • Repository#discardLines is now a thing PR #1021

Modified

  • Async methods now use a custom threadpool to prevent thread-locking the event loop PR #1019

Bug fixes

  • Fix building NodeGit from NPM PR #1026
  • Plug a memory leak in RevWalk.fastWalk PR #1030
  • Plug a memory leak with Oid PR #1033
  • Fixed some underlying libgit2 objects getting freed incorrectly PR #1036
johnhaley81
published 0.13.0 •

Changelog

Source

<a name="v0-13-0" href="#v0-13-0">v0.13.0</a> (2016-05-04)

Full Changelog

Summary

This is a big update! Lots of work was done to bring NodeGit up to the latest stable libgit2 version (v0.24.1), to use babel in the library, to make it more stable, remove memory leaks, squash bugs and in general just improve the library for all. Make sure to see all of the API changes below (there are a lot).

Node support

We have added Node 6 as a supported platform! Going forward we aim to have 1:1 support for versions of Node that are either current or LTS. That means that v0.12 will not be supported soon so if you're on that please upgrade to at least Node v4. Also Node v5 will NOT be LTS so when Node stops supporting that in the coming months we will as well. You can read more about the current Node upgrade plan here.

API Changes


Modified

  • Index#add, Index#addByPath, Index#clear, Index#conflictAdd, Index#conflictCleanup, Index#conflictGet, Index#conflictRemove, Index.open, Index#read, Index#readTree, Index#remove, Index#removeByPath, Index#removeDirectory, Index#read, Index#write, Index#writeTree, and Index#writeTreeTo are all now asynchronous functions PR #971
  • Made ancestoryEntry, outEntry and theirEntry optional parameters on Index#conflictAdd PR #997
  • Repository#refreshIndex will return an Index object back that has the latest data loaded off of disk PR #986
  • Commit.create is now asynchronous PR #1022
  • Remote.create is now asynchronous PR #990

Added

  • Diff#merge will combine a diff into itself PR #1000
  • ReflogEntry#committer, ReflogEntry#idNew, ReflogEntry#idOld, and ReflogEntry#message have been added PR #1013

Removed

  • Repository#openIndex PR #989, use Repository#index or Repository#refreshIndex instead
  • Reflog#entryCommitter, Reflog#entryIdNew, Reflog#entryIdOld, and Reflog#entryMessage have been moved to be under ReflogEntry PR #1013

Bug fixes

johnhaley81
published 0.12.2 •

Changelog

Source

<a name="v0-12-2" href="#v0-12-2">v0.12.2</a> (2016-04-07)

Full Changelog

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc