Update dependency immutable to v4 - #34
Open
dev-mend-for-github-com[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
~3.7.4→~4.3.9By merging this PR, the below vulnerabilities will be automatically resolved:
Release Notes
immutable-js/immutable-js (immutable)
v4.3.9Compare Source
v4.3.8Compare Source
Fix Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in immutable
v4.3.7Compare Source
v4.3.6Compare Source
Repeat(<value>).equals(undefined)incorrectly returning true #1994 by @butchlerv4.3.5Compare Source
v4.3.4Compare Source
v4.3.3Compare Source
v4.3.2Compare Source
v4.3.1Compare Source
some#1944v4.3.0Compare Source
v4.2.4Compare Source
v4.2.3Compare Source
groupByreturn either aMapor anOrderedMap: make the type more precise than baseCollection#1924v4.2.2Compare Source
partitionmethod #1920 by Dagurv4.2.1Compare Source
toJSto avoir circular referencev4.2.0Compare Source
partitionmethod to all containers #1916 by johnw42v4.1.0Compare Source
v4.0.0Compare Source
This release brings new functionality and many fixes.
Key changes
mergeandmergeDeephas changedIterableis renamed to CollectionDiff of changed API (click to expand)
Note for users of v4.0.0-rc.12
There were mostly bugfixes and improvements since RC 12. Upgrading should be painless for most users.
However, there is one breaking change: The behavior of
mergeandmergeDeephas changed. See below for details.BREAKING
merge()
No longer use value-equality within
merge()(#1391)No longer deeply coerce argument to merge() (#1339)
mergeDeep()
Replace incompatible collections when merging nested data (#1840)
Concat Lists when merging deeply (#1344)
Seq
Remove IteratorSequence. Do not attempt to detect iterators in
Seq(). (#1589)Remove
Seq.of()(#1311, #1310)isImmutable()
isImmutable()now returns true for collections currently within awithMutations()call. (#1374)toArray()
KeyedCollection.toArray() returns array of tuples. (#1340)
concat()
list.concat()now has a slightly more efficient implementation andmap.concat()is an alias formap.merge(). (#1373)Collection, formerly
IterableIterableclass has been renamed toCollection, andisIterable()has been renamed toisCollection().Aliases with the existing names exist to make transitioning code easier.
Record
isCollection(myRecord)returnsfalseinstead oftrue.map,filter,forEach) no longer exist on Records.delete()andclear()no longer exist on Records.Other breaking changes
Potentially Breaking: Improve hash speed and avoid collision for common values (#1629)
Node buffers no longer considered value-equal (#1437)
Plain Objects and Arrays are no longer considered opaque values (#1369)
The "predicate" functions,
isCollection,isKeyed,isIndexed,isAssociativehave been moved fromIterable.to the top level exports.The
toJSON()method performs a shallow conversion (previously it was an alias fortoJS(), which remains a deep conversion).Some minor implementation details have changed, which may require updates to libraries which deeply integrate with Immutable.js's private APIs.
The Cursor API is officially deprecated. Use immutable-cursor instead.
Potentially Breaking: [TypeScript] Remove
Iterable<T>as tuple from Map constructor types (#1626)New
taking advantage of the latest features from both tools.
Add "sideEffects: false" to package.json (#1661)
Use ES standard for iterator method reuse (#1867)
Generalize
fromJS()andSeq()to support Sets (#1865)Top level predicate functions (#1600)
Improve performance of toJS (#1581)
Added optional
notSetValueinfirst()andlast()(#1556)Make
isArrayLikecheck more precise to avoid false positives (#1520)map()for List, Map, and Set returns itself for no-ops (#1455) (5726bd1)Hash functions as objects, allowing functions as values in collections (#1485)
Functional API for
get(),set(), and more which support both Immutable.js collections and plain Objects and Arrays (#1369)Relicensed as MIT (#1320)
Support for Transducers! (ee9c68f1)
Add new method,
zipAll()(#1195)Bundle and distribute an "es module" so Webpack and Rollup can use tree-shaking for smaller builds (#1204)
Warn instead of throw when
getIn()has a bad path (668f2236)A new predicate function
isValueObject()helps to detect objects which implementequals()andhashCode(),and type definitions now define the interface
ValueObjectwhich you can implement in your own code to create objects whichbehave as values and can be keys in Maps or entries in Sets.
Using
fromJS()with a "reviver" function now provides access to the key path to each translated value. (#1118)Fixed
Fix issue with IE11 and missing Symbol.iterator (#1850)
Fix ordered set with map (#1663)
Do not modify iter during List.map and Map.map (#1649)
Fix ordered map delete all (#1777)
Hash symbols as objects (#1753)
Fix returning a Record in merge() when Record is empty (#1785)
Fix for RC~12: Records from different factories aren't equal (#1734)
"too much recursion" error when creating a Record type from an instance of another Record (#1690)
Fix glob for npm format script on Windows (#18)
Remove deprecated cursor API (#13)
Add missing es exports (#1740)
Support nulls in genTypeDefData.js (#185)
Support isPlainObj in IE11 and other esoteric parameters f3a6d5ce
Set.mapproduces valid underlying map (#1606)Support isPlainObj with
constructorkey (#1627)groupByno longer returns a mutable Map instance (#1602)Fix issue where refs can recursively collide, corrupting
.size(#1598)Throw error in
mergeWith()method if missing the requiredmergerfunction (#1543)Update
isPlainObj()to workaround Safari bug and allow cross-realm values (#1557)Fix missing "& T" to some methods in RecordInstance (#1464)
Make notSetValue optional for typed Records (#1461) (
a1029bb)Export type of RecordInstance (#1434)
Fix Record
sizecheck in merge() (#1521)Fix Map#concat being not defined (#1402)
getIn()no longer throws when encountering a missing path (#1361)Do not throw from hasIn (#1319)
Long hash codes no longer cause an infinite loop (#1175)
slice()which should return an empty set could return a full set or vice versa (#1245, #1287)Ensure empty slices do not throw when iterated (#1220)
Error during equals check on Record with undefined or null (#1208)
Fix size of count() after filtering or flattening (#1171)
v3.8.3Compare Source
Fix Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in immutable
v3.8.2Compare Source
Released in 2017, still the most commonly used release.
v3.8.1Compare Source
Minor touch ups discovered after the last release, plus a few more bug fixes! Plus, you can now contribute to immutable-js using the latest version of node.
New:
keyOf,findKey,lastKeyOf, andfindLastKeywere moved from KeyedIterable to Iterable, so they may be also used on Lists and Sets. (#740)Fixes:
Symbolkeys or values can now be stringified. (#620)Infinityas a key in a Collection without crashing. (#797)v3.8.0Compare Source
Whoa, a new version of Immutable! The big news is that we now export types for both Flow and TypeScript in the npm module! Also that pesky
lengthwarning has finally been fully removed. There are also a good amount of small bug fixes and performance improvements. Finally, the API docs have been improved greatly! Check it out http://facebook.github.io/immutable-js/docs/.A huge huge thanks to everyone in the community for contributing these improvements. The large majority of work cited below is community contributions.
New:
typingsfor TypeScript use. (#808)lengthproperty of a collection. (88f880f)Map.of()takes key, value interleaved pairs (#727)findEntryandfindLastEntrynow respectnotSetValueargument (#822)Fixes:
Iterable::take(Infinity)takes infinitely instead of 0 (#834)toOrderedMapandtoOrderedSetmethod definitions (#761)Record#setcalls for better performance (#795)Range#toStringpropertly reports step (#759)Set#contains(96b0946)v3.7.6Compare Source
A few minor bug fixes:
lastIndexOfdid not always return the correct value #703mergeDeepnow has more opportunities to for the "return self" optimization, saving memory #690slice(0, NaN)is equivalent to that of JS Array #623And a new API method:
myList.insert()#402v3.7.5Compare Source
Many stability improvements thanks to excellent community submitted fixes.
New:
set(value)#516 to replace the value at the cursor.Fixes: