v54.0.0-beta.22 (2026-12-04)
Published @platejs/cli@54.0.0-beta.22.
Published @platejs/test@54.0.0-beta.22.
540b348by @zbeyens – Support inline and block widget, replace, and atomic decorations in plugindecorateandEditorStatic(skipping non-mark andstatic: falsedecorations in DOCX export), and renderCopilotPluginghost text through native inline widget decorations.
-
540b348by @zbeyens – Add inline and block widget decorations, inline and block replace decorations, and atomic range decorations toDecoration<TWidget>and<EditorRoot decorations>, with DOM offset mapping, atomic keyboard/selection/edit handling, clipboard stripping and model-backed copy, andDOMCoverageblock folding. -
e2ffda0by @zbeyens – Add actionable remediation hints toEditorSchemaValidationErrorwhen an unknown element uses a renamed v53 type (such as'p'instead of'paragraph') or when'paragraph'is not registered in the editor schema.
Full changelog: v54.0.0-beta.21...v54.0.0-beta.22
render-middleware v1.1.2
-
Fold DOCTYPE prepending into shell tracking in
render()to eliminate an extra wrapperReadableStreamand resolve non-file:client entries synchronously. (#12463) -
Bumped
@remix-run/*dependencies:
remix v3.4.0
-
Render children into the document body or a custom container with the new
Portalcomponent fromremix/component. In server-rendered apps, portals must be nested within a client entry to render their content. StandalonecreateRoot()apps that don't usePortalorFramedon't download its renderer. (#12344) -
Deprecated
remix/data-table/sql-helpers. Custom adapters can continue importing from this path until Data Table removes it in its next major release. The new@remix-run/data-table/internal/sql-helpersentry point is reserved for the built-in adapters. (#12497) -
remix/routernow treatsrequest.signalcooperatively. When a request aborts, the router stops running middleware and handlers and rejects with the abort reason, but it waits for work already in progress instead of rejecting immediately. Passcontext.request.signalto work that should stop when the client disconnects, such asfetch()calls and database queries. See the@remix-run/fetch-routerchangelog for details. (#12446) -
Start Node.js HTTP and HTTPS servers with graceful shutdown and connection draining using
serve()fromremix/node-fetch-server, modeled afterBun.serve(). Callserver.stop()to wait for in-flight requests to finish while closing idle and speculative connections, orserver.stop(true)to close all active connections immediately. (#12491) -
Deprecated
limits.maxMatchWorkinMatcherOptions(MatcherLimits.maxMatchWork) fromremix/route-pattern. Rely on the built-in match work safeguard instead of configuringmaxMatchWork; passing it continues to work in3.xand will be removed in a future major release. (#12499)
-
remixnow declares Bun 1.4.3 as its minimum supported Bun version inengines. Upgrade Bun to 1.4.3 or later before updating if you run Remix on Bun. (#12367) -
Updates to apps created with
remix new: (#12499)server.tsnow usesserve()fromremix/node-fetch-server, closing idle and speculative connections immediately onSIGINTorSIGTERMand draining active production requests for up to 30 seconds before shutting down.hmr.tsreports HMR port conflicts without starting the app server, avoiding secondaryEPIPEerrors.- The starter welcome page moves inline SVGs into
public/, simplifies the starter CSS andPromptButtoncomponent, clarifiesAGENTS.md, and updates the bundled Remix agent skill with modern browser UI guidance.
See the
@remix-run/clichangelog for details and thehmr.tsdiff to apply the port-conflict fix to an existing app. -
Rendering, hydration, and navigation fixes in
remix/component: (#12441)- Client navigations send the page being left as the
Referer, so servers that redirect back after a form post return to the right page. Links with an explicitreferrerpolicyand links or forms withrel="noreferrer"use native document navigation. - Frame form submissions keep the submit button's name and value when the button is disabled or removed during submission, including in Firefox.
- Back and Forward restore scroll positions more reliably in Safari and Firefox when the destination takes time to load.
- Reordering elements keeps focus, iframe documents, CSS animations, and open dialogs and popovers intact in browsers that support
moveBefore(). Custom elements that defineconnectedMoveCallback()receive it for these moves, and frame reloads that reorder surviving client entries or nested frames preserve input focus and selection. clientEntry()components passed as props or children to anotherclientEntry()now hydrate as independent client boundaries, keep their state and event handlers across outer updates and frame reloads, and load dynamically when rendered later on the client (such as inside closed dialogs or portals).- Components nested inside
clientEntry()props can now read context from a provider in the same props or fromhandle.context.set()on the client entry itself during server rendering. css()emits descriptor and definition at-rules (@property,@font-face,@counter-style,@font-palette-values,@page,@position-try) outside the generated class instead of dropping them, and renders object-valued nested selector keys that do not start with&,@,:,., or[(such ash2or'ul:hover &') as nested rules instead of[object Object].- Controls disabled in server HTML with
disabled=""stay disabled after hydration, and an element that replaces a hydrated empty string renders in the right position. - Inputs that render again with
value={undefined}orchecked={undefined}keep what the visitor typed or toggled. - Streamed child frames show their content as soon as it arrives, and a frame waiting for preloads no longer stays on its server HTML when a sibling finishes first.
See the
@remix-run/componentchangelog for the complete list. - Client navigations send the page being left as the
-
Client hydration and rendering in
remix/componentare faster, with no changes to app code. In our 4x CPU-throttled Chromium benchmarks, hydration is 2.1x–2.8x faster and client list and dashboard updates do 15%–30% less scripting work while preserving mismatch patching and DOM behavior. See the@remix-run/componentchangelog for details. (#12465) -
The
remix/componentbrowser runtime is smaller, with no changes to app code. In our measurements, a minimalcreateRoot()app is about 40% smaller minified and gzipped, and an app that hydrates withrun()is about 10% smaller. Standalone roots and navigation helpers such asnavigate()only load the code for the features they import, apps served unbundled byremix/assetsmake fewer module requests, and list, frame, and hydration updates do less work. See the@remix-run/componentchangelog for details. (#12441) -
Server rendering with
remix/component/server(renderToString()andrenderToStream()),remix/middleware/render, andremix/response/htmlis faster and uses less memory, with no changes to app code. In our benchmarks on Node 24,renderToString()throughput improves 2.4x–6.7x andrenderToStream()improves 1.1x–5.4x while producing identical HTML output, and streamed HTML responses avoid extra wrapper streams and forward stream cancellation to the underlying reader. See the@remix-run/component,@remix-run/render-middleware, and@remix-run/responsechangelogs for details. (#12457) -
SVG
xlinkHrefandxlink:hrefprops inremix/componentnow render as the SVG2hrefattribute instead of the namespacedxlink:hrefattribute. Other xlink props, such asxlinkTitle, are unchanged. Update any CSS selectors, tests, or scripts that look forxlink:hrefin rendered SVG. (#12441) -
Development and asset pipeline improvements in
remix/assets,remix/component-hmr, andremix/node-hmr: (#12441)remix/assetscompiles scripts and styles faster, bounds emitted script and style caches and releases intermediate state whenwatchisfalse, avoids spawning a duplicate file watcher under active browser HMR, and includesContent-Lengthon200/HEADresponses andCache-Controlon304responses.- Full-page HMR reloads in WebKit no longer render stale JavaScript after a module was preloaded, and idle browser HMR streams in
remix/node-hmrsend heartbeats every 30 seconds so HTTP clients and proxies do not time them out. - Component HMR handles default and destructured parameters, nested declarations, assignments during render, and components that share a variable declaration with other exports. Editing the setup of a component without retained setup bindings or parameters no longer runs its setup twice, and failed edits that throw or reject a top-level
awaitkeep the last working component implementation. - Source maps account for injected HMR setup code and component HMR transforms, and explicitly unmapped generated code no longer points at the preceding authored source after loader transforms or minification.
See the
@remix-run/assets,@remix-run/component-hmr, and@remix-run/node-hmrchangelogs for details. -
Other fixes and improvements: (#12441)
compressResponse()fromremix/response/compressand thecompression()middleware fromremix/middleware/compressionno longer buffer the entire compressed response in memory when the client reads slowly.detectMimeType()anddetectContentType()fromremix/mimeno longer throw for extensions that match inherited object properties, such asfile.constructor.object()andrecord()fromremix/data-schemano longer omit keys that passed validation from their results, and exportingobject()schemas without an explicit type annotation no longer fails TypeScript declaration emit (TS2883/TS4023).LazyBlobandLazyFilefromremix/lazy-filecan be read in supported browsers without nativeReadableStreamasync iteration, including Chrome and Edge 123 and Safari 17.5.createFetchProxy()fromremix/fetch-proxyremoves connection-specific headers (including fields named byConnection) from upstream responses, andremix/node-fetch-serveromits connection-specific headers on HTTP/2 responses while logging write failures and closing affected responses when an error response cannot be sent.remix/multipart-parserspeeds up boundary search on Bun and runtimes withoutBuffer, reduces per-upload setup work, speeds up parsing when part headers span multiple chunks, and handles headers atmaxHeaderSizeconsistently across chunk boundaries.
-
SuperHeadersfromremix/headersno longer wraps parsed header values in aProxy, improving read and mutation throughput and returning real class instances for collection headers (Accept,AcceptEncoding,AcceptLanguage,Cookie, andVary). Mutations that relied onProxytraps—deleteandObject.defineProperty()on typed fields, direct bracket-index assignment or.lengthtruncation on list accessors (setCookie,ifMatch.tags,ifNoneMatch.tags,range.ranges), and own-property enumeration (Object.keys(), object spread,JSON.stringify()) onSuperHeadersproperty wrappers—are no longer intercepted. Assignundefinedto clear typed fields and use standard array methods on list accessors: (#12499)-delete headers.contentType.charset -headers.setCookie[1] = { name: 'lang', value: 'en' } +headers.contentType.charset = undefined +headers.setCookie.splice(1, 1, { name: 'lang', value: 'en' })
See the
@remix-run/headerschangelog for details. -
The installed
node_modules/remix/INDEX.mdguide table now lists each guide's##section headings with line ranges so readers and coding agents can jump directly to the relevant section of a guide. (#12478) -
Stricter handling of untrusted input. Each of these rejects values that were previously accepted: (#12441)
remix/node-fetch-serverresponds with400 Bad Requestto requests with a literal backslash in the URL path. Percent-encoded backslashes are still accepted.createHref()fromremix/route-pattern/href, and thehref()method of routes fromremix/routes, throw aCreateHrefErrorwhen a pathname variable produces a standalone.or..segment, which could otherwise resolve to a different route.bigint()fromremix/data-schema/coercefails validation for strings longer than 4,096 characters.
-
Stop
loadModule()fromremix/node-tsx/load-moduleandremix test --coveragefrom printing amodule.register()deprecation warning (DEP0205) on Node.js 26. Both now register synchronous in-thread hooks withmodule.registerHooks(). See the@remix-run/node-tsxand@remix-run/testchangelogs for details. (#12466) -
Request and response handling in
remix/node-fetch-server(createRequestListener(),createRequest(), andsendResponse()) has higher throughput and lower per-request overhead. As part of this change,sendResponse()no longer releases its reader lock on the consumedresponse.bodystream, bodyless HTTP/1.x requests (Content-Length: 0or neitherContent-LengthnorTransfer-Encoding) now leaverequest.bodyasnullinstead of an empty stream, andcreateRequestListener()always constructs and passes aRequestto zero-argument or rest-parameter handlers while routing their errors throughonError. See the@remix-run/node-fetch-serverchangelog for details. (#12466) -
remix/routerdispatches requests significantly faster, especially for static routes and middleware chains, andremix/route-patternmatches large route tables 20 to 60 times faster, builds matchers 5 to 9 times faster, and generates hrefs up to nearly twice as fast in our benchmarks. Routing behavior is unchanged. See the@remix-run/fetch-routerand@remix-run/route-patternchangelogs for details. (#12441) -
Browser tests in
remix/testrun faster by reusing compiled scripts across test files. Firefox runs each test file in a top-level window so Back and Forward navigations behave as they do in the browser, and WebKit runs recover from the browser's history quota instead of failing later test files. See the@remix-run/testchangelog for details. (#12441) -
Bumped
@remix-run/*dependencies:assets@1.0.4async-context-middleware@1.0.2auth@1.0.3auth-middleware@1.0.3cli@1.0.4component@1.4.0component-hmr@1.0.3compression-middleware@1.0.4cookie@1.0.4cop-middleware@1.0.2cors-middleware@1.0.4csp-middleware@1.0.2csrf-middleware@1.0.3data-schema@1.0.2data-table@1.2.0data-table-mysql@1.1.1data-table-postgres@1.0.2data-table-sqlite@1.1.1fetch-proxy@1.0.4fetch-router@1.1.0file-storage@1.0.2file-storage-s3@1.1.2form-data-middleware@1.1.3form-data-parser@1.1.3fs@1.0.1headers@1.1.2lazy-file@5.0.9logger-middleware@1.0.2method-override-middleware@1.0.2mime@1.0.1multipart-parser@1.1.3node-fetch-server@1.1.0node-hmr@1.0.2node-tsx@1.0.1render-middleware@1.1.2response@1.0.4route-pattern@1.1.0session-middleware@1.0.4spa@1.0.4static-middleware@1.0.4test@1.2.1
test v1.2.1
-
Declare Bun 1.4.3 as the minimum supported Bun version in
engines. Upgrade Bun to 1.4.3 or later before updating if you run Remix on Bun. (#12367) -
Speed up browser tests by reusing compiled scripts across test files within a browser run. The runner checks file metadata before serving a cached script so source edits and replacements are picked up on subsequent requests. (#12390)
-
Stop
remix test --coveragefrom printing amodule.register()deprecation warning (DEP0205) in server test workers on Node.js 26. The coverage loader now registers synchronous in-thread hooks withmodule.registerHooks(). (#12460) -
Run each Firefox browser test file in a fully loaded top-level window so intercepted Back and Forward navigations use top-level history. (#12391)
-
Prevent history-quota failures caused by earlier WebKit browser test files. Each file gets a fresh history budget, with an 11-second backoff and one retry if a test exhausts it. See WebKit history limits for recovery behavior. (#12350)
-
Bumped
@remix-run/*dependencies:
static-middleware v1.0.4
- Bumped
@remix-run/*dependencies:
spa v1.0.4
- Bumped
@remix-run/*dependencies:
response v1.0.4
-
Fix
compressStream(), used bycompressResponse()and thecompression()middleware, buffering the entire compressed response in memory when the client reads slowly. Compression now pauses the source stream until the client catches up. Cancelling a compressed response after its source stream finished also no longer throws aTypeError. (#12426) -
Combine prepended DOCTYPE bytes into the first chunk of streamed
createHtmlResponse()responses, forward stream cancellation to the underlying reader, and avoid unnecessaryHeadersandTextEncoderallocations. (#12463) -
Bumped
@remix-run/*dependencies:
ui v0.15.0
-
BREAKING CHANGE: Popovers, menus, selects, and comboboxes now render ordinary DOM elements instead of native top-layer popovers. Use the matching Portal component to escape clipping ancestors, and wrap each popup surface in its matching context component, as shown below. The context is required for inline rendering too. (#12170)
Replace
:popover-openstyles with[data-state="open"]. Use[data-open]for styles that should remain during exit animations. Nativebeforetoggleandtoggleevents no longer fire.Place the surface context inside the Portal. Omit the Portal when the surface can remain inline.
Popovers:
import * as popover from '@remix-run/ui/popover' <popover.Context> <button mix={popover.anchor({ placement: 'bottom-start' })}>Open popover</button> - <div mix={popover.surface({ open, onHide })}>Content</div> + <popover.Portal> + <popover.SurfaceContext> + <div mix={popover.surface({ open, onHide })}>Content</div> + </popover.SurfaceContext> + </popover.Portal> </popover.Context> const surfaceStyle = css({ - '&:popover-open': { opacity: 1 }, + '&[data-state="open"]': { opacity: 1 }, })Menus:
import * as menu from '@remix-run/ui/menu' <menu.Context label="Menu"> <button mix={menu.trigger()}>Open menu</button> - <div mix={menu.popover()}> - <div mix={menu.list()}>{/* Items */}</div> - </div> + <menu.Portal> + <menu.PopoverContext> + <div mix={menu.popover()}> + <div mix={menu.list()}>{/* Items */}</div> + </div> + </menu.PopoverContext> + </menu.Portal> </menu.Context>Selects no longer need a separate
popover.Context. Replace it withselect.PopoverContextaround the popup surface:-import * as popover from '@remix-run/ui/popover' import * as select from '@remix-run/ui/select' <select.Context defaultLabel="Choose"> <button mix={select.trigger()} /> - <popover.Context> - <div mix={select.popover()}> - <div mix={select.list()}>{/* Options */}</div> - </div> - </popover.Context> + <select.Portal> + <select.PopoverContext> + <div mix={select.popover()}> + <div mix={select.list()}>{/* Options */}</div> + </div> + </select.PopoverContext> + </select.Portal> </select.Context>
Comboboxes:
import * as combobox from '@remix-run/ui/combobox' <combobox.Context> <input aria-label="Combobox" mix={combobox.input()} /> - <div mix={combobox.popover()}> - <div mix={combobox.list()}>{/* Options */}</div> - </div> + <combobox.Portal> + <combobox.PopoverContext> + <div mix={combobox.popover()}> + <div mix={combobox.list()}>{/* Options */}</div> + </div> + </combobox.PopoverContext> + </combobox.Portal> </combobox.Context>DOM events, form ownership, and inherited styles follow the Portal destination.
Popups no longer use the browser's top layer. Wrap your app content in an element with
css({ isolation: 'isolate' })so popups portaled todocument.bodyappear above the app's z-index layers. For other layering setups,--rmx-layer-basecan optionally raise the dialog and popup stack. It defaults to0. -
BREAKING CHANGE: Removed the selection flash from
select,comboboxandlistbox, along with APIs for delaying selection feedback. (#12262)selectandcomboboxnow show the chosen label while the popup starts closing, without waiting for a selection flash or label delay. Their change events fire after the displayed label and hidden form value update, so handlers can read the new value fromFormDatabefore closing finishes.comboboxalso selects the input text immediately.select.Contextno longer acceptslabelSwapDelayMs, since the selected label now updates immediately. Remove the prop when upgrading:-<select.Context defaultLabel="Select a type" labelSwapDelayMs={100} name="issueType"> +<select.Context defaultLabel="Select a type" name="issueType">
The
data-select-flashanddata-combobox-flashattributes are no longer set. Remove their CSS rules; existing selected and highlighted styles continue to apply:css({ '&[aria-selected="true"]': { background: 'var(--selected-background)' }, - '&[data-select-flash]': { background: 'var(--flash-background)' }, - '&[data-combobox-flash]': { background: 'var(--flash-background)' }, })listbox.Contextno longer acceptsflashSelection,selectionFlashAttributeoronSelectSettled. Move work fromonSelectSettledintoonSelect, which runs synchronously:<listbox.Context value={value} activeValue={activeValue} - flashSelection - onSelect={onSelect} - onSelectSettled={(value, option) => saveSelection(value, option?.label)} + onSelect={(value, option) => { + onSelect(value, option) + saveSelection(value, option?.label) + }} onHighlight={onHighlight} >onSelectreceives the new selection before your component renders the updated value. Use itsvalueandoptionarguments for selection-dependent work, as above. If your oldonSelectSettledcallback read rendered DOM or form fields, wait for your component's update before reading them:<listbox.Context value={value} activeValue={activeValue} - onSelect={(nextValue) => { + onSelect={async (nextValue) => { value = nextValue - handle.update() + await handle.update() + saveForm(new FormData(form)) }} - onSelectSettled={() => saveForm(new FormData(form))} onHighlight={onHighlight} >ListboxRef.select()andListboxRef.selectActive()now returnvoidinstead of a promise. Listbox continues accepting selection and highlight requests while async callbacks run. If selecting closes your custom popup, use its open state to ignore further selection and highlight requests until it reopens. Setopen = falsebefore any awaited work:<listbox.Context value={value} activeValue={activeValue} onSelect={(nextValue) => { + if (!open) return + open = false value = nextValue void handle.update() }} onHighlight={(nextActiveValue) => { + if (!open) return activeValue = nextActiveValue void handle.update() }} >selectandcomboboxalready handle this themselves.The
data-listbox-flashattribute is no longer set. Remove its CSS rule; existing selected and highlighted styles continue to apply:css({ '&[aria-selected="true"]': { background: 'var(--selected-background)' }, - '&[data-listbox-flash]': { background: 'var(--flash-background)' }, }) -
animateExit()from@remix-run/ui/animationnow accepts a callback(node) => configevaluated lazily when removal begins. This lets an exiting keyed element read updated parent state or measure the DOM at exit time instead of using potentially stale values from its last render, or returnfalse,null, orundefinedto skip the exit animation. (#12481)import { animateExit } from '@remix-run/ui/animation' function TabPanel() { return () => ( <div key={activeTab} mix={animateExit((node) => { if (!shouldAnimate) return false return { opacity: 0, translate: `${direction * node.offsetWidth}px 0`, duration: 200, easing: 'ease-in', } })} /> ) }
-
Added
@remix-run/ui/dialogwith providers and mixins for accessible dialogs. (#12170)
-
Keep IME candidate navigation and confirmation from selecting combobox options, dismissing the popup, or moving the active option. This includes Safari's confirming Enter key after composition ends. (#12415)
-
Fix
anchor()positioning and scroll tracking for fixed-position floating surfaces inside positioned or transformed ancestors. (#12396) -
Keep page scrolling locked across top-frame reloads while popovers, menus, selects or comboboxes are open. (#12260)
-
Escape and outside clicks now dismiss only the topmost popup in nested menus and dialogs. Keyboard input inside a nested popup no longer activates the parent menu, and closing a parent also closes its nested popups. (#12170)
-
Popovers no longer move focus back to the
focusOnHide()target when another control outside the popover and its nested surfaces already holds focus, including when focus moves during exit animations. (#12470) -
Pressing tab or shift+tab in an open Select now closes the popup and moves focus through the form instead of keeping it in the list. (#12170)
-
Timed toasts with
countdown: trueno longer report errors in browsers withoutCSS.registerProperty(), including Firefox 125–127. The countdown animation is skipped while timers, pausing, and dismissal continue normally. (#12370) -
Bumped
@remix-run/*dependencies:
route-pattern v1.1.0
- Deprecated
limits.maxMatchWorkinMatcherOptions(MatcherLimits.maxMatchWork). Match work budgeting is an internal safeguard whose unit count depends on matcher implementation details; rely on the built-in default instead of configuringmaxMatchWork. Passinglimits.maxMatchWorkcontinues to work in1.xand will be removed in a future major release. (#12467)
-
createMatcher(),createMultiMatcher(), andcreateHref()are significantly faster and use less memory, especially with large route tables. In our benchmarks, matching against 1,000 to 5,000 patterns is 20 to 60 times faster, building a matcher is 5 to 9 times faster,createHref()is 1.2 to 1.9 times faster, and patterns with many optional segments, wildcards, ormatchAll()candidates no longer slow down sharply. Match results, specificity, and generated hrefs are unchanged. (#12427) -
createHref()now throws aCreateHrefErrorwithdetails.typeofinvalid-pathname-variablewhen a pathname variable produces a standalone.or..segment, such ascreateHref('/posts/:id', { id: '..' }). URL parsers remove these segments, so the generated href could resolve to a different route. This also applies to thehref()method of routes created withroute()fromremix/routes. (#12424)
session-middleware v1.0.4
- Bumped
@remix-run/*dependencies: