unstale

npm / preact

preact

What changed in preact 10 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

18 breaking2 security13 new APIs and options7 performance14 behavior and defaults44 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

preact 1162 changes

Breaking changes 16

  • Non-function values for on* props are ignored instead of being registered as invalid event handlers.

    11.2.0release notes

  • When using this package, the new VNode marker requires version 6.8.2 or later.

    11.1.0release notes

  • When using this package, the new VNode marker requires version 2.11.4 or later.

    11.1.0release notes

  • Corrects nullability and removes createRef's default any type.

    11.0.2release notes

  • Component.base was removed; the notes point to this.__v.__e as an alternative for accessing the DOM node.

    11.0.0upgrade guide

  • defaultProps support moved from core into preact/compat.

    11.0.0upgrade guide

  • Core and add-on bundles are distributed exclusively as ES modules with the .mjs extension; .module.js, CommonJS and UMD bundles have been removed.

    11.0.0upgrade guide

  • The JSX namespace now contains only TypeScript-required types; other types move to the preact namespace.

    11.0.0upgrade guide

  • The optional third replaceNode parameter was removed; the preact-root-fragment package provides a standalone Preact 10-compatible alternative.

    11.0.0upgrade guide

  • Automatic px suffixing for numeric style values moved from core into preact/compat; core no longer adds px automatically.

    11.0.0upgrade guide

  • Preact 11 supports Chrome 71+, Safari 12.1+, Firefox 69+ and Edge 79+ without polyfills; older browsers require polyfills.

    11.0.0upgrade guide

  • SuspenseList and its server-side support were removed from preact/compat.

    11.0.0upgrade guide

  • Types are stricter and exported from a better location, so applications may need type-related migration changes.

    11.0.0upgrade guide

  • The minimum supported TypeScript version is 5.1.

    11.0.0upgrade guide

  • Unmount cleanup functions are deferred until after the browser has painted; useLayoutEffect remains the option when cleanup must occur synchronously before DOM mutations are committed.

    11.0.0upgrade guide

  • The useRef type signature now requires an initial value.

    11.0.0upgrade guide

Security 1

  • VNode recognition is hardened with a shared symbol marker.

    11.1.0release notes

New APIs and options 10

  • Adds a compiler runtime for apps compiled with React Compiler.

    11.1.0release notes

  • Preact 11 adds automatic ref forwarding.

    11.0.0upgrade guideupgrade guide

  • preact/debug exports captureOwnerStack() for improved debugging and integration with developer tooling.

    11.0.0upgrade guide

  • preact/compat supports the optional context argument for Children.forEach().

    11.0.0upgrade guide

  • preact/compat supports the optional context argument for Children.map().

    11.0.0upgrade guide

  • Preact 11 introduces Hydration 2.0.

    11.0.0upgrade guideupgrade guide

  • preact/debug exports setupComponentStack() for improved debugging and integration with developer tooling.

    11.0.0upgrade guide

  • preact/compat adds use() for reading Promises and Context.

    11.0.0upgrade guide

  • preact/compat adds useEffectEvent().

    11.0.0upgrade guide

  • preact/compat supports the optional getServerSnapshot argument.

    11.0.0upgrade guide

Performance 1

  • Bundle size is reduced across core, hooks, and compat.

    11.2.0release notes

Behavior and default changes 10

  • Rendering into shadow roots now supports scoped custom element registries.

    11.2.0release notes

  • Adds declarative shadow DOM attributes to template elements, including their camelCase forms.

    11.1.1release notes

  • Accessible element attribute types become the default.

    11.0.2release notes

  • Errors that no boundary handles now log the component stack.

    11.0.1release notes

  • Event listeners are keyed by prop name and have attach times stamped per listener.

    11.0.1release notes

  • Ref cleanups stay on the element instead of the ref function.

    11.0.1release notes

  • createPortal is available directly from preact, so portals can be used without preact/compat; the compat export remains available.

    11.0.0upgrade guide

  • The imageRendering property is mapped to the image-rendering CSS property.

    11.0.0release notes

  • Hook arguments use Object.is equality checks.

    11.0.0upgrade guideupgrade guide

  • Top-level Fragments no longer use cloneNode.

    11.0.0release notes

