CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 06:14:05 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"242c3e0926da4bddf5afce5a10dc7406"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=faTbiJUTydby18KCBCeYUz0L7fK%2Fxd6vcRtCDhB3Rz0NkIza6g%2BcDZLE22C9TQRuMonWE%2FgrLyZvLdsduucVHmMO%2B7791RPZp%2Br7Ya7qjzAw7rRCV9ZjK2CtdjTBeePC0xXufA068sIi%2FiaEh7Hm02Z6rvHx2p14aAXrv6KqyUpXv31RRjSmmI563PEaHL6MTxEqvt2x5eXCtghMCtR%2BX5Dyz51DUXfIdzkO6Ok%2BwElNY2AGhLs0cNDX67gsSAfCABzOnNzl81prbYbZkj0O9Q%3D%3D--ZJalaAHgmoqRPu62--sHK8EekDs0SgjCTmK7ijrQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2135479316.1753337645; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 06:14:05 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 06:14:05 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9DC2:36F97A:14892C3:18D5095:6881CF2D
Releases ยท immerjs/immer ยท GitHub
27 Apr 20:07
27 Apr 19:56
Loading
09 Mar 21:37
02 Oct 06:36
09 May 18:24
17 Apr 19:00
Loading
17 Apr 10:38
Loading
23 Mar 17:41
Loading
23 Mar 17:38
Loading
27 Jan 14:59
Loading
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 859
Releases: immerjs/immer
Releases ยท immerjs/immer
v10.1.1
e2d222b
This commit was created on GitHub.com and signed with GitHubโs verified signature.
Compare
v10.1.0
53e3203
This commit was created on GitHub.com and signed with GitHubโs verified signature.
Compare
10.1.0 (2024-04-27)
Features
- performance: Make non-strict mode faster for classes. Addresses #1071 (53e3203). Immer 10.x solved slow iteration for plain JS objects. This update applies the same handling to class instances. In cases this makes class instance handling 3 times faster. Note that this slightly modifies the behavior of Immer with classes in obscure corner cases, in ways that match current documentation, but do not match previous behavior. If you run into issues with this release icmw. class instances, use
setUseStrictShallowCopy("class_only")
to revert to the old behavior. For more details see https://immerjs.github.io/immer/complex-objects#semantics-in-detail
Assets 2
v10.0.4
Compare
v10.0.3
f6736a4
This commit was created on GitHub.com and signed with GitHubโs verified signature.
The key has expired.
Compare
v10.0.2
75e004d
This commit was created on GitHub.com and signed with GitHubโs verified signature.
The key has expired.
Compare
v10.0.1
Compare
Assets 2
4 people reacted
v10.0.0
2ef9a42
This commit was created on GitHub.com and signed with GitHubโs verified signature.
The key has expired.
Compare
10.0.0 (2023-04-17)
Release notes
- [breaking change] Immer 10 only supports modern browsers, that have support for
Proxy
,Reflect
,Symbol
andMap
andSet
. - [breaking change] There is no longer a UMD build exposed (thanks Mark Erikson for modernizing the build setup in #1032!
- [breaking change] getters and setters are ignored by default on plain object, as this is a very uncommon case and provides a significant performance boost (ca 33%, but depends a lot on the scenario). Fixes #867, #1012. Thanks hrsh7th for implementing it in #941!
- [breaking change] Promise based reducers are no longer supported. Conceptually it is an anti pattern to hold on to drafts over time. If needed the old behavior can still be achieved by leveraging
createDraft
andfinishDraft
. - [breaking change] ES5 mode (for legacy browsers) has been dropped. If your project relies on
enableES5()
, you SHOULD NOT upgrade Immer.enableES5
has been removed. - [breaking change]
produce
is no longer exposed as thedefault
export. This improves eco system compatibility, and makes sure that there is only one correct way of doing things - [breaking change]
enableAllPlugins
has been removed, useenablePatches(); enableMapSet()
instead - [breaking change] shortening the length of a JSON array now results in delete patches, rather than a mutation of the
length
property, in accordance with JSON spec. Thanks kshramt for implementing this in #964! - Immer is now an ESM package that can be directly imported into the browser. CJS should still work, UMD support has been removed.
Overall, there is a rough performance increase of 33% for Immer (and in some cases significantly higher), and the (non gzipped) bundle size has reduced from 16 to 11.5 KB, while the the minimal gzipped import of just produce
has remained roughly the same at 3.3 KB.
For more details, see #1015
Migration steps
- If you have any
enableES5()
call, don't migrate - When using getters/ setters icmw plain objects, call
useStrictShallowCopy(true)
at startup - Replace all default imports: Replace
import produce from "immer"
withimport {produce} from "immer"
- Replace all calls to
enableAllPlugins()
withenablePatches(); enableMapSet();
to be more specific and smoothen future migrations. - If any producer returned a Promise, refactor it to leverage
createDraft
instead. Roughly:
const newState = await produce(oldState, recipe)
// becomes
const draft = createDraft(oldState)
await recipe(draft)
const newState = finishDraft(draft)
Assets 2
68 people reacted
v9.0.21
7c15339
This commit was created on GitHub.com and signed with GitHubโs verified signature.
The key has expired.
Compare
Assets 2
3 people reacted
v9.0.20
385837d
This commit was created on GitHub.com and signed with GitHubโs verified signature.
The key has expired.
Compare
Assets 2
v9.0.19
Compare
9.0.19 (2023-01-27)
Bug Fixes
- don't freeze drafts returned from produce if they were passed in as draft (#917) (46867f8)
- produce results should never be frozen when returned from nested produces, to prevent 'hiding' drafts. Fixes #935 (a810960)
- release and publish from 'main' rather than 'master' branch (82acc40)
- revert earlier fix (#990) for recursive types (#1014) (3eeb331)
- Upgrade Github actions to Node 16 attempt 1 (9d4ea93)
- Upgrade Github actions to Node 16 attempt 2 (082eecd)
Assets 2
4 people reacted
Previous Next
You canโt perform that action at this time.