Version Packages - #420
Merged
Merged
Version Packages#420
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions
Bot
force-pushed
the
changeset-release/master
branch
from
September 23, 2026 17:31
08b7724 to
fa32913
Compare
ryan-roemer
approved these changes
Sep 23, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
react-live@5.0.0
Major Changes
#418
be53ccd- Support React 19 type definitions, add anexportsmap, dropengines, and raise theoutput target.
LivePreview's overloads referenced the globalJSXnamespace, which@types/react@19removed. Because those types are emitted into the published declarations, consumers on React
19 types failed to compile. They now use
React.JSX, which resolves under both@types/react@18and@types/react@19.The package also gains an
exportsmap with separate types for the ESM and CJS conditions.Filenames are unchanged from 4.1.x (
dist/index.js,dist/index.mjs,dist/index.d.ts), somain,module, andtypesresolve exactly as before. Subpaths other than./package.jsonare no longer importable; only the package root was ever documented.Output is now built for
es2022rather thanes6, so the bundle may contain syntax such asoptional chaining that previous releases transpiled away.
The
enginesfield is gone, along with thenode: ">= 0.12.0"andnpm: ">= 2.0.0"itdeclared. Both were years out of date, and neither constrained anything real: this is browser
code, so the Node version that installs it has no bearing on whether it runs. npm will no
longer print an engine warning against those bounds.
None of this changes the public API -- same exports, same props, same
react >=18peerrange -- but the
exportsmap and the raised output target are enough that a major releaseis the honest way to ship them.
#421
004b007- Type theliveprop thatwithLiveinjects, instead ofRecord<string, unknown>.Wrapped components saw
unknownfor every key, solive.elementcould not berendered and
live.errorcould not be read without casting first. The prop nowuses the same type the context is created with, which is the shape
the docs
have always described:
code,error,element,onError,onChange.Types only, with no runtime change. It is a narrowing, so a wrapped component
that reads a key outside that shape off
livewill now fail to compile.Patch Changes
#418
be53ccd- Forward theEditorprismprop toprism-react-renderer. It was typed but never passed through, so a custom Prism instance was silently ignored.#418
be53ccd- Stop emitting React's__selfand__sourcedebug props from transpiled code.Sucrase adds these props to every element it compiles. They describe a source file, and there
is no source file here -- the code comes from a live editor rather than from disk, so the
filename sucrase emitted was always the empty string. React ignores both props, and React 19
additionally treats
__selfas the signature of an outdated JSX transform, logging"Your app (or one of its dependencies) is using an outdated JSX transform" to the console of
every page rendering a
LiveProvider.Transpiling with sucrase's
productionoption drops both props, and with them the_jsxFileNameconstant that the transform pipeline used to splice out and re-add solely tokeep
__sourceresolvable.#418
be53ccd- AddgetDerivedStateFromErrorto the internal error boundary, so a runtime error in live code no longer logs a React warning about it.