Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Sep 24, 2024
1 parent a4b8eef commit d290252
Show file tree
Hide file tree
Showing 49 changed files with 1,193 additions and 734 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ module in your application.
### Vue

```ts
import { createRouter } from 'vue-router'
import routes from '~pages'
import { createRouter } from 'vue-router'

const router = createRouter({
// ...
Expand All @@ -94,15 +94,15 @@ const router = createRouter({
**experimental**

```tsx
import routes from '~react-pages'
import { StrictMode, Suspense } from 'react'
import { createRoot } from 'react-dom/client'

import {
BrowserRouter,
useRoutes,
} from 'react-router-dom'

import routes from '~react-pages'

function App() {
return (
<Suspense fallback={<p>Loading...</p>}>
Expand Down Expand Up @@ -134,9 +134,9 @@ app.render(
**experimental**

```tsx
import { render } from 'solid-js/web'
import { Router, useRoutes } from '@solidjs/router'
import routes from '~solid-pages'
import { render } from 'solid-js/web'

render(
() => {
Expand Down
10 changes: 5 additions & 5 deletions e2e/react.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { resolve } from 'node:path'
import { copyFile, rm } from 'node:fs/promises'
import { existsSync } from 'node:fs'
import { createServer } from 'vite'
import { chromium } from 'playwright'
import type { Browser, Page } from 'playwright'
import type { ViteDevServer } from 'vite'
import { existsSync } from 'node:fs'
import { copyFile, rm } from 'node:fs/promises'
import { resolve } from 'node:path'
import { chromium } from 'playwright'
import { createServer } from 'vite'
import { getViteConfig, stopServer } from './utils'

const root = resolve('./examples/react')
Expand Down
12 changes: 6 additions & 6 deletions e2e/solid.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { resolve } from 'node:path'
import { copyFile, rm } from 'node:fs/promises'
import { existsSync } from 'node:fs'
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
import { createServer } from 'vite'
import { chromium } from 'playwright'
import type { Browser, Page } from 'playwright'
import type { ViteDevServer } from 'vite'
import { existsSync } from 'node:fs'
import { copyFile, rm } from 'node:fs/promises'
import { resolve } from 'node:path'
import { chromium } from 'playwright'
import { createServer } from 'vite'
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
import { getViteConfig, stopServer } from './utils'

const root = resolve('./examples/solid')
Expand Down
12 changes: 6 additions & 6 deletions e2e/vue.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { resolve } from 'node:path'
import { copyFile, rm } from 'node:fs/promises'
import { existsSync } from 'node:fs'
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
import { createServer } from 'vite'
import { chromium } from 'playwright'
import type { Browser, Page } from 'playwright'
import type { ViteDevServer } from 'vite'
import { existsSync } from 'node:fs'
import { copyFile, rm } from 'node:fs/promises'
import { resolve } from 'node:path'
import { chromium } from 'playwright'
import { createServer } from 'vite'
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
import { getViteConfig, stopServer } from './utils'

const root = resolve('./examples/vue')
Expand Down
12 changes: 6 additions & 6 deletions examples/nuxt-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"serve": "vite preview"
},
"dependencies": {
"vue": "^3.4.30",
"vue": "^3.5.8",
"vue-router": "4.2.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.5",
"@vue/compiler-sfc": "^3.4.30",
"nodemon": "^3.1.4",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/compiler-sfc": "^3.5.8",
"nodemon": "^3.1.7",
"typescript": "^5.6.2",
"vite": "^5.4.7",
"vite-plugin-pages": "workspace:*",
"vite-plugin-vue-markdown": "^0.23.8"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/nuxt-style/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import routes from '~pages'
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'
import routes from '~pages'
import './index.css'

// eslint-disable-next-line no-console
Expand Down
2 changes: 1 addition & 1 deletion examples/nuxt-style/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import Pages from 'vite-plugin-pages'
import Markdown from 'vite-plugin-vue-markdown'

Expand Down
10 changes: 5 additions & 5 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.24.0"
"react-router-dom": "^6.26.2"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@types/react-router-config": "^5.0.11",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.3.1",
"nodemon": "^3.1.4",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"nodemon": "^3.1.7",
"typescript": "^5.6.2",
"vite": "^5.4.7",
"vite-plugin-pages": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions examples/react/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import routes from '~react-pages'
import { StrictMode, Suspense } from 'react'
import { createRoot } from 'react-dom/client'

import {
BrowserRouter,
useRoutes,
} from 'react-router-dom'

import './index.css'

import routes from '~react-pages'

// eslint-disable-next-line no-console
console.log(routes)

Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/pages/about.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Outlet } from 'react-router-dom'
import type { FC } from 'react'
import { Outlet } from 'react-router-dom'

const Component: FC = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/pages/blog/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParams } from 'react-router-dom'
import type { FC } from 'react'
import { useParams } from 'react-router-dom'

const Component: FC = () => {
const { id } = useParams()
Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/pages/blog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link } from 'react-router-dom'
import type { FC } from 'react'
import { Link } from 'react-router-dom'

const Component: FC = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link } from 'react-router-dom'
import type { FC } from 'react'
import { Link } from 'react-router-dom'

const index: FC = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/react/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import Pages from 'vite-plugin-pages'

// https://vitejs.dev/config/
Expand Down
10 changes: 5 additions & 5 deletions examples/remix-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.24.0"
"react-router-dom": "^6.26.2"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@types/react-router-config": "^5.0.11",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.3.1",
"nodemon": "^3.1.4",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"nodemon": "^3.1.7",
"typescript": "^5.6.2",
"vite": "^5.4.7",
"vite-plugin-pages": "workspace:*"
}
}
4 changes: 2 additions & 2 deletions examples/remix-style/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import routes from '~react-pages'
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'

import {
BrowserRouter as Router,
useRoutes,
} from 'react-router-dom'

import './index.css'

import routes from '~react-pages'

// eslint-disable-next-line no-console
console.log(routes)

Expand Down
2 changes: 1 addition & 1 deletion examples/remix-style/src/pages/__marketing.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Outlet } from 'react-router-dom'
import type { FC } from 'react'
import { Outlet } from 'react-router-dom'

const Component: FC = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/remix-style/src/pages/about.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Outlet } from 'react-router-dom'
import type { FC } from 'react'
import { Outlet } from 'react-router-dom'

const Component: FC = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/remix-style/src/pages/blog.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link, Outlet } from 'react-router-dom'
import type { FC } from 'react'
import { Link, Outlet } from 'react-router-dom'

const Blog: FC = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/remix-style/src/pages/blog/$id.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParams } from 'react-router-dom'
import type { FC } from 'react'
import { useParams } from 'react-router-dom'

const Component: FC = () => {
const { id } = useParams()
Expand Down
2 changes: 1 addition & 1 deletion examples/remix-style/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link } from 'react-router-dom'
import type { FC } from 'react'
import { Link } from 'react-router-dom'

const index: FC = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/remix-style/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import Pages from 'vite-plugin-pages'

// https://vitejs.dev/config/
Expand Down
10 changes: 5 additions & 5 deletions examples/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"serve": "vite preview"
},
"dependencies": {
"@solidjs/router": "^0.13.6",
"solid-js": "^1.8.17"
"@solidjs/router": "^0.14.5",
"solid-js": "^1.8.23"
},
"devDependencies": {
"nodemon": "^3.1.4",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"nodemon": "^3.1.7",
"typescript": "^5.6.2",
"vite": "^5.4.7",
"vite-plugin-pages": "workspace:*",
"vite-plugin-solid": "^2.10.2"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render } from 'solid-js/web'
import { Router } from '@solidjs/router'
import routes from '~solid-pages'
import { render } from 'solid-js/web'

render(
() => {
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/src/pages/about/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useParams } from '@solidjs/router'
import type { ParentComponent } from 'solid-js'
import { useParams } from '@solidjs/router'

const IdLayout: ParentComponent = ({ children }) => {
const { id } = useParams<{ id: string }>()
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from 'node:path'
import { defineConfig } from 'vite'
import solid from 'vite-plugin-solid'
import pages from 'vite-plugin-pages'
import solid from 'vite-plugin-solid'

export default defineConfig({
plugins: [
Expand Down
22 changes: 11 additions & 11 deletions examples/vue-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@
"serve": "NODE_ENV=production esno server"
},
"dependencies": {
"vue": "^3.4.30",
"vue-router": "^4.4.0"
"vue": "^3.5.8",
"vue-router": "^4.4.5"
},
"devDependencies": {
"@types/compression": "^1.7.5",
"@types/express": "^4.17.21",
"@types/node": "^20.14.8",
"@types/node": "^20.16.6",
"@types/serve-static": "^1.15.7",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/compiler-sfc": "^3.4.30",
"@vue/server-renderer": "^3.4.30",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/compiler-sfc": "^3.5.8",
"@vue/server-renderer": "^3.5.8",
"compression": "^1.7.4",
"esno": "^4.7.0",
"express": "^4.19.2",
"express": "^4.21.0",
"fast-glob": "^3.3.2",
"nodemon": "^3.1.4",
"serve-static": "^1.15.0",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"nodemon": "^3.1.7",
"serve-static": "^1.16.2",
"typescript": "^5.6.2",
"vite": "^5.4.7",
"vite-plugin-pages": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion examples/vue-ssr/server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { ViteDevServer } from 'vite'
import fs from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import express from 'express'
import type { ViteDevServer } from 'vite'

const isTest = process.env.NODE_ENV === 'test' || !!process.env.VITE_TEST_BUILD

Expand Down
2 changes: 1 addition & 1 deletion examples/vue-ssr/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSSRApp } from 'vue'
import { createRouter } from './router'
import App from './App.vue'
import { createRouter } from './router'

// SSR requires a fresh app instance per request, therefore we export a function
// that creates a fresh app instance. If using Vuex, we'd also be creating a
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-ssr/src/router.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import routes from '~pages'
import {
createRouter as _createRouter,
createMemoryHistory,
createWebHistory,
} from 'vue-router'
import routes from '~pages'

export function createRouter() {
return _createRouter({
Expand Down
Loading

0 comments on commit d290252

Please sign in to comment.