20 minutes ago
plate

v54.0.0-beta.8 (2026-11-28)

@platejs/cli

Minor Changes

  • 4bf170b by @zbeyens – Update plate codemod plite-to-plate for unified Plite and Plate naming: remove obsolete EditorStateSelectorOptions and useEditorEditableElement rules, diagnose removed useOptionalEditorReadOnly and multi-root useEditorContext differences, support legacy PagedEditablePage* type renames, and resolve aliased *EditorContent* bindings for root lifting, render props, spread props, <EditorRoot readOnly> override conflicts, and 3-arg useEditorSelector / useStateFieldValue deferred checks.

Patch Changes

  • d5f3a59 by @zbeyens – Allow --from 0 in plate migrate run to match migrateDocument source version 0.

@platejs/test

Published @platejs/test@54.0.0-beta.8.

platejs

Minor Changes

  • a82b280 by @zbeyens – Rename PagedEditablePageAttributes, PagedEditablePageView, and PagedEditableRenderPageProps re-exports in platejs/pagination/react to PagedEditorContentPageAttributes, PagedEditorContentPageView, and PagedEditorContentRenderPageProps to match PagedEditorContent.

Patch Changes

  • 513f13d by @zbeyens – Measure the board container before revealing a shape so switching to Viewing keeps the active note in view

  • c3b1d9e by @zbeyens –

    • Allow defineFormats({ html, plainText }) without requiring markdown, and tighten DocxNodeMapping, MarkdownNodeMapping, and PlainTextNodeMapping types and runtime guards to match schema roles
    • Report property-dropped diagnostics on DOCX export only for rendered roots and anchored comment bodies, and admit multi-property element-property plugins
    • Preserve data-locked and empty codeBlock.meta in HTML round trips, report unclaimed data-locked, data-meta, and board arrow/frame/stroke attributes, and remove no-op plainText encoders on callout, code block, and column plugins so foreign overrides and contributed content roots apply
    • Skip absent foreign markdown, plainText, and docx targets and reject mismatched schema-family targets at runtime
  • c136477 by @zbeyens –

    • Open Markdown links containing images, such as linked badges, by lifting images out of links and headings with a warning instead of failing the parse.
    • Preserve saved carets, comment ranges, and node selections across migrateV54 profile and AST restructures including legacy media captions, subscript/superscript text, toggles, and degraded dates or mentions.
  • 8dcb3f4 by @zbeyens – Reuse one Intl.Collator in filterWords, and close an active combobox when its range becomes non-writable

  • e3b52e9 by @zbeyens –

    • Land Duplicate of a closed Details title after the Details
    • Select an adjacent block void at container edges before deleting it on forward Delete or backward Backspace
  • 42d6b49 by @zbeyens –

    • Refuse BaseListPlugin.update.restart() on non-writable (locked) blocks and initialize checked: false when inserting or upserting a task list item.
  • 1802cbe by @zbeyens –

    • Fall back from crypto.randomUUID in AIChatPlugin so AI chat requests work on non-secure HTTP origins
  • 2d4af62 by @zbeyens –

    • Fix editor.plugin(BlockquotePlugin).update.untab() and Shift+Tab lifting the wrong paragraphs when a blockquote selection spans ten or more children or crosses nested blockquotes.
  • 6e1a89e by @zbeyens – Add 'image' to BoardShapeDescription['kind'] (reporting child caption or alt text), announce keyboard-placed free text, mark active keyboard-resize corners with data-board-resize-corner, coalesce held arrow-key nudges into one undo step, and keep sibling boards and portaled menus isolated on Escape.

    Migration: If your BoardMessages implementation maps BoardShapeDescription['kind'] exhaustively, add an image label:

    const KINDS: Readonly<Record<BoardShapeDescription['kind'], string>> = {
      arrow: 'Arrow',
      frame: 'Frame',
      geo: 'Shape',
      image: 'Image',
      note: 'Note',
      shape: 'Shape',
      stroke: 'Line',
      text: 'Text',
    };
  • 92fa100 by @zbeyens – Allow moving paragraphs inside board notes when no Yjs binding is installed while keeping shape moves refused

  • 43825d9 by @zbeyens – Render Copilot ghost text inline inside list items regardless of plugin order relative to ListPlugin.

  • fb134b5 by @zbeyens – Remove three-way comparison and resolveComparison from platejs/diff, collapse TwoWayComparison into Comparison without kind, and move live comparison import from proposeAuthoredComparison to editor.plugin(AuthoredPlugin).api.proposeComparison. compare now hashes document records alongside meta in before.envelopeFingerprint, so callers importing through proposeComparison should pass editor.read.value() as before instead of editor.read.children().

    Migration:

    // Before
    import { proposeAuthoredComparison } from 'platejs/authored';
    import { compare, type TwoWayComparison } from 'platejs/diff';
    
    const comparison: TwoWayComparison = await compare({ before, after, schema });
    const result = proposeAuthoredComparison(editor, { comparison, groupIds });
    
    // After
    import { AuthoredPlugin } from 'platejs/authored';
    import { compare, type Comparison } from 'platejs/diff';
    
    const comparison: Comparison = await compare({ before, after, schema });
    const result = editor
      .plugin(AuthoredPlugin)
      .api.proposeComparison({ comparison, groupIds });
  • 2404e28 by @zbeyens – Deliver EditorRoot change and commit callbacks for commits made during editor startup, child mount layout effects, and rerenders with inline onNodeChange or onTextChange handlers

  • 325ea7b by @zbeyens –

    • Accept at: { id } and other node targets in default element insert, set, and remove updates, and in lineHeight, textAlign, and textIndent set and clear updates.
  • 1f876a4 by @zbeyens –

    • Ignore an unrelated expanded selection when tx.footnote.insert receives an explicit at target.
    • Place definitions added by tx.footnote.createDefinition before trailing empty default paragraphs instead of after them.
  • bd8e3d4 by @zbeyens –

    • Fix EditorStatic dropping earlier leafAttributes class names when multiple leaf-attribute mark plugins apply to one leaf
    • Decode combined text-decoration: underline line-through and nested font-style: normal or text-decoration: none mark resets on HTML paste
    • Include source.tag on AST-stage html-unsafe-content element removals and preserve element locations on dropped list HTML styles
    • Remove the DOM entrypoint dependency from platejs/static
  • c0aaa2c by @zbeyens – Keep ink strokes visible across edits, wraps, RTL, and narrow viewports, support drawing on block-level void elements (such as images and videos with [data-ink-box], scaling proportionally on resize), delete ink atomically when its block or marked paragraph is deleted (Cmd+Z restores both), and remove InkSign, InkCopyView, InkSignPlace, the InkContent sign prop, and the ink-gone record set.

    Migration: Remove InkSign, InkCopyView, and InkSignPlace imports and drop the sign prop from <InkContent {...props} />. If your app persists older beta document snapshots containing records['ink-gone'], strip that key before loading.

  • a410ebb by @zbeyens – Make InkContent's sign prop optional for headless setups, ignore ink capture over block-level void elements instead of mis-anchoring onto neighboring paragraphs, and measure sibling blocks when rendering edited multi-block Digitize passages.

  • d8be708 by @zbeyens – Expose data-ink-tool, var(--ink-cursor, crosshair), and optional className/style forwarding on InkContent's overlay layer gated on active non-read-only, non-hidden tools.

  • 3b41838 by @zbeyens – Focus the Editable without scrolling after a Lasso drag completes in InkPlugin so dragging a lasso in a scrolled document no longer snaps back to the caret mid-drag.

  • 510aa3f by @zbeyens –

    • Omit position: relative from inline EditorElement wrappers so a native text caret beside an inline chip paints above the chip instead of behind it.
  • fd8c3dc by @zbeyens – Add editor.api.markdown.parsePlaceholders, lock-aware AI prompt helpers (hasEditableAISelection, serializeAIEditContext, serializeAISelectionMarkdown, LOCKED_BLOCK_PLACEHOLDER_TAG, and optional AIChatRequestRefs.lockedBlocks), and aligned AIChatPlugin document and multi-cell table editing around locked blocks and cells.

  • 27cab74 by @zbeyens – Add platejs/lock and platejs/lock/react for per-block client-side locking with inline field fill exemptions and lock-aware feature guards.

  • 12b0275 by @zbeyens – Remove RawHtmlPlugin from platejs/markdown. Unmapped raw HTML stays plain text on import and escapes on export, and HTML comments drop with a lossless markdown-unsupported-node warning.

    Migration:

    • Remove RawHtmlPlugin from your platejs/markdown imports and plugin lists.
    • If your app saved beta v54 documents containing rawHtml: true on text leaves, strip the rawHtml property from text leaves before opening them under the updated schema (or increment your named schema version and strip rawHtml in a migration step).
    • Update saved { document, schema } fingerprints, Yjs rooms, and saved History snapshots that included RawHtmlPlugin in their schema fingerprint.
  • bbfe276 by @zbeyens – Finish marquee block selection at the last held pointer position when a move arrives with the primary button already released

  • 621f2b6 by @zbeyens – Parse inline CSS declarations in platejs/html/server with !important priority, case-insensitive property names, comment stripping, shorthand expansion (font, background, margin, padding, list-style), and CSSStyleDeclaration.item().

  • d5f3a59 by @zbeyens –

    • Contract saved comment ranges inward across degraded or removed unsafe media in migrateV54 instead of expanding over synthesized alt text or file names.
    • Preserve NodeSelection paths across migrateV54 input-literal expansions, unsafe URL cleanup, and code-block flattening, and compute mappedSelection lazily when a migration step supplies its own mapSelection.

