This repository was archived by the owner on Apr 29, 2020. It is now read-only.
Update immutable to the latest version 🚀#33
Open
greenkeeper[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
Codecov Report
@@ Coverage Diff @@
## master #33 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 1
Lines 20 20
Branches 2 2
=====================================
Hits 20 20Continue to review full report at Codecov.
|
Author
Version 4.0.0-rc.4 just got published.Update to this version instead 🚀 CommitsThe new version differs by 90 commits.
There are 90 commits in total. See the full diff |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Version 4.0.0-rc.1 of immutable just got published.
The version 4.0.0-rc.1 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of immutable.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Release Notes
v4.0.0-rc.1This is a pre-release version of Immutable.js. Please try it at your own risk and report any issues you encounter so an official release can be shipped with great confidence.
As a pre-release, this changelog doesn't contain everything that has changed. Take a look at the commit log for a complete view, and expect a more thorough changelog for the official release.
Breaking Changes
The
Iterableclass has been renamed toCollection, andisIterable()has been renamed toisCollection(). Aliases with the existing names exist to make transitioning code easier.The "predicate" functions,
isCollection,isKeyed,isIndexed,isAssociativehave been moved fromIterable.to the top level exports.Record is no longer an Immutable Collection type.
isCollection(myRecord)returnsfalseinstead oftrue.map,filter,forEach) no longer exist on Records.delete()andclear()no longer exist on Records.The
toJSON()method is now 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.
New Stuff!
A new predicate function
isValueObject()helps to detect objects which implementequals()andhashCode(), and type definitions now define the interfaceValueObjectwhich you can implement in your own code to create objects which behave as values and can be keys in Maps or entries in Sets.The Flowtype and TypeScript type definitions have been completely rewritten with much higher quality and accuracy, taking advantage of the latest features from both amazing tools.
Using
fromJS()with a "reviver" function now provides access to the key path to each translated value. (#1118)Bug fixes
Commits
The new version differs by 194 commits .
b34e530s/strong/strict/2ad7a954.0.0-rc.1cc40bb0Improvement pass over code examples in docs. (#1144)c93bb75Breaking: Rename "Iterable" to "Collection" (#1139)0752961Lint tests - attempt 2. (#1140)8a274c0Run deploy docs script only onmasterbranch. (#1141)768151aRFC: Refactor Record. No longer a Collection. Faster guts. (#1135)bb9fc88Upgrade deps3c45ef7Enable eslint for no-var and no-mutable-exports (#1138)4d41eedOfficially deprecate the Cursor API. (#1137)0729855Separate type for get() with notSetValue provided. (#1136)ce33aecExplain in docs that keys get coerced to String when convering to Object. (#1134)e8b5ad9Improve flatMap typescript definitions (#1133)703b430rebuildcce2d90Fix extra args type (#1130)There are 194 commits in total. See the full diff.
Not sure how things should work exactly?
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