[Snyk] Upgrade nodegit from 0.4.1 to 0.26.4 #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade nodegit from 0.4.1 to 0.26.4.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.The recommended version fixes:
SNYK-JS-NPM-537606
SNYK-JS-NPM-537603
SNYK-JS-NODEGIT-542723
SNYK-JS-NODEGIT-542722
SNYK-JS-NODEGIT-542721
SNYK-JS-NODEGIT-542720
npm:chownr:20180731
npm:npm:20180222
SNYK-JS-NPM-537604
Release notes
Package name: nodegit
Summary of changes
NodeGit.Libgit2.opts
. See #1748 for details.Merged PRs into NodeGit
Merged PRs into LibGit2
core.longpaths
on Windows #5347git_off_t
togit_object_size_t
Summary of changes
Merged PRs into NodeGit
Summary of changes
Merged PRs into NodeGit
Summary of changes
Merged PRs into NodeGit
Merged PRs into LibGit2
.gitattributes
from HEADSummary of changes
Merged PRs into NodeGit
Summary of changes
Security patch for LibGit2:
A carefully constructed commit object with a very large number
of parents may lead to potential out-of-bounds writes or
potential denial of service.
The ProgramData configuration file is always read for compatibility
with Git for Windows and Portable Git installations. The ProgramData
location is not necessarily writable only by administrators, so we
now ensure that the configuration file is owned by the administrator
or the current user.
Additionally:
Merged PRs into LibGit2
Summary of changes
BREAKING
getRemotes
no longer returns remote names, it now returns remote objects directly. UsegetRemoteNames
to get a list of remote names.Repository.prototype.continueRebase
will now throw on any error except for EAPPLIED on the first call toRebase.prototype.next
diff_so_far
param ingit_diff_notify_cb
andgit_diff_progress_cb
FilterSource.prototype.repo
to async to prevent segfaults on filters that run duringSubmodule.status
NodeGit.Signature.default
to async, because it actually ends up reading the config.it is now possible certain sync methods in NodeGit will begin failing that did not fail before. This is the correct
behavior.
Deprecations
Repository.prototype.mergeBranches
. The last parameterprocessMergeMessageCallback
is now deprecated, but will continue to work. Use the options object instead, which will contain theprocessMergeMessageCallback
, as well as thesigningCb
.New
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.AnnotatedCommit
methods:AnnotatedCommit.prototype.ref
Apply
methods:Apply.apply
applies a diff to the repositoryApply.toTree
applies a diff to a treeConfig
methods:Config.prototype.deleteEntry
Config.prototype.deleteMultivar
Config.prototype.getBool
Config.prototype.getInt32
Config.prototype.getInt64
Config.prototype.setMultivar
Config.prototype.snapshot
ConfigIterator
with methods:ConfigIterator.create
ConfigIterator.createGlob
ConfigIterator.createMultivar
ConfigIterator.prototype.next
IndexNameEntry
:IndexNameEntry.add
IndexNameEntry.clear
IndexNameEntry.entryCount
IndexNameEntry.getByIndex
IndexNameEntry.prototype.ancestor
IndexNameEntry.prototype.ours
IndexNameEntry.prototype.theirs
IndexReucEntry
:IndexReucEntry.add
IndexReucEntry.clear
IndexReucEntry.entryCount
IndexReucEntry.find
IndexReucEntry.getByIndex
IndexReucEntry.getByPath
IndexReucEntry.remove
IndexReucEntry.prototype.mode
IndexReucEntry.prototype.oid
IndexReucEntry.prototype.path
Mailmap
:Mailmap.prototype.addEntry
Mailmap.fromBuffer
Mailmap.fromRepository
Mailmap.create
Mailmap.prototype.resolve
Mailmap.prototype.resolveSignature
Merge
methods:Merge.analysis
Merge.analysisForRef
Path.isGitfile
RebaseOptions
toRepository.prototype.rebaseContinue
NodeGit.Reference.updateTerminal
Remote
methods:Remote.createWithOpts
Tag.createFromBuffer
Tree.prototype.createUpdated(repo, numUpdates, updates)
Fixed
reachedEndOfHistory
will be specified on the resulting array.Commit.prototype.parent
Repository.prototype.getReferences
: Retrieves all references on async worker.Repository.prototype.getRemotes
: Retrieves all remotes on async worker.Repository.prototype.getSubmodules
: Retrieves all submodules on async worker.Repository.prototype.refreshReferences
: Open sourced function from GitKraken. Grabs a lot of information about references on an async worker.Revwalk.prototype.commitWalk
: Retrieves up to N commits from a revwalk on an async worker.ceiling_dirs
is now an optional parameter toRepository.discover
NodeGit.Oid.fromString
's internal implementation fromgit_oid_fromstr
togit_oid_fromstrp
Signature.prototype.toString
to optionally include timestampsLibGit2 Bump
Remote.list
now gets the correct list of remotes if remotes are changed by external processMerged PRs into NodeGit
ceiling_dirs
parameter inRepository.discover
is optional #1245shouldAlloc
declarations for git_merge_analysis* functions #1641updateRef
parameter to Repository#createCommitWithSignature #1610Merged PRs into LibGit2
git_headlist_cb
fromnoun
tofrom_noun
(with an underscore)p_fallocate
_cb
ZLIB_LIBRARIES
toLIBGIT2_LIBS
so don't also add thez
libraryregcomp
git_hash_global_init
for win32git_hash_global_init
git_cache_free
git_time_monotonic
latest
docker imagesgiterr
togit_error
git_ref_t
togit_reference_t
git_obj
togit_object
updatesrefdb_reflog_fs__delete
char
is not signed by default.git_ignore_path_is_ignored
description Git analogygit_refspec__free
togit_refspec__dispose
mbedTLS
libraries in whenSHA1_BACKEND
== "mbedTLS"git_packfile_stream_free
git_path_is_*
APIsSummary of changes
Merged PRs into NodeGit
Merged PRs into LibGit2
Summary of changes
Merged PRs into NodeGit
Summary of changes
Merged PRs into NodeGit
Commit messages
Package name: nodegit
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs
[//]: # (snyk:metadata:{"dependencies":[{"name":"nodegit","from":"0.4.1","to":"0.26.4"}],"packageManager":"npm","type":"auto","projectUrl":"https://app.snyk.io/org/saurabharch/project/26898d8a-35aa-4227-8b51-13786273a2ea?utm_source=github&utm_medium=upgrade-pr","projectPublicId":"26898d8a-35aa-4227-8b51-13786273a2ea","env":"prod","prType":"upgrade","vulns":["SNYK-JS-NPM-537606","SNYK-JS-NPM-537603","SNYK-JS-NODEGIT-542723","SNYK-JS-NODEGIT-542722","SNYK-JS-NODEGIT-542721","SNYK-JS-NODEGIT-542720","npm:chownr:20180731","npm:npm:20180222","SNYK-JS-NPM-537604"],"issuesToFix":[{"issueId":"SNYK-JS-NPM-537606","severity":"high","title":"Arbitrary File Write","exploitMaturity":"proof-of-concept"},{"issueId":"SNYK-JS-NPM-537603","severity":"high","title":"Arbitrary File Overwrite","exploitMaturity":"proof-of-concept"},{"issueId":"SNYK-JS-NODEGIT-542723","severity":"high","title":"Improper Link Resolution Before File Access","exploitMaturity":"mature"},{"issueId":"SNYK-JS-NODEGIT-542722","severity":"high","title":"Improper Handling of Alternate Data Stream","exploitMaturity":"no-known-exploit"},{"issueId":"SNYK-JS-NODEGIT-542721","severity":"high","title":"Improper Handling of Alternate Data Stream","exploitMaturity":"mature"},{"issueId":"SNYK-JS-NODEGIT-542720","severity":"high","title":"Directory Traversal","exploitMaturity":"no-known-exploit"},{"issueId":"npm:chownr:20180731","severity":"medium","title":"Time of Check Time of Use (TOCTOU)","exploitMaturity":"no-known-exploit"},{"issueId":"npm:npm:20180222","severity":"medium","title":"Access Restriction Bypass","exploitMaturity":"no-known-exploit"},{"issueId":"SNYK-JS-NPM-537604","severity":"low","title":"Unauthorized File Access","exploitMaturity":"proof-of-concept"}],"upgrade":["SNYK-JS-NPM-537606","SNYK-JS-NPM-537603","SNYK-JS-NODEGIT-542723","SNYK-JS-NODEGIT-542722","SNYK-JS-NODEGIT-542721","SNYK-JS-NODEGIT-542720","npm:chownr:20180731","npm:npm:20180222","SNYK-JS-NPM-537604"],"upgradeInfo":{"versionsDiff":78,"publishedDate":"2020-01-14T19:23:53.762Z"},"templateVariants":[],"hasFixes":true,"isMajorUpgrade":false,"isBreakingChange":false})