Tags: lyonbot/immer
Tags
docs: add `break` to `switch` block (immerjs#769) I get that there's only one `case` here but for people plucking this example and then using it to build out their own reducer, they'll immediately run into issues as soon as they add a second `case` with no `break` in the first.
fix: Add a type-checking fast path for primitive types (immerjs#755) When `Draft<T>` is applied to a large enum type, TypeScript has to do a lot of unnecessary structural comparisons to confirm that no element of the enum matches `Function`, `Date`, `RegExp`, etc. Determining that they do match `string` or `number`, on the other hand, is trivial. This change splits `PrimitiveType` out of `AtomicObject` so that the fast path can be checked first. In microsoft/TypeScript#42824, this cut the check time from ~2.5 seconds to ~0.3 seconds.
fix: Fixed security issue immerjs#738: prototype pollution possible w… …hen applying patches CVE-2020-28477 See: CVE-2020-28477 / SNYK-JS-IMMER-1019369 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28477 https://snyk.io/vuln/SNYK-JS-IMMER-1019369
PreviousNext