Skip to content

Commit 8ca01d7

Browse files
committed
Rename Remix route config adapter
1 parent b660a7f commit 8ca01d7

File tree

23 files changed

+30
-30
lines changed

23 files changed

+30
-30
lines changed

decisions/0011-routes-ts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ As of the creation of this decision document, the only available build context i
9292

9393
### Remix's `routes` option has an adapter for easy migration
9494

95-
Some Remix consumers used the `routes` option to define config-based routes or use community file system routing conventions. To ease the migration, the `@react-router/remix-config-routes-adapter` package provides a `remixConfigRoutes` function that accepts Remix's `routes` config value as an argument.
95+
Some Remix consumers used the `routes` option to define config-based routes or use community file system routing conventions. To ease the migration, the `@react-router/remix-routes-option-adapter` package provides a `remixRoutesOptionAdapter` function that accepts Remix's `routes` config value as an argument.

integration/fs-routes-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ test.describe("fs-routes", () => {
2828
"app/routes.ts": js`
2929
import { type RouteConfig } from "@react-router/dev/routes";
3030
import { flatRoutes } from "@react-router/fs-routes";
31-
import { remixConfigRoutes } from "@react-router/remix-config-routes-adapter";
31+
import { remixRoutesOptionAdapter } from "@react-router/remix-routes-option-adapter";
3232
3333
export const routes: RouteConfig = [
3434
...await flatRoutes({
3535
ignoredRouteFiles: ["**/ignored-route.*"],
3636
}),
3737
3838
// Ensure Remix back compat layer works
39-
...await remixConfigRoutes(async (defineRoutes) => {
39+
...await remixRoutesOptionAdapter(async (defineRoutes) => {
4040
// Ensure async routes work
4141
return defineRoutes((route) => {
4242
route("/remix/config/route", "remix-config-route.tsx")

integration/helpers/node-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"devDependencies": {
2424
"@react-router/dev": "workspace:*",
2525
"@react-router/fs-routes": "workspace:*",
26-
"@react-router/remix-config-routes-adapter": "workspace:*",
26+
"@react-router/remix-routes-option-adapter": "workspace:*",
2727
"@types/react": "^18.2.20",
2828
"@types/react-dom": "^18.2.7",
2929
"@vanilla-extract/css": "^1.10.0",

integration/helpers/vite-cloudflare-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@cloudflare/workers-types": "^4.20230518.0",
2323
"@react-router/dev": "workspace:*",
2424
"@react-router/fs-routes": "workspace:*",
25-
"@react-router/remix-config-routes-adapter": "workspace:*",
25+
"@react-router/remix-routes-option-adapter": "workspace:*",
2626
"@types/react": "^18.2.20",
2727
"@types/react-dom": "^18.2.7",
2828
"typescript": "^5.1.6",

integration/helpers/vite-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"devDependencies": {
2727
"@react-router/dev": "workspace:*",
2828
"@react-router/fs-routes": "workspace:*",
29-
"@react-router/remix-config-routes-adapter": "workspace:*",
29+
"@react-router/remix-routes-option-adapter": "workspace:*",
3030
"@types/react": "^18.2.20",
3131
"@types/react-dom": "^18.2.7",
3232
"eslint": "^8.38.0",

packages/react-router-fs-routes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @react-router/fs-routes
22

3-
File system routing conventions for [React Router.](https://github.com/remix-run/react-router)
3+
File system routing conventions for [React Router](https://github.com/remix-run/react-router), for use within `routes.ts`.
44

55
```sh
66
npm install @react-router/fs-routes

packages/react-router-fs-routes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@react-router/fs-routes",
33
"version": "6.26.2",
4-
"description": "File system routing conventions for React Router",
4+
"description": "File system routing conventions for React Router, for use within routes.ts",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"
77
},

packages/react-router-remix-config-routes-adapter/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @react-router/remix-routes-option-adapter
2+
3+
Adapter for [Remix's](https://remix.run) `routes` config option, for use within `routes.ts`.
4+
5+
```sh
6+
npm install @react-router/remix-routes-option-adapter
7+
```

packages/react-router-remix-config-routes-adapter/__tests__/defineRoutes-test.ts renamed to packages/react-router-remix-routes-option-adapter/__tests__/defineRoutes-test.ts

File renamed without changes.

0 commit comments

Comments
 (0)