Skip to content

Commit

Permalink
Re-export Future through node/cloiudflare/deno packages (#9982)
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Sep 13, 2024
1 parent a49b4c6 commit 91f0e3a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changeset/tender-pears-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@remix-run/cloudflare": patch
"@remix-run/deno": patch
"@remix-run/node": patch
"@remix-run/server-runtime": patch
---

Single Fetch: Re-export `interface Future` through `@remix-run/node`/`@remix-run/cloudflare`/`@remix-run/deno` packages so that `pnpm` doesn't complain about `@remix-run/server-runtime` not being a dependency
2 changes: 1 addition & 1 deletion docs/guides/single-fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ You can do this in any file covered by your `tsconfig.json` > `include`.
We recommend you do this in your `vite.config.ts` to keep it colocated with the `future.unstable_singleFetch` future flag in the Remix plugin:

```ts
declare module "@remix-run/server-runtime" {
declare module "@remix-run/node" { // or cloudflare, deno, etc.
interface Future {
unstable_singleFetch: true;
}
Expand Down
1 change: 1 addition & 0 deletions packages/remix-cloudflare/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export type {
DataFunctionArgs,
EntryContext,
ErrorResponse,
Future,
HandleDataRequestFunction,
HandleDocumentRequestFunction,
HeadersArgs,
Expand Down
1 change: 1 addition & 0 deletions packages/remix-deno/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export type {
DataFunctionArgs,
EntryContext,
ErrorResponse,
Future,
HandleDataRequestFunction,
HandleDocumentRequestFunction,
HandleErrorFunction,
Expand Down
1 change: 1 addition & 0 deletions packages/remix-node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export type {
DataFunctionArgs,
EntryContext,
ErrorResponse,
Future,
HandleDataRequestFunction,
HandleDocumentRequestFunction,
HeadersArgs,
Expand Down
1 change: 1 addition & 0 deletions packages/remix-server-runtime/reexport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type {
ServerEntryModule,
} from "./build";

export type { Future } from "./future";
export type { UploadHandlerPart, UploadHandler } from "./formData";
export type {
MemoryUploadHandlerOptions,
Expand Down

0 comments on commit 91f0e3a

Please sign in to comment.