expo-router 6.0.8 → 6.0.9

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.
Files changed (3) hide show
  1. package/package.json +2 -2
  2. package/server.d.ts +15 -4
  3. package/server.js +1 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-router",
3
- "version": "6.0.8",
3
+ "version": "6.0.9",
4
4
  "description": "Expo Router is a file-based router for React Native and web applications.",
5
5
  "author": "650 Industries, Inc.",
6
6
  "license": "MIT",
@@ -152,5 +152,5 @@
152
152
  "use-latest-callback": "^0.2.1",
153
153
  "vaul": "^1.1.2"
154
154
  },
155
- "gitHead": "6523053d0d997d2a21f580d2752b2f873c122038"
155
+ "gitHead": "1ab3b9621b78b77b81049ebf06149753a1e0898c"
156
156
  }
package/server.d.ts CHANGED
@@ -1,9 +1,20 @@
1
- import { type ExpoRequest, type ExpoResponse } from '@expo/server';
2
- export { type MiddlewareFunction } from '@expo/server';
1
+ export type { MiddlewareFunction } from '@expo/server';
2
+
3
+ /**
4
+ * @deprecated Use Fetch API `Request` instead.
5
+ *
6
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
7
+ */
8
+ export type ExpoRequest = Request;
9
+
10
+ /**
11
+ * @deprecated Use Fetch API `Response` instead.
12
+ *
13
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
14
+ */
15
+ export type ExpoResponse = Response;
3
16
 
4
17
  export type RequestHandler = (
5
18
  request: Request,
6
19
  params: Record<string, string>
7
20
  ) => Response | Promise<Response>;
8
-
9
- export { ExpoRequest, ExpoResponse };
package/server.js CHANGED
@@ -1,3 +1 @@
1
- // These should be installed on the global by the server runtime to ensure faster bundling and smaller bundles.
2
- module.exports.ExpoRequest = global.ExpoRequest;
3
- module.exports.ExpoResponse = global.ExpoResponse;
1
+ // Use `@expo/server` directly instead