Skip to content

Commit 0f76bec

Browse files
authored
Merge pull request #7980 from QwikDev/v2-refactor-routerconfig
refactor(router): better naming for routing context
2 parents 8f60e5d + 7bfe7e7 commit 0f76bec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+663
-714
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ jobs:
286286

287287
- run: pnpm install
288288
- if: matrix.settings.wasm
289-
run: pnpm install wasm-pack
289+
run: pnpm install -w wasm-pack
290290

291291
- name: Lint check
292292
if: matrix.settings.wasm

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,22 +143,22 @@
143143
"prettier-plugin-tailwindcss": "0.6.14",
144144
"pretty-quick": "4.2.2",
145145
"prompts": "2.4.2",
146-
"rollup": "4.52.3",
146+
"rollup": "4.52.4",
147147
"semver": "7.7.2",
148148
"simple-git-hooks": "2.13.1",
149149
"snoop": "1.0.4",
150150
"source-map": "0.7.6",
151151
"svgo": "3.3.2",
152152
"syncpack": "13.0.4",
153-
"terser": "5.43.1",
153+
"terser": "5.44.0",
154154
"tmp": "0.2.5",
155155
"tree-kill": "1.2.2",
156-
"tsx": "4.20.5",
157-
"typescript": "5.9.2",
158-
"typescript-eslint": "8.41.0",
156+
"tsx": "4.20.6",
157+
"typescript": "5.9.3",
158+
"typescript-eslint": "8.45.0",
159159
"vfile": "6.0.3",
160-
"vite": "7.1.7",
161-
"vite-imagetools": "8.0.0",
160+
"vite": "7.1.9",
161+
"vite-imagetools": "9.0.0",
162162
"vite-plugin-dts": "4.5.4",
163163
"vite-tsconfig-paths": "5.1.4",
164164
"vitest": "3.2.4",

packages/docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@qwik.dev/partytown": "0.11.2",
2121
"@qwik.dev/react": "workspace:*",
2222
"@qwik.dev/router": "workspace:*",
23-
"@rolldown/browser": "1.0.0-beta.36",
23+
"@rolldown/browser": "1.0.0-beta.41",
2424
"@shikijs/colorized-brackets": "3.12.2",
2525
"@shikijs/langs": "3.12.2",
2626
"@shikijs/rehype": "3.12.2",
@@ -51,11 +51,11 @@
5151
"shiki": "3.12.2",
5252
"snarkdown": "2.0.0",
5353
"tailwindcss": "4.1.12",
54-
"terser": "5.43.1",
54+
"terser": "5.44.0",
5555
"tsm": "2.3.0",
56-
"typescript": "5.9.2",
56+
"typescript": "5.9.3",
5757
"valibot": "0.33.3",
58-
"vite": "7.1.7",
58+
"vite": "7.1.9",
5959
"vite-plugin-inspect": "11.3.3",
6060
"vite-tsconfig-paths": "5.1.4",
6161
"wrangler": "3.65.1"

packages/docs/src/routes/api/qwik-router/api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@
796796
}
797797
],
798798
"kind": "TypeAlias",
799-
"content": "```typescript\nexport type RouteData = [routeName: string, loaders: ModuleLoader[]] | [\n routeName: string,\n loaders: ModuleLoader[],\n originalPathname: string,\n routeBundleNames: string[]\n];\n```",
799+
"content": "```typescript\nexport type RouteData = [\n routeName: string,\n moduleLoaders: ModuleLoader[]\n] | [\n routeName: string,\n moduleLoaders: ModuleLoader[],\n originalPathname: string,\n routeBundleNames: string[]\n];\n```",
800800
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik-router/src/runtime/src/types.ts",
801801
"mdFile": "router.routedata.md"
802802
},

packages/docs/src/routes/api/qwik-router/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,10 +1854,10 @@ routeAction$: ActionConstructor;
18541854

18551855
```typescript
18561856
export type RouteData =
1857-
| [routeName: string, loaders: ModuleLoader[]]
1857+
| [routeName: string, moduleLoaders: ModuleLoader[]]
18581858
| [
18591859
routeName: string,
1860-
loaders: ModuleLoader[],
1860+
moduleLoaders: ModuleLoader[],
18611861
originalPathname: string,
18621862
routeBundleNames: string[],
18631863
];

packages/insights/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
"prettier": "3.6.2",
3232
"prettier-plugin-tailwindcss": "0.6.14",
3333
"tailwindcss": "4.1.12",
34-
"typescript": "5.9.2",
35-
"typescript-eslint": "8.41.0",
36-
"vite": "7.1.7",
34+
"typescript": "5.9.3",
35+
"typescript-eslint": "8.45.0",
36+
"vite": "7.1.9",
3737
"vite-tsconfig-paths": "5.1.4",
3838
"vitest": "3.2.4",
3939
"zod": "3.25.48"

packages/qwik-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"@types/react-dom": "19.1.7",
1010
"react": "19.1.1",
1111
"react-dom": "19.1.1",
12-
"typescript": "5.9.2",
13-
"vite": "7.1.7"
12+
"typescript": "5.9.3",
13+
"vite": "7.1.9"
1414
},
1515
"engines": {
1616
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"

packages/qwik-router/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"set-cookie-parser": "^2.7.1",
2323
"source-map": "^0.7.6",
2424
"svgo": "^3.3.2",
25-
"typescript": "5.9.2",
25+
"typescript": "5.9.3",
2626
"unified": "^11.0.5",
2727
"unist-util-visit": "^5.0.0",
2828
"valibot": ">=0.36.0 <2",
2929
"vfile": "6.0.3",
30-
"vite-imagetools": "^8.0.0",
30+
"vite-imagetools": "^9.0.0",
3131
"yaml": "^2.8.1",
3232
"zod": "^3.25.40"
3333
},

packages/qwik-router/src/adapters/shared/vite/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { StaticGenerateOptions, SsgRenderOptions } from 'packages/qwik-rout
33
import type { QwikRouterPlugin } from '@qwik.dev/router/vite';
44
import { basename, dirname, join, resolve } from 'node:path';
55
import type { Plugin, UserConfig } from 'vite';
6-
import type { BuildRoute } from '../../../buildtime/types';
6+
import type { BuiltRoute } from '../../../buildtime/types';
77
import { postBuild } from './post-build';
88

99
/**
@@ -299,7 +299,7 @@ interface ViteAdapterPluginOptions {
299299
clientPublicOutDir: string;
300300
serverOutDir: string;
301301
basePathname: string;
302-
routes: BuildRoute[];
302+
routes: BuiltRoute[];
303303
assetsDir?: string;
304304
warn: (message: string) => void;
305305
error: (message: string) => void;

packages/qwik-router/src/adapters/shared/vite/post-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { getErrorHtml } from '@qwik.dev/router/middleware/request-handler';
21
import fs from 'node:fs';
32
import { join } from 'node:path';
3+
import { getErrorHtml } from '../../../middleware/request-handler/error-handler';
44

55
/** Cleans the client output SSG results if needed and injects the SSG metadata into the build output */
66
export async function postBuild(

0 commit comments

Comments
 (0)