Skip to content
Myr

feat: drop typescript@2 support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

To avoid the annoyance of supporting 2 major language versions.

authored by aleclarson · committed by aleclarson · parent 8a86e7c · Browse files · 3 files+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+6 added−6 removed

  • other:+6 added−6 removed

3 files+6 added−6 removed

modified:package.json+1 added-1 removed
modified:readme.md+1 added-1 removed
511 unmodified lines
512```513514This ensures that the only place you can modify your state is in your produce callbacks. It even works recursively and with `ReadonlyArray`s!515516Using TypeScript v2.7.x or lower is _not_ supported by Immer.516**Note:** TypeScript v2.x and lower are _not_ supported by Immer v1.9 and higher.517518## Immer on older JavaScript environments?519520By default `produce` tries to use proxies for optimal performance. However, on older JavaScript engines `Proxy` is not available. For example, when running Microsoft Internet Explorer or React Native on Android. In such cases, Immer will fallback to an ES5 compatible implementation which works identical, but is a bit slower.
200 unmodified lines
modified:yarn.lock+4 added-4 removed
4481 unmodified lines
4482 integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=4483 dependencies:4484 prelude-ls "~1.1.2"44854486typescript@2.8.1:4487 version "2.8.1"4488 resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.1.tgz#6160e4f8f195d5ba81d4876f9c0cc1fbc0820624"4489 integrity sha512-Ao/f6d/4EPLq0YwzsQz8iXflezpTkQzqAyenTiw4kCUGr1uPiFLC3+fZ+gMZz6eeI/qdRUqvC+HxIJzUAzEFdg==4486typescript@3.0.1:4487 version "3.0.1"4488 resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.1.tgz#43738f29585d3a87575520a4b93ab6026ef11fdb"4489 integrity sha512-zQIMOmC+372pC/CCVLqnQ0zSBiY7HHodU7mpQdjiZddek4GMj31I3dUJ7gAs9o65X7mnRma6OokOkc6f9jjfBg==44904491uglify-es@^3.3.6:4492 version "3.3.9"4493 resolved "https://registry.yarnpkg.com/uglify-es/-/uglify-es-3.3.9.tgz#0c1c4f0700bed8dbc124cdb304d2592ca203e677"
273 unmodified lines