fix(deps): update dependency immutable to v4.3.7 #3329
+4
−4
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:
4.0.0-rc.1
->4.3.7
Release Notes
immutable-js/immutable-js (immutable)
v4.3.7
Compare Source
v4.3.6
Compare Source
Repeat(<value>).equals(undefined)
incorrectly returning true #1994 by @butchlerv4.3.5
Compare Source
What's Changed
New Contributors
Full Changelog: immutable-js/immutable-js@v4.3.4...v4.3.5
v4.3.4
Compare Source
v4.3.3
Compare Source
v4.3.2
Compare Source
v4.3.1
Compare Source
some
#1944v4.3.0
Compare Source
v4.2.4
Compare Source
v4.2.3
Compare Source
groupBy
return either aMap
or anOrderedMap
: make the type more precise than baseCollection
#1924v4.2.2
Compare Source
partition
method #1920 by Dagurv4.2.1
Compare Source
toJS
to avoir circular referencev4.2.0
Compare Source
partition
method to all containers #1916 by johnw42v4.1.0
Compare Source
v4.0.0
Compare Source
This release brings new functionality and many fixes.
Key changes
merge
andmergeDeep
has changedIterable
is 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
merge
andmergeDeep
has 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
Iterable
Iterable
class has been renamed toCollection
, andisIterable()
has been renamed toisCollection()
.Aliases with the existing names exist to make transitioning code easier.
Record
isCollection(myRecord)
returnsfalse
instead 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
,isAssociative
have 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
notSetValue
infirst()
andlast()
(#1556)Make
isArrayLike
check 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
ValueObject
which 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.map
produces valid underlying map (#1606)Support isPlainObj with
constructor
key (#1627)groupBy
no 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 requiredmerger
function (#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
size
check 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)
v4.0.0-rc.15
Compare Source
This is the last planned RC release before releasing a stable 4.0!! 🎉 🎉 🎉
BREAKING:
mergeDeep()
(#1840)mergeDeep()
will no longer merge lists of tuples into maps. For more information see https://github.com/immutable-js/immutable-js/pull/1840 and the updatedmergeDeep()
documentation.New:
fromJS()
andSeq()
to support Sets (#1865)Fixes:
ArrayLike<T>
as option to type factory functions andfromJS
now returnsCollection<unknown>
instead of justunknown
.v4.0.0-rc.14
: 4.0.0-rc.14Compare Source
v4.0.0-rc.12
Compare Source
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
merge
andmergeDeep
has changed. See below for details.v4.0.0-rc.11
Compare Source
Potentially Breaking:
Iterable<T>
as tuple from Map constructor types (#1626)Fixes:
displayName
(#1625)Set.map
produces valid underlying map (#1606)constructor
key (#1627)Docs:
v4.0.0-rc.10
Compare Source
It's been a long time since the last release candidate, but quite a bit of work has happened since the last once. One step closer to a final release!
Breaking:
Seq()
. (#1589)New:
RecordOf<TProps>
type alias for TypeScript, matching Flow (#1578)notSetValue
infirst()
andlast()
(#1556)isArrayLike
check more precise to avoid false positives (#1520)map()
for List, Map, and Set returns itself for no-ops (#1455) (5726bd1
)Fix:
groupBy
no longer returns a mutable Map instance (#1602).size
(#1598)mergeWith()
method if missing the requiredmerger
function (#1543)isPlainObj()
to workaround Safari bug and allow cross-realm values (#1557)mergeDeepWith
merger is untypable in TS/Flow. (#1532)a1029bb
)size
check in merge() (#1521)v4.0.0-rc.9
Compare Source
Fixes:
setIn()
/getIn()
key-paths. (#1399)merge()
definitions. (#1400)v4.0.0-rc.8
Compare Source
BREAKING:
list.concat()
now has a slightly more efficient implementation andmap.concat()
is an alias formap.merge()
. (#1373)In rare cases, this may affect use of
map.concat()
which expected slightly different behavior frommap.merge()
.isImmutable()
now returns true for collections currently within awithMutations()
call. (#1374)Previously,
isImmutable()
did double-duty of both determining if a value was a Collection or Record from this library as well as if it was outside awithMutations()
call. This latter case caused confusion and was rarely used.Plain Objects and Arrays are no longer considered opaque values (#1369)
This changes the behavior of a few common methods with respect to plain Objects and Arrays where these were previously considered opaque to
merge()
andsetIn()
, they now are treated as collections and can be merged into and updated (persistently). This offers an exciting alternative to small Lists and Records.No longer use value-equality within
merge()
(#1391)This rectifies an inconsistent behavior between x.merge(y) and x.mergeDeep(y) where merge would use === on leaf values to determine return-self optimizations, while mergeDeep would use
is()
. This improves consistency across the library and avoids a possible performance pitfall.New:
getIn()
,setIn()
,updateIn()
which understand key paths (#1366, #1377)get()
,set()
, and more which support both Immutable.js collections and plain Objects and Arrays (#1369)Fixed:
getIn()
no longer throws when encountering a missing path (#1361)record.get()
to provide a not-set-value (#1378)Seq.Set()
(3e671a2
)v4.0.0-rc.7
Compare Source
Fixes:
v4.0.0-rc.6
Compare Source
Fixes:
list.filter(Boolean)
will remove null values (#1352)Record.hasIn
andRecord.getIn
(#1350)v4.0.0-rc.5
Compare Source
BREAKING:
Concat Lists when merging deeply (#1344)
Previously, calling
map.mergeDeep()
with a value containing aList
would replace the values in the original List. This has always been confusing, and does not properly treatList
as a monoid. Now,List.merge
is simply an alias forList.concat
, andmap.mergeDeep()
will concatenate lists instead of replacing them.No longer deeply coerce argument to merge() (#1339)
Previously, the argument provided to
merge()
was deeply converted to Immutable collections viafromJS()
. This was the only function in the library which callsfromJS()
indirectly directly, and it was surprising and made it difficult to understand what the result ofmerge()
would be. Now, the value provided tomerge()
is only shallowly converted to an Immutable collection, similar to related methods in the library. This may change the behavior of your calls tomerge()
.KeyedCollection.toArray() returns array of tuples. (#1340)
Previously, calling
toArray()
on a keyed collection (inclMap
andOrderedMap
) would discard keys and return an Array of values. This has always been confusing, and differs fromArray.from()
. Now, callingtoArray()
on a keyed collection will return an Array of[key, value]
tuples, matching the behavior ofArray.from()
.New:
RecordOf<T>
andRecordFactory<T>
dramatically improve the Flow types for Records (#1343, #1330)Fixed:
map.flip()
(#1332)v4.0.0-rc.4
Compare Source
Fixes:
v4.0.0-rc.3
Compare Source
This RC is now relicensed as MIT (#1320)
BREAKING:
Remove Seq.of() (#1311, #1310 )
This method has been removed since it cannot be correctly typed. It's recommended to convert
Seq.of(1, 2, 3)
toSeq([1, 2, 3])
.New:
ee9c68f
)zipAll()
(#1195)getIn()
has a bad path (668f223
)zip()
. (#1258)has()
. (#1232)Fixed:
slice()
which should return an empty set could return a full set or vice versa (#1245, #1287)v4.0.0-rc.2
Compare Source
Changes Since v4.0.0-rc.1:
filter()
,reduce()
andconcat()
(#1155, #1156, #1153)delete()
andclear()
to Record instances (#1157)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.