chore(deps): update dependency immutable to v5 - #1918
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Bundle Size ReportLast updated: 2026-08-17 07:44:24 UTC
Baseline source: comment-chain |
|
Tip All tests passed and all changes approved!🟢 UI Tests: 1207 tests unchanged |
7e562a1 to
3765b55
Compare
3765b55 to
5c3feb8
Compare
|
Closing — two problems. 1. It drops the security floor. 2. The Alternative if we do want immutable 5: make it a deliberate change that keeps the floor — immutable: ">=5.0.0 <6"— after verifying UI Kit rich-text-input against v5. Renovate can't make that call for us, which is why #1928 suppresses majors on override bands rather than letting this land automatically. |
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
…downgrade (#1928) Renovate opened seven dependency PRs that must never merge. Six of them (#1917 #1918 #1919 #1920 #1923 #1924) bump pnpm override entries across a major boundary. Those keys are selectors, not package names: "yaml@1" means "consumers resolving to yaml v1 get this patched v1", so raising the value to 2.9.0 forces a v2 API onto v1 consumers. Two are already red in CI ("TypeError: expand is not a function" for brace-expansion@2 -> ^5.0.0, and gray-matter's yaml.safeLoad.bind() for js-yaml ^3.15.0 -> ^5.0.0); the rest are green only because CI never exercises the affected transitive consumers -- the same blind spot that let #1904 ship the minimatch v10 break that #1913 had to revert, and which #1920 now proposes again. Renovate also rewrites floor+cap ranges into bare caps (immutable ">=4.3.9 <5" -> "<6", undici ">=7.28.0 <8" -> "<9"), discarding the security floor that justified the override. Suppress majors on override depTypes. Minor/patch still flow so floors can be raised, and CVE remediation is unaffected because vulnerabilityAlerts already bypasses packageRules. Separately, #1915 proposed a tj-actions/changed-files digest "update" that is really a 7-month downgrade: upstream never moved the floating v47 tag past v47.0.0, so Renovate resolved our newer v47.0.6 pin backwards. Retagging the pin comment to the exact patch restores semver comparison. Audited all nine pinned actions; this was the only one affected. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This PR contains the following updates:
>=4.3.9 <5→<6Release Notes
immutable-js/immutable-js (immutable)
v5.1.9Compare Source
Listgrown past 32 elements while all its values areundefinedno longer reads those values back asnull(affectedget, iteration,toArray,equalsandhashCode)v5.1.8Compare Source
v5.1.7Compare Source
v5.1.6Compare Source
reversedSequence.sizein__iteratorinstead of this #2196v5.1.5Compare Source
v5.1.4Compare Source
Documentation
Internal
v5.1.3Compare Source
TypeScript
Documentation
There has been a huge amount of changes in the documentation, mainly migrate from an autogenerated documentation from .d.ts file, to a proper documentation in markdown.
The playground has been included on nearly all method examples.
We added a page about browser extensions too: https://immutable-js.com/browser-extension/
Internal
v5.1.2Compare Source
v5.1.1Compare Source
v5.1.0Compare Source
RetrievePath#2070 by @jdeniauInternal
v5.0.3Compare Source
v5.0.2Compare Source
v5.0.1Compare Source
v5.0.0Compare Source
Breaking changes
To sum up, the big change in 5.0 is a Typescript change related to
Mapthat 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 forMapfor more details)Other breaking changes are:
[BREAKING] Remove deprecated methods:
Released in 5.0.0-rc.1
Map.of('k', 'v'): useMap([ [ 'k', 'v' ] ])orMap({ k: 'v' })Collection.isIterable: useisIterabledirectlyCollection.isKeyed: useisKeyeddirectlyCollection.isIndexed: useisIndexeddirectlyCollection.isAssociative: useisAssociativedirectlyCollection.isOrdered: useisOrdereddirectly[BREAKING]
OrdererMapandOrderedSethashCode implementation has been fixedReleased in 5.0.0-rc.1
Fix issue implementation of
hashCodeforOrdererMapandOrderedSetwhere equal objects might not return the samehashCode.Changed in #2005
[BREAKING] Range function needs at least two defined parameters
Released in 5.0.0-beta.5
Range with
undefinedwould 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 by @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 Immutabledirectly:If you want the non-recommanded, but shorter migration path, you can do this:
[TypeScript Break] Improve TypeScript definition for
MapReleased in 5.0.0-beta.1
This was previously typed as
Map<string, string | number>and return type of
m.get('length')orm.get('inexistant')was typed asstring | number | undefined.This made
Mapreally unusable with TypeScript.Now the Map is typed like this:
and the return type of
m.get('length')is typed asnumber.The return of
m.get('inexistant')throw the TypeScript error:If you want to keep the old definition
This is a minor BC for TS users, so if you want to keep the old definition, you can declare you Map like this:
If you need to type the Map with a larger definition
You might want to declare a wider definition, you can type your Map like this:
Keep in mind that the
MapOfwill try to be consistant with the simple TypeScript object, so you can not do this:Like a simple object, it will only work if the type is forced:
Are all
Mapmethods implemented ?For now, only
get,getIn,set,update,delete,remove,toJS,toJSONmethods are implemented. All other methods will fallback to the basicMapdefinition. Other method definition will be added later, but as some might be really complex, we prefer the progressive enhancement on the most used functions.Fixes
Internal
Special thanks to @arnfaldur that migrated every type tests to tsd just before that.
Configuration
📅 Schedule: (UTC)
* 0-4,22-23 * * 1-5)* * * * 0,6)🚦 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.