Repository navigation
fix: final 1.x patch (React 18, types, require) with 2.0 deprecations - #84
Merged
Merged
Conversation
- Externalize react/jsx-runtime and react-dom subpaths (the bundle inlined React 19's runtime) and set the React peers to ^18 || ^19. - Name the CommonJS builds .cjs so require() loads them as CommonJS in these "type": "module" packages; drop core's browser field. - Ship one rolled-up declaration file per package, importing @dynamix-layout/core as a package instead of ../../../core/src, plus index.d.cts for require. - solid-js becomes a peer dependency of the Solid package, and the packages install on Node 18+.
Marks the props and exports that 2.0 renames or removes as @deprecated, each naming its replacement and linking the migration guide, so editors show what to change before upgrading. Solid's props stay in 2.0, so only updateJSON (new payload) and the slider timeouts are annotated there.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
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.
The final 1.x patch: fixes for bugs in the published packages, plus deprecation notes ahead of 2.0. Library behaviour doesn't change.
Fixes
react/jsx-runtime, so it couldn't render under React 18.react/*andreact-dom/*are now external, and the peers are^18.0.0 || ^19.0.0(thereactpeer was^0.0.1).../../../core/src, a path that doesn't exist in the published package, so core types wereanyfor users. Each package now ships one self-containedindex.d.ts, plusindex.d.ctsfor CommonJS.require()works. The CommonJS builds were named*.cjs.jsin"type": "module"packages, so Node loaded them as ESM. They're now*.cjs. Core'sbrowserfield, which pointed bundlers at an IIFE with no exports, is removed.solid-jsis a peer dependency, so apps don't get two copies.xcode-studio/dynamix-layout.@deprecated, naming its replacement and linking the migration guide.updateJSON(new payload) and the slider timeouts are annotated there.Removed
exportsnever exposed them, and with React's JSX runtime external they couldn't work.Verified
publintand@arethetypeswrong/cli: no problems for core, react or solid. Before, React had masquerading CommonJS types and node16 resolution errors.require()loads the core and React CommonJS builds.Release
The changeset bumps core to 1.1.1, and react and solid to 1.0.3. After merge, the release workflow opens the Version Packages PR.
This conflicts with the
v2branch in the package and build configs.v2already contains these fixes, so its versions win when it's rebased.