Skip to content

Commit

Permalink
Merge branch 'dev' into chance/scroll-restoration-props
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Nov 30, 2022
2 parents 54bd4ff + 39e7101 commit e07b49b
Show file tree
Hide file tree
Showing 1,794 changed files with 22,192 additions and 47,030 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
5 changes: 5 additions & 0 deletions .changeset/clean-clocks-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/deno": patch
---

Fix types for request handler context
30 changes: 30 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
"changelog": ["@remix-run/changelog-github", { "repo": "remix-run/remix" }],
"commit": false,
"fixed": [
[
"create-remix",
"remix",
"@remix-run/architect",
"@remix-run/cloudflare",
"@remix-run/cloudflare-pages",
"@remix-run/cloudflare-workers",
"@remix-run/deno",
"@remix-run/dev",
"@remix-run/eslint-config",
"@remix-run/express",
"@remix-run/netlify",
"@remix-run/node",
"@remix-run/react",
"@remix-run/serve",
"@remix-run/server-runtime",
"@remix-run/vercel"
]
],
"linked": [],
"access": "public",
"baseBranch": "dev",
"updateInternalDependencies": "patch",
"ignore": []
}
6 changes: 6 additions & 0 deletions .changeset/weak-beds-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"remix": patch
"@remix-run/dev": patch
---

fixes a bug in ts -> js conversion on windows by using a relative unix style path as fast-glob uses unix style paths
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
.tmp
/playground
**/__tests__/fixtures
**/__tests__/**/*/fixtures

# deno
# Deno
integration/helpers/deno-template
packages/remix-deno
templates/deno
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
const OFF = 0;
const WARN = 1;

/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: [
require.resolve("./packages/remix-eslint-config/internal.js"),
"plugin:markdown/recommended",
],
plugins: ["markdown"],
overrides: [
{
files: ["rollup.config.js"],
rules: {
"import/no-extraneous-dependencies": OFF,
},
},
{
files: ["templates/**/*.*"],
rules: {
"prefer-let/prefer-let": OFF,
"prefer-const": WARN,
},
},
],
};
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
145 changes: 107 additions & 38 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
name: 🚀 Deployment Tests

on:
repository_dispatch:
types: [release]
workflow_call:
secrets:
TEST_AWS_ACCESS_KEY_ID:
required: true
TEST_AWS_SECRET_ACCESS_KEY:
required: true
TEST_CF_ACCOUNT_ID:
required: true
TEST_CF_GLOBAL_API_KEY:
required: true
TEST_CF_EMAIL:
required: true
TEST_CF_PAGES_API_TOKEN:
required: true
TEST_CF_API_TOKEN:
required: true
TEST_DENO_DEPLOY_TOKEN:
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:
Expand All @@ -11,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand All @@ -20,6 +44,8 @@ jobs:
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
Expand All @@ -29,10 +55,8 @@ jobs:
working-directory: ./scripts/deployment-test

- name: 📥 Install deployment-test deps
uses: bahmutov/npm-install@v1
with:
working-directory: ./scripts/deployment-test
useLockFile: false
run: npm install
working-directory: ./scripts/deployment-test

- name: 🚀 Deploy to Arc
run: node ./arc.mjs
Expand All @@ -48,7 +72,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand All @@ -57,6 +81,8 @@ jobs:
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
Expand All @@ -66,27 +92,25 @@ jobs:
working-directory: ./scripts/deployment-test

- name: 📥 Install deployment-test deps
uses: bahmutov/npm-install@v1
with:
working-directory: ./scripts/deployment-test
useLockFile: false
run: npm install
working-directory: ./scripts/deployment-test

