Releases: react-cosmos/react-cosmos
v7.0.0
React Cosmos 7 is the result of 6 months of iteration and fine-tuning, making it the most reliable release yet.
Highlights
- React 19 & Next.js 15 support — Fully compatible with the latest versions of React and Next.js, with backward support for React 18.
- Cosmos UI refresh — Mobile-friendly with slick slide-in panels, a cleaner home screen, and customizable preview iframe background.
- Improved Vite plugin — Auto-generates a default
index.html
and auto-detects your main script for seamless integration. - Better remote rendering — More reliable when running remote renderers over the network, for both DOM and Native targets.
Breaking Changes
This release includes a few minor breaking changes, see the migration guide for details.
Full Change Log
9d8ca03 Add fixture API for changing the fixture (#1728)
995879b Auto open drawer nav panel on multi fixture select (#1727)
aa4f63d Install parse5 in Vite plugin (#1725)
c37ff06 Stop forcing dark color theme in renderer preview (#1723)
b7d11e3 Set dark color scheme to all but search results UI (#1722)
e973288 Make scrollbars dark themed for fixtures sidebar (#1719) @lrdTnc
5acabc7 Sort fixture and decorator paths to make cosmos.imports deterministic (#1721)
f624342 Fix deprecated pem version (#1716)
f48da33 Fix long update badge
ddeb1f5 Upgrade migration guide and demo screenshot (#1714)
002fafa Instruct users to install next branch instead of canary
8e6fea1 Announce v7 in home screen
8dac94e Link to tags page on prereleases
9cb6dec Clean up dependencies (#1713)
767654e Upgrade dependencies (#1712)
e6fefe2 Clean up old Webpack onboarding (#1711)
de10482 Allow headless browsers to capture renderer responses in exports (#1710)
e0522c9 Load index.html from resolved path (#1709)
2900135 Improve Vite index.html generation (#1708)
ee38b54 Vite error handling & onboarding (#1704)
d57186d Fix Next.js crash with undefined children (#1707)
b2d1977 Log URLs after plugins init (#1703)
fa66419 Rename cosmosConfig to config (#1700)
cd2cc87 Fix Next.js iframe renderer URL (#1702)
84b7bc0 Fix iframe renderer URL with fixture var (#1701)
c816065 Make remote renderer accessible over the network (#1699)
0ff5b03 Don't try to connect to WS in static exports (#1697)
b5c8a03 Deprecate hostname in favor of host in Cosmos config (#1696)
323500c Get rid of react-is dependency (#1692)
25adc92 Embed server IP address in native renderer (#1691)
d2883a1 Add verbatimModuleSyntax support to cosmos.imports.ts and improve comment (#1690)
0c1e01c Make iframe background color customizable (#1688)
2605400 Redesign home screen (#1684)
f401a74 Disable responsive preview when fixture isn't selected (#1686)
2e78845 Fix layout shift when selecting search result (#1685)
878fe5d Allow closing drawer panels by clicking outside (#1683)
1131695 Floating panels mode (#1681)
6ad371a Differ playground URL params from renderer URL params (#1682)
49e1629 Make panes draggable on mobile (#1680)
d68125d Skip Cloudflare upload in fork pull requests (#1679)
216cd3b Update decorator docs with global CSS import guidance (#1678) @receter
f11ca25 Mention React 19 and Next 15 support (#1675)
19219aa Make Next.js page async (#1674)
4981a3d Upgrade to React 19 (#1668)
97b077a Separate docs package from monorepo (#1672)
a9d2ab9 Update generated Nextra configs (#1671)
v6.2.3
v6.2.2
v6.2.1
v6.2.0
This minor version is packed with features:
- New Fixture Options API — an idea from 2020 that's finally here!
- Support for exporting decorator arrays.
- New
/cosmos.fixtures.json
endpoint exposed by the Cosmos dev server, making the list of fixtures accessible without having to communicate with a live Cosmos renderer.
An important bug fix:
- Fixed compatibility with Next 14.2.
And some important steps towards full ESM support:
- Migrated all ~500 Jest tests to Vitest.
- Breaking: The experimental
getFixtures
API is now async.
Full Change Log
35e3af2 Document Fixture Options (#1652)
4b95d01 Allow exporting decorator arrays (#1651)
b179ef9 Fix CONTRIBUTING link
15db638 Add minimal fixture options implementation (#1649)
a5d06e7 Downgrade Lerna (#1648)
b94646f Replace Jest with Vitest (#1574)
71267f3 Add alternative multi fixture format to docs (#1646)
d0a0bd9 Make getFixtures async (#1644)
4d8d920 Add back Github Pages instructions (#1643)
bdbf4f7 Add basic scaffolding for taking fixture screenshot (#1642)
fbe721b Fix fixture export type detection with RSC (#1641)
5da46eb Fix broken readme links (#1637) @raymondmdang
8aaf73c Fix typo in webpack docs (#1636) @pascalpp
db623aa Forward renderer responses to injected window handler (#1631)
0d0e717 Add fixtureLoaded renderer response (#1630)
4cc91ba Expose cosmos.fixtures.json with renderer URLs (#1629)
v6.1.1
v6.1.0
A few significant contributions in this release:
- Improved fixture hooks were consolidated under the Fixture Inputs umbrella. All previous APIs remain backwards compatible.
- Codebase has moved away from the deprecated Yarn 1.x to latest NPM.
- Cypress tests were migrated to Playwright, which is incredibly snappy and opens the door to more automation.
Full Change Log
899946c Make fixture input hooks less generic (#1626)
84a35da Redesign Inputs API (#1619)
5364b02 Ignore keyboard shortcuts when target is contenteditable (#1625)
2b25174 Remove Yarn (#1622)
b3b5414 Migrate Cypress tests to Playwright (#1621)
8fe9f6f Document how to suppress ESLint fixture warnings (#1618)
2806ea7 Improve useValue type inference (#1617)
2314a55 Expose home overlay UI plug (#1616)
a484ae0 Fix select controls to handle groups in reactions (#1516) @max-scopp