Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stop re-exporting exports removed in [email protected] #459

Merged

Conversation

serhalp
Copy link
Contributor

@serhalp serhalp commented Sep 18, 2024

Description

Some "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 here.

We should probably just not export any unstable_e xports. Remix doesn't actually require that server runtime implementations export these: https://github.com/remix-run/remix/tree/main/packages/remix-server-runtime#readme.

Related Tickets & Documents

Closes #458, which actually affects both Remix and Hydrogen.

QA Instructions, Screenshots, Recordings

N/A - just bumps remix dev dep and fixes type errors

Copy link

netlify bot commented Sep 18, 2024

Deploy Preview for remix-serverless ready!

Name Link
🔨 Latest commit 365fa5a
🔍 Latest deploy log https://app.netlify.com/sites/remix-serverless/deploys/66eb1aaa6c833800089c8fe0
😎 Deploy Preview https://deploy-preview-459--remix-serverless.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 18, 2024

Deploy Preview for remix-edge ready!

Name Link
🔨 Latest commit 365fa5a
🔍 Latest deploy log https://app.netlify.com/sites/remix-edge/deploys/66eb1aaa28af7b0008a65ed1
😎 Deploy Preview https://deploy-preview-459--remix-edge.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Sep 18, 2024
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.
@serhalp serhalp force-pushed the serhalp/frb-1327-named-export-unstable_defineaction-not-found branch from f40a954 to ddfa2d8 Compare September 18, 2024 18:11
@serhalp serhalp marked this pull request as ready for review September 18, 2024 18:36
@serhalp serhalp requested a review from a team as a code owner September 18, 2024 18:36
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we make a linear ticket?

Copy link
Contributor Author

@serhalp serhalp Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Would you mind doing that? Or we could just open a draft PR that does that (and removes the remaining unstable_ exports) and we'll keep track of if that way.

@serhalp serhalp merged commit db7be08 into main Sep 18, 2024
15 checks passed
@serhalp serhalp deleted the serhalp/frb-1327-named-export-unstable_defineaction-not-found branch September 18, 2024 18:43
serhalp added a commit to netlify/hydrogen-template that referenced this pull request Sep 18, 2024
serhalp added a commit to netlify/hydrogen-template that referenced this pull request Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Named export 'unstable_defineAction' not found
2 participants