Releases: react-cosmos/react-cosmos
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
v6.0.3
v6.0.2
v6.0.1
v6.0.0
React Cosmos 6 is a huge release that's been two years in the making!
The first 6.x beta version was released 8 months ago, giving us plenty of time to gather user feedback and refine this release into the most robust version of React Cosmos we've ever made.
What's New?
- A full-stack plugin system that enables bundler integrations and extending every aspect of React Cosmos.
- A brand new documentation website that covers everything from setup guides, detailed APIs and advanced configuration.
- Mature plugins for Vite and Webpack, dedicated APIs for React Native and Next.js, and support for custom setups.
- First-class support for React Server Components. Yes, you can render server-side code in React Cosmos!
- Lazy Mode, which delays importing component code until loading a fixture, greatly improving isolation by the flip of a switch.
- Support for MDX Fixtures.
- A revamped codebase with reduced dependencies and a CI with great test coverage migrated to GitHub Actions.
This is a foundational release that unlocks many upcoming features, so stay tunned.
We're also retiring our iconic Cosmonaut and inaugurating of our fresh new Cosmos logo designed by Pascal Graf.
Breaking Changes
- Dropped support for IE, Node 14 and React 17.
- React Cosmos 5.x users need to install the Webpack plugin to continue using React Cosmos with Webpack.
- Renamed a few less-known exports and package entry points.
More details in the migration guide: https://reactcosmos.org/docs/migration-guide
New Contributors
- @fauxparse made their first contribution in #1388
- @ifeanyiecheruo made their first contribution in #1394
- @quassnoi made their first contribution in #1437
- @lr0pb made their first contribution in #1450
- @noahehall made their first contribution in #1530
- @kmjennison made their first contribution in #1537
- @akramscorado made their first contribution in #1546
- @ThaisRobba made their first contribution in #1559
Full Change Log
a687430 Mark getFixtures API as experimental (#1603)
f61f2b6 Upgrade dependencies and remove pkg-up (#1602)
da8b95e Improve Community Standards (#1601)
86b9647 Fix commit prefix
3cfdcfd Publish website on release commits (#1600)
f128af2 Simplify keyboard shortcuts (#1599)
561b52a Update app favicon and docs links (#1598)
50fdd73 Remove old website (#1597)
55752ef Add OpenGraph tags to website (#1596)
11ad824 Add .ico favicon and update logo (#1595)
10c9ae9 Add link to UI features on homepage (#1594)
c86a8ee Add benefits to homepage (#1593)
d60c866 Improve docs readability (#1592)
c00ca07 Ignore ts-node warnings (#1591)
01bd836 Add features to home page (#1590)
17b8ccb Add architecture docs (#1589)
c9d42ed Add table with config options to docs (#1588)
f94afb4 Prevent auto opening Cosmos renderer in browser (#1587)
595c147 Add instructions for installing Vite (#1586)
c2e10cc Improve plugin docs (#1585)
1e61d98 Improve fixture modules and useValue docs (#1584)
9af8fcb Add useFixtureState example in docs (#1583)
6d24901 Isolate fixture state between plugins (#1581)
f5c981a Clean up old TS component return type workaround (#1582)
28d8672 Allow UI plugins to extend initial fixture state (#1579)
2610c0f Fix loading of 3rd party UI plugins (#1578)
50a9804 Fix React Native for Web link
0d38d4a Upgrade dependencies (#1566)
1d2b9f6 Exclude test helpers from react-cosmos-ui index (#1576)
7332ee1 Upgrade Lerna
0f025d1 Don't collapse unnamed fixture on fileDir tree node (#1575)
18af053 Add fixture filename support (#1559)
d7821c3 Upgrade TypeScript and React types (#1572)
1a23d2d Await fixture watcher cleanup (#1571)
7d0c249 Await dev server plugin callback and refactor tests (#1570)
69b7640 Replace delay dependency with setTimeout (#1569)
dcc328e Upgrade to Prettier v3 (#1568)
db0339b Fix Corepack env var in PnP CI job (#1567)
8bec88a Improve text flow
9724645 Skip Corepack check in PnP CI job (#1565)
2dc6672 Fix ts-node scripts on Node 20 (#1564)
dd79b2c Disable code blocks in docs search (#1563)
da2b475 Fix website demo (#1562)
90db9bd Fix docs links (#1561)
0da9c6b Docs website (#1542)
5d4f82c Fix Todo App example initial fixture ID (#1557)
b479ec9 Show Array length instead of keys in Control Panel (#1556)
115f43e Increase Yarn network timeout (#1555)
abd71bd Normalize Vite index path (#1554)
593608c Improve Next.js docs (#1547)
9be090e Add Next.js sub folder documentation (#1546)
025e7c1 Upgrade dependencies (#1543)
569e1cd Support relative vite.indexPath (#1540)
5d9b4be Improve secure WebSocket code (#1539)
3824c75 Support secure websocket connections (#1537)
e8e7b16 Black badges (#1538)
e162ccb Optimize index.html by caching fixture list on server (#1536)
6c226a3 Clean up server plugins (#1535)
a2af21a Update fixture list in index.html on page refresh (#1533)
f88e4e6 MDX support (#1531)
33698af Enable fullscreen permission on RendererPreview iframe (#1530)
0755897 Don't show panels on mobile by default (#1528)
f02f4c0 Document Lazy mode (#1527)
285c677 Document Cosmos UI (#1526)
5e40409 Document architecture goals (#1524)
1e1976b Fix demo link
b08bac4 Document key features (#1523)
a897ae4 Add initial fixture ID option (#1522)
1d09217 Add TodoMVC example (#1521)
ae60c82 Add docs on how to publish plugins (#1520)
9b65416 Document UI plugins (#1519)
2b1eb48 Document CLI and plugin APIs (#1518)
f442f14 Show config options using tables in docs (#1517)
4755b0c Mention omit option (#1515)
f26189c Improve getting started guides (#1514)
087a590 Fix Next.js docs link
99753c9 Make Discord badge more obvious
6d0294c Organize docs (#1510)
769ff8b Add support for TS Vite config (#1512)
ccc39a5 Publish CJS server mocks (#1508)
057fb98 Make getFixtures API compatible with Jest (#1507)
3619136 Convert getFixtures() API work with ESM (#1506)
3207612 Refactor getFixtures() API (#1505)
71432ef Move Jest ESM mocks to config from individual tests (#1504)
52c136d Update Next.js docs (#1502)
d9fdd1a...