Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ module.exports = {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended',
],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'plugin:react-hooks/recommended', 'plugin:storybook/recommended'],
overrides: [
{
env: {
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@

> Use Remix React Router in your stories.

Starting with `react-router@7`, the package `react-router-dom` is deprecated by Remix.
If you still use this package, use the `v3` of this addon.
If you have dropped it in favor of `react-router`, use the `v4` or `v5` depending on your Storybook version.
Starting with `react-router@7`, the package `react-router-dom` is deprecated by Remix.
If you still use this package, use the `v3` of this addon.
If you have dropped it in favor of `react-router`, use the `v4` or `v5` depending on your Storybook version.
Check the compatibility table at the bottom.

## Recent changes

✅ Support for Storybook 9 with `storybook-addon-remix-react-router@5`.
✅ Support for React Router v7 with `storybook-addon-remix-react-router@4`.
✅ Support for Storybook 10 with `storybook-addon-remix-react-router@6`.
✅ Support for Storybook 9 with `storybook-addon-remix-react-router@5`.
✅ Support for React Router v7 with `storybook-addon-remix-react-router@4`.
✅ Support for Storybook 8 with `storybook-addon-remix-react-router@3`.

## Getting Started
Expand Down Expand Up @@ -181,11 +182,12 @@ Navigation events, loader and actions are logged, for you to better understand t

## Compatibility

This package aims to support `Storybook > 7` and `React > 16`.
This package aims to support `Storybook > 7` and `React >= 18`.
Here is a compatibility table :

| Addon | React | Storybook | React Router |
|-------|-----------------------|-----------|------------------|
| 6.x | >= 18.0.0 | 10.x | 7.x
| 5.x | >= 16.8.0 | 9.x | 7.x |
| 4.x | >= 16.8.0 | 8.x | 7.x |
| 3.x | &gt;= 16.8.0 | 8.x | 6.x <sup>1</sup> |
Expand Down
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
"version": "5.0.0",
"description": "Use Remix React Router in your stories",
"type": "module",
"packageManager": "pnpm@9.15.0",
"packageManager": "pnpm@10.15.1",
"scripts": {
"preinstall": "npx only-allow pnpm",
"test": "vitest --run"
},
"devDependencies": {
"@auto-it/conventional-commits": "^11.3.0",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@vitest/ui": "^3.1.3",
"@typescript-eslint/eslint-plugin": "^8.46.2",
"@typescript-eslint/parser": "^8.46.2",
"@vitest/ui": "^4.0.6",
"auto": "^11.3.0",
"boxen": "^5.0.1",
"dedent": "^0.7.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.1",
"lint-staged": "^13.2.3",
"prettier": "2.8.8",
"typescript": "5.3.2",
"vite": "^6.0.3",
"vitest": "^3.1.3"
"boxen": "^8.0.1",
"dedent": "^1.7.0",
"eslint": "^9.39.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"lint-staged": "^16.2.6",
"prettier": "3.6.2",
"typescript": "5.9.3",
"vite": "^7.1.12",
"vitest": "^4.0.6"
}
}
}
26 changes: 11 additions & 15 deletions packages/storybook-addon-remix-react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "storybook-addon-remix-react-router",
"version": "5.0.0",
"version": "6.0.0",
"description": "Use Remix React Router in your stories. (Formerly storybook-addon-react-router-v6)",
"keywords": [
"storybook",
Expand All @@ -17,30 +17,26 @@
},
"author": "Jonathan MASSUCHETTI <[email protected]>",
"license": "Apache-2.0",
"packageManager": "pnpm@9.15.0",
"packageManager": "pnpm@10.15.1",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./preview": {
"types": "./dist/preview.d.ts",
"import": "./dist/preview.js",
"require": "./dist/preview.js"
"import": "./dist/preview.js"
},
"./preset": "./dist/preset.cjs",
"./manager": "./dist/manager.js",
"./package.json": "./package.json",
"./internals": {
"types": "./dist/internals.d.ts",
"import": "./dist/internals.js",
"require": "./dist/internals.js"
"import": "./dist/internals.js"
}
},
"type": "module",
"main": "../../dist/index.js",
"module": "dist/index.mjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand All @@ -67,15 +63,15 @@
"react-inspector": "6.0.2"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react": ">=18.0.0",
"react-dom": ">=18.0.0",
"react-router": "^7.0.2",
"storybook": "^9.0.0"
"storybook": "^10.0.0"
},
"devDependencies": {
"@remix-run/router": "^1.3.3",
"@remix-run/web-fetch": "^4.3.2",
"@storybook/react-vite": "9.0.0-rc.1",
"@storybook/react-vite": "^10.0.0",
"@types/node": "^18.15.0",
"@types/react": "^18.3.14",
"@types/react-inspector": "^4.0.2",
Expand All @@ -90,7 +86,7 @@
"react-dom": "^18.0.1",
"react-router": "^7.0.2",
"rimraf": "^6.0.1",
"storybook": "9.0.0-rc.1",
"storybook": "10.0.0",
"tsup": "^8.3.5",
"typescript": "5.3.2",
"utility-types": "^3.10.0",
Expand Down Expand Up @@ -122,4 +118,4 @@
"url": "https://github.com/JesusTheHun/storybook-addon-remix-react-router/issues"
},
"homepage": "https://github.com/JesusTheHun/storybook-addon-remix-react-router#readme"
}
}
2 changes: 1 addition & 1 deletion packages/storybook-addon-remix-react-router/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig((options) => ({
entry: ['src/index.ts', 'src/manager.tsx', 'src/internals.ts'],
splitting: false,
minify: !options.watch,
format: ['cjs', 'esm'],
format: ['esm'],
dts: {
resolve: true,
},
Expand Down
Loading