Fixes and other changes 24

  • Thrown null or undefined values reach error boundaries without being replaced with a TypeError.

    11.2.0release notes

  • Event handlers on unmounted nodes are preserved so events already bubbling can finish.

    11.2.0release notes

  • Fixes rendering, updating, and hydrating template elements in SVG and MathML namespaces.

    11.1.1release notes

  • Errors are isolated to the throwing component, allowing unrelated effects and lifecycle callbacks to still run.

    11.1.0release notes

  • The list attribute is allowed on all valid input types.

    11.1.0release notes

  • Compat no longer appends px to unitless SVG paint and aspect-ratio values.

    11.1.0release notes

  • Queued components keep updating and act() cleanup finishes after an uncaught render error.

    11.0.2release notes

  • Deferred hydration ranges are retained through suspension, resumption, and unmounting.

    11.0.2release notes

  • Improves accessibility discriminated unions for dynamic input and select props.

    11.0.2release notes

  • Corrects the browser ESM entry point for this compat server subpath.

    11.0.2release notes

  • Compat leaves non-plain style objects untouched, preserving string-valued signal styles.

    11.0.2release notes

  • Prevents duplicate DOM after an uncaught render error.

    11.0.2release notes

  • Parked Suspense children are unmounted when their boundary unmounts.

    11.0.1release notes

  • Types for preact/compat/scheduler are fixed.

    11.0.1release notes

  • Types for preact/compat/server are fixed.

    11.0.1release notes

  • Suspended hydration stays within a component's own $s range.

    11.0.1release notes

  • CamelCase custom event names retain their casing.

    11.0.0release notes

  • Insertion appends when the reference node lives in another container.

    11.0.0release notes

  • Containers without an ownerDocument use the global document.

    11.0.0release notes

  • Availability is checked on the container rather than globally.

    11.0.0release notes

  • DOM nesting validation now stops at portal boundaries.

    11.0.0release notes

  • Refs are re-attached when a suspended subtree reveals.

    11.0.0release notes

  • RefObject<T> now describes a ref whose current value is T; include null in the type argument when appropriate.

    11.0.0upgrade guide

  • Resuming into the DOM kept while a component was suspended is fixed.

    11.0.0release notes

preact 1036 changes

Breaking changes 2

  • Updates in flushSync are batched.

    10.29.8release notes

  • Reverts the fix for useId stability across async Suspense.

    10.29.4release notes

Security 1

New APIs and options 3

Performance 6

Behavior and default changes 4

  • RTS is now an optional peer dependency, so installing it is no longer required.

    10.29.7release notes

  • The input DOM type now accepts Signalish.

    10.29.3release notes

  • Each Preact instance on a page now gets a unique event clock.

    10.29.1release notes

  • Supports inheriting namespace through portals.

    10.28.3release notes

Fixes and other changes 20

  • Reverted a change that was incompatible with useSignalEffect.

    10.29.6release notes

  • Fixes recovery of children during Compat Suspense hydration.

    10.29.5release notes

  • Fixes a crash in hydration-suspense caused by an sCU bail.

    10.29.4release notes

  • Fixes error recovery for partially rendered subtrees.

    10.29.3release notes

  • Fixes hydrate recovery when excess DOM children are null.

    10.29.3release notes

  • Addresses and guards memory leak hotspots.

    10.29.3release notes

  • Flushes subtree effects when rendering a pending node.

    10.29.3release notes

  • Fixes useId stability across async Suspense.

    10.29.3release notes

  • Fixes hydration when a textarea has defaultValue or value.

    10.29.2release notes

  • Fixes incorrect DOM order with conditional ContextProvider and inner keys.

    10.29.1release notes

  • Fixes a crash when a synchronous effect render unmounts the tree.

    10.28.4release notes

  • Resolves some suspense crashes.

    10.28.3release notes

  • Avoids scheduling suspense state updates.

    10.28.3release notes

  • Enforces strict equality for VNode object constructors.

    10.27.3, 10.28.2release notesrelease notes

  • Fixes erroneous diffing with a growing list.

    10.28.1release notes

  • Updates the type so future TypeScript versions accept Trusted… values.

    10.28.0release notes

  • Prevents lazy components without a result from entering a throw loop.

    10.28.0release notes

  • Fixes the types for scroll events.

    10.28.0release notes

  • Fixes cascading renders when using signals.

    10.28.0release notes

  • VNode object constructors now use strict equality.

    10.26.10release notes