Skip to content
Myr

feat: drop typescript@3.0 support

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

Mapped tuples/arrays were causing a ton of head ache, so 3.1.1 is now the minimum supported version.

authored by aleclarson · committed by aleclarson · parent 04e3cdf · 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!515516**Note:** TypeScript v2.x and lower are _not_ supported by Immer v1.9 and higher.516**Note:** Immer v1.9+ supports Typescript v3.1+ only.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@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==4486typescript@3.1.1:4487 version "3.1.1"4488 resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.1.tgz#3362ba9dd1e482ebb2355b02dfe8bcd19a2c7c96"4489 integrity sha512-Veu0w4dTc/9wlWNf2jeRInNodKlcdLgemvPsrNpfu5Pq39sgfFjvIIgTsvUHCoLBnMhPoUA+tFxsXjU6VexVRQ==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