Skip to content

fix(remix): Remove vendored types #16218

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

Merged
merged 2 commits into from
May 8, 2025
Merged

Conversation

onurtemizkan
Copy link
Collaborator

@onurtemizkan onurtemizkan commented May 7, 2025

Resolves: #15615

Removed the vendored types and started importing them from Remix v2 packages. Also added @remix-run/server-runtime as devDependency and peerDependency

@onurtemizkan onurtemizkan force-pushed the onur/remix-vendor-types-v2 branch from a5a3b0e to aeec315 Compare May 8, 2025 13:52
@onurtemizkan onurtemizkan changed the title fix(remix): Lighten vendored types fix(remix): Remove vendored types May 8, 2025
@onurtemizkan onurtemizkan marked this pull request as ready for review May 8, 2025 14:10
error != null &&
typeof error.status === 'number' &&
typeof error.statusText === 'string' &&
typeof error.internal === 'boolean' &&
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looks like error.internal does not exist in the latest types

Copy link
Member

Choose a reason for hiding this comment

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

should we keep it around for backwards compatibility?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Turns out this function is already exported. So I removed it and isDeferredData to use the peerDependency.
7ef5353

@onurtemizkan onurtemizkan force-pushed the onur/remix-vendor-types-v2 branch from aeec315 to fea71ce Compare May 8, 2025 14:18
@onurtemizkan onurtemizkan requested review from mydea and andreiborza May 8, 2025 14:18
@AbhiPrasad AbhiPrasad merged commit db2f604 into develop May 8, 2025
58 checks passed
@AbhiPrasad AbhiPrasad deleted the onur/remix-vendor-types-v2 branch May 8, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outdated vendored remix types causing typescript errors when instrumenting build
2 participants