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

chore: upgrade core packages to react-18 #3917

Merged
merged 6 commits into from Aug 3, 2022
Merged

Conversation

jacob-ebey
Copy link
Member

This upgrades our core packages to react 18 with minimal changes to everything else.

Closes: #

  • Docs
  • Tests

Testing Strategy: Existing tests should cover everything.

@changeset-bot
Copy link

changeset-bot bot commented Aug 3, 2022

🦋 Changeset detected

Latest commit: 72e4455

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

This PR includes changesets to release 16 packages
Name Type
@remix-run/react Patch
create-remix Patch
remix Patch
@remix-run/dev Patch
@remix-run/eslint-config Patch
@remix-run/serve Patch
@remix-run/server-runtime Patch
@remix-run/cloudflare Patch
@remix-run/node Patch
@remix-run/deno Patch
@remix-run/cloudflare-pages Patch
@remix-run/cloudflare-workers Patch
@remix-run/express Patch
@remix-run/netlify Patch
@remix-run/vercel Patch
@remix-run/architect 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

@mcansh
Copy link
Collaborator

mcansh commented Aug 3, 2022

do we need to do the same changes to the cloudflare integration set up as the node one?

@jacob-ebey
Copy link
Member Author

do we need to do the same changes to the cloudflare integration set up as the node one?

Not at the moment. Nothing that uses that suite does react 18 things.

@MichaelDeBoey
Copy link
Member

MichaelDeBoey commented Aug 5, 2022

@jacob-ebey We didn't update the Cloudflare & Deno integration test helpers.
Was that intentional?
If so, for what specific reason?

What about the fixtures we use in remix-dev tests?

Just trying to understand why those weren't updated (yet).

@MichaelDeBoey MichaelDeBoey added the awaiting release This issue has been fixed and will be released soon label Aug 9, 2022
@MichaelDeBoey MichaelDeBoey removed the awaiting release This issue has been fixed and will be released soon label Aug 12, 2022
pcattori added a commit that referenced this pull request Nov 14, 2022
this fixture was incorrectly included as part of dependency upgrades:
- #3917
- #3929

it should not have been updated since it is supposed to represent a
Remix 1.3.x codebase
pcattori added a commit that referenced this pull request Nov 14, 2022
this fixture was incorrectly included as part of dependency upgrades:
- #3917
- #3929

it should not have been updated since it is supposed to represent a
Remix 1.3.x codebase
pcattori added a commit that referenced this pull request Nov 14, 2022
this fixture was incorrectly included as part of dependency upgrades:
- #3917
- #3929

it should not have been updated since it is supposed to represent a
Remix 1.3.x codebase
pcattori added a commit that referenced this pull request Nov 15, 2022
this fixture was incorrectly included as part of dependency upgrades:
- #3917
- #3929

it should not have been updated since it is supposed to represent a
Remix 1.3.x codebase
pcattori added a commit that referenced this pull request Nov 15, 2022
this fixture was incorrectly included as part of dependency upgrades:
- #3917
- #3929

