Skip to content

Commit

Permalink
chore: up unplugin and build
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jan 21, 2025
1 parent f71c2c5 commit 43c1af0
Show file tree
Hide file tree
Showing 3 changed files with 307 additions and 127 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
},
"dependencies": {
"@babel/types": "^7.26.0",
"@rollup/pluginutils": "^5.1.3",
"@rollup/pluginutils": "^5.1.4",
"@vue-macros/common": "^1.15.0",
"ast-walker-scope": "^0.6.2",
"chokidar": "^3.6.0",
Expand All @@ -142,7 +142,7 @@
"mlly": "^1.7.3",
"pathe": "^2.0.0",
"scule": "^1.3.0",
"unplugin": "2.0.0-beta.1",
"unplugin": "2.1.2",
"yaml": "^2.6.1"
},
"peerDependencies": {
Expand Down Expand Up @@ -175,7 +175,7 @@
"pinia": "^2.2.8",
"prettier": "^3.4.1",
"rimraf": "^6.0.1",
"rollup": "^4.27.4",
"rollup": "^4.31.0",
"semver": "^7.6.3",
"ts-expect": "^1.3.0",
"tsup": "^8.3.5",
Expand Down
7 changes: 7 additions & 0 deletions playground/typed-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ declare module 'vue-router/auto-routes' {
*/
export interface RouteNamedMap {
'home': RouteRecordInfo<'home', '/', Record<never, never>, Record<never, never>>,
'/(test-group)/test-group-child': RouteRecordInfo<'/(test-group)/test-group-child', '/test-group-child', Record<never, never>, Record<never, never>>,
'/(test-group)/test-group-child(treated-as-static)': RouteRecordInfo<'/(test-group)/test-group-child(treated-as-static)', '/test-group-child(treated-as-static)', Record<never, never>, Record<never, never>>,
'/[name]': RouteRecordInfo<'/[name]', '/:name', { name: ParamValue<true> }, { name: ParamValue<false> }>,
'/[...path]': RouteRecordInfo<'/[...path]', '/:path(.*)', { path: ParamValue<true> }, { path: ParamValue<false> }>,
'/[...path]+': RouteRecordInfo<'/[...path]+', '/:path(.*)+', { path: ParamValueOneOrMore<true> }, { path: ParamValueOneOrMore<false> }>,
Expand All @@ -44,13 +46,18 @@ declare module 'vue-router/auto-routes' {
'/feature-2/about': RouteRecordInfo<'/feature-2/about', '/feature-2/about', Record<never, never>, Record<never, never>>,
'/feature-3/': RouteRecordInfo<'/feature-3/', '/feature-3', Record<never, never>, Record<never, never>>,
'/feature-3/about': RouteRecordInfo<'/feature-3/about', '/feature-3/about', Record<never, never>, Record<never, never>>,
'/file(ignored-parentheses)': RouteRecordInfo<'/file(ignored-parentheses)', '/file(ignored-parentheses)', Record<never, never>, Record<never, never>>,
'/from-root': RouteRecordInfo<'/from-root', '/from-root', Record<never, never>, Record<never, never>>,
'/group/(thing)': RouteRecordInfo<'/group/(thing)', '/group', Record<never, never>, Record<never, never>>,
'the most rebel': RouteRecordInfo<'the most rebel', '/most-rebel', Record<never, never>, Record<never, never>>,
'/multiple-[a]-[b]-params': RouteRecordInfo<'/multiple-[a]-[b]-params', '/multiple-:a-:b-params', { a: ParamValue<true>, b: ParamValue<true> }, { a: ParamValue<false>, b: ParamValue<false> }>,
'/my-optional-[[slug]]': RouteRecordInfo<'/my-optional-[[slug]]', '/my-optional-:slug?', { slug?: ParamValueZeroOrOne<true> }, { slug?: ParamValueZeroOrOne<false> }>,
'/n-[[n]]/': RouteRecordInfo<'/n-[[n]]/', '/n-:n?', { n?: ParamValueZeroOrOne<true> }, { n?: ParamValueZeroOrOne<false> }>,
'/n-[[n]]/[[more]]+/': RouteRecordInfo<'/n-[[n]]/[[more]]+/', '/n-:n?/:more*', { n?: ParamValueZeroOrOne<true>, more?: ParamValueZeroOrMore<true> }, { n?: ParamValueZeroOrOne<false>, more?: ParamValueZeroOrMore<false> }>,
'/n-[[n]]/[[more]]+/[final]': RouteRecordInfo<'/n-[[n]]/[[more]]+/[final]', '/n-:n?/:more*/:final', { n?: ParamValueZeroOrOne<true>, more?: ParamValueZeroOrMore<true>, final: ParamValue<true> }, { n?: ParamValueZeroOrOne<false>, more?: ParamValueZeroOrMore<false>, final: ParamValue<false> }>,
'/nested-group/(group)': RouteRecordInfo<'/nested-group/(group)', '/nested-group', Record<never, never>, Record<never, never>>,
'/nested-group/(nested-group-first-level)/(nested-group-deep)/nested-group-deep-child': RouteRecordInfo<'/nested-group/(nested-group-first-level)/(nested-group-deep)/nested-group-deep-child', '/nested-group/nested-group-deep-child', Record<never, never>, Record<never, never>>,
'/nested-group/(nested-group-first-level)/nested-group-first-level-child': RouteRecordInfo<'/nested-group/(nested-group-first-level)/nested-group-first-level-child', '/nested-group/nested-group-first-level-child', Record<never, never>, Record<never, never>>,
'/partial-[name]': RouteRecordInfo<'/partial-[name]', '/partial-:name', { name: ParamValue<true> }, { name: ParamValue<false> }>,
'/custom-path': RouteRecordInfo<'/custom-path', '/surprise-:id(\d+)', Record<never, never>, Record<never, never>>,
'/test-[a-id]': RouteRecordInfo<'/test-[a-id]', '/test-:a-id', { aId: ParamValue<true> }, { aId: ParamValue<false> }>,
Expand Down
Loading

0 comments on commit 43c1af0

Please sign in to comment.