Skip to content
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
greenkeeper/immutable-4.0.0-rc.1
Open

Update immutable to the latest version 🚀#33
greenkeeper[bot] wants to merge 1 commit intomasterfrom
greenkeeper/immutable-4.0.0-rc.1

Conversation

@greenkeeper
Copy link
Copy Markdown

@greenkeeper greenkeeper bot commented Mar 11, 2017

Version 4.0.0-rc.1 of immutable just got published.

Dependency immutable
Current Version 3.8.1
Type dependency

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.1

This 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 Iterable class has been renamed to Collection, and isIterable() has been renamed to isCollection(). Aliases with the existing names exist to make transitioning code easier.

  • The "predicate" functions, isCollection, isKeyed, isIndexed, isAssociative have been moved from Iterable. to the top level exports.

  • Record is no longer an Immutable Collection type.

    • Now isCollection(myRecord) returns false instead of true.
    • The sequence API (such as map, filter, forEach) no longer exist on Records.
    • delete() and clear() no longer exist on Records.
  • The toJSON() method is now a shallow conversion (previously it was an alias for toJS(), 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 implement equals() and hashCode(), and type definitions now define the interface ValueObject which 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

  • Numerous bug fixes have gone into this release.
Commits

The new version differs by 194 commits .

  • b34e530 s/strong/strict/
  • 2ad7a95 4.0.0-rc.1
  • cc40bb0 Improvement pass over code examples in docs. (#1144)
  • c93bb75 Breaking: Rename "Iterable" to "Collection" (#1139)
  • 0752961 Lint tests - attempt 2. (#1140)
  • 8a274c0 Run deploy docs script only on master branch. (#1141)
  • 768151a RFC: Refactor Record. No longer a Collection. Faster guts. (#1135)
  • bb9fc88 Upgrade deps
  • 3c45ef7 Enable eslint for no-var and no-mutable-exports (#1138)
  • 4d41eed Officially deprecate the Cursor API. (#1137)
  • 0729855 Separate type for get() with notSetValue provided. (#1136)
  • ce33aec Explain in docs that keys get coerced to String when convering to Object. (#1134)
  • e8b5ad9 Improve flatMap typescript definitions (#1133)
  • 703b430 rebuild
  • cce2d90 Fix 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 🌴

@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 11, 2017

Codecov Report

Merging #33 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #33   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          20     20           
  Branches        2      2           
=====================================
  Hits           20     20

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9bd96d...489b342. Read the comment docs.

@bbartolome bbartolome added this to the Major Package Upgrades milestone Apr 5, 2017
greenkeeper bot added a commit that referenced this pull request Oct 2, 2017
@greenkeeper
Copy link
Copy Markdown
Author

greenkeeper bot commented Oct 2, 2017

Version 4.0.0-rc.4 just got published.

Update to this version instead 🚀

Commits

The new version differs by 90 commits.

  • 9af1cae 4.0.0-rc.4
  • ad746ad Flow type the prototype chain of "plain object" inputs (#1328)
  • eeae1bd Regression tests for #1325
  • af615ba Update README.md (#1327)
  • e4ca4ce Stop the iteration of an exhausted, unknown-sized sequence when slicing (#1324)
  • 81bd729 Fix a bug in the hashString function resulting in all string hashes being 0 (#1325)
  • 27b231c 4.0.0-rc.3
  • a229c4b Use latest immutable.js build on website
  • ddadd42 Only build docs on tagged releases (#1321)
  • d3bce8d Relicense as MIT (#1320)
  • 184030c Fix rendering issue on tall screens
  • 6e3b375 Merge #1285
  • 2a1759c Do not throw from hasIn (#1319)
  • 5381bfc Add more flow tests for Records
  • 257ec3c Upgrade prettier and jest (#1318)

There are 90 commits in total.

See the full diff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants