expo-router 5.1.0 → 5.1.1
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/build/fork/getStateFromPath-forks.d.ts.map +1 -1
- package/build/fork/getStateFromPath-forks.js +4 -1
- package/build/fork/getStateFromPath-forks.js.map +1 -1
- package/build/getRoutes.d.ts +1 -1
- package/build/getRoutes.d.ts.map +1 -1
- package/build/getRoutes.js +14 -6
- package/build/getRoutes.js.map +1 -1
- package/build/getRoutesCore.d.ts +7 -2
- package/build/getRoutesCore.d.ts.map +1 -1
- package/build/getRoutesCore.js +86 -58
- package/build/getRoutesCore.js.map +1 -1
- package/build/getRoutesRedirects.d.ts +2 -2
- package/build/getRoutesRedirects.d.ts.map +1 -1
- package/build/getRoutesRedirects.js +18 -24
- package/build/getRoutesRedirects.js.map +1 -1
- package/build/getRoutesSSR.d.ts +1 -1
- package/build/getRoutesSSR.d.ts.map +1 -1
- package/build/getRoutesSSR.js +2 -3
- package/build/getRoutesSSR.js.map +1 -1
- package/build/global-state/routeInfo.d.ts.map +1 -1
- package/build/global-state/routeInfo.js +21 -1
- package/build/global-state/routeInfo.js.map +1 -1
- package/build/global-state/router-store.d.ts.map +1 -1
- package/build/global-state/router-store.js +1 -0
- package/build/global-state/router-store.js.map +1 -1
- package/build/layouts/StackClient.d.ts.map +1 -1
- package/build/layouts/StackClient.js +152 -65
- package/build/layouts/StackClient.js.map +1 -1
- package/build/link/Link.d.ts +1 -56
- package/build/link/Link.d.ts.map +1 -1
- package/build/link/Link.js +3 -39
- package/build/link/Link.js.map +1 -1
- package/build/link/Redirect.d.ts +59 -0
- package/build/link/Redirect.d.ts.map +1 -0
- package/build/link/Redirect.js +43 -0
- package/build/link/Redirect.js.map +1 -0
- package/build/useFocusEffect.d.ts.map +1 -1
- package/build/useFocusEffect.js +5 -3
- package/build/useFocusEffect.js.map +1 -1
- package/build/useScreens.d.ts +1 -3
- package/build/useScreens.d.ts.map +1 -1
- package/build/useScreens.js +2 -2
- package/build/useScreens.js.map +1 -1
- package/build/utils/stack.d.ts +5 -0
- package/build/utils/stack.d.ts.map +1 -0
- package/build/utils/stack.js +10 -0
- package/build/utils/stack.js.map +1 -0
- package/build/views/Screen.d.ts.map +1 -1
- package/build/views/Screen.js +13 -40
- package/build/views/Screen.js.map +1 -1
- package/build/views/Unmatched.d.ts.map +1 -1
- package/build/views/Unmatched.js +9 -3
- package/build/views/Unmatched.js.map +1 -1
- package/build/views/useSafeLayoutEffect.d.ts +3 -0
- package/build/views/useSafeLayoutEffect.d.ts.map +1 -0
- package/build/views/useSafeLayoutEffect.js +6 -0
- package/build/views/useSafeLayoutEffect.js.map +1 -0
- package/package.json +3 -3
- package/plugin/options.json +29 -1
package/plugin/options.json
CHANGED
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"description": "The target file path that this route should redirect to",
|
|
92
92
|
"type": "string"
|
|
93
93
|
},
|
|
94
|
-
"
|
|
94
|
+
"permanent": {
|
|
95
95
|
"description": "Whether the redirect is temporary or permanent. Defaults to `false`.",
|
|
96
96
|
"type": "boolean",
|
|
97
97
|
"default": false
|
|
@@ -107,6 +107,34 @@
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
+
},
|
|
111
|
+
"rewrites": {
|
|
112
|
+
"description": "Enable static rewrites",
|
|
113
|
+
"type": "array",
|
|
114
|
+
"uniqueItems": true,
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"required": ["source", "destination"],
|
|
118
|
+
"properties": {
|
|
119
|
+
"source": {
|
|
120
|
+
"description": "The previous file path that should be rewritten",
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"destination": {
|
|
124
|
+
"description": "The target file path that this route should rewrite",
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"methods": {
|
|
128
|
+
"description": "HTTP methods that should be rewritten. Omit to rewrite all methods.",
|
|
129
|
+
"type": "array",
|
|
130
|
+
"uniqueItems": true,
|
|
131
|
+
"items": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"enum": ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
110
138
|
}
|
|
111
139
|
},
|
|
112
140
|
"additionalProperties": false
|