- name: 🚀 Deploy to Cloudflare Pages
run: node ./cf-pages.mjs
working-directory: ./scripts/deployment-test
env:
CF_ACCOUNT_ID: ${{ secrets.TEST_CF_ACCOUNT_ID }}
CF_GLOBAL_API_KEY: ${{ secrets.TEST_CF_GLOBAL_API_KEY }}
CF_EMAIL: ${{ secrets.TEST_CF_EMAIL }}
GITHUB_TOKEN: ${{ secrets.TEST_CF_GITHUB_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.TEST_CF_ACCOUNT_ID }}
CLOUDFLARE_GLOBAL_API_KEY: ${{ secrets.TEST_CF_GLOBAL_API_KEY }}
CLOUDFLARE_EMAIL: ${{ secrets.TEST_CF_EMAIL }}
CLOUDFLARE_API_TOKEN: ${{ secrets.TEST_CF_PAGES_API_TOKEN }}

cf_workers_deploy:
name: "CF Workers Deploy"
if: github.repository == 'remix-run/remix'
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand All @@ -95,6 +119,8 @@ jobs:
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
Expand All @@ -104,25 +130,68 @@ jobs:
working-directory: ./scripts/deployment-test

- name: 📥 Install deployment-test deps
uses: bahmutov/npm-install@v1
with:
working-directory: ./scripts/deployment-test
useLockFile: false
run: npm install
working-directory: ./scripts/deployment-test

- name: 🚀 Deploy to Cloudflare Workers
run: node ./cf-workers.mjs
working-directory: ./scripts/deployment-test
env:
CF_ACCOUNT_ID: ${{ secrets.TEST_CF_ACCOUNT_ID }}
CF_API_TOKEN: ${{ secrets.TEST_CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.TEST_CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.TEST_CF_API_TOKEN }}
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
CLOUDFLARE_GLOBAL_API_KEY: ${{ secrets.CLOUDFLARE_GLOBAL_API_KEY }}

# "deploy deploy" is not a typo, we are deploying to Deno Deploy
deno_deploy_deploy:
name: "Deno Deploy Deploy"
if: github.repository == 'remix-run/remix'
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0

- 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: 🦕 Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: 🦕 Deno Deploy CLI
run: deno install --allow-read --allow-write --allow-env --allow-net --allow-run --no-check -r -f https://deno.land/x/deploy/deployctl.ts

- name: 🚀 Deploy to Deno Deploy
run: node ./deno-deploy.mjs
working-directory: ./scripts/deployment-test
env:
DENO_DEPLOY_TOKEN: ${{ secrets.TEST_DENO_DEPLOY_TOKEN }}

fly_deploy:
name: "Fly Deploy"
if: github.repository == 'remix-run/remix'
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand All @@ -131,6 +200,8 @@ jobs:
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
Expand All @@ -140,10 +211,8 @@ jobs:
working-directory: ./scripts/deployment-test

- name: 📥 Install deployment-test deps
uses: bahmutov/npm-install@v1
with:
working-directory: ./scripts/deployment-test
useLockFile: false
run: npm install
working-directory: ./scripts/deployment-test

- name: 🎈 Install the Fly CLI
run: curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh
Expand All @@ -160,7 +229,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand All @@ -169,6 +238,8 @@ jobs:
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
Expand All @@ -178,10 +249,8 @@ jobs:
working-directory: ./scripts/deployment-test

- name: 📥 Install deployment-test deps
uses: bahmutov/npm-install@v1
with:
working-directory: ./scripts/deployment-test
useLockFile: false
run: npm install
working-directory: ./scripts/deployment-test

- name: 🚀 Deploy to Netlify
run: node ./netlify.mjs
Expand All @@ -195,7 +264,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
uses: styfle/cancel-workflow-action@0.11.0

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand All @@ -204,6 +273,8 @@ jobs:
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
Expand All @@ -213,10 +284,8 @@ jobs:
working-directory: ./scripts/deployment-test

- name: 📥 Install deployment-test deps
uses: bahmutov/npm-install@v1
with:
working-directory: ./scripts/deployment-test
useLockFile: false
run: npm install
working-directory: ./scripts/deployment-test

- name: 🚀 Deploy to Vercel
run: node ./vercel.mjs
Expand Down

0 comments on commit e07b49b

Please sign in to comment.