plitejs

Minor Changes

  • a82b280 by @zbeyens – Rename Editable, EditableProps, PagedEditable, PagedEditableProps, PagedEditablePageAttributes, PagedEditableRenderPageProps, PagedEditablePageView, VirtualizedEditable, and VirtualizedEditableProps to EditorContent, EditorContentProps, PagedEditorContent, PagedEditorContentProps, PagedEditorContentPageAttributes, PagedEditorContentRenderPageProps, PagedEditorContentPageView, VirtualizedEditorContent, and VirtualizedEditorContentProps, and thread the TRoot generic through PagedEditorContent and PagedEditorContentProps.

Patch Changes

  • 513f13d by @zbeyens – Keep caret navigation keys in a nested content root from activating the enclosing root's parked caret

  • e7a8d39 by @zbeyens – Fix collapsed caret mark reads at the start of a text node to match the marks applied by typing.

  • e3b52e9 by @zbeyens –

    • Allow point drops to move ranges holding content-root owners without failing validation before landing
    • Join open multi-depth slices into root blocks at block start and end
    • Keep closed object blocks and their captions intact when pasted into a different block type
    • Refuse Enter, typing, and delete over partial ranges inside read-only blocks
  • 52d9cd6 by @zbeyens –

    • Keep the caret inside a trailing or leading content root instead of entering hidden owner text on arrow navigation
    • Extend Shift+ArrowRight past a two-deep nested content root that ends its host into the next outer block, and preserve projected cross-root Shift+ArrowDown selection from nested synced blocks in Firefox
    • Keep named-root carets and pending marks unchanged when explicit main text or node transforms run
    • Revalidate an existing content root's projected grammar when its owner changes
    • Scale content-root document loading, validation, and replacement linearly in card count
    • Preserve attached document records when reading, fitting, loading, replacing, or viewing documents with undefined fields
  • f9c9045 by @zbeyens – Fix Shift+Tab leaving an external text view when it is the first block in a root

  • 0c22d89 by @zbeyens –

    • Fix virtualized paged viewport tracking when an ancestor transform scale changes without resizing the editor box
    • Fix vertical arrow navigation across side-by-side spread pages
    • Inherit ancestor text decoration on projected paged runs so links keep their underline
  • cfd5f29 by @zbeyens – Preserve remote and history: 'skip' state field updates across local undo and redo instead of overwriting them with earlier local field values.

  • 000cba5 by @zbeyens – Keep restored text and paragraph breaks on the right side of concurrent peer insertions during collaborative undo

  • e262507 by @zbeyens –

    • Keep a peer's caret at the replacement point when a remote Yjs edit replaces text under it.
    • Preserve document records when applying a DocumentChange after an earlier change on a document with no records.
  • a812676 by @zbeyens –

    • Unify content-root owner-chain resolution in content-root-navigation.ts, keeping duplicated synced-block hosts on the focused host during projected selection extension and guarding cross-root focus retries against intervening focus moves.
    • Use shadow-aware selection, containment, and flat-tree visibility checks in runtime-focus-mouse-events.ts, selection-void-target.ts, caret-engine.ts, and interaction-owner.ts.
    • Make refusesReadOnlyWrite root-aware and refuse partial writes whose range starts or ends inside a read-only inline across insertText, insertBreak, deleteFragment, and deleteText.
  • a9842dc by @zbeyens – Preserve matching closing tags when aligning open tokens in multi-step slice replacements so table-expanding paste succeeds in documents with pending suggestions.

  • 9e1f707 by @zbeyens –

    • Preserve paragraph order when dragging whole paragraphs into another paragraph with the authored plugin installed.
    • Drop the withdrawn split end and keep the surviving split end anchored when deleting a pending split paragraph.
    • Keep triple-click followed by Backspace deleting a whole paragraph when that paragraph contains a pending suggestion.
  • 1802cbe by @zbeyens –

    • Fix selecting and copying struck media in a read-only proposed view
    • Keep typed text after struck letters when replacing an inline element and following text in Suggesting mode
    • Fall back from crypto.randomUUID so authored changes and sync work on non-secure HTTP origins
  • 7fbc404 by @zbeyens – Clear browser-restored DOM caret on keyup while a node selection is active

  • c48142e by @zbeyens – Remove redundant 'preserve' value from CommandFocusPolicy; use 'none' (default) or 'restore-root'

  • 51aa797 by @zbeyens – Report all changed node keys when an update deletes and recreates a named root.

  • fb134b5 by @zbeyens – Remove three-way comparison and resolveComparison from plitejs/diff, collapse TwoWayComparison into Comparison without kind, and move live comparison import from proposeAuthoredComparison to editor.api.authored.proposeComparison. compare now hashes document records alongside meta in before.envelopeFingerprint, so callers importing through proposeComparison should pass editor.read.value() as before instead of editor.read.children().

    Migration:

    // Before
    import { proposeAuthoredComparison } from 'plitejs/authored';
    import { compare, type TwoWayComparison } from 'plitejs/diff';
    
    const comparison: TwoWayComparison = await compare({ before, after, schema });
    const result = proposeAuthoredComparison(editor, { comparison, groupIds });
    
    // After
    import { compare, type Comparison } from 'plitejs/diff';
    
    const comparison: Comparison = await compare({ before, after, schema });
    const result = editor.api.authored.proposeComparison({
      comparison,
      groupIds,
    });
  • ec1e083 by @zbeyens – Keep the browser selection anchored inside draggable void elements instead of snapping the caret to the start of the document.

  • 6b19fe1 by @zbeyens – Skip the extra EditableDOMRoot render when an EditorRoot turns read-only in the same render that already passes readOnly={true} to its editable, and scope the editable's read-only view-state subscription to readOnly changes.

  • be622b7 by @zbeyens –

    • Refuse partial cross-block edits and pastes into read-only blocks, soft breaks inside read-only blocks, and writes inside named roots owned by read-only elements
    • Preserve named-root selections during explicit-target fragment deletes, node wraps, and full-block text replacements, and fix split unwraps and deleted-range root resolution in named roots
  • 396bdb0 by @zbeyens –

    • Group consecutive typing over a text selection in Suggesting mode or over a block selection in Editing mode into one undo step
    • Preserve empty block containers without inserting text leaves during history serialization, replay, and undo/redo around peer moves
    • Keep a peer-deleted paragraph removed when undoing a merged unwrap and line split
  • 5eca87e by @zbeyens –

    • Fix history redo of an inline link wrap over a teammate's overlapping link wrap so it splits the teammate's overlapping link around the replayed link without throwing a nesting error.
    • Fix history redo over a teammate's replaced or deleted paragraph so edits targeting the removed block drop without overwriting the replacement or typing into a following paragraph.
    • Fix history undo of a block split when a teammate wraps the first half and edits inside it so the wrapper and teammate edits stay intact.
  • 510aa3f by @zbeyens –

    • Omit position: relative from default inline EditorElement wrappers so a native text caret beside an inline element paints above it instead of behind it.
  • ebb0c29 by @zbeyens –

    • Extend selections into and out of external text views with Shift+ArrowUp and Shift+ArrowDown
    • Keep editor focus when clicking inside an editor mounted in a shadow root
    • Keep a trailing soft break visible after a refused native key insert
    • Let a touch long press select the pressed word when a range spans unmounted blocks
  • bc4d528 by @zbeyens – Scope usePageLayoutFragments to the owning paged view, retain ancestor owners of descendant caret roots across virtualized and paged views, and stage ancestor-chain reveals in DOMEditor.scrollIntoView for unmounted nested roots.

  • 27cab74 by @zbeyens – Add non-writable content admission, direct-property Suggesting writes, property-only history skipping, and native DOM/IME/Cut/Android/CodeMirror refusal rollback hooks.

  • e5956ce by @zbeyens – Fix double-click glyph side detection after emoji and combining marks in paged views

  • 490a893 by @zbeyens –

    • Keep opening documents with many content roots and reading authored preview roots linear instead of quadratic in the number of roots
  • 096084a by @zbeyens –

    • Fix focus selection export over hidden coverage boundaries and after skip-dom-selection commits, prevent no-op React rerenders from clearing active programmatic selection guards early, and preserve backward direction for shadow-DOM selection reads
  • e758786 by @zbeyens –

    • Fix pointer, drag, clipboard, Android composition, and DOM integrity caret restoration inside open and closed shadow roots
    • Restore empty-leaf zero-width carets and preserve sibling decorated spans when reverting refused native text inserts
    • Recognize trailing display newlines on custom-rendered leaves as canonical during DOM integrity checks
  • 92fa100 by @zbeyens – Route document-editor transfer step moves (to: 'next' | 'previous') to the selection's root when from, nodes, and range are omitted

  • 3bce3d5 by @zbeyens –

    • Unify editor.api.dom.scrollIntoView onto Plite's native scroll engine for all option combinations and remove the scroll-into-view-if-needed dependency. Calls with explicit block, inline, behavior, boundary, or scrollMode options now work inside iframes, preserve negative scrollLeft in RTL containers, account for CSS transform: scale(), walk nested scroll containers in if-needed mode, and respect visualViewport offset and root scroll-padding.
  • ebe4818 by @zbeyens – Keep model selection synchronized on plain vertical arrow keys after expanded selections or typing, deliver Shift+Arrow keys to nested child-root editors, and paint projected cross-root selection highlights inside EditorContent child roots

  • 9490e1f by @zbeyens –

    • Preserve sticky horizontal caret column across vertical arrow navigation in paged views and when entering scroll containers in Firefox, and fix cross-realm getComputedStyle lookups for iframe editors
  • 2404e28 by @zbeyens – Key nested content-root view-boundary nodes by their full owner chain so a nested root inside a host shown multiple times builds and extends selection without throwing duplicate-key errors

  • 389f8ab by @zbeyens –

    • Fix state.transaction and state.transaction.extend over authored previews and document views
    • Keep read and document-view guards active across lazy nodes.entries, nodes.levels, and points.positions iterator callbacks
    • Fix tx.slice.replace, editor.update.slice.replace, state.slice.fit, and tx.fragment.replace over block node selections
    • Keep one teardown owner for reentrant editor.destroy() calls and refuse editor.destroy() during plugin acquire callbacks
  • 6eaee8b by @zbeyens – Fix virtualized row height shrinking, host scroll-margin offset, paged host scroll tracking, and mixed-boundary materialization in VirtualizedEditorContent and PagedEditorContent

  • ffa8a55 by @zbeyens –

    • Fix pending mark writes through a named-root view throwing when the caret sits in that root
    • Fix Editing mode with authored review retaining replaced document versions in memory

Full changelog: v54.0.0-beta.7...v54.0.0-beta.8

48 minutes ago
router

Release 2026-11-28 19:23

Release 2026-11-28 19:23

Changes

Features

  • start: run Start's Vite plugin in Vitest test runs (#8965) (611b364f8d) by @schiller-manuel

Packages

  • @tanstack/react-start@1.170.0
  • @tanstack/react-start-rsc@0.1.69
  • @tanstack/router-cli@1.168.1
  • @tanstack/router-generator@1.169.0
  • @tanstack/router-plugin@1.170.0
  • @tanstack/router-vite-plugin@1.167.50
  • @tanstack/solid-start@1.170.0
  • @tanstack/start-plugin-core@1.173.0
  • @tanstack/vue-start@1.170.0
48 minutes ago
router

@tanstack/vue-start@1.170.0

Minor Changes

  • #8965 611b364 - Start's Vite plugin can be used in a Vitest config. When Vitest resolves the config to run tests, the plugin compiles the code as it does in the app (createServerFn, createIsomorphicFn, createServerOnlyFn, createClientOnlyFn, the server-only route options), for the client in browser mode and in jsdom or happy-dom, and for the server in the Node environment. It does not set up the app's dev server, preview server or build.

    • A project needs no router entry and no routes. A package that only uses Start's compile-time APIs used to fail with "Could not resolve entry for router entry".
    • The route tree is generated once, when Vitest starts, and only for a project with a router entry and a routes directory. It is not regenerated while Vitest watches.
    • A test run never writes route files: a route file with an outdated route path and an empty route file are left as they are, with a warning.
    • A module that calls createFileRoute, createRootRoute or createRootRouteWithContext loses its server, ssr and headers options in client code even when the route generator does not know the module.
    • It needs Vitest 5.1.1 or later. Before, Vitest's translation of the wildcards in resolve.noExternal missed a package name with a dash, so in a project that installs Start from the registry, jsdom, happy-dom and Node tests ran @tanstack/start-client-core without the Start compiler.

    For this, Generator of @tanstack/router-generator takes writeRouteFiles: false, and tanstackRouterGenerator of @tanstack/router-plugin/vite takes options for the plugin that embeds it.

Patch Changes

  • #8965 611b364 - fix: Vite pre-bundles @tanstack/vue-store for a project that depends on @tanstack/vue-start but not on @tanstack/vue-router itself. Start named the dependency by a path through @tanstack/vue-router, which only resolves from a project that depends on the router. In such a project Vite warned "Failed to resolve dependency: @tanstack/vue-router > @tanstack/vue-store", found the store when the router was first imported and reloaded the page.

  • Updated dependencies [611b364, 611b364]:

    • @tanstack/start-plugin-core@1.173.0
48 minutes ago
router

@tanstack/router-generator@1.169.0

Minor Changes

  • #8965 611b364 - Start's Vite plugin can be used in a Vitest config. When Vitest resolves the config to run tests, the plugin compiles the code as it does in the app (createServerFn, createIsomorphicFn, createServerOnlyFn, createClientOnlyFn, the server-only route options), for the client in browser mode and in jsdom or happy-dom, and for the server in the Node environment. It does not set up the app's dev server, preview server or build.

    • A project needs no router entry and no routes. A package that only uses Start's compile-time APIs used to fail with "Could not resolve entry for router entry".
    • The route tree is generated once, when Vitest starts, and only for a project with a router entry and a routes directory. It is not regenerated while Vitest watches.
    • A test run never writes route files: a route file with an outdated route path and an empty route file are left as they are, with a warning.
    • A module that calls createFileRoute, createRootRoute or createRootRouteWithContext loses its server, ssr and headers options in client code even when the route generator does not know the module.
    • It needs Vitest 5.1.1 or later. Before, Vitest's translation of the wildcards in resolve.noExternal missed a package name with a dash, so in a project that installs Start from the registry, jsdom, happy-dom and Node tests ran @tanstack/start-client-core without the Start compiler.

    For this, Generator of @tanstack/router-generator takes writeRouteFiles: false, and tanstackRouterGenerator of @tanstack/router-plugin/vite takes options for the plugin that embeds it.

48 minutes ago
router

@tanstack/react-start@1.170.0

Minor Changes

  • #8965 611b364 - Start's Vite plugin can be used in a Vitest config. When Vitest resolves the config to run tests, the plugin compiles the code as it does in the app (createServerFn, createIsomorphicFn, createServerOnlyFn, createClientOnlyFn, the server-only route options), for the client in browser mode and in jsdom or happy-dom, and for the server in the Node environment. It does not set up the app's dev server, preview server or build.

    • A project needs no router entry and no routes. A package that only uses Start's compile-time APIs used to fail with "Could not resolve entry for router entry".
    • The route tree is generated once, when Vitest starts, and only for a project with a router entry and a routes directory. It is not regenerated while Vitest watches.
    • A test run never writes route files: a route file with an outdated route path and an empty route file are left as they are, with a warning.
    • A module that calls createFileRoute, createRootRoute or createRootRouteWithContext loses its server, ssr and headers options in client code even when the route generator does not know the module.
    • It needs Vitest 5.1.1 or later. Before, Vitest's translation of the wildcards in resolve.noExternal missed a package name with a dash, so in a project that installs Start from the registry, jsdom, happy-dom and Node tests ran @tanstack/start-client-core without the Start compiler.

    For this, Generator of @tanstack/router-generator takes writeRouteFiles: false, and tanstackRouterGenerator of @tanstack/router-plugin/vite takes options for the plugin that embeds it.

Patch Changes

  • #8965 611b364 - fix: Vite pre-bundles @tanstack/react-store for a project that depends on @tanstack/react-start but not on @tanstack/react-router itself. Start named the dependency by a path through @tanstack/react-router, which only resolves from a project that depends on the router. In such a project Vite warned "Failed to resolve dependency: @tanstack/react-router > @tanstack/react-store", and a browser failed to load the store's CommonJS dependency (use-sync-external-store).

  • Updated dependencies [611b364, 611b364]:

    • @tanstack/start-plugin-core@1.173.0
    • @tanstack/react-start-rsc@0.1.69
48 minutes ago
router

@tanstack/router-vite-plugin@1.167.50

Patch Changes

  • Updated dependencies [611b364]:
    • @tanstack/router-plugin@1.170.0
48 minutes ago
router

@tanstack/router-cli@1.168.1

Patch Changes

  • Updated dependencies [611b364]:
    • @tanstack/router-generator@1.169.0
48 minutes ago
router

@tanstack/start-plugin-core@1.173.0

Minor Changes

  • #8965 611b364 - Start's Vite plugin can be used in a Vitest config. When Vitest resolves the config to run tests, the plugin compiles the code as it does in the app (createServerFn, createIsomorphicFn, createServerOnlyFn, createClientOnlyFn, the server-only route options), for the client in browser mode and in jsdom or happy-dom, and for the server in the Node environment. It does not set up the app's dev server, preview server or build.

    • A project needs no router entry and no routes. A package that only uses Start's compile-time APIs used to fail with "Could not resolve entry for router entry".
    • The route tree is generated once, when Vitest starts, and only for a project with a router entry and a routes directory. It is not regenerated while Vitest watches.
    • A test run never writes route files: a route file with an outdated route path and an empty route file are left as they are, with a warning.
    • A module that calls createFileRoute, createRootRoute or createRootRouteWithContext loses its server, ssr and headers options in client code even when the route generator does not know the module.
    • It needs Vitest 5.1.1 or later. Before, Vitest's translation of the wildcards in resolve.noExternal missed a package name with a dash, so in a project that installs Start from the registry, jsdom, happy-dom and Node tests ran @tanstack/start-client-core without the Start compiler.

    For this, Generator of @tanstack/router-generator takes writeRouteFiles: false, and tanstackRouterGenerator of @tanstack/router-plugin/vite takes options for the plugin that embeds it.

Patch Changes

  • #8965 611b364 - fix: the Start dev server serves the app when Vite runs in the test mode. vite dev --mode test answered 404 Cannot GET /, because the dev server installed no middleware in that mode. A Vitest run does not need that anymore: Start leaves its dev server plugins out of it.

  • Updated dependencies [611b364]:

    • @tanstack/router-plugin@1.170.0
    • @tanstack/router-generator@1.169.0
48 minutes ago
router

@tanstack/solid-start@1.170.0

Minor Changes

  • #8965 611b364 - Start's Vite plugin can be used in a Vitest config. When Vitest resolves the config to run tests, the plugin compiles the code as it does in the app (createServerFn, createIsomorphicFn, createServerOnlyFn, createClientOnlyFn, the server-only route options), for the client in browser mode and in jsdom or happy-dom, and for the server in the Node environment. It does not set up the app's dev server, preview server or build.

    • A project needs no router entry and no routes. A package that only uses Start's compile-time APIs used to fail with "Could not resolve entry for router entry".
    • The route tree is generated once, when Vitest starts, and only for a project with a router entry and a routes directory. It is not regenerated while Vitest watches.
    • A test run never writes route files: a route file with an outdated route path and an empty route file are left as they are, with a warning.
    • A module that calls createFileRoute, createRootRoute or createRootRouteWithContext loses its server, ssr and headers options in client code even when the route generator does not know the module.
    • It needs Vitest 5.1.1 or later. Before, Vitest's translation of the wildcards in resolve.noExternal missed a package name with a dash, so in a project that installs Start from the registry, jsdom, happy-dom and Node tests ran @tanstack/start-client-core without the Start compiler.

    For this, Generator of @tanstack/router-generator takes writeRouteFiles: false, and tanstackRouterGenerator of @tanstack/router-plugin/vite takes options for the plugin that embeds it.

