From 932fbb987fe2fa7ec0a719e3927bbca2f23d7d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Wed, 27 Mar 2024 18:49:26 +0100 Subject: [PATCH] chore: update dependencies --- app/entry.server.tsx | 2 +- cypress/support/commands.ts | 2 +- mocks/index.js | 7 ++-- package.json | 74 ++++++++++++++++++------------------- remix.init/package.json | 4 +- 5 files changed, 44 insertions(+), 45 deletions(-) diff --git a/app/entry.server.tsx b/app/entry.server.tsx index e099bfa..78d4f1e 100644 --- a/app/entry.server.tsx +++ b/app/entry.server.tsx @@ -9,7 +9,7 @@ import { PassThrough } from "node:stream"; import type { EntryContext } from "@remix-run/node"; import { createReadableStreamFromReadable } from "@remix-run/node"; import { RemixServer } from "@remix-run/react"; -import isbot from "isbot"; +import { isbot } from "isbot"; import { renderToPipeableStream } from "react-dom/server"; const ABORT_DELAY = 5_000; diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 651b4cb..19e15b1 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -32,7 +32,7 @@ declare global { } function login({ - email = faker.internet.email(undefined, undefined, "example.com"), + email = faker.internet.email({ provider: "example.com" }), }: { email?: string; } = {}) { diff --git a/mocks/index.js b/mocks/index.js index b7782ca..2cbbbe7 100644 --- a/mocks/index.js +++ b/mocks/index.js @@ -1,16 +1,15 @@ -import { rest } from "msw"; +import { http, passthrough } from "msw"; import { setupServer } from "msw/node"; // put one-off handlers that don't really need an entire file to themselves here const miscHandlers = [ - rest.post(`${process.env.REMIX_DEV_HTTP_ORIGIN}/ping`, (req) => - req.passthrough(), - ), + http.post(`${process.env.REMIX_DEV_HTTP_ORIGIN}/ping`, () => passthrough()), ]; const server = setupServer(...miscHandlers); server.listen({ onUnhandledRequest: "bypass" }); +console.info("🔶 Mock server running"); process.once("SIGINT", () => server.close()); process.once("SIGTERM", () => server.close()); diff --git a/package.json b/package.json index b0a54cd..32e6c1d 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "/public/build" ], "dependencies": { - "@architect/architect": "^10.14.2", + "@architect/architect": "^10.16.3", "@architect/functions": "^7.0.0", "@paralleldrive/cuid2": "^2.2.2", "@remix-run/architect": "*", @@ -31,55 +31,55 @@ "@remix-run/node": "*", "@remix-run/react": "*", "bcryptjs": "2.4.3", - "isbot": "^3.7.0", + "isbot": "^4.4.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "tiny-invariant": "^1.3.1" + "tiny-invariant": "^1.3.3" }, "devDependencies": { - "@faker-js/faker": "^8.2.0", + "@faker-js/faker": "^8.4.1", "@remix-run/dev": "*", "@testing-library/cypress": "^10.0.1", - "@testing-library/jest-dom": "^6.1.4", - "@types/architect__functions": "^3.13.10", - "@types/bcryptjs": "2.4.5", - "@types/eslint": "^8.44.6", - "@types/node": "^18.18.6", - "@types/react": "^18.2.31", - "@types/react-dom": "^18.2.14", - "@typescript-eslint/eslint-plugin": "^6.8.0", - "@typescript-eslint/parser": "^6.8.0", - "@vitejs/plugin-react": "^4.1.0", - "@vitest/coverage-v8": "^0.34.6", - "autoprefixer": "^10.4.16", + "@testing-library/jest-dom": "^6.4.2", + "@types/architect__functions": "^3.13.11", + "@types/bcryptjs": "2.4.6", + "@types/eslint": "^8.56.6", + "@types/node": "^18.19.26", + "@types/react": "^18.2.73", + "@types/react-dom": "^18.2.22", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", + "@vitejs/plugin-react": "^4.2.1", + "@vitest/coverage-v8": "^1.4.0", + "autoprefixer": "^10.4.19", "cross-env": "^7.0.3", - "cypress": "^13.3.2", - "esbuild": "^0.19.5", - "eslint": "^8.52.0", - "eslint-config-prettier": "^9.0.0", + "cypress": "^13.7.1", + "esbuild": "^0.20.2", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-cypress": "^2.15.1", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-jest": "^27.4.3", - "eslint-plugin-jest-dom": "^5.1.0", - "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-jest": "^27.9.0", + "eslint-plugin-jest-dom": "^5.2.0", + "eslint-plugin-jsx-a11y": "^6.8.0", "eslint-plugin-markdown": "^3.0.1", - "eslint-plugin-react": "^7.33.2", + "eslint-plugin-react": "^7.34.1", "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-testing-library": "^6.1.0", - "happy-dom": "^12.9.1", + "eslint-plugin-testing-library": "^6.2.0", + "happy-dom": "^14.3.9", "mock-aws-s3": "^4.0.2", - "msw": "^1.3.2", + "msw": "^2.2.13", "npm-run-all": "^4.1.5", - "postcss": "^8.4.31", - "prettier": "3.0.3", - "prettier-plugin-tailwindcss": "^0.5.6", - "start-server-and-test": "^2.0.1", - "tailwindcss": "^3.3.3", - "typescript": "^5.2.2", - "vite": "^4.5.0", - "vite-tsconfig-paths": "^4.2.1", - "vitest": "^0.34.6" + "postcss": "^8.4.38", + "prettier": "3.2.5", + "prettier-plugin-tailwindcss": "^0.5.13", + "start-server-and-test": "^2.0.3", + "tailwindcss": "^3.4.2", + "typescript": "^5.4.3", + "vite": "^5.2.6", + "vite-tsconfig-paths": "^4.3.2", + "vitest": "^1.4.0" }, "engines": { "node": ">=18.0.0" diff --git a/remix.init/package.json b/remix.init/package.json index 6c2485c..3f2737b 100644 --- a/remix.init/package.json +++ b/remix.init/package.json @@ -4,9 +4,9 @@ "main": "index.js", "license": "MIT", "dependencies": { - "@architect/utils": "^3.1.9", + "@architect/utils": "^4.0.4", "@npmcli/package-json": "^5.0.0", "inquirer": "^8.2.6", - "semver": "^7.5.4" + "semver": "^7.6.0" } }