diff --git a/package-lock.json b/package-lock.json index 33809e89..6fb51eed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,9 +8,9 @@ "dependencies": { "@docsearch/css": "^3.6.0", "@docsearch/react": "^3.6.0", - "@remix-run/node": "2.12.1", - "@remix-run/react": "2.12.1", - "@remix-run/serve": "2.12.1", + "@remix-run/node": "2.13.0-pre.0", + "@remix-run/react": "2.13.0-pre.0", + "@remix-run/serve": "2.13.0-pre.0", "bcryptjs": "^2.4.3", "cheerio": "^1.0.0-rc.12", "classnames": "^2.3.2", @@ -45,8 +45,8 @@ "unist-util-visit": "^5.0.0" }, "devDependencies": { - "@remix-run/dev": "2.12.1", - "@remix-run/eslint-config": "2.12.1", + "@remix-run/dev": "2.13.0-pre.0", + "@remix-run/eslint-config": "2.13.0-pre.0", "@testing-library/jest-dom": "^5.16.5", "@types/bcryptjs": "^2.4.2", "@types/eslint": "^8.56.6", @@ -2569,9 +2569,9 @@ } }, "node_modules/@remix-run/dev": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.12.1.tgz", - "integrity": "sha512-XjvpQZDvPL5L2NPUL9suwn0eo/WCHSewivpEEm2G1Ke06xL7LenIc8HzwkgsJqDrfvxePAFPj+RCcrygQvtMzA==", + "version": "2.13.0-pre.0", + "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.13.0-pre.0.tgz", + "integrity": "sha512-vTV5wbuA3SnPn2lq/Kk1yYNTyYHhRekcaqt40qcLrpQRUYOZjHn9wbf6Q4z/zsaBCgaH9DxTrgb6TH/tqTdDow==", "dev": true, "license": "MIT", "dependencies": { @@ -2585,9 +2585,9 @@ "@babel/types": "^7.22.5", "@mdx-js/mdx": "^2.3.0", "@npmcli/package-json": "^4.0.1", - "@remix-run/node": "2.12.1", - "@remix-run/router": "1.19.2", - "@remix-run/server-runtime": "2.12.1", + "@remix-run/node": "2.13.0-pre.0", + "@remix-run/router": "1.20.0-pre.0", + "@remix-run/server-runtime": "2.13.0-pre.0", "@types/mdx": "^2.0.5", "@vanilla-extract/integration": "^6.2.0", "arg": "^5.0.1", @@ -2601,7 +2601,7 @@ "esbuild-plugins-node-modules-polyfill": "^1.6.0", "execa": "5.1.1", "exit-hook": "2.2.1", - "express": "^4.19.2", + "express": "^4.20.0", "fs-extra": "^10.0.0", "get-port": "^5.1.1", "gunzip-maybe": "^1.4.2", @@ -2627,7 +2627,7 @@ "set-cookie-parser": "^2.6.0", "tar-fs": "^2.1.1", "tsconfig-paths": "^4.0.0", - "ws": "^7.4.5" + "ws": "^7.5.10" }, "bin": { "remix": "dist/cli.js" @@ -2636,8 +2636,8 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@remix-run/react": "^2.12.1", - "@remix-run/serve": "^2.12.1", + "@remix-run/react": "^2.13.0-pre.0", + "@remix-run/serve": "^2.13.0-pre.0", "typescript": "^5.1.0", "vite": "^5.1.0", "wrangler": "^3.28.2" @@ -3070,9 +3070,9 @@ } }, "node_modules/@remix-run/eslint-config": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/@remix-run/eslint-config/-/eslint-config-2.12.1.tgz", - "integrity": "sha512-R/1zoLdI7ld8J2+LmFbb0BQAkcdjPYHX8wO7b3zEmoLDBdv2B6nHPBDigIHHzP8XROIlUaZJ5/cpqX8Y9U2O+Q==", + "version": "2.13.0-pre.0", + "resolved": "https://registry.npmjs.org/@remix-run/eslint-config/-/eslint-config-2.13.0-pre.0.tgz", + "integrity": "sha512-aTHUREIfniJtTw9N0x0qTqcnycfEESPjeSuN3YOuxd3BmmGfykqtVlUDA7kCkO30sujYrwp5tCRJF9PN1idraw==", "dev": true, "license": "MIT", "dependencies": { @@ -3108,18 +3108,18 @@ } }, "node_modules/@remix-run/express": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.12.1.tgz", - "integrity": "sha512-CW5coZXxk8251Tr0Fh9jmhda5Xt/BWfnUyD7jxth30irpWAEQcsaBu4pSDKuRvnJ8j2o7087EBnUn7oCB4ofNg==", + "version": "2.13.0-pre.0", + "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.13.0-pre.0.tgz", + "integrity": "sha512-EL1HPLptyDRBxZ/MWdWykiW8vd/3ZkDB9iGTyJpja8adOHGRT7ziBkkgCJ+BgL6V4Wy6TqjsLuMkCLtg28JlcA==", "license": "MIT", "dependencies": { - "@remix-run/node": "2.12.1" + "@remix-run/node": "2.13.0-pre.0" }, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "express": "^4.19.2", + "express": "^4.20.0", "typescript": "^5.1.0" }, "peerDependenciesMeta": { @@ -3129,12 +3129,12 @@ } }, "node_modules/@remix-run/node": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.12.1.tgz", - "integrity": "sha512-d+IHvEEU3qziporgpEyKFvKdmNaDu+a/9pIxBkNKVWdKx2JR0VRFIaUxxpxISWtkJcoNuERhW2xYa6YvtFp4ig==", + "version": "2.13.0-pre.0", + "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.13.0-pre.0.tgz", + "integrity": "sha512-XsbVelyYUi66jUHmTpNAUSkQ21xYrRDaGBDtmtGv2HYrVNVtoVayBtHAu2A8jzj9FqfNubB/HFv6H1lDQEQJag==", "license": "MIT", "dependencies": { - "@remix-run/server-runtime": "2.12.1", + "@remix-run/server-runtime": "2.13.0-pre.0", "@remix-run/web-fetch": "^4.4.2", "@web3-storage/multipart-parser": "^1.0.0", "cookie-signature": "^1.1.0", @@ -3155,15 +3155,15 @@ } }, "node_modules/@remix-run/react": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.12.1.tgz", - "integrity": "sha512-+AFR6oCcAndlUZvr42dNrY2zprhf5Yo5Wl7TBocO3YPmwLkdrzJz+e8Sezk25qgHBB9cCTigt+yyliXmsZ1mpg==", + "version": "2.13.0-pre.0", + "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.13.0-pre.0.tgz", + "integrity": "sha512-UzxSQm7woFsh9U7ShnIeErFN8sYgH/12kXszIkJrixDdmnrw5g05ZQWupP0gnbk+nyJIXcPJZgycnadgvKSHKQ==", "license": "MIT", "dependencies": { - "@remix-run/router": "1.19.2", - "@remix-run/server-runtime": "2.12.1", - "react-router": "6.26.2", - "react-router-dom": "6.26.2", + "@remix-run/router": "1.20.0-pre.0", + "@remix-run/server-runtime": "2.13.0-pre.0", + "react-router": "6.27.0-pre.0", + "react-router-dom": "6.27.0-pre.0", "turbo-stream": "2.4.0" }, "engines": { @@ -3181,25 +3181,25 @@ } }, "node_modules/@remix-run/router": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.19.2.tgz", - "integrity": "sha512-baiMx18+IMuD1yyvOGaHM9QrVUPGGG0jC+z+IPHnRJWUAUvaKuWKyE8gjDj2rzv3sz9zOGoRSPgeBVHRhZnBlA==", + "version": "1.20.0-pre.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.20.0-pre.0.tgz", + "integrity": "sha512-xFJySbWOaxjYP8QJy9f1TdW98H+tT8ykvuJN8Ew1J1En4v77ega3FMbFD2M8sXkCq43PKuSBPc8oZWDub6IQhA==", "license": "MIT", "engines": { "node": ">=14.0.0" } }, "node_modules/@remix-run/serve": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.12.1.tgz", - "integrity": "sha512-J9BL5t2Alz45G/17vjD7YRuiRM+V4rJi63Kj+bmewuKWNXDEyij2LqgZJpkoHpkNsQFGiaBMNGc8bPd8RRmrxA==", + "version": "2.13.0-pre.0", + "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.13.0-pre.0.tgz", + "integrity": "sha512-e4Lui0ZJmT06NR/PvMvbtGQpQthPA4qZkdCkdO/A42RoMSiq9Omfc3F+j8bSpespC8cDreHZfBVU6UMPb5wYYg==", "license": "MIT", "dependencies": { - "@remix-run/express": "2.12.1", - "@remix-run/node": "2.12.1", + "@remix-run/express": "2.13.0-pre.0", + "@remix-run/node": "2.13.0-pre.0", "chokidar": "^3.5.3", "compression": "^1.7.4", - "express": "^4.19.2", + "express": "^4.20.0", "get-port": "5.1.1", "morgan": "^1.10.0", "source-map-support": "^0.5.21" @@ -3212,12 +3212,12 @@ } }, "node_modules/@remix-run/server-runtime": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.12.1.tgz", - "integrity": "sha512-iuj9ju34f0LztPpd5dVuTXgt4x/MJeRsBiLuEx02nDSMGoNCAIx2LdeNYvE+XXdsf1Ht2NMlpRU+HBPCz3QLZg==", + "version": "2.13.0-pre.0", + "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.13.0-pre.0.tgz", + "integrity": "sha512-m3jQo+Ea9HqLIaj/WtYb2GqCTT8cwcZAyOX2C+yK/VsZrbAoKqRI+6+M+H8cEafpVg5VyFez1BAcG2cUjMMntA==", "license": "MIT", "dependencies": { - "@remix-run/router": "1.19.2", + "@remix-run/router": "1.20.0-pre.0", "@types/cookie": "^0.6.0", "@web3-storage/multipart-parser": "^1.0.0", "cookie": "^0.6.0", @@ -8582,9 +8582,9 @@ } }, "node_modules/express": { - "version": "4.21.0", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.0.tgz", - "integrity": "sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==", + "version": "4.21.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", + "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", "license": "MIT", "dependencies": { "accepts": "~1.3.8", @@ -8592,7 +8592,7 @@ "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", - "cookie": "0.6.0", + "cookie": "0.7.1", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", @@ -8623,6 +8623,15 @@ "node": ">= 0.10.0" } }, + "node_modules/express/node_modules/cookie": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/express/node_modules/cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", @@ -18563,12 +18572,12 @@ } }, "node_modules/react-router": { - "version": "6.26.2", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.26.2.tgz", - "integrity": "sha512-tvN1iuT03kHgOFnLPfLJ8V95eijteveqdOSk+srqfePtQvqCExB8eHOYnlilbOcyJyKnYkr1vJvf7YqotAJu1A==", + "version": "6.27.0-pre.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.27.0-pre.0.tgz", + "integrity": "sha512-hJSLrLWzjsTvPiE91/54bRJ8gVzQpIT/yb8MBQWvmsd+5fFaemYr6I/6pCdAw/jpOHg+948WDyCgsxXa0XExRQ==", "license": "MIT", "dependencies": { - "@remix-run/router": "1.19.2" + "@remix-run/router": "1.20.0-pre.0" }, "engines": { "node": ">=14.0.0" @@ -18578,13 +18587,13 @@ } }, "node_modules/react-router-dom": { - "version": "6.26.2", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.26.2.tgz", - "integrity": "sha512-z7YkaEW0Dy35T3/QKPYB1LjMK2R1fxnHO8kWpUMTBdfVzZrWOiY9a7CtN8HqdWtDUWd5FY6Dl8HFsqVwH4uOtQ==", + "version": "6.27.0-pre.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.27.0-pre.0.tgz", + "integrity": "sha512-z8peFQxpWiqTBh18eWWBXiMMxWKJcqYSpHiP6s35zM7eh8s5TWKdhWsPSP3xVhHMIM6oYHVJCEawGsReFaI4PQ==", "license": "MIT", "dependencies": { - "@remix-run/router": "1.19.2", - "react-router": "6.26.2" + "@remix-run/router": "1.20.0-pre.0", + "react-router": "6.27.0-pre.0" }, "engines": { "node": ">=14.0.0" diff --git a/package.json b/package.json index 4330f153..6041e5ad 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "lint:fix": "npm run lint -- --fix", "start": "remix-serve ./build/server/index.js", "test": "vitest", - "typecheck": "tsc -b", + "typecheck": "tsc", "push:stage": "git tag -f stage && git push origin stage -f" }, "prettier": {}, @@ -22,9 +22,9 @@ "dependencies": { "@docsearch/css": "^3.6.0", "@docsearch/react": "^3.6.0", - "@remix-run/node": "2.12.1", - "@remix-run/react": "2.12.1", - "@remix-run/serve": "2.12.1", + "@remix-run/node": "2.13.0-pre.0", + "@remix-run/react": "2.13.0-pre.0", + "@remix-run/serve": "2.13.0-pre.0", "bcryptjs": "^2.4.3", "cheerio": "^1.0.0-rc.12", "classnames": "^2.3.2", @@ -59,8 +59,8 @@ "unist-util-visit": "^5.0.0" }, "devDependencies": { - "@remix-run/dev": "2.12.1", - "@remix-run/eslint-config": "2.12.1", + "@remix-run/dev": "2.13.0-pre.0", + "@remix-run/eslint-config": "2.13.0-pre.0", "@testing-library/jest-dom": "^5.16.5", "@types/bcryptjs": "^2.4.2", "@types/eslint": "^8.56.6", diff --git a/vite.config.ts b/vite.config.ts index b56b74b7..65d01b7e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -26,8 +26,9 @@ export default defineConfig({ v3_throwAbortReason: true, v3_fetcherPersist: true, v3_relativeSplatPath: true, - unstable_singleFetch: true, - unstable_lazyRouteDiscovery: true, + v3_singleFetch: true, + v3_lazyRouteDiscovery: true, + unstable_optimizeDeps: true, }, routes(defineRoutes) { return defineRoutes((route) => {