Skip to content

[remix] refactor runtime Function creation into single point of truth - #13023

Merged
erikareads merged 5 commits into
mainfrom
erikarowland/consolidate-remix-vercel-function-creation-logic
Feb 12, 2025
Merged

erikareads merged 5 commits into
mainfrom
erikarowland/consolidate-remix-vercel-function-creation-logic

Conversation

@erikareads

@erikareads erikareads commented Feb 5, 2025 •

Copy link
Copy Markdown
Contributor

Building on #12992 this PR unifies the logic for function creation between Remix and React Router. There was also a lot of duplicated logic between Edge and Node runtime function creation, which I've refactored into a single code path.

Previously, there were a lot of checks that switched dependent on runtime (node vs edge), this PR centralizes that check into getRuntimeSettings.

@changeset-bot

changeset-bot Bot commented Feb 5, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c2f0072

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/remix-builder Patch
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@erikareads
erikareads marked this pull request as ready for review February 6, 2025 20:56
@erikareads erikareads changed the title [remix] refactor three render function creation functions into two [remix] refactor runtime Function creation into single point of truth Feb 6, 2025
onsclom
onsclom previously approved these changes Feb 11, 2025
@erikareads
erikareads added this pull request to the merge queue Feb 12, 2025
Merged via the queue into main with commit d523fd6 Feb 12, 2025
@erikareads
erikareads deleted the erikarowland/consolidate-remix-vercel-function-creation-logic branch February 12, 2025 19:41
LukeSheard pushed a commit that referenced this pull request Feb 13, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/[email protected]

### Major Changes

- Initial public release
([#13027](#13027))

## @vercel/[email protected]

### Patch Changes

- [build-utils] extract install command specific logic into helper
([#13049](#13049))

- [build-utils] remove dead node 16 check
([#13047](#13047))

## [email protected]

### Patch Changes

- Fix duplicate trace names generated from builders
([#13051](#13051))

- Updated dependencies
\[[`a8c3efa2f907ff53e751b40121e9d4b986d7bd91`](a8c3efa),
[`3688e7b3206f69f2456a9963c9e30077cab3fbd4`](3688e7b),
[`d523fd6a92b36c2841b41e55c742099561555bc9`](d523fd6),
[`65a501582d22c48f75044eac4c13f1be5bcd2c79`](65a5015),
[`c93dbecb641890d2936547395d7744a5c197800a`](c93dbec)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`3688e7b3206f69f2456a9963c9e30077cab3fbd4`](3688e7b),
[`c93dbecb641890d2936547395d7744a5c197800a`](c93dbec)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`3688e7b3206f69f2456a9963c9e30077cab3fbd4`](3688e7b),
[`c93dbecb641890d2936547395d7744a5c197800a`](c93dbec)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Fix duplicate trace names generated from builders
([#13051](#13051))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`3688e7b3206f69f2456a9963c9e30077cab3fbd4`](3688e7b),
[`c93dbecb641890d2936547395d7744a5c197800a`](c93dbec)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- [remix] unify render function creation logic between Remix and React
Router ([#13023](#13023))

- [remix] Add link to documentation after vercelPreset() warning
([#12942](#12942))

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/[email protected]

### Major Changes

- Initial public release
([#13027](vercel/vercel#13027))

## @vercel/[email protected]

### Patch Changes

- [build-utils] extract install command specific logic into helper
([#13049](vercel/vercel#13049))

- [build-utils] remove dead node 16 check
([#13047](vercel/vercel#13047))

## [email protected]

### Patch Changes

- Fix duplicate trace names generated from builders
([#13051](vercel/vercel#13051))

- Updated dependencies
\[[`e7b6ffdad65266b537dd740f22315197428ea7f7`](vercel/vercel@e7b6ffd),
[`88237defd77abb446c8f04bb7963e2959ec43e2a`](vercel/vercel@88237de),
[`6dd5a10f85d797fe8ff6133c41466c6e67f05dee`](vercel/vercel@6dd5a10),
[`b19fe8c253e857efa441da52df9d9274238cc1fa`](vercel/vercel@b19fe8c),
[`c43c0069ecb70e3d2f9dc5bff69f22647399d88a`](vercel/vercel@c43c006)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`88237defd77abb446c8f04bb7963e2959ec43e2a`](vercel/vercel@88237de),
[`c43c0069ecb70e3d2f9dc5bff69f22647399d88a`](vercel/vercel@c43c006)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`88237defd77abb446c8f04bb7963e2959ec43e2a`](vercel/vercel@88237de),
[`c43c0069ecb70e3d2f9dc5bff69f22647399d88a`](vercel/vercel@c43c006)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Fix duplicate trace names generated from builders
([#13051](vercel/vercel#13051))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`88237defd77abb446c8f04bb7963e2959ec43e2a`](vercel/vercel@88237de),
[`c43c0069ecb70e3d2f9dc5bff69f22647399d88a`](vercel/vercel@c43c006)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- [remix] unify render function creation logic between Remix and React
Router ([#13023](vercel/vercel#13023))

- [remix] Add link to documentation after vercelPreset() warning
([#12942](vercel/vercel#12942))

## @vercel/[email protected]

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — c2f0072c Deployed Feb 12, 2025 by vercel[bot]
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.

2 participants