it should not have been updated since it is supposed to represent a
Remix 1.3.x codebase
pcattori added a commit that referenced this pull request Nov 15, 2022
…`-based codemods (#4572)

* refactor(dev): extract `useColor` usages into `safe` utility

* refactor(dev): remove outdated reference to compiler shims

* fix(dev): remove access to `convert-to-javascript` migration via CLI

conversion to javascript is not a "migration" in that it does not help the user to upgrade to a
newer version of Remix

* refactor(dev): rewrite `replace-remix-magic-exports` as a babel codemod

Compared to the previous jscodeshift-based migration:
- codemod no longer depends on a network connection
- babel's visitor API for traversing the AST is simpler
- not spinning up workers for applying code transforms

This ends up speeding up the codemod by ~10x and (hopefully 🤞) fixes
some of the issues we were seeing in CI on Windows (since we think
problems are mostly timeouts caused by slow tests or overhead for
workers).

* test(dev): restore fixture

this fixture was incorrectly included as part of dependency upgrades:
- #3917
- #3929

it should not have been updated since it is supposed to represent a
Remix 1.3.x codebase

* test(dev): add tests for generic codemods and specifically for `replace-remix-magic-imports`

* ci: run build before primary tests

some tests can make use of the built javascript artifacts
(e.g. `cli.js`) to run 8-10x faster than running with source
Typescript (e.g. `cli.ts`)

* test(dev): retry temp dir removal for windows ci

Windows sometimes throws `EBUSY: resource busy or locked, rmdir`
errors when attempting to removing the temporary directory.
Retrying a couple times seems to get it to succeed.
See https://github.com/jprichardson/node-fs-extra/issues?q=EBUSY%3A+resource+busy+or+locked%2C+rmdir

* Create long-colts-remain.md
kentcdodds pushed a commit that referenced this pull request Dec 15, 2022
…`-based codemods (#4572)

* refactor(dev): extract `useColor` usages into `safe` utility

* refactor(dev): remove outdated reference to compiler shims

* fix(dev): remove access to `convert-to-javascript` migration via CLI

conversion to javascript is not a "migration" in that it does not help the user to upgrade to a
newer version of Remix

* refactor(dev): rewrite `replace-remix-magic-exports` as a babel codemod

Compared to the previous jscodeshift-based migration:
- codemod no longer depends on a network connection
- babel's visitor API for traversing the AST is simpler
- not spinning up workers for applying code transforms

This ends up speeding up the codemod by ~10x and (hopefully 🤞) fixes
some of the issues we were seeing in CI on Windows (since we think
problems are mostly timeouts caused by slow tests or overhead for
workers).

* test(dev): restore fixture

this fixture was incorrectly included as part of dependency upgrades:
- #3917
- #3929

it should not have been updated since it is supposed to represent a
Remix 1.3.x codebase

* test(dev): add tests for generic codemods and specifically for `replace-remix-magic-imports`

* ci: run build before primary tests

some tests can make use of the built javascript artifacts
(e.g. `cli.js`) to run 8-10x faster than running with source
Typescript (e.g. `cli.ts`)

* test(dev): retry temp dir removal for windows ci

Windows sometimes throws `EBUSY: resource busy or locked, rmdir`
errors when attempting to removing the temporary directory.
Retrying a couple times seems to get it to succeed.
See https://github.com/jprichardson/node-fs-extra/issues?q=EBUSY%3A+resource+busy+or+locked%2C+rmdir

* Create long-colts-remain.md
brophdawg11 pushed a commit to remix-run/react-router that referenced this pull request Mar 27, 2024
…`-based codemods (#4572)

* refactor(dev): extract `useColor` usages into `safe` utility

* refactor(dev): remove outdated reference to compiler shims

* fix(dev): remove access to `convert-to-javascript` migration via CLI

conversion to javascript is not a "migration" in that it does not help the user to upgrade to a
newer version of Remix

* refactor(dev): rewrite `replace-remix-magic-exports` as a babel codemod

Compared to the previous jscodeshift-based migration:
- codemod no longer depends on a network connection
- babel's visitor API for traversing the AST is simpler
- not spinning up workers for applying code transforms

This ends up speeding up the codemod by ~10x and (hopefully 🤞) fixes
some of the issues we were seeing in CI on Windows (since we think
problems are mostly timeouts caused by slow tests or overhead for
workers).

* test(dev): restore fixture

this fixture was incorrectly included as part of dependency upgrades:
- remix-run/remix#3917
- remix-run/remix#3929

it should not have been updated since it is supposed to represent a
Remix 1.3.x codebase

* test(dev): add tests for generic codemods and specifically for `replace-remix-magic-imports`

* ci: run build before primary tests

some tests can make use of the built javascript artifacts
(e.g. `cli.js`) to run 8-10x faster than running with source
Typescript (e.g. `cli.ts`)

* test(dev): retry temp dir removal for windows ci

Windows sometimes throws `EBUSY: resource busy or locked, rmdir`
errors when attempting to removing the temporary directory.
Retrying a couple times seems to get it to succeed.
See https://github.com/jprichardson/node-fs-extra/issues?q=EBUSY%3A+resource+busy+or+locked%2C+rmdir

* Create long-colts-remain.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants