Preact 11.0.0-rc.0

11.0.0-rc.0Pre-release
Added 4
  • Implement use hook in compat
  • Implement getServerSnapshot for useSyncExternalStore
  • Support createPortal in core
  • Add useEffectEvent hook to compat
Changed 10
  • Leverage moveBefore rather than insertBefore when available
  • Compute minimal child moves with a longest increasing subsequence
  • Batch updates in flushSync
  • Avoid traversing retained subtrees
  • Reduce core bundle size in v11
  • Reduce bundle size before release candidates go live
Fixed 6
  • Avoid mutating user-provided style objects when appending px
  • Fix reusing template element content
  • Fix dirty child strict equality bailout
  • Add the constructor in when cloning VNodes
  • Defer passive effect cleanup on unmount
  • Avoid Trusted Types violation when dangerouslySetInnerHTML is used
Features
  • implement use in compat (#5186, thanks @JoviDeCroock)
  • Implement getServerSnapshot for useSyncExternalStore (#4979, thanks @ssssota)
  • Support createPortal in core (#5168, thanks @JoviDeCroock)
  • Add useEffectEvent hook to compat (#5141, thanks @Mesoptier)
Correctness
  • Leverage moveBefore rather than insertBefore when available (#5161, thanks @JoviDeCroock)
  • Avoid mutating user-provided style objects when appending px (#5117, thanks @JSap0914)
  • Fix reusing template element content (#5192, thanks @JoviDeCroock)
  • Fix dirty child strict equality bailout (#5193, thanks @JoviDeCroock)
  • Add the constructor in when cloning VNodes (#5195, thanks @JoviDeCroock)
  • Defer passive effect cleanup on unmount (#5196, thanks @JoviDeCroock)
Performance
  • Compute minimal child moves with a longest increasing subsequence (#5174, thanks @JoviDeCroock)
  • Batch updates in flushSync (#5175, thanks @JoviDeCroock)
  • Avoid traversing retained subtrees (#5183, thanks @JoviDeCroock)
  • Reduce core bundle size in v11 (#5167, thanks @JoviDeCroock)
  • Reduce bundle size before release candidates go live (#5197, thanks @JoviDeCroock)
  • Hoist _children into a local in constructNewChildrenArray (#5198, thanks @JoviDeCroock)
  • Reduce Preact core compressed size (#5199, thanks @JoviDeCroock)
Maintenance
  • Bump reported React version to 19.0.0 (#5171, thanks @JoviDeCroock)
  • Remove debug re-throw (#5190, thanks @JoviDeCroock)
  • Commit pending hook state in options._render (#5187, thanks @JoviDeCroock)
  • Remove straggler forwarded (#5178, thanks @JoviDeCroock)
  • Derive document from parentDom instead of threading it (#5180, thanks @JoviDeCroock)
  • Remove redundant portal children guard (#5179, thanks @JoviDeCroock)
  • Restore _bits mangle for Preact ISO (#5200, thanks @JoviDeCroock)
  • Update contribution build commands (#5166, thanks @Minsecrus)
  • Remove unused dependencies (#5160, thanks @JoviDeCroock)
  • Avoid Trusted Types violation when dangerouslySetInnerHTML is re… (#4935, thanks @lukewarlow)
  • Introduce a modern build setup (#5159, thanks @JoviDeCroock)
View original

Upgraded? How did it go?

Discussion