Open renovate[bot] opened 2 weeks ago
Name | Link |
---|---|
Latest commit | a75dd400cc77ae89ce6f901788605c5338f055bb |
Latest deploy log | https://app.netlify.com/sites/jestjs/deploys/67282fd801cf660008fb0a68 |
Deploy Preview | https://deploy-preview-15368--jestjs.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
This PR contains the following updates:
^4.0.0
->^5.0.0
Release Notes
immutable-js/immutable-js (immutable)
### [`v5.0.0`](https://redirect.github.com/immutable-js/immutable-js/blob/HEAD/CHANGELOG.md#500) [Compare Source](https://redirect.github.com/immutable-js/immutable-js/compare/v4.3.7...v5.0.0) ##### Breaking changes To sum up, the **big** change in 5.0 is a Typescript change related to `Map` that is typed closer to the JS object. This is a huge change for TS users, but do not impact the runtime behavior. (see [Improve TypeScript definition for `Map`](#typescript-break-improve-typescript-definition-for-map) for more details) Other breaking changes are: ##### \[BREAKING] Remove deprecated methods: *Released in 5.0.0-rc.1* - `Map.of('k', 'v')`: use `Map([ [ 'k', 'v' ] ])` or `Map({ k: 'v' })` - `Collection.isIterable`: use `isIterable` directly - `Collection.isKeyed`: use `isKeyed` directly - `Collection.isIndexed`: use `isIndexed` directly - `Collection.isAssociative`: use `isAssociative` directly - `Collection.isOrdered`: use `isOrdered` directly ##### \[BREAKING] `OrdererMap` and `OrderedSet` hashCode implementation has been fixed *Released in 5.0.0-rc.1* Fix issue implementation of `hashCode` for `OrdererMap` and `OrderedSet` where equal objects might not return the same `hashCode`. Changed in [#2005](https://redirect.github.com/immutable-js/immutable-js/pull/2005) ##### \[BREAKING] Range function needs at least two defined parameters *Released in 5.0.0-beta.5* Range with `undefined` would end in an infinite loop. Now, you need to define at least the start and end values. If you need an infinite range, you can use `Range(0, Infinity)`. Changed in [#1967](https://redirect.github.com/immutable-js/immutable-js/pull/1967) by [@jdeniau](https://redirect.github.com/jdeniau) ##### \[Minor BC break] Remove default export *Released in 5.0.0-beta.1* Immutable does not export a default object containing all it's API anymore. As a drawback, you can not `immport Immutable` directly: ```diff - import Immutable from 'immutable'; + import { List, Map } from 'immutable'; - const l = Immutable.List([Immutable.Map({ a: 'A' })]); + const l = List([Map({ a: 'A' })]); ``` If you want the non-recommanded, but shorter migration path, you can do this: ```diff - import Immutable from 'immutable'; + import * as Immutable from 'immutable'; const l = Immutable.List([Immutable.Map({ a: 'A' })]); ``` ##### \[TypeScript Break] Improve TypeScript definition for `Map` *Released in 5.0.0-beta.1* > If you do use TypeScript, then this change does not impact you : no runtime change here. > But if you use Map with TypeScript, this is a HUGE change ! > Imagine the following code ```ts const m = Map({ length: 3, 1: 'one' }); ``` This was previously typed as `MapConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.