Skip to content

Commit

Permalink
fix: stop re-exporting exports removed in [email protected] (#459)
Browse files Browse the repository at this point in the history
* fix: stop re-exporting exports removed in remix 2.12.0

These unstable functions and types were removed in
remix-run/remix#9893.

Since they were clearly named `unstable_` and Remix doesn't require
major releases for changes to these, we'll do the same thing.

* chore(deps): bump to latest remix everywhere
  • Loading branch information
serhalp authored Sep 18, 2024
1 parent a15ef14 commit db7be08
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 28 deletions.
6 changes: 3 additions & 3 deletions packages/remix-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
},
"homepage": "https://github.com/netlify/remix-compute#readme",
"dependencies": {
"@remix-run/node": "^2.9.2",
"@remix-run/node": "^2.12.0",
"isbot": "^5.0.0"
},
"devDependencies": {
"@netlify/functions": "^2.8.1",
"@remix-run/dev": "^2.9.2",
"@remix-run/react": "^2.9.2",
"@remix-run/dev": "^2.12.0",
"@remix-run/react": "^2.12.0",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"lambda-tester": "^4.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-edge-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
"homepage": "https://github.com/netlify/remix-compute#readme",
"dependencies": {
"@netlify/remix-runtime": "2.3.0",
"@remix-run/dev": "^2.9.2",
"@remix-run/dev": "^2.12.0",
"isbot": "^5.0.0"
},
"devDependencies": {
"@remix-run/react": "^2.9.2",
"@remix-run/react": "^2.12.0",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"homepage": "https://github.com/netlify/remix-compute#readme",
"devDependencies": {
"@remix-run/server-runtime": "^2.9.2",
"@remix-run/server-runtime": "^2.12.0",
"tsup": "^8.0.2"
},
"peerDependencies": {
Expand Down
8 changes: 3 additions & 5 deletions packages/remix-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ export {
unstable_composeUploadHandlers,
unstable_createMemoryUploadHandler,
unstable_parseMultipartFormData,
unstable_defineLoader,
unstable_defineAction,
unstable_setDevServerHooks,
UNSAFE_SingleFetchRedirectSymbol,
} from '@remix-run/server-runtime'

// TODO(serhalp) The docs say we should simply re-export all types from `/reexport`:
// https://github.com/remix-run/remix/tree/main/packages/remix-server-runtime#readme.
// Let's do that, but carefully verify whether this adds or removes any exports first.
export type {
ActionFunction,
ActionFunctionArgs,
Expand Down Expand Up @@ -78,9 +79,6 @@ export type {
UnsignFunction,
UploadHandlerPart,
UploadHandler,
unstable_Loader,
unstable_Action,
unstable_Serialize,
UNSAFE_SingleFetchResults,
UNSAFE_SingleFetchResult,
} from '@remix-run/server-runtime'
Loading

0 comments on commit db7be08

Please sign in to comment.