[Snyk] Upgrade @metarhia/common from 2.1.0 to 2.2.0 #3
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 @metarhia/common from 2.1.0 to 2.2.0.
ℹ️ 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.
Release notes
Package name: @metarhia/common
Release summary:
Applied fixes and improvements to the API, added multiple utility methods to
the Iterator API and several utility functions, added table of contents to the
documentation.
Changelog:
Added
MemoryWritable
stream.common.mkdirpPromise()
function.Iterator#apply()
andIterator#chainApply()
to improve iteratorinteraction with chained calls.
captureMaxStack()
utility to get maximum available stack trace.sample(array)
.Iterator#min()
,Iterator#max()
, andIterator#findCompare()
tosimplify consumption of iterator in common use-cases
(finding minimum, maximum, or using a custom condition appropriately).
Iterator#partition()
to allow splitting iterator values intomultiple arrays.
Iterator.zip()
- static method for zipping iterators.Iterator#groupBy()
to group iterator value into Map byspecific keys.
Changed
cryptoPrefetcher()
to throw whenbufSize
is not a multiple ofvalueSize
.MemoryWritable
internal buffer size is now limited to 8 MB by default.callerFilepath()
to allow passingRegExp
as depth to be usedfor filtering of stack frames.
cryptoPrefetcher()
now implements the Iterable interface.Fixed
common.subst()
behavior for @.value@ variables.common.callerFilepath()
working incorrectly on paths with colon in them.Release summary:
Fixed documentation, added utility methods for Iterator class and
filesystem, implemented
MemoryWritable
stream.Changelog:
Added:
rmRecursive()
andrmRecursivePromise()
functions.Iterator#filterMap()
to enable more efficient filter+map. It willonly return values from mapper function that do not match the passed
filterValue (
undefined
by default).Iterator#skipWhile()
to enable skipping elements while predicateholds.
MemoryWritable
stream implementation.Fixed:
a newer version of
@ metarhia/doc
.PR-URL: #296
Commit messages
Package name: @metarhia/common
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
👩💻 Set who automatically gets assigned
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs