fix(deps): update dependency immer to v9 [security] - abandoned #189
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:
1.5.0
->9.0.6
GitHub Vulnerability Alerts
CVE-2020-28477
Overview
Affected versions of immer are vulnerable to Prototype Pollution.
Proof of exploit
Remediation
Version 8.0.1 contains a fix for this vulnerability, updating is recommended.
CVE-2021-23436
This affects the package immer before 9.0.6. A type confusion vulnerability can lead to a bypass of CVE-2020-28477 when the user-provided keys used in the path parameter are arrays. In particular, this bypass is possible because the condition (p === "proto" || p === "constructor") in applyPatches_ returns false if p is ['proto'] (or ['constructor']). The === operator (strict equality operator) returns false if the operands have different type.
CVE-2021-3757
immer is vulnerable to Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Release Notes
immerjs/immer
v9.0.6
Compare Source
Bug Fixes
path: [["__proto__"], "x"]
could still pollute the prototype (fa671e5)v9.0.5
Compare Source
Bug Fixes
v9.0.4
Compare Source
Bug Fixes
v9.0.3
Compare Source
Bug Fixes
Object
to short-circuit taxingFunction.toString
invocations (#805) (07575f3)v9.0.2
Compare Source
Bug Fixes
v9.0.1
Compare Source
Bug Fixes
immerable
field being lost during patch value cloning (#771) (e0b7c01)v9.0.0
Compare Source
feature
BREAKING CHANGES
nothing
from a recipe if the target state doesn't acceptundefined
.v8.0.4
Compare Source
Bug Fixes
v8.0.3
Compare Source
Bug Fixes
v8.0.2
Compare Source
Bug Fixes
v8.0.1
Compare Source
Bug Fixes
v8.0.0
Compare Source
feature
BREAKING CHANGES
setAutoFreeze(process.env.NODE_ENV !== 'production')
for the old behavior. See https://github.com/immerjs/immer/issues/687#issuecomment-728881754 for the rationale. Fixes #649, #681, #687v7.0.15
Compare Source
Bug Fixes
v7.0.14
Compare Source
Bug Fixes
v7.0.13
Compare Source
Bug Fixes
v7.0.12
Compare Source
Bug Fixes
v7.0.11
Compare Source
Bug Fixes
v7.0.10
Compare Source
Bug Fixes
v7.0.9
Compare Source
Bug Fixes
v7.0.8
Compare Source
Bug Fixes
v7.0.7
Compare Source
Bug Fixes
v7.0.6
Compare Source
Bug Fixes
v7.0.5
Compare Source
Bug Fixes
v7.0.4
Compare Source
Bug Fixes
v7.0.3
Compare Source
Bug Fixes
getOwnPropertyDescriptors
is not available in Internet Explorer and Hermes. Fixes #626 (c7a47e2)v7.0.2
Compare Source
Bug Fixes
v7.0.1
Compare Source
Bug Fixes
current
for pre-TS 3.7 types (7d6b57b)v7.0.0
Compare Source
Introduced
current
, which takes a snapshot of the current state of a draft and finalizes it (but without freezing). Current is a great utility to print the current state during debugging (no Proxies in the way), and the output of current can also be safely leaked outside the producer. Implements #441, #591[BREAKING CHANGE] getters and setters are now handled consistently: own getters and setters will always by copied into fields (like Object.assign does), inherited getters and setters will be left as-is. This should allow using Immer directly on objects that trap their fields, like done in Vue or MobX. Fixes #584, #439, #593, #558
[BREAKING CHANGE] produce no longer accepts non-draftable objects as first argument
[BREAKING CHANGE] original can only be called on drafts and will throw otherwise (fixes #605)
[BREAKING CHANGE] non-enumerable and symbolic fields will never be frozen
[BREAKING CHANGE] the patches for arrays are now computed differently to fix some scenarios in which they were incorrect. In some cases they will be more optimal now, in other cases less. Especially splicing / unshifting items into an existing array might result in a lot of patches. Fixes #468
Improved documentation in several areas, there is now a page for typical update patterns and a separate page on how to work with classes. And additional performance tips have been included. Fixes #457, #115, #462
Fixed #462: All branches of the produced state should be frozen
Fixed #588: Inconsistent behavior with nested produce
Fixed #577: Immer might not work with polyfilled symbols
Fixed #514, #609: Explicitly calling useProxies(false) shouldn’t check for the presence of Proxy.
v6.0.9
Compare Source
Bug Fixes
v6.0.8
Compare Source
Bug Fixes
v6.0.7
Compare Source
Bug Fixes
v6.0.6
Compare Source
Bug Fixes
v6.0.5
Compare Source
Bug Fixes
v6.0.4
Compare Source
Bug Fixes
v6.0.3
Compare Source
Bug Fixes
v6.0.2
Compare Source
Bug Fixes
v6.0.1
Compare Source
Bug Fixes
index.d.ts
toimmer.d.ts
(ed6ba6d)v6.0.0
Compare Source
BREAKING CHANGES
v5.3.6
Compare Source
Bug Fixes
v5.3.5
Compare Source
Bug Fixes
2d27f33
(70b44a7)v5.3.4
Compare Source
Bug Fixes
v5.3.3
Compare Source
Bug Fixes
Set
inside patches were not correctly cloned. Fixes #521 (9d8d995)v5.3.2
Compare Source
v5.3.0
Compare Source
Bug Fixes
Drafted
(3711dec)Features
v5.2.1
Compare Source
Bug Fixes
v5.2.0
Compare Source
Features
v5.1.0
Compare Source
Features
v5.0.2
Compare Source
Bug Fixes
v5.0.1
Compare Source
Bug Fixes
v5.0.0
Compare Source
❤ immer? 👉 https://opencollective.com/immer
This release introduces first class support for Maps and Sets!
BREAKING CHANGE: Maps and Sets are treated differently now; they will no longer directly mutated when updated inside a draft
Some things to keep in mind:
add
,set
,delete
andclear
autoFreeze
is enabled, the maps and sets returned from a producer will be artificially frozen by making their mutative APIs unusableOpen questions
Draft
's, is limited, see #448 for detailsCredits to @runnez, @aigoncharov and @aleclarson for making this happen!
v4.0.2
Compare Source
Bug Fixes
v4.0.1
Compare Source
Bug Fixes
v4.0.0
Compare Source
Features
BREAKING CHANGES
v3.3.0
Compare Source
Features
v3.2.1
Compare Source
Bug Fixes
v3.2.0
Compare Source
Features
v3.1.4
Compare Source
Bug Fixes
v3.1.3
Compare Source
Bug Fixes
v3.1.2
Compare Source
Bug Fixes
v3.1.1
Compare Source
Got ahead of myself with
Map
support (see here: https://github.com/immerjs/immer/pull/353)Bug Fixes
v3.0.0
Compare Source
Bug Fixes
Features
immerjs
(17d69c3)BREAKING CHANGES
this
in recipe is no longer the draft, but unbound (3f40298)v2.1.5
Compare Source
Bug Fixes
v2.1.4
Compare Source
Bug Fixes
v2.1.3
Compare Source
Bug Fixes
v2.1.2
Compare Source
Bug Fixes
v2.1.1
Compare Source
Bug Fixes
v2.1.0
Compare Source
Features
v2.0.0
Compare Source
Bug Fixes
es5: throw if a modified child draft is returned (eabe9db)
Async recipes (#307) (0f76f98), closes #307 #302
BREAKING CHANGES
v1.12.1
Compare Source
Bug Fixes
v1.12.0
Compare Source
Features
v1.11.1
Compare Source
Bug Fixes
v1.11.0
Compare Source
Bug Fixes
Features
v1.10.5
Compare Source
Bug Fixes
Reverts
v1.10.4
Compare Source
Bug Fixes
v1.10.3
Compare Source
Bug Fixes
v1.10.2
Compare Source
Bug Fixes
v1.10.1
Compare Source
Bug Fixes
v1.10.0
Compare Source
Features
v1.9.3
Compare Source
Bug Fixes
v1.9.2
Compare Source
Bug Fixes
v1.9.1
Compare Source
Bug Fixes
__tests__/types.ts
(603664b)Performance Improvements
has
where possible (4b9b637)v1.9.0
Compare Source
TypeScript users: Please pin your
immer
version to1.8
if you usetypescript <3.1.1
. Thanks!Bug Fixes
Features
Immer
class (ecd04dc), closes #254Immer
class (7f50364)Immer
class (f36d329)Performance Improvements
v1.8.2
Compare Source
Bug Fixes
v1.8.1
Compare Source
Bug Fixes
assign
polyfill (241a648)v1.8.0
Compare Source
For v1.8.0 and under, please visit the old changelog.md.
v1.7.4
Compare Source
v1.7.1
Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), 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 has been generated by Mend Renovate. View repository job log here.