Patch Changes

  • Updated dependencies [611b364, 611b364]:
    • @tanstack/start-plugin-core@1.173.0
48 minutes ago
router

@tanstack/router-plugin@1.170.0

Minor Changes

  • #8965 611b364 - Start's Vite plugin can be used in a Vitest config. When Vitest resolves the config to run tests, the plugin compiles the code as it does in the app (createServerFn, createIsomorphicFn, createServerOnlyFn, createClientOnlyFn, the server-only route options), for the client in browser mode and in jsdom or happy-dom, and for the server in the Node environment. It does not set up the app's dev server, preview server or build.

    • A project needs no router entry and no routes. A package that only uses Start's compile-time APIs used to fail with "Could not resolve entry for router entry".
    • The route tree is generated once, when Vitest starts, and only for a project with a router entry and a routes directory. It is not regenerated while Vitest watches.
    • A test run never writes route files: a route file with an outdated route path and an empty route file are left as they are, with a warning.
    • A module that calls createFileRoute, createRootRoute or createRootRouteWithContext loses its server, ssr and headers options in client code even when the route generator does not know the module.
    • It needs Vitest 5.1.1 or later. Before, Vitest's translation of the wildcards in resolve.noExternal missed a package name with a dash, so in a project that installs Start from the registry, jsdom, happy-dom and Node tests ran @tanstack/start-client-core without the Start compiler.

    For this, Generator of @tanstack/router-generator takes writeRouteFiles: false, and tanstackRouterGenerator of @tanstack/router-plugin/vite takes options for the plugin that embeds it.

Patch Changes

  • Updated dependencies [611b364]:
    • @tanstack/router-generator@1.169.0