one 1.2.55 → 1.2.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/createHandleRequest.cjs +10 -2
- package/dist/cjs/createHandleRequest.js +16 -7
- package/dist/cjs/createHandleRequest.js.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +10 -1
- package/dist/cjs/createHandleRequest.native.js.map +1 -1
- package/dist/cjs/createHandleRequest.test.cjs +155 -0
- package/dist/cjs/createHandleRequest.test.js +91 -0
- package/dist/cjs/createHandleRequest.test.js.map +6 -0
- package/dist/cjs/createHandleRequest.test.native.js +162 -0
- package/dist/cjs/createHandleRequest.test.native.js.map +1 -0
- package/dist/cjs/link/linking.cjs +13 -56
- package/dist/cjs/link/linking.js +13 -55
- package/dist/cjs/link/linking.js.map +1 -1
- package/dist/cjs/link/linking.native.js +3 -9
- package/dist/cjs/link/linking.native.js.map +1 -1
- package/dist/cjs/link/openExternalURL.cjs +28 -0
- package/dist/cjs/link/openExternalURL.js +23 -0
- package/dist/cjs/link/openExternalURL.js.map +6 -0
- package/dist/cjs/link/openExternalURL.native.js +43 -0
- package/dist/cjs/link/openExternalURL.native.js.map +1 -0
- package/dist/cjs/router/router.cjs +6 -17
- package/dist/cjs/router/router.js +4 -12
- package/dist/cjs/router/router.js.map +1 -1
- package/dist/cjs/router/router.native.js +6 -17
- package/dist/cjs/router/router.native.js.map +1 -1
- package/dist/cjs/server/oneServe.cjs +1 -1
- package/dist/cjs/server/oneServe.js +1 -1
- package/dist/cjs/server/oneServe.js.map +1 -1
- package/dist/cjs/server/oneServe.native.js +3 -1
- package/dist/cjs/server/oneServe.native.js.map +1 -1
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.cjs +36 -19
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.js +31 -19
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.js.map +2 -2
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js +36 -23
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
- package/dist/esm/createHandleRequest.js +16 -7
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +10 -2
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +10 -1
- package/dist/esm/createHandleRequest.native.js.map +1 -1
- package/dist/esm/createHandleRequest.test.js +92 -0
- package/dist/esm/createHandleRequest.test.js.map +6 -0
- package/dist/esm/createHandleRequest.test.mjs +156 -0
- package/dist/esm/createHandleRequest.test.mjs.map +1 -0
- package/dist/esm/createHandleRequest.test.native.js +160 -0
- package/dist/esm/createHandleRequest.test.native.js.map +1 -0
- package/dist/esm/link/linking.js +10 -47
- package/dist/esm/link/linking.js.map +1 -1
- package/dist/esm/link/linking.mjs +8 -40
- package/dist/esm/link/linking.mjs.map +1 -1
- package/dist/esm/link/linking.native.js +0 -6
- package/dist/esm/link/linking.native.js.map +1 -1
- package/dist/esm/link/openExternalURL.js +7 -0
- package/dist/esm/link/openExternalURL.js.map +6 -0
- package/dist/esm/link/openExternalURL.mjs +5 -0
- package/dist/esm/link/openExternalURL.mjs.map +1 -0
- package/dist/esm/link/openExternalURL.native.js +6 -0
- package/dist/esm/link/openExternalURL.native.js.map +1 -0
- package/dist/esm/router/router.js +2 -2
- package/dist/esm/router/router.js.map +1 -1
- package/dist/esm/router/router.mjs +2 -2
- package/dist/esm/router/router.mjs.map +1 -1
- package/dist/esm/router/router.native.js +2 -2
- package/dist/esm/router/router.native.js.map +1 -1
- package/dist/esm/server/oneServe.js +1 -1
- package/dist/esm/server/oneServe.js.map +1 -1
- package/dist/esm/server/oneServe.mjs +1 -1
- package/dist/esm/server/oneServe.mjs.map +1 -1
- package/dist/esm/server/oneServe.native.js +3 -1
- package/dist/esm/server/oneServe.native.js.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.js +21 -17
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.js.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs +21 -15
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js +21 -19
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
- package/package.json +10 -9
- package/src/createHandleRequest.test.ts +147 -0
- package/src/createHandleRequest.ts +21 -0
- package/src/link/linking.native.ts +97 -0
- package/src/link/linking.ts +13 -88
- package/src/link/openExternalURL.native.ts +5 -0
- package/src/link/openExternalURL.ts +3 -0
- package/src/router/router.ts +2 -2
- package/src/server/oneServe.ts +5 -0
- package/src/vite/plugins/fileSystemRouterPlugin.tsx +29 -25
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/createHandleRequest.test.d.ts +2 -0
- package/types/createHandleRequest.test.d.ts.map +1 -0
- package/types/link/linking.d.ts +1 -1
- package/types/link/linking.d.ts.map +1 -1
- package/types/link/linking.native.d.ts +7 -0
- package/types/link/linking.native.d.ts.map +1 -0
- package/types/link/openExternalURL.d.ts +2 -0
- package/types/link/openExternalURL.d.ts.map +1 -0
- package/types/link/openExternalURL.native.d.ts +2 -0
- package/types/link/openExternalURL.native.d.ts.map +1 -0
- package/types/router/router.d.ts.map +1 -1
- package/types/server/oneServe.d.ts.map +1 -1
- package/types/vite/plugins/fileSystemRouterPlugin.d.ts.map +1 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as Linking from 'expo-linking'
|
|
2
|
+
|
|
3
|
+
import { adjustPathname } from '../fork/extractPathFromURL'
|
|
4
|
+
import { getPathFromState } from '../fork/getPathFromState'
|
|
5
|
+
import { getStateFromPath } from '../fork/getStateFromPath'
|
|
6
|
+
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
const isExpoGo = typeof expo !== 'undefined' && globalThis.expo?.modules?.ExpoGo
|
|
9
|
+
|
|
10
|
+
// A custom getInitialURL is used on native to ensure the app always starts at
|
|
11
|
+
// the root path if it's launched from something other than a deep link.
|
|
12
|
+
// This helps keep the native functionality working like the web functionality.
|
|
13
|
+
// For example, if you had a root navigator where the first screen was `/settings` and the second was `/index`
|
|
14
|
+
// then `/index` would be used on web and `/settings` would be used on native.
|
|
15
|
+
export function getInitialURL(): Promise<string | null> | string {
|
|
16
|
+
if (process.env.NODE_ENV === 'test') {
|
|
17
|
+
return Linking.getInitialURL() ?? getRootURL()
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return Promise.race<string>([
|
|
21
|
+
(async () => {
|
|
22
|
+
const url = await Linking.getInitialURL()
|
|
23
|
+
|
|
24
|
+
// NOTE: This could probably be wrapped with the development boundary
|
|
25
|
+
// since Expo Go is mostly just used in development.
|
|
26
|
+
|
|
27
|
+
// Expo Go is weird and requires the root path to be `/--/`
|
|
28
|
+
if (url && isExpoGo) {
|
|
29
|
+
const parsed = Linking.parse(url)
|
|
30
|
+
// If the URL is defined (default in Expo Go dev apps) and the URL has no path:
|
|
31
|
+
// `exp://192.168.87.39:19000/` then use the default `exp://192.168.87.39:19000/--/`
|
|
32
|
+
if (
|
|
33
|
+
parsed.path === null ||
|
|
34
|
+
['', '/'].includes(
|
|
35
|
+
adjustPathname({
|
|
36
|
+
hostname: parsed.hostname,
|
|
37
|
+
pathname: parsed.path,
|
|
38
|
+
})
|
|
39
|
+
)
|
|
40
|
+
) {
|
|
41
|
+
return getRootURL()
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
// The path will be nullish in bare apps when the app is launched from the home screen.
|
|
45
|
+
// TODO: define some policy around notifications.
|
|
46
|
+
return url ?? getRootURL()
|
|
47
|
+
})(),
|
|
48
|
+
new Promise<string>((resolve) =>
|
|
49
|
+
// Timeout in 150ms if `getInitialState` doesn't resolve
|
|
50
|
+
// Workaround for https://github.com/facebook/react-native/issues/25675
|
|
51
|
+
setTimeout(() => resolve(getRootURL()), 150)
|
|
52
|
+
),
|
|
53
|
+
])
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
let _rootURL: string | undefined
|
|
57
|
+
|
|
58
|
+
export function getRootURL(): string {
|
|
59
|
+
if (_rootURL === undefined) {
|
|
60
|
+
_rootURL = Linking.createURL('/')
|
|
61
|
+
}
|
|
62
|
+
return _rootURL
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function addEventListener(listener: (url: string) => void) {
|
|
66
|
+
let callback: (({ url }: { url: string }) => void) | undefined
|
|
67
|
+
|
|
68
|
+
if (isExpoGo) {
|
|
69
|
+
// This extra work is only done in the Expo Go app.
|
|
70
|
+
callback = ({ url }: { url: string }) => {
|
|
71
|
+
const parsed = Linking.parse(url)
|
|
72
|
+
|
|
73
|
+
// If the URL is defined (default in Expo Go dev apps) and the URL has no path:
|
|
74
|
+
// `exp://192.168.87.39:19000/` then use the default `exp://192.168.87.39:19000/--/`
|
|
75
|
+
if (
|
|
76
|
+
parsed.path === null ||
|
|
77
|
+
['', '/'].includes(
|
|
78
|
+
adjustPathname({ hostname: parsed.hostname, pathname: parsed.path })
|
|
79
|
+
)
|
|
80
|
+
) {
|
|
81
|
+
listener(getRootURL())
|
|
82
|
+
} else {
|
|
83
|
+
listener(url)
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
} else {
|
|
87
|
+
callback = ({ url }: { url: string }) => listener(url)
|
|
88
|
+
}
|
|
89
|
+
const subscription = Linking.addEventListener('url', callback)
|
|
90
|
+
|
|
91
|
+
return () => {
|
|
92
|
+
// https://github.com/facebook/react-native/commit/6d1aca806cee86ad76de771ed3a1cc62982ebcd7
|
|
93
|
+
subscription?.remove?.()
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { getStateFromPath, getPathFromState }
|
package/src/link/linking.ts
CHANGED
|
@@ -1,105 +1,30 @@
|
|
|
1
|
-
import * as Linking from 'expo-linking'
|
|
2
|
-
import { Platform } from 'react-native'
|
|
3
|
-
|
|
4
|
-
import { adjustPathname } from '../fork/extractPathFromURL'
|
|
5
1
|
import { getPathFromState } from '../fork/getPathFromState'
|
|
6
2
|
import { getStateFromPath } from '../fork/getStateFromPath'
|
|
7
3
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// A custom getInitialURL is used on native to ensure the app always starts at
|
|
12
|
-
// the root path if it's launched from something other than a deep link.
|
|
13
|
-
// This helps keep the native functionality working like the web functionality.
|
|
14
|
-
// For example, if you had a root navigator where the first screen was `/settings` and the second was `/index`
|
|
15
|
-
// then `/index` would be used on web and `/settings` would be used on native.
|
|
16
|
-
export function getInitialURL(): Promise<string | null> | string {
|
|
17
|
-
if (process.env.NODE_ENV === 'test') {
|
|
18
|
-
return Linking.getInitialURL() ?? getRootURL()
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (Platform.OS === 'web') {
|
|
22
|
-
if (typeof window === 'undefined') {
|
|
23
|
-
return ''
|
|
24
|
-
}
|
|
25
|
-
if (window.location?.href) {
|
|
26
|
-
return window.location.href
|
|
27
|
-
}
|
|
4
|
+
export function getInitialURL(): string {
|
|
5
|
+
if (typeof window === 'undefined') {
|
|
6
|
+
return ''
|
|
28
7
|
}
|
|
29
|
-
return
|
|
30
|
-
(async () => {
|
|
31
|
-
const url = await Linking.getInitialURL()
|
|
32
|
-
|
|
33
|
-
// NOTE: This could probably be wrapped with the development boundary
|
|
34
|
-
// since Expo Go is mostly just used in development.
|
|
35
|
-
|
|
36
|
-
// Expo Go is weird and requires the root path to be `/--/`
|
|
37
|
-
if (url && isExpoGo) {
|
|
38
|
-
const parsed = Linking.parse(url)
|
|
39
|
-
// If the URL is defined (default in Expo Go dev apps) and the URL has no path:
|
|
40
|
-
// `exp://192.168.87.39:19000/` then use the default `exp://192.168.87.39:19000/--/`
|
|
41
|
-
if (
|
|
42
|
-
parsed.path === null ||
|
|
43
|
-
['', '/'].includes(
|
|
44
|
-
adjustPathname({
|
|
45
|
-
hostname: parsed.hostname,
|
|
46
|
-
pathname: parsed.path,
|
|
47
|
-
})
|
|
48
|
-
)
|
|
49
|
-
) {
|
|
50
|
-
return getRootURL()
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
// The path will be nullish in bare apps when the app is launched from the home screen.
|
|
54
|
-
// TODO: define some policy around notifications.
|
|
55
|
-
return url ?? getRootURL()
|
|
56
|
-
})(),
|
|
57
|
-
new Promise<string>((resolve) =>
|
|
58
|
-
// Timeout in 150ms if `getInitialState` doesn't resolve
|
|
59
|
-
// Workaround for https://github.com/facebook/react-native/issues/25675
|
|
60
|
-
setTimeout(() => resolve(getRootURL()), 150)
|
|
61
|
-
),
|
|
62
|
-
])
|
|
8
|
+
return window.location?.href || ''
|
|
63
9
|
}
|
|
64
10
|
|
|
65
|
-
let _rootURL: string | undefined
|
|
66
|
-
|
|
67
11
|
export function getRootURL(): string {
|
|
68
|
-
|
|
69
|
-
_rootURL = Linking.createURL('/')
|
|
70
|
-
}
|
|
71
|
-
return _rootURL
|
|
12
|
+
return '/'
|
|
72
13
|
}
|
|
73
14
|
|
|
74
15
|
export function addEventListener(listener: (url: string) => void) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
// This extra work is only done in the Expo Go app.
|
|
79
|
-
callback = ({ url }: { url: string }) => {
|
|
80
|
-
const parsed = Linking.parse(url)
|
|
16
|
+
if (typeof window === 'undefined') {
|
|
17
|
+
return () => {}
|
|
18
|
+
}
|
|
81
19
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (
|
|
85
|
-
parsed.path === null ||
|
|
86
|
-
['', '/'].includes(
|
|
87
|
-
adjustPathname({ hostname: parsed.hostname, pathname: parsed.path })
|
|
88
|
-
)
|
|
89
|
-
) {
|
|
90
|
-
listener(getRootURL())
|
|
91
|
-
} else {
|
|
92
|
-
listener(url)
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
} else {
|
|
96
|
-
callback = ({ url }: { url: string }) => listener(url)
|
|
20
|
+
const callback = () => {
|
|
21
|
+
listener(window.location.href)
|
|
97
22
|
}
|
|
98
|
-
|
|
23
|
+
|
|
24
|
+
window.addEventListener('popstate', callback)
|
|
99
25
|
|
|
100
26
|
return () => {
|
|
101
|
-
|
|
102
|
-
subscription?.remove?.()
|
|
27
|
+
window.removeEventListener('popstate', callback)
|
|
103
28
|
}
|
|
104
29
|
}
|
|
105
30
|
|
package/src/router/router.ts
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
type NavigationContainerRefWithCurrent,
|
|
9
9
|
StackActions,
|
|
10
10
|
} from '@react-navigation/native'
|
|
11
|
-
import * as Linking from 'expo-linking'
|
|
12
11
|
import {
|
|
13
12
|
type ComponentType,
|
|
14
13
|
Fragment,
|
|
@@ -19,6 +18,7 @@ import {
|
|
|
19
18
|
import { Platform } from 'react-native'
|
|
20
19
|
import type { OneRouter } from '../interfaces/router'
|
|
21
20
|
import { resolveHref } from '../link/href'
|
|
21
|
+
import { openExternalURL } from '../link/openExternalURL'
|
|
22
22
|
import { resolve } from '../link/path'
|
|
23
23
|
import { assertIsReady } from '../utils/assertIsReady'
|
|
24
24
|
import { getLoaderPath, getPreloadCSSPath, getPreloadPath } from '../utils/cleanUrl'
|
|
@@ -473,7 +473,7 @@ export async function linkTo(
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
if (shouldLinkExternally(href)) {
|
|
476
|
-
|
|
476
|
+
openExternalURL(href)
|
|
477
477
|
return
|
|
478
478
|
}
|
|
479
479
|
|
package/src/server/oneServe.ts
CHANGED
|
@@ -178,6 +178,11 @@ export async function oneServe(
|
|
|
178
178
|
const headers = new Headers()
|
|
179
179
|
headers.set('content-type', 'text/html')
|
|
180
180
|
|
|
181
|
+
// Reset router state for each SSR request to ensure correct routing
|
|
182
|
+
// TODO: Consider using AsyncLocalStorage to isolate router state per request
|
|
183
|
+
// instead of using global reset, for better concurrency handling
|
|
184
|
+
globalThis['__vxrnresetState']?.()
|
|
185
|
+
|
|
181
186
|
const rendered = await (
|
|
182
187
|
await getRender()
|
|
183
188
|
)({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import path from 'node:path'
|
|
2
2
|
import { Readable } from 'node:stream'
|
|
3
3
|
import { debounce } from 'perfect-debounce'
|
|
4
4
|
import type { Connect, Plugin, ViteDevServer } from 'vite'
|
|
@@ -68,11 +68,11 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
68
68
|
await renderPromise
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
const { promise, resolve } = promiseWithResolvers<void>()
|
|
71
|
+
const { promise, resolve: resolveRender } = promiseWithResolvers<void>()
|
|
72
72
|
renderPromise = promise
|
|
73
73
|
|
|
74
74
|
try {
|
|
75
|
-
const routeFile = join(routerRoot, route.file)
|
|
75
|
+
const routeFile = path.join(routerRoot, route.file)
|
|
76
76
|
runner.clearCache()
|
|
77
77
|
|
|
78
78
|
globalThis['__vxrnresetState']?.()
|
|
@@ -90,14 +90,16 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
90
90
|
// Register dependencies: map file path -> route paths that depend on it
|
|
91
91
|
const routePath = loaderProps?.path || '/'
|
|
92
92
|
for (const dep of tracked.dependencies) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
// Resolve to absolute path for consistent lookup when file changes
|
|
94
|
+
const absoluteDep = path.resolve(dep)
|
|
95
|
+
if (!loaderFileDependencies.has(absoluteDep)) {
|
|
96
|
+
loaderFileDependencies.set(absoluteDep, new Set())
|
|
97
|
+
server?.watcher.add(absoluteDep)
|
|
96
98
|
if (debugLoaderDeps) {
|
|
97
|
-
console.info(` ⓵ [loader-dep] watching: ${
|
|
99
|
+
console.info(` ⓵ [loader-dep] watching: ${absoluteDep}`)
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
|
-
loaderFileDependencies.get(
|
|
102
|
+
loaderFileDependencies.get(absoluteDep)!.add(routePath)
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
|
|
@@ -177,12 +179,12 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
177
179
|
</html>
|
|
178
180
|
`
|
|
179
181
|
} finally {
|
|
180
|
-
|
|
182
|
+
resolveRender()
|
|
181
183
|
}
|
|
182
184
|
},
|
|
183
185
|
|
|
184
186
|
async handleLoader({ request, route, url, loaderProps }) {
|
|
185
|
-
const routeFile = join(routerRoot, route.file)
|
|
187
|
+
const routeFile = path.join(routerRoot, route.file)
|
|
186
188
|
|
|
187
189
|
// this will remove all loaders
|
|
188
190
|
let transformedJS = (await server.transformRequest(routeFile))?.code
|
|
@@ -203,14 +205,16 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
203
205
|
// Register dependencies: map file path -> route paths that depend on it
|
|
204
206
|
const routePath = loaderProps?.path || '/'
|
|
205
207
|
for (const dep of tracked.dependencies) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
208
|
+
// Resolve to absolute path for consistent lookup when file changes
|
|
209
|
+
const absoluteDep = path.resolve(dep)
|
|
210
|
+
if (!loaderFileDependencies.has(absoluteDep)) {
|
|
211
|
+
loaderFileDependencies.set(absoluteDep, new Set())
|
|
212
|
+
server?.watcher.add(absoluteDep)
|
|
209
213
|
if (debugLoaderDeps) {
|
|
210
|
-
console.info(` ⓵ [loader-dep] watching: ${
|
|
214
|
+
console.info(` ⓵ [loader-dep] watching: ${absoluteDep}`)
|
|
211
215
|
}
|
|
212
216
|
}
|
|
213
|
-
loaderFileDependencies.get(
|
|
217
|
+
loaderFileDependencies.get(absoluteDep)!.add(routePath)
|
|
214
218
|
}
|
|
215
219
|
}
|
|
216
220
|
|
|
@@ -244,11 +248,11 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
244
248
|
},
|
|
245
249
|
|
|
246
250
|
async handleAPI({ route }) {
|
|
247
|
-
return await runner.import(join(routerRoot, route.file))
|
|
251
|
+
return await runner.import(path.join(routerRoot, route.file))
|
|
248
252
|
},
|
|
249
253
|
|
|
250
254
|
async loadMiddleware(route) {
|
|
251
|
-
return await runner.import(join(routerRoot, route.contextKey))
|
|
255
|
+
return await runner.import(path.join(routerRoot, route.contextKey))
|
|
252
256
|
},
|
|
253
257
|
},
|
|
254
258
|
{ routerRoot }
|
|
@@ -283,10 +287,10 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
283
287
|
}
|
|
284
288
|
|
|
285
289
|
return [
|
|
286
|
-
join('./app', route.file),
|
|
290
|
+
path.join('./app', route.file),
|
|
287
291
|
...(route.layouts?.flatMap((layout) => {
|
|
288
292
|
if (!layout.contextKey) return []
|
|
289
|
-
return [join('./app', layout.contextKey)]
|
|
293
|
+
return [path.join('./app', layout.contextKey)]
|
|
290
294
|
}) || []),
|
|
291
295
|
]
|
|
292
296
|
})
|
|
@@ -326,7 +330,7 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
326
330
|
// dev: {
|
|
327
331
|
// optimizeDeps,
|
|
328
332
|
// createEnvironment(name, config) {
|
|
329
|
-
// const worker = new Worker(join(import.meta.dirname, 'server.js'))
|
|
333
|
+
// const worker = new Worker(path.join(import.meta.dirname, 'server.js'))
|
|
330
334
|
// // const hot = new
|
|
331
335
|
// return new DevEnvironment(name, config, {
|
|
332
336
|
// hot: false,
|
|
@@ -353,13 +357,13 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
353
357
|
USE_SERVER_ENV ? server.environments.server : server.environments.ssr
|
|
354
358
|
)
|
|
355
359
|
|
|
356
|
-
const appDir = join(process.cwd(), getRouterRootFromOneOptions(options))
|
|
360
|
+
const appDir = path.join(process.cwd(), getRouterRootFromOneOptions(options))
|
|
357
361
|
|
|
358
362
|
// on change ./app stuff lets reload this to pick up any route changes
|
|
359
|
-
const fileWatcherChangeListener = debounce(async (type: string,
|
|
363
|
+
const fileWatcherChangeListener = debounce(async (type: string, changedPath: string) => {
|
|
360
364
|
if (type === 'add' || type === 'delete') {
|
|
361
365
|
// resolve to absolute path since watcher may emit relative paths
|
|
362
|
-
const absolutePath = resolve(
|
|
366
|
+
const absolutePath = path.resolve(changedPath)
|
|
363
367
|
if (absolutePath.startsWith(appDir)) {
|
|
364
368
|
handleRequest = createRequestHandler()
|
|
365
369
|
}
|
|
@@ -369,8 +373,8 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
369
373
|
server.watcher.addListener('all', fileWatcherChangeListener)
|
|
370
374
|
|
|
371
375
|
// Watch for changes to loader dependencies (files read via fs in loaders)
|
|
372
|
-
const loaderDepChangeListener = debounce((
|
|
373
|
-
const absolutePath = resolve(
|
|
376
|
+
const loaderDepChangeListener = debounce((changedPath: string) => {
|
|
377
|
+
const absolutePath = path.resolve(changedPath)
|
|
374
378
|
const routePaths = loaderFileDependencies.get(absolutePath)
|
|
375
379
|
if (routePaths && routePaths.size > 0) {
|
|
376
380
|
if (debugLoaderDeps) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createHandleRequest.d.ts","sourceRoot":"","sources":["../src/createHandleRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACzD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAC3D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACxD,cAAc,CAA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,EAChB,WAAW,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,GACnC,OAAO,CAAC,QAAQ,CAAC,CAgEnB;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,iBAAiB,qBA4CzB;AAED,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,iBAAiB,qBAuCzB;AAED,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,iBAAiB,qBAyBzB;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,OAMpD;AASD,wBAAgB,eAAe,CAAC,QAAQ,EAAE;IACxC,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,SAAS,EAAE,SAAS,EAAE,CAAA;CACvB,GAAG;IACF,UAAU,EAAE,iBAAiB,EAAE,CAAA;IAC/B,SAAS,EAAE,iBAAiB,EAAE,CAAA;CAC/B,CAKA;AAGD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,eAAe,EACzB,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE;;uBAWzB,OAAO,KACf,OAAO,CAAC,sBAAsB,CAAC;EAmGrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createHandleRequest.test.d.ts","sourceRoot":"","sources":["../src/createHandleRequest.test.ts"],"names":[],"mappings":""}
|
package/types/link/linking.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getPathFromState } from '../fork/getPathFromState';
|
|
2
2
|
import { getStateFromPath } from '../fork/getStateFromPath';
|
|
3
|
-
export declare function getInitialURL():
|
|
3
|
+
export declare function getInitialURL(): string;
|
|
4
4
|
export declare function getRootURL(): string;
|
|
5
5
|
export declare function addEventListener(listener: (url: string) => void): () => void;
|
|
6
6
|
export { getStateFromPath, getPathFromState };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linking.d.ts","sourceRoot":"","sources":["../../src/link/linking.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"linking.d.ts","sourceRoot":"","sources":["../../src/link/linking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAE3D,wBAAgB,aAAa,IAAI,MAAM,CAKtC;AAED,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,cAc/D;AAED,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { getPathFromState } from '../fork/getPathFromState';
|
|
2
|
+
import { getStateFromPath } from '../fork/getStateFromPath';
|
|
3
|
+
export declare function getInitialURL(): Promise<string | null> | string;
|
|
4
|
+
export declare function getRootURL(): string;
|
|
5
|
+
export declare function addEventListener(listener: (url: string) => void): () => void;
|
|
6
|
+
export { getStateFromPath, getPathFromState };
|
|
7
|
+
//# sourceMappingURL=linking.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linking.native.d.ts","sourceRoot":"","sources":["../../src/link/linking.native.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAU3D,wBAAgB,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,MAAM,CAuC/D;AAID,wBAAgB,UAAU,IAAI,MAAM,CAKnC;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,cA8B/D;AAED,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openExternalURL.d.ts","sourceRoot":"","sources":["../../src/link/openExternalURL.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openExternalURL.native.d.ts","sourceRoot":"","sources":["../../src/link/openExternalURL.native.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/router/router.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/router/router.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,KAAK,aAAa,EAKnB,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAQrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAKzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAOxC,eAAO,IAAI,SAAS,EAAE,SAAS,GAAG,IAAW,CAAA;AAC7C,eAAO,IAAI,aAAa,EAAE,aAAa,CAAA;AAEvC,eAAO,IAAI,wBAAwB,SAA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ED,wBAAsB,QAAQ,CAC5B,UAAU,EAAE,GAAG,CAAC,aAAa,EAC7B,SAAS,EAAE,GAAG,CAAC,SAAS,EACxB,GAAG,EAAE,IAAI,EACT,OAAO,CAAC,EAAE;IACR,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE;QAAE,OAAO,EAAE,GAAG,CAAA;KAAE,KAAK,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAA;IAC5E,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,iBA2ZF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileSystemRouterPlugin.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/fileSystemRouterPlugin.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAW,MAAM,EAAiB,MAAM,MAAM,CAAA;AAa1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAU3C,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,GAAG,CAAC,aAAa,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"fileSystemRouterPlugin.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/fileSystemRouterPlugin.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAW,MAAM,EAAiB,MAAM,MAAM,CAAA;AAa1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAU3C,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,GAAG,CAAC,aAAa,GAAG,MAAM,CA4f/E"}
|