Skip to content

Commit

Permalink
Merge branch 'release-next'
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jun 15, 2023
2 parents e39335b + 7c349aa commit 2932981
Show file tree
Hide file tree
Showing 63 changed files with 587 additions and 237 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@
- luk-str
- lukahartwig
- lukasgerm
- LukeAskew
- lukeshiru
- m0nica
- m5r
Expand Down
7 changes: 7 additions & 0 deletions integration/bug-report-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ let appFixture: AppFixture;
// ```
////////////////////////////////////////////////////////////////////////////////

test.beforeEach(async ({ context }) => {
await context.route(/_data/, async (route) => {
await new Promise((resolve) => setTimeout(resolve, 50));
route.continue();
});
});

test.beforeAll(async () => {
fixture = await createFixture({
config: {
Expand Down
7 changes: 7 additions & 0 deletions integration/catch-boundary-data-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ let HAS_BOUNDARY_NESTED_LOADER = "/yes/loader-self-boundary" as const;
let ROOT_DATA = "root data";
let LAYOUT_DATA = "root data";

test.beforeEach(async ({ context }) => {
await context.route(/_data/, async (route) => {
await new Promise((resolve) => setTimeout(resolve, 50));
route.continue();
});
});

test.beforeAll(async () => {
fixture = await createFixture({
config: {
Expand Down
7 changes: 7 additions & 0 deletions integration/catch-boundary-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ test.describe("CatchBoundary", () => {

let NOT_FOUND_HREF = "/not/found";

test.beforeEach(async ({ context }) => {
await context.route(/_data/, async (route) => {
await new Promise((resolve) => setTimeout(resolve, 50));
route.continue();
});
});

test.beforeAll(async () => {
fixture = await createFixture({
config: {
Expand Down
7 changes: 7 additions & 0 deletions integration/defer-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ declare global {
};
}

test.beforeEach(async ({ context }) => {
await context.route(/_data/, async (route) => {
await new Promise((resolve) => setTimeout(resolve, 50));
route.continue();
});
});

test.describe("non-aborted", () => {
let fixture: Fixture;
let appFixture: AppFixture;
Expand Down
7 changes: 7 additions & 0 deletions integration/error-boundary-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ test.describe("ErrorBoundary", () => {
// packages/remix-react/errorBoundaries.tsx
let INTERNAL_ERROR_BOUNDARY_HEADING = "Application Error";

test.beforeEach(async ({ context }) => {
await context.route(/_data/, async (route) => {
await new Promise((resolve) => setTimeout(resolve, 50));
route.continue();
});
});

test.beforeAll(async () => {
_consoleError = console.error;
console.error = () => {};
Expand Down
7 changes: 7 additions & 0 deletions integration/fetcher-state-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ test.describe("fetcher states", () => {
let fixture: Fixture;
let appFixture: AppFixture;

test.beforeEach(async ({ context }) => {
await context.route(/_data/, async (route) => {
await new Promise((resolve) => setTimeout(resolve, 50));
route.continue();
});
});

test.beforeAll(async () => {
fixture = await createFixture({
config: {
Expand Down
7 changes: 7 additions & 0 deletions integration/form-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ test.describe("Forms", () => {
let SPLAT_ROUTE_PARENT_ACTION = "splat-route-parent";
let SPLAT_ROUTE_TOO_MANY_DOTS_ACTION = "splat-route-too-many-dots";

test.beforeEach(async ({ context }) => {
await context.route(/_data/, async (route) => {
await new Promise((resolve) => setTimeout(resolve, 50));
route.continue();
});
});

test.beforeAll(async () => {
fixture = await createFixture({
config: {
Expand Down
10 changes: 5 additions & 5 deletions integration/hmr-log-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ test("HMR", async ({ page, browserName }) => {
if (dev.exitCode) throw Error("Dev server exited early");
return /✅ app ready: /.test(devStdout());
},
{ timeoutMs: 10_000 }
{ timeoutMs: HMR_TIMEOUT_MS }
);

await page.goto(`http://localhost:${appPort}`, {
Expand Down Expand Up @@ -369,7 +369,7 @@ test("HMR", async ({ page, browserName }) => {
}
`;
fs.writeFileSync(indexPath, withLoader1);
await expect.poll(() => dataRequests).toBe(1);
await expect.poll(() => dataRequests, { timeout: HMR_TIMEOUT_MS }).toBe(1);
await page.waitForLoadState("networkidle");

await page.getByText("Hello, world").waitFor({ timeout: HMR_TIMEOUT_MS });
Expand Down Expand Up @@ -399,7 +399,7 @@ test("HMR", async ({ page, browserName }) => {
}
`;
fs.writeFileSync(indexPath, withLoader2);
await expect.poll(() => dataRequests).toBe(2);
await expect.poll(() => dataRequests, { timeout: HMR_TIMEOUT_MS }).toBe(2);
await page.waitForLoadState("networkidle");

await page.getByText("Hello, planet").waitFor({ timeout: HMR_TIMEOUT_MS });
Expand Down Expand Up @@ -465,11 +465,11 @@ whatsup
<Component/>
`;
fs.writeFileSync(mdxPath, mdx);
await expect.poll(() => dataRequests).toBe(4);
await expect.poll(() => dataRequests, { timeout: HMR_TIMEOUT_MS }).toBe(4);
await page.waitForSelector(`#hot`);

fs.writeFileSync(mdxPath, originalMdx);
await expect.poll(() => dataRequests).toBe(5);
await expect.poll(() => dataRequests, { timeout: HMR_TIMEOUT_MS }).toBe(5);
await page.waitForSelector(`#crazy`);

// dev server doesn't crash when rebuild fails
Expand Down
10 changes: 5 additions & 5 deletions integration/hmr-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ test("HMR", async ({ page, browserName }) => {
if (dev.exitCode) throw Error("Dev server exited early");
return /✅ app ready: /.test(devStdout());
},
{ timeoutMs: 10_000 }
{ timeoutMs: HMR_TIMEOUT_MS }
);

await page.goto(`http://localhost:${appPort}`, {
Expand Down Expand Up @@ -403,7 +403,7 @@ test("HMR", async ({ page, browserName }) => {
}
`;
fs.writeFileSync(indexPath, withLoader1);
await expect.poll(() => dataRequests).toBe(1);
await expect.poll(() => dataRequests, { timeout: HMR_TIMEOUT_MS }).toBe(1);
await page.waitForLoadState("networkidle");

await page.getByText("Hello, world").waitFor({ timeout: HMR_TIMEOUT_MS });
Expand Down Expand Up @@ -432,7 +432,7 @@ test("HMR", async ({ page, browserName }) => {
`;
fs.writeFileSync(indexPath, withLoader2);

await expect.poll(() => dataRequests).toBe(2);
await expect.poll(() => dataRequests, { timeout: HMR_TIMEOUT_MS }).toBe(2);

await page.waitForLoadState("networkidle");

Expand Down Expand Up @@ -499,11 +499,11 @@ whatsup
<Component/>
`;
fs.writeFileSync(mdxPath, mdx);
await expect.poll(() => dataRequests).toBe(4);
await expect.poll(() => dataRequests, { timeout: HMR_TIMEOUT_MS }).toBe(4);
await page.waitForSelector(`#hot`);

fs.writeFileSync(mdxPath, originalMdx);
await expect.poll(() => dataRequests).toBe(5);
await expect.poll(() => dataRequests, { timeout: HMR_TIMEOUT_MS }).toBe(5);
await page.waitForSelector(`#crazy`);

// dev server doesn't crash when rebuild fails
Expand Down
7 changes: 7 additions & 0 deletions integration/navigation-state-v2-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ test.describe("navigation states", () => {
let fixture: Fixture;
let appFixture: AppFixture;

test.beforeEach(async ({ context }) => {
await context.route(/_data/, async (route) => {
await new Promise((resolve) => setTimeout(resolve, 50));
route.continue();
});
});

test.beforeAll(async () => {
fixture = await createFixture({
config: {
Expand Down
7 changes: 7 additions & 0 deletions integration/transition-state-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ test.describe("rendering", () => {
let fixture: Fixture;
let appFixture: AppFixture;

test.beforeEach(async ({ context }) => {
await context.route(/_data/, async (route) => {
await new Promise((resolve) => setTimeout(resolve, 50));
route.continue();
});
});

test.beforeAll(async () => {
fixture = await createFixture({
config: {
Expand Down
7 changes: 7 additions & 0 deletions packages/create-remix/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `create-remix`

## 1.17.1

### Patch Changes

- Updated dependencies:
- `@remix-run/dev@1.17.1`

## 1.17.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/create-remix/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-remix",
"version": "1.17.0",
"version": "1.17.1",
"description": "Create a new Remix app",
"homepage": "https://remix.run",
"bugs": {
Expand All @@ -17,7 +17,7 @@
"create-remix": "dist/cli.js"
},
"dependencies": {
"@remix-run/dev": "1.17.0"
"@remix-run/dev": "1.17.1"
},
"engines": {
"node": ">=14"
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-architect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/architect`

## 1.17.1

### Patch Changes

- Updated dependencies:
- `@remix-run/node@1.17.1`

## 1.17.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-architect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/architect",
"version": "1.17.0",
"version": "1.17.1",
"description": "Architect server request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -15,7 +15,7 @@
"typings": "dist/index.d.ts",
"dependencies": {
"@architect/functions": "^5.2.0",
"@remix-run/node": "1.17.0"
"@remix-run/node": "1.17.1"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.82",
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-cloudflare-pages/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/cloudflare-pages`

## 1.17.1

### Patch Changes

- Updated dependencies:
- `@remix-run/cloudflare@1.17.1`

## 1.17.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-cloudflare-pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/cloudflare-pages",
"version": "1.17.0",
"version": "1.17.1",
"description": "Cloudflare Pages request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -15,7 +15,7 @@
"typings": "dist/index.d.ts",
"module": "dist/esm/index.js",
"dependencies": {
"@remix-run/cloudflare": "1.17.0"
"@remix-run/cloudflare": "1.17.1"
},
"devDependencies": {
"@cloudflare/workers-types": "^3.4.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-cloudflare-workers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/cloudflare-workers`

## 1.17.1

### Patch Changes

- Updated dependencies:
- `@remix-run/cloudflare@1.17.1`

## 1.17.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/cloudflare-workers",
"version": "1.17.0",
"version": "1.17.1",
"description": "Cloudflare worker request handler for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -16,7 +16,7 @@
"module": "dist/esm/index.js",
"dependencies": {
"@cloudflare/kv-asset-handler": "^0.1.3",
"@remix-run/cloudflare": "1.17.0"
"@remix-run/cloudflare": "1.17.1"
},
"devDependencies": {
"@cloudflare/workers-types": "^3.4.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@remix-run/cloudflare`

## 1.17.1

### Patch Changes

- Updated dependencies:
- `@remix-run/server-runtime@1.17.1`

## 1.17.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/cloudflare",
"version": "1.17.0",
"version": "1.17.1",
"description": "Cloudflare platform abstractions for Remix",
"bugs": {
"url": "https://github.com/remix-run/remix/issues"
Expand All @@ -15,7 +15,7 @@
"typings": "dist/index.d.ts",
"dependencies": {
"@cloudflare/kv-asset-handler": "^0.1.3",
"@remix-run/server-runtime": "1.17.0"
"@remix-run/server-runtime": "1.17.1"
},
"devDependencies": {
"@cloudflare/workers-types": "^3.4.0"
Expand Down
6 changes: 6 additions & 0 deletions packages/remix-css-bundle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @remix-run/css-bundle

## 1.17.1

### Patch Changes

- Lazily generate CSS bundle when import of `@remix-run/css-bundle` is detected ([#6535](https://github.com/remix-run/remix/pull/6535))

## 1.17.0

### Patch Changes
Expand Down
13 changes: 0 additions & 13 deletions packages/remix-css-bundle/browser.ts

This file was deleted.

0 comments on commit 2932981

Please sign in to comment.