Preact Versions Save

⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

10.20.1

1 month ago

Fixes

  • Add special case for focusIn and focusOut (#4316, thanks @JoviDeCroock)

10.20.0

1 month ago

Features

  • Add isMemo to compact to allow compatibility with react-is dependant libraries (#4302, thanks @ziongh)

Fixes

  • Fix case where shrinking a list would cause an exception (#4312, thanks @JoviDeCroock)

10.19.7

1 month ago

Types

  • Bring consistency to our focus-event types (#4307, thanks @JoviDeCroock)
  • Add onScrollend listener type (#4305, thanks @JoviDeCroock)
  • Align state updater type with Raeect (#4306, thanks @JoviDeCroock)

Fixes

  • Revert batch commit callbacks from all components in the render queue (#4297, thanks @JoviDeCroock)

10.19.6

2 months ago

tl;dr: This release contains bug fixes for incorrect ordering of unkeyed children.

Fixes

  • Match null placeholders using skewed index (#4290, thanks @andrewiggins)
  • Fix increment skew when we aren't removing the first pointer (#4284, thanks @JoviDeCroock)
  • Fix invalid vnode internal id for text nodes (#4291, thanks @marvinhagemeister)
  • Fix unkeyed reconciliation order in certain scenarios (#4287, thanks @marvinhagemeister, thanks @JoviDeCroock)

Full Changelog: https://github.com/preactjs/preact/compare/10.19.5...10.19.6

10.19.5

2 months ago

Fixes

  • Address scenario where we would crash when replacing a matched vnode with null (#4281, thanks @JoviDeCroock)
  • Correctly restore _original (#4280, thanks @JoviDeCroock)
  • Protect against nullish render (#4278, thanks @JoviDeCroock)
  • Support setting translate through direct access (#3800, thanks @JoviDeCroock)

Types

  • Add dpub aria 1.0 role JSX types (#4276, thanks @novari)

10.19.4

2 months ago

Fixes

  • event-listeners in safari 12.3 fix (#4253, thanks @JoviDeCroock)
  • support passing context into pure component (#4269, thanks @JoviDeCroock)
  • retain masks across render invocations (#4245, thanks @JoviDeCroock)
  • skip comment nodes for placeChild (#4128, thanks @JoviDeCroock)
  • ensure we are able to support capture events from compat (#4243, thanks @JoviDeCroock)
  • batch commit callbacks from all components in the render queue (#4234, thanks @developit)

Types

  • improve preact compat types adding a few missing @types/react used by styled-components (#4271, thanks @jduthon)
  • add ComponentType to preact/compat (#4239, thanks @ianobermiller)
  • add missing contenteditable "inherit" value (#4242, thanks @marvinhagemeister)

Maintenance

  • add some sensible timeouts to actions that call out to external services (#4259, thanks @andrewiggins)
  • improve types of hook source (#4229, thanks @andrewiggins)

10.19.3

4 months ago

Bug Fixes

  • Add MathML types (#4214, thanks @fekete965)
  • Fix event handler event types for onInput, onBeforeInput and onSubmit (#4226, #4220, thanks @marvinhagemeister)
  • Fix invalid vnodes not filtered out in children (#4219 , thanks @billti)

Maintenance

  • Remove focus from event capturing tests (#4217, @andrewiggins)

10.19.2

5 months ago

Fixes

  • Call options.vnode on rerender (#4209, thanks @andrewiggins)

Maintenance

  • Fix tests in IE11 (#4211, thanks @andrewiggins)
  • Add test for removing children of memoed components (#4210, thanks @andrewiggins)

10.19.1

5 months ago

Fixes

  • Missing preact import error when using compat (#4206, thanks @JoviDeCroock)

Types

  • Make children optional in Provider's typings (#4205, thanks @shicks)

10.19.0

5 months ago

Features

  • Support precompiled JSX transform (#4177, thanks @marvinhagemeister)

Fixes

  • Rework children diffing to run in multiple phases (#4180, thanks @andrewiggins)

Performance

  • Inline diffProps function (#4200, thanks @andrewiggins)
  • Do typeof string check before looking for String constructor (#4198, thanks @andrewiggins)
  • Only run unmounting loop if any children remain to unmount (+2 B) (#4199, thanks @andrewiggins)
  • Fix debug throwing in valid nested table (#4193, thanks @marvinhagemeister)

Types

  • Compat PureComponent parity with upstream react type definitions (#4056, thanks @Blufords)