-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into markdalgleish/dedupe-prefetch-links
- Loading branch information
Showing
77 changed files
with
563 additions
and
3,231 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@remix-run/react": patch | ||
--- | ||
|
||
Add `<link rel="preload">` timeout counter and disabling logic in case preloading is disabled by the user in Firefox. This prevents us from hanging on client-side navigations when we try to preload stylesheets and never receive a `load`/`error` event on the `link` tag. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"@remix-run/vercel": major | ||
--- | ||
|
||
The `@remix-run/vercel` runtime adapter has been removed in favor of out of the box Vercel functionality. Please update | ||
your code by removing `@remix-run/vercel` & `@vercel/node` from your `package.json`, removing your | ||
`server.ts`/`server.js` file, and removing the `server` & `serverBuildPath` options from your `remix.config.js`. | ||
|
||
Due to the removal of this adapter, we also removed our [Vercel template][vercel-template] in favor of the | ||
[official Vercel template][official-vercel-template]. | ||
|
||
[vercel-template]: https://github.com/remix-run/remix/tree/main/templates/vercel | ||
[official-vercel-template]: https://github.com/vercel/vercel/tree/main/examples/remix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@remix-run/react": patch | ||
--- | ||
|
||
Use unique key for `script:ld+json` meta descriptors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
"@remix-run/netlify": major | ||
--- | ||
|
||
The `@remix-run/netlify` runtime adapter has removed in favor of [`@netlify/remix-adapter`][official-netlify-adapter] | ||
& [`@netlify/remix-edge-adapter`][official-netlify-edge-adapter]. Please update your code by changing all | ||
`@remix-run/netlify` imports to `@netlify/remix-adapter`. | ||
Keep in mind that `@netlify/remix-adapter` requires `@netlify/functions@^1.0.0`, which is a breaking change compared | ||
to the previous supported `@netlify/functions` versions in `@remix-run/netlify`. | ||
|
||
Due to the removal of this adapter, we also removed our [Netlify template][netlify-template] in favor of the | ||
[official Netlify template][official-netlify-template]. | ||
|
||
[official-netlify-adapter]: https://github.com/netlify/remix-compute/tree/main/packages/remix-adapter | ||
[official-netlify-edge-adapter]: https://github.com/netlify/remix-compute/tree/main/packages/remix-edge-adapter | ||
[netlify-template]: https://github.com/remix-run/remix/tree/main/templates/netlify | ||
[official-netlify-template]: https://github.com/netlify/remix-template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@remix-run/server-runtime": patch | ||
--- | ||
|
||
correctly infer deferred types for top-level promises |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: ⚙️ Deduplicate yarn.lock | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths: | ||
- ./yarn.lock | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
format: | ||
if: github.repository == 'remix-run/remix' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
|
||
- name: ️️⚙️ Dedupe yarn.lock | ||
run: npx yarn-deduplicate && rm -rf ./node_modules && yarn | ||
|
||
- name: 💪 Commit | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git add . | ||
if [ -z "$(git status --porcelain)" ]; then | ||
echo "💿 no deduplication needed" | ||
exit 0 | ||
fi | ||
git commit -m "chore: deduplicate `yarn.lock`" | ||
git push | ||
echo "💿 https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,6 @@ on: | |
required: true | ||
TEST_FLY_TOKEN: | ||
required: true | ||
TEST_NETLIFY_TOKEN: | ||
required: true | ||
TEST_VERCEL_TOKEN: | ||
required: true | ||
TEST_VERCEL_USER_ID: | ||
required: true | ||
|
||
jobs: | ||
arc_deploy: | ||
|
@@ -222,74 +216,3 @@ jobs: | |
working-directory: ./scripts/deployment-test | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.TEST_FLY_TOKEN }} | ||
|
||
netlify_deploy: | ||
name: "Netlify Deploy" | ||
if: github.repository == 'remix-run/remix' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: npm | ||
cache-dependency-path: ./scripts/deployment-test/package.json # no lockfile, key caching off package.json | ||
|
||
# some deployment targets require the latest version of npm | ||
# TODO: remove this eventually when the default version we get | ||
# is "latest" enough. | ||
- name: 📦 Install latest version of npm | ||
run: npm install -g npm@latest | ||
working-directory: ./scripts/deployment-test | ||
|
||
- name: 📥 Install deployment-test deps | ||
run: npm install | ||
working-directory: ./scripts/deployment-test | ||
|
||
- name: 🚀 Deploy to Netlify | ||
run: node ./netlify.mjs | ||
working-directory: ./scripts/deployment-test | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.TEST_NETLIFY_TOKEN }} | ||
|
||
vercel_deploy: | ||
name: "Vercel Deploy" | ||
if: github.repository == 'remix-run/remix' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: npm | ||
cache-dependency-path: ./scripts/deployment-test/package.json # no lockfile, key caching off package.json | ||
|
||
# some deployment targets require the latest version of npm | ||
# TODO: remove this eventually when the default version we get | ||
# is "latest" enough. | ||
- name: 📦 Install latest version of npm | ||
run: npm install -g npm@latest | ||
working-directory: ./scripts/deployment-test | ||
|
||
- name: 📥 Install deployment-test deps | ||
run: npm install | ||
working-directory: ./scripts/deployment-test | ||
|
||
- name: 🚀 Deploy to Vercel | ||
run: node ./vercel.mjs | ||
working-directory: ./scripts/deployment-test | ||
env: | ||
VERCEL_TOKEN: ${{ secrets.TEST_VERCEL_TOKEN }} | ||
VERCEL_ORG_ID: ${{ secrets.TEST_VERCEL_USER_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -533,6 +533,7 @@ | |
- vorcigernix | ||
- wangbinyq | ||
- weavdale | ||
- wilcoschoneveld | ||
- willhack | ||
- willin | ||
- wizardlyhel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.