Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodegit

Package Overview
Dependencies
Maintainers
4
Versions
151
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.25.0-alpha.6

Diff

Changelog

Source

<a name="v0-25-0-alpha-6" href="#v0-25-0-alpha-6">v0.25.0-alpha.6</a> (2019-02-14)

Full Changelog

Summary of changes
  • Bumped LibGit2 to v0.28.0.
  • Fixed problem with continue rebase preventing users from skipping commits
  • Fixed leak where struct/option types were leaking libgit2 pointers
Merged PRs into NodeGit
implausibility
published 0.24.1 •

Changelog

Source

Upgraded to libgit2 v0.24.1 PR #1010


Changes or improvements

  • Custom merge drivers can now be registered, which allows callers to configure callbacks to honor merge=driver configuration in .gitattributes.

  • Custom filters can now be registered with wildcard attributes, for example filter=*. Consumers should examine the attributes parameter of the check function for details.

  • Symlinks are now followed when locking a file, which can be necessary when multiple worktrees share a base repository.

  • You can now set your own user-agent to be sent for HTTP requests by using the Libgit2.OPT.SET_USER_AGENT with Libgit2.opts().

  • You can set custom HTTP header fields to be sent along with requests by passing them in the fetch and push options.

  • Tree objects are now assumed to be sorted. If a tree is not correctly formed, it will give bad results. This is the git approach and cuts a significant amount of time when reading the trees.

  • Filter registration is now protected against concurrent registration.

  • Filenames which are not valid on Windows in an index no longer cause to fail to parse it on that OS.

  • Rebases can now be performed purely in-memory, without touching the repository's workdir.

  • When adding objects to the index, or when creating new tree or commit objects, the inputs are validated to ensure that the dependent objects exist and are of the correct type. This object validation can be disabled with the Libgit2.OPT.ENABLE_STRICT_OBJECT_CREATION option.

  • The WinHTTP transport's handling of bad credentials now behaves like the others, asking for credentials again.

API additions

  • Blob.createFromStream() and Blob.createFromStreamCommit allow you to create a blob by writing into a stream. Useful when you do not know the final size or want to copy the contents from another stream.

  • Config#lock has been added, which allow for transactional/atomic complex updates to the configuration, removing the opportunity for concurrent operations and not committing any changes until the unlock.

  • DiffOptions added a new callback progress_cb to report on the progress of the diff as files are being compared. The documentation of the existing callback notify_cb was updated to reflect that it only gets called when new deltas are added to the diff.

  • FetchOptions and PushOptions have gained a customHeaders field to set the extra HTTP header fields to send.

  • Commit#headerField allows you to look up a specific header field in a commit.

Breaking API changes

  • MergeOptions now provides a defaultDriver that can be used to provide the name of a merge driver to be used to handle files changed during a merge.

  • The Merge.TREE_FLAG is now Merge.FLAG. Subsequently, treeFlags field of the MergeOptions structure is now named flags.

  • The Merge.FILE_FLAGS enum is now Merge.FILE_FLAG for consistency with other enum type names.

  • Cert descendent types now have a proper parent member

  • It is the responsibility of the refdb backend to decide what to do with the reflog on ref deletion. The file-based backend must delete it, a database-backed one may wish to archive it.

  • Index#add and Index#conflictAdd will now use the case as provided by the caller on case insensitive systems. Previous versions would keep the case as it existed in the index. This does not affect the higher-level Index#addByPath or Index#addFromBuffer functions.

  • The Config.LEVEL enum has gained a higher-priority value PROGRAMDATA which represent a rough Windows equivalent to the system level configuration.

  • RebaseOptions now has a mergeOptions field.

  • The index no longer performs locking itself. This is not something users of the library should have been relying on as it's not part of the concurrency guarantees.

  • Remote#connect() now takes a customHeaders argument to set the extra HTTP header fields to send.

  • Tree.entryFilemode, Tree.entryFilemodeRaw, Tree.entryId, Tree.entryName, Tree.entryToObject, and Tree.entryType have all been moved to the TreeEntry prototype. Additionally, the TreeEntry fields have been removed in lieu of the corresponding functions to return the data.

implausibility
published 0.23.1 •

implausibility
published 0.25.0-alpha.5 •

Changelog

Source

<a name="v0-25-0-alpha-5" href="#v0-25-0-alpha-5">v0.25.0-alpha.5</a> (2019-02-11)

Full Changelog

Summary of changes
  • Fixed builds for Electron 4 for real this time
Merged PRs into NodeGit
implausibility
published 0.25.0-alpha.4 •

Changelog

Source

<a name="v0-25-0-alpha-4" href="#v0-25-0-alpha-4">v0.25.0-alpha.4</a> (2019-02-08)

Full Changelog

Summary of changes
  • Fixed bug where signing the init commit failed due to being unable to update the HEAD ref.
  • Changed NodeGit.Signature.default to async, because it actually ends up reading the config.
  • Fixed bug where templates were not reporting errors for synchronous methods. It's a bit of a wide net, but in general, it is now possible certain sync methods in NodeGit will begin failin that did not fail before. This is the correct behavior.
  • Switched NodeGit.Oid.fromString's internal implementation from git_oid_fromstr to git_oid_fromstrp
  • Fixed builds for Electron 4
  • Added NodeGit.Reference.updateTerminal
Merged PRs into NodeGit
implausibility
published 0.25.0-alpha.3 •

Changelog

Source

<a name="v0-25-0-alpha-3" href="#v0-25-0-alpha-3">v0.25.0-alpha.3</a> (2019-02-05)

Full Changelog

Summary of changes
  • Enforced consistent use of signing callbacks within the application. Any object that implements the signingCallback pattern for signing commits or tags should use the exact same callback type and with the same meaning. type SigningCallback = (content: string) => {| code: number, field?: string, signedData?: string |}; If the code is NodeGit.Error.CODE.OK or 0, the operation will succeed and at least signedData is expected to be filled out. If the code is a negative number, except for NodeGit.Error.CODE.PASSTHROUGH, the signing operation will fail. If the code is NodeGit.Error.CODE.PASSTHROUGH, the operation will continue without signing the object.
Merged PRs into NodeGit
implausibility
published 0.25.0-alpha.2 •

Changelog

Source

<a name="v0-25-0-alpha-2" href="#v0-25-0-alpha-2">v0.25.0-alpha.2</a> (2019-02-01)

Full Changelog

Summary of changes
  • Added RebaseOptions to repository.prototype.rebaseContinue
Merged PRs into NodeGit
implausibility
published 0.25.0-alpha.1 •

Changelog

Source

<a name="v0-25-0-alpha-1" href="#v0-25-0-alpha-1">v0.25.0-alpha.1</a> (2019-01-30)

Full Changelog

Summary of changes
  • Bump Libgit2 to preview of v0.28.0
  • Add signing support for commits and annotated tags
  • Updated Signature.prototype.toString to optionally include timestamps
  • [BREAKING] Converted Buf.prototype.set and Buf.prototype.grow from async to sync
  • Added complete support for libgit2 types:
    • git_index_name_entry
    • git_index_reuc_entry
    • git_mailmap
  • Exposed git_path_is_gitfile
  • Exposed git_tag_create_frombuffer
Merged PRs into NodeGit
implausibility
published 0.24.0 •

Changelog

Source

<a name="v0-24-0" href="#v0-24-0">v0.24.0</a> (2019-01-16)

Full Changelog

Summary of changes
  • Garbage collect most of the library.
  • All free functions have been removed. The expectation is that they will be collected by the GC.
  • All init options methods have been removed. They were never supposed to be exposed in the first place.
  • Added support for performing history walks on directories.
  • Fix various bugs that led to segfaults or incorrect behavior.
  • Removed ssl and crypto dependency from non-electron builds.
Removed methods

Mostly due to missing support anyway, please report anything you were using as an issue.

  • NodeGit.Blob.createFromStreamCommit
  • NodeGit.Branch.Iterator.prototype.new
  • NodeGit.Config.initBackend
  • NodeGit.Config.prototype.snapshot
  • NodeGit.Config.prototype.setBool
  • NodeGit.Config.prototype.setInt32
  • NodeGit.Config.prototype.setInt64
  • NodeGit.Index.prototype.owner
  • NodeGit.Note.iteratorNew
  • NodeGit.Note.next
  • NodeGit.Odb.prototype.addDiskAlternate
  • NodeGit.Repository.prototype.configSnapshot
  • NodeGit.Signature.prototype.dup
  • NodeGit.Tag.foreach
  • NodeGit.Transport.init
  • NodeGit.Transport.sshWithPaths
  • NodeGit.Transport.unregister
Newly exposed methods:
  • NodeGit.Config.prototype.getEntry
  • NodeGit.Config.prototype.snapshot
  • NodeGit.Config.prototype.refresh
  • NodeGit.Config.prototype.setBool
  • NodeGit.Config.prototype.setInt32
  • NodeGit.Config.prototype.setInt64
  • NodeGit.Diff.prototype.isSortedIcase
  • NodeGit.DiffStats.prototype.deletions
  • NodeGit.DiffStats.prototype.filesChanged
  • NodeGit.DiffStats.prototype.insertions
  • NodeGit.DiffStats.prototype.toBuf
  • NodeGit.Odb.hashfile
  • NodeGit.Odb.prototype.readPrefix
  • NodeGit.OidShorten.prototype.add
  • NodeGit.OidShorten.create
  • NodeGit.PathspecMatchList.prototype.diffEntry
  • NodeGit.PathspecMatchList.prototype.entry
  • NodeGit.PathspecMatchList.prototype.entrycount
  • NodeGit.PathspecMatchList.prototype.failedEntry
  • NodeGit.PathspecMatchList.prototype.failedEntryCount
Newly exposed types
  • NodeGit.DescribeFormatOptions
  • NodeGit.DiffStats
  • NodeGit.OidShorten
  • NodeGit.PathspecMatchList
Merged PRs into NodeGit
implausibility
published 0.24.0-alpha.1 •

Changelog

Source

<a name="v0-24-0-alpha.1" href="#v0-24-0-alpha.1">v0.24.0-alpha.1</a> (2018-10-25)

Full Changelog

Summary of changes
  • Garbage collect most of the library.
  • All free functions have been removed. The expectation is that they will be collected by the GC.
  • All init options methods have been removed. They were never supposed to be exposed in the first place.
Removed methods

Mostly due to missing support anyway, please report anything you were using as an issue.

  • NodeGit.Blob.createFromStreamCommit
  • NodeGit.Branch.Iterator.prototype.new
  • NodeGit.Config.initBackend
  • NodeGit.Config.prototype.snapshot
  • NodeGit.Config.prototype.setBool
  • NodeGit.Config.prototype.setInt32
  • NodeGit.Config.prototype.setInt64
  • NodeGit.Index.prototype.owner
  • NodeGit.Note.iteratorNew
  • NodeGit.Note.next
  • NodeGit.Odb.prototype.addDiskAlternate
  • NodeGit.Repository.prototype.configSnapshot
  • NodeGit.Signature.prototype.dup
  • NodeGit.Tag.foreach
  • NodeGit.Transport.init
  • NodeGit.Transport.sshWithPaths
  • NodeGit.Transport.unregister
Newly exposed methods:
  • NodeGit.Config.prototype.getEntry
  • NodeGit.Config.prototype.snapshot
  • NodeGit.Config.prototype.refresh
  • NodeGit.Config.prototype.setBool
  • NodeGit.Config.prototype.setInt32
  • NodeGit.Config.prototype.setInt64
  • NodeGit.Diff.prototype.isSortedIcase
  • NodeGit.DiffStats.prototype.deletions
  • NodeGit.DiffStats.prototype.filesChanged
  • NodeGit.DiffStats.prototype.insertions
  • NodeGit.DiffStats.prototype.toBuf
  • NodeGit.Odb.hashfile
  • NodeGit.Odb.prototype.readPrefix
  • NodeGit.OidShorten.prototype.add
  • NodeGit.OidShorten.create
  • NodeGit.PathspecMatchList.prototype.diffEntry
  • NodeGit.PathspecMatchList.prototype.entry
  • NodeGit.PathspecMatchList.prototype.entrycount
  • NodeGit.PathspecMatchList.prototype.failedEntry
  • NodeGit.PathspecMatchList.prototype.failedEntryCount
Newly exposed types
  • NodeGit.DescribeFormatOptions
  • NodeGit.DiffStats
  • NodeGit.OidShorten
  • NodeGit.PathspecMatchList
Merged PRs into NodeGit
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