From 6e43598ce580a2ce7fed781b0d231bf386fd191c Mon Sep 17 00:00:00 2001 From: Blake Wilson Date: Mon, 13 Nov 2023 08:21:07 -0600 Subject: [PATCH 1/4] Use stable server actions in app router example (#1632) * Remove server actions from experimental next config * Use stable server actions * Use the canary version of react * Remove unneeded line * Remove experimental app router from main build step * Change strict engine * Revert "Remove experimental app router from main build step" This reverts commit 1482c12d6597d55179b0d1f580e25e3e57c6212a. * Revert "Change strict engine" This reverts commit 77da1d408ba65efb125da667c495d69b1281b296. * **BREAKING**: Updated peer dependencies for experimental app router - Bumped next to 14.0.0 - Bumped react to 18.0.0 - Bumped @apollo/experimental-nextjs-app-support to 0.5.0 * Add changesets * Add next as a dev dep to `@faustwp/blocks` * Revert "Add next as a dev dep to `@faustwp/blocks`" This reverts commit ed72104268af4733e2b64b78f598c148a573b598. * Fix changeset * Use overrides for postcss --- .changeset/eighty-gorillas-impress.md | 10 + .changeset/mean-doors-kneel.md | 5 + examples/next/app-router/app/login/action.ts | 14 + examples/next/app-router/app/login/page.tsx | 49 +- examples/next/app-router/next.config.js | 6 +- examples/next/app-router/package.json | 13 +- examples/next/app-router/tsconfig.json | 1 + package-lock.json | 547 +++++++++++++++--- package.json | 3 +- packages/experimental-app-router/package.json | 14 +- 10 files changed, 528 insertions(+), 134 deletions(-) create mode 100644 .changeset/eighty-gorillas-impress.md create mode 100644 .changeset/mean-doors-kneel.md create mode 100644 examples/next/app-router/app/login/action.ts diff --git a/.changeset/eighty-gorillas-impress.md b/.changeset/eighty-gorillas-impress.md new file mode 100644 index 000000000..6eae11d0d --- /dev/null +++ b/.changeset/eighty-gorillas-impress.md @@ -0,0 +1,10 @@ +--- +'@faustwp/experimental-app-router': minor +--- + +**BREAKING**: Updated the following peer dependencies to new required minimums: + +- `@apollo/experimental-nextjs-app-support`: `0.4.1` -> `0.5.0` +- `next`: `12.1.6` -> `14.0.0` +- `react`: `17.0.2` -> `18.0.0` +- `react-dom`: `17.0.2` -> `18.0.0` diff --git a/.changeset/mean-doors-kneel.md b/.changeset/mean-doors-kneel.md new file mode 100644 index 000000000..152cd1a3c --- /dev/null +++ b/.changeset/mean-doors-kneel.md @@ -0,0 +1,5 @@ +--- +'@faustwp/experimental-app-router': minor +--- + +**BREAKING**: This package now requires **Node 18+** diff --git a/examples/next/app-router/app/login/action.ts b/examples/next/app-router/app/login/action.ts new file mode 100644 index 000000000..0ef38972d --- /dev/null +++ b/examples/next/app-router/app/login/action.ts @@ -0,0 +1,14 @@ +'use server'; + +import { onLogin } from '@faustwp/experimental-app-router'; +import { redirect } from 'next/navigation'; + +export async function loginAction(prevData: any, formData: FormData) { + const res = await onLogin(formData); + + if (res.error) { + return res; + } + + redirect('/my-account'); +} diff --git a/examples/next/app-router/app/login/page.tsx b/examples/next/app-router/app/login/page.tsx index f3301be27..945aaeeda 100644 --- a/examples/next/app-router/app/login/page.tsx +++ b/examples/next/app-router/app/login/page.tsx @@ -1,34 +1,25 @@ -import { onLogin } from '@faustwp/experimental-app-router'; -import { redirect } from 'next/navigation'; - -export default async function Page() { - async function loginAction(formData: FormData) { - 'use server'; - - const res = await onLogin(formData); - - if (res.error) { - /** - * @TODO Next.js is still working on ways persisting error messages from - * server actions to the client. - * - * "Displaying loading or error states currently requires using - * Client Components. We are exploring options for server-side functions - * to retrieve these values as we move forward in stability for Server Actions." - * - * @link https://nextjs.org/docs/app/building-your-application/data-fetching/forms-and-mutations#error-handling - */ - console.error(res.error); - } else { - redirect('/my-account'); - } - } +'use client'; + +import { useFormState, useFormStatus } from 'react-dom'; +import { loginAction } from './action'; + +function SubmitButton() { + const status = useFormStatus(); + return ( + + ); +} + +export default function Page() { + const [state, formAction] = useFormState(loginAction, {}); return ( <>

Login

-
+
@@ -39,7 +30,11 @@ export default async function Page() {
- + + + {state.error && ( +

+ )} ); diff --git a/examples/next/app-router/next.config.js b/examples/next/app-router/next.config.js index 6257426db..5e3410933 100644 --- a/examples/next/app-router/next.config.js +++ b/examples/next/app-router/next.config.js @@ -1,8 +1,4 @@ import { withFaust } from '@faustwp/core'; /** @type {import('next').NextConfig} */ -export default withFaust({ - experimental: { - serverActions: true, - }, -}); +export default withFaust(); diff --git a/examples/next/app-router/package.json b/examples/next/app-router/package.json index 8440ebd66..fb5a60d71 100644 --- a/examples/next/app-router/package.json +++ b/examples/next/app-router/package.json @@ -11,22 +11,23 @@ }, "dependencies": { "@apollo/client": "^3.8.0", - "@apollo/experimental-nextjs-app-support": "^0.4.1", + "@apollo/experimental-nextjs-app-support": "^0.5.1", "@faustwp/cli": "1.2.0", "@faustwp/core": "1.2.0", "@faustwp/experimental-app-router": "^0.1.0", "graphql": "^16.7.1", - "next": "^13.4.20-canary.18", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "next": "^14.0.1", + "react": "^18.3.0-canary-ce2bc58a9-20231102", + "react-dom": "^18.3.0-canary-ce2bc58a9-20231102" }, "engines": { - "node": ">=16", + "node": ">=18", "npm": ">=8" }, "devDependencies": { "@types/node": "^20.6.3", - "@types/react": "^18.2.22", + "@types/react": "^18.2.36", + "@types/react-dom": "^18.2.14", "typescript": "^5.2.2" } } diff --git a/examples/next/app-router/tsconfig.json b/examples/next/app-router/tsconfig.json index a2d69dce4..1dfdc3db7 100644 --- a/examples/next/app-router/tsconfig.json +++ b/examples/next/app-router/tsconfig.json @@ -5,6 +5,7 @@ "dom.iterable", "esnext" ], + "types": ["react-dom/experimental"], "allowJs": true, "skipLibCheck": true, "strict": false, diff --git a/package-lock.json b/package-lock.json index 198667bb1..c5934ec24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,48 +50,53 @@ "name": "@faustwp/app-router-example", "dependencies": { "@apollo/client": "^3.8.0", - "@apollo/experimental-nextjs-app-support": "^0.4.1", + "@apollo/experimental-nextjs-app-support": "^0.5.1", "@faustwp/cli": "1.2.0", "@faustwp/core": "1.2.0", "@faustwp/experimental-app-router": "^0.1.0", "graphql": "^16.7.1", - "next": "^13.4.20-canary.18", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "next": "^14.0.1", + "react": "^18.3.0-canary-ce2bc58a9-20231102", + "react-dom": "^18.3.0-canary-ce2bc58a9-20231102" }, "devDependencies": { "@types/node": "^20.6.3", - "@types/react": "^18.2.22", + "@types/react": "^18.2.36", + "@types/react-dom": "^18.2.14", "typescript": "^5.2.2" }, "engines": { - "node": ">=16", + "node": ">=18", "npm": ">=8" } }, "examples/next/app-router/node_modules/@apollo/experimental-nextjs-app-support": { - "version": "0.4.1", - "license": "MIT", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@apollo/experimental-nextjs-app-support/-/experimental-nextjs-app-support-0.5.1.tgz", + "integrity": "sha512-gQiFY/zntVAhPTTFfFFOogp4TKVMpbPsydv3gyMR5E0IK6WgtITTcl/uuWlnfL92+enk5mfrtoQ+0p+t2a9u2A==", "dependencies": { + "server-only": "^0.0.1", "superjson": "^1.12.2", "ts-invariant": "^0.10.3" }, "peerDependencies": { - "@apollo/client": ">=3.8.0-rc || ^3.8.0", - "next": "^13.4.1", + "@apollo/client": ">=3.8.0-rc || ^3.8.0 || >=3.9.0-alpha || >=3.9.0-beta || >=3.9.0-rc", + "next": "^13.4.1 || ^14.0.0", "react": "^18" } }, "examples/next/app-router/node_modules/@next/env": { - "version": "13.5.4", - "license": "MIT" + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.0.1.tgz", + "integrity": "sha512-Ms8ZswqY65/YfcjrlcIwMPD7Rg/dVjdLapMcSHG26W6O67EJDF435ShW4H4LXi1xKO1oRc97tLXUpx8jpLe86A==" }, "examples/next/app-router/node_modules/@next/swc-darwin-x64": { - "version": "13.5.4", + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.0.1.tgz", + "integrity": "sha512-625Z7bb5AyIzswF9hvfZWa+HTwFZw+Jn3lOBNZB87lUS0iuCYDHqk3ujuHCkiyPtSC0xFBtYDLcrZ11mF/ap3w==", "cpu": [ "x64" ], - "license": "MIT", "optional": true, "os": [ "darwin" @@ -113,20 +118,31 @@ "license": "MIT" }, "examples/next/app-router/node_modules/@types/react": { - "version": "18.2.22", + "version": "18.2.36", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.36.tgz", + "integrity": "sha512-o9XFsHYLLZ4+sb9CWUYwHqFVoG61SesydF353vFMMsQziiyRu8np4n2OYMUSDZ8XuImxDr9c5tR7gidlH29Vnw==", "dev": true, - "license": "MIT", "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", "csstype": "^3.0.2" } }, + "examples/next/app-router/node_modules/@types/react-dom": { + "version": "18.2.14", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.14.tgz", + "integrity": "sha512-V835xgdSVmyQmI1KLV2BEIUgqEuinxp9O4G6g3FqO/SqLac049E53aysv0oEFD2kHfejeKU+ZqL2bcFWj9gLAQ==", + "dev": true, + "dependencies": { + "@types/react": "*" + } + }, "examples/next/app-router/node_modules/next": { - "version": "13.5.4", - "license": "MIT", + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/next/-/next-14.0.1.tgz", + "integrity": "sha512-s4YaLpE4b0gmb3ggtmpmV+wt+lPRuGtANzojMQ2+gmBpgX9w5fTbjsy6dXByBuENsdCX5pukZH/GxdFgO62+pA==", "dependencies": { - "@next/env": "13.5.4", + "@next/env": "14.0.1", "@swc/helpers": "0.5.2", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001406", @@ -138,18 +154,18 @@ "next": "dist/bin/next" }, "engines": { - "node": ">=16.14.0" + "node": ">=18.17.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "13.5.4", - "@next/swc-darwin-x64": "13.5.4", - "@next/swc-linux-arm64-gnu": "13.5.4", - "@next/swc-linux-arm64-musl": "13.5.4", - "@next/swc-linux-x64-gnu": "13.5.4", - "@next/swc-linux-x64-musl": "13.5.4", - "@next/swc-win32-arm64-msvc": "13.5.4", - "@next/swc-win32-ia32-msvc": "13.5.4", - "@next/swc-win32-x64-msvc": "13.5.4" + "@next/swc-darwin-arm64": "14.0.1", + "@next/swc-darwin-x64": "14.0.1", + "@next/swc-linux-arm64-gnu": "14.0.1", + "@next/swc-linux-arm64-musl": "14.0.1", + "@next/swc-linux-x64-gnu": "14.0.1", + "@next/swc-linux-x64-musl": "14.0.1", + "@next/swc-win32-arm64-msvc": "14.0.1", + "@next/swc-win32-ia32-msvc": "14.0.1", + "@next/swc-win32-x64-msvc": "14.0.1" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", @@ -166,9 +182,32 @@ } } }, + "examples/next/app-router/node_modules/next/node_modules/styled-jsx": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.1.tgz", + "integrity": "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==", + "dependencies": { + "client-only": "0.0.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "babel-plugin-macros": { + "optional": true + } + } + }, "examples/next/app-router/node_modules/react": { - "version": "18.2.0", - "license": "MIT", + "version": "18.3.0-canary-ce2bc58a9-20231102", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.0-canary-ce2bc58a9-20231102.tgz", + "integrity": "sha512-TeKwsGoNc6vOZGHLvBtXvR1ZeWqxNy0KcBYt12l+6W1h1u8cD3V+BG0gWKdADw0ZGIJEQDE8g9QII3NcfIrJSQ==", "dependencies": { "loose-envify": "^1.1.0" }, @@ -177,44 +216,25 @@ } }, "examples/next/app-router/node_modules/react-dom": { - "version": "18.2.0", - "license": "MIT", + "version": "18.3.0-canary-ce2bc58a9-20231102", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.0-canary-ce2bc58a9-20231102.tgz", + "integrity": "sha512-HsQFmQ4s8FNNoRIKukNoV78FwqpFdfgqyZj9nBoCEnBsHCieoMqG6d5BbNArlnTePuW7B66XtWxebCcn4qu2EA==", "dependencies": { "loose-envify": "^1.1.0", - "scheduler": "^0.23.0" + "scheduler": "0.24.0-canary-ce2bc58a9-20231102" }, "peerDependencies": { - "react": "^18.2.0" + "react": "18.3.0-canary-ce2bc58a9-20231102" } }, "examples/next/app-router/node_modules/scheduler": { - "version": "0.23.0", - "license": "MIT", + "version": "0.24.0-canary-ce2bc58a9-20231102", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.24.0-canary-ce2bc58a9-20231102.tgz", + "integrity": "sha512-V3ChR94XGL1wZoCDCf/HSukgyqNcRPA5epSjbKUvTPl71FDA3qUtDet3QLGWEP/LWAmoJNCs3ME8JQE2AAlTHg==", "dependencies": { "loose-envify": "^1.1.0" } }, - "examples/next/app-router/node_modules/styled-jsx": { - "version": "5.1.1", - "license": "MIT", - "dependencies": { - "client-only": "0.0.1" - }, - "engines": { - "node": ">= 12.0.0" - }, - "peerDependencies": { - "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "babel-plugin-macros": { - "optional": true - } - } - }, "examples/next/app-router/node_modules/typescript": { "version": "5.2.2", "dev": true, @@ -4550,6 +4570,51 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/@next/swc-android-arm-eabi": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.3.4.tgz", + "integrity": "sha512-cM42Cw6V4Bz/2+j/xIzO8nK/Q3Ly+VSlZJTa1vHzsocJRYz8KT6MrreXaci2++SIZCF1rVRCDgAg5PpqRibdIA==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-android-arm64": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-12.3.4.tgz", + "integrity": "sha512-5jf0dTBjL+rabWjGj3eghpLUxCukRhBcEJgwLedewEA/LJk2HyqCvGIwj5rH+iwmq1llCWbOky2dO3pVljrapg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.0.1.tgz", + "integrity": "sha512-JyxnGCS4qT67hdOKQ0CkgFTp+PXub5W1wsGvIq98TNbF3YEIN7iDekYhYsZzc8Ov0pWEsghQt+tANdidITCLaw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/@next/swc-darwin-x64": { "version": "12.3.4", "cpu": [ @@ -4564,6 +4629,141 @@ "node": ">= 10" } }, + "node_modules/@next/swc-freebsd-x64": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.3.4.tgz", + "integrity": "sha512-KM9JXRXi/U2PUM928z7l4tnfQ9u8bTco/jb939pdFUHqc28V43Ohd31MmZD1QzEK4aFlMRaIBQOWQZh4D/E5lQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm-gnueabihf": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.3.4.tgz", + "integrity": "sha512-3zqD3pO+z5CZyxtKDTnOJ2XgFFRUBciOox6EWkoZvJfc9zcidNAQxuwonUeNts6Xbm8Wtm5YGIRC0x+12YH7kw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.0.1.tgz", + "integrity": "sha512-iVpn3KG3DprFXzVHM09kvb//4CNNXBQ9NB/pTm8LO+vnnnaObnzFdS5KM+w1okwa32xH0g8EvZIhoB3fI3mS1g==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.0.1.tgz", + "integrity": "sha512-mVsGyMxTLWZXyD5sen6kGOTYVOO67lZjLApIj/JsTEEohDDt1im2nkspzfV5MvhfS7diDw6Rp/xvAQaWZTv1Ww==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.0.1.tgz", + "integrity": "sha512-wMqf90uDWN001NqCM/auRl3+qVVeKfjJdT9XW+RMIOf+rhUzadmYJu++tp2y+hUbb6GTRhT+VjQzcgg/QTD9NQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.0.1.tgz", + "integrity": "sha512-ol1X1e24w4j4QwdeNjfX0f+Nza25n+ymY0T2frTyalVczUmzkVD7QGgPTZMHfR1aLrO69hBs0G3QBYaj22J5GQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.0.1.tgz", + "integrity": "sha512-WEmTEeWs6yRUEnUlahTgvZteh5RJc4sEjCQIodJlZZ5/VJwVP8p2L7l6VhzQhT4h7KvLx/Ed4UViBdne6zpIsw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-ia32-msvc": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.0.1.tgz", + "integrity": "sha512-oFpHphN4ygAgZUKjzga7SoH2VGbEJXZa/KL8bHCAwCjDWle6R1SpiGOdUdA8EJ9YsG1TYWpzY6FTbUA+iAJeww==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.0.1.tgz", + "integrity": "sha512-FFp3nOJ/5qSpeWT0BZQ+YE1pSMk4IMpkME/1DwKBwhg4mJLB9L+6EXuJi4JEwaJdl5iN+UUlmUD3IsR1kx5fAg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { "version": "5.1.1-v1", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz", @@ -9580,6 +9780,11 @@ "webpack": ">=4.0.0 <6.0.0" } }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, "node_modules/clipboard": { "version": "2.0.11", "license": "MIT", @@ -9993,6 +10198,20 @@ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "dev": true }, + "node_modules/copy-anything": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-3.0.5.tgz", + "integrity": "sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==", + "dependencies": { + "is-what": "^4.1.8" + }, + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, "node_modules/copy-webpack-plugin": { "version": "10.2.4", "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-10.2.4.tgz", @@ -14515,6 +14734,17 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-what": { + "version": "4.1.16", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.16.tgz", + "integrity": "sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==", + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, "node_modules/is-windows": { "version": "1.0.2", "dev": true, @@ -18432,6 +18662,126 @@ } } }, + "node_modules/next/node_modules/@next/swc-darwin-arm64": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.3.4.tgz", + "integrity": "sha512-DqsSTd3FRjQUR6ao0E1e2OlOcrF5br+uegcEGPVonKYJpcr0MJrtYmPxd4v5T6UCJZ+XzydF7eQo5wdGvSZAyA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/next/node_modules/@next/swc-linux-arm64-gnu": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.3.4.tgz", + "integrity": "sha512-kiX0vgJGMZVv+oo1QuObaYulXNvdH/IINmvdZnVzMO/jic/B8EEIGlZ8Bgvw8LCjH3zNVPO3mGrdMvnEEPEhKA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/next/node_modules/@next/swc-linux-arm64-musl": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.3.4.tgz", + "integrity": "sha512-EETZPa1juczrKLWk5okoW2hv7D7WvonU+Cf2CgsSoxgsYbUCZ1voOpL4JZTOb6IbKMDo6ja+SbY0vzXZBUMvkQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/next/node_modules/@next/swc-linux-x64-gnu": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.3.4.tgz", + "integrity": "sha512-4csPbRbfZbuWOk3ATyWcvVFdD9/Rsdq5YHKvRuEni68OCLkfy4f+4I9OBpyK1SKJ00Cih16NJbHE+k+ljPPpag==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/next/node_modules/@next/swc-linux-x64-musl": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.3.4.tgz", + "integrity": "sha512-YeBmI+63Ro75SUiL/QXEVXQ19T++58aI/IINOyhpsRL1LKdyfK/35iilraZEFz9bLQrwy1LYAR5lK200A9Gjbg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/next/node_modules/@next/swc-win32-arm64-msvc": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.3.4.tgz", + "integrity": "sha512-Sd0qFUJv8Tj0PukAYbCCDbmXcMkbIuhnTeHm9m4ZGjCf6kt7E/RMs55Pd3R5ePjOkN7dJEuxYBehawTR/aPDSQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/next/node_modules/@next/swc-win32-ia32-msvc": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.3.4.tgz", + "integrity": "sha512-rt/vv/vg/ZGGkrkKcuJ0LyliRdbskQU+91bje+PgoYmxTZf/tYs6IfbmgudBJk6gH3QnjHWbkphDdRQrseRefQ==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/next/node_modules/@next/swc-win32-x64-msvc": { + "version": "12.3.4", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.3.4.tgz", + "integrity": "sha512-DQ20JEfTBZAgF8QCjYfJhv2/279M6onxFjdG/+5B0Cyj00/EdBxiWb2eGGFgQhrBbNv/lsvzFbbi0Ptf8Vw/bg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/no-case": { "version": "3.0.4", "license": "MIT", @@ -21473,6 +21823,11 @@ "node": ">= 0.8.0" } }, + "node_modules/server-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz", + "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==" + }, "node_modules/set-blocking": { "version": "2.0.0", "license": "ISC" @@ -22769,6 +23124,17 @@ "version": "4.2.0", "license": "MIT" }, + "node_modules/superjson": { + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/superjson/-/superjson-1.13.3.tgz", + "integrity": "sha512-mJiVjfd2vokfDxsQPOwJ/PtanO87LhpYY88ubI5dUB1Ab58Txbyje3+jpm+/83R/fevaq/107NNhtYBLuoTrFg==", + "dependencies": { + "copy-anything": "^3.0.2" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/supports-color": { "version": "5.5.0", "license": "MIT", @@ -27374,7 +27740,7 @@ "license": "MIT", "devDependencies": { "@apollo/client": "^3.8.0", - "@apollo/experimental-nextjs-app-support": "^0.4.1", + "@apollo/experimental-nextjs-app-support": "^0.5.1", "@faustwp/cli": "^1.1.3", "@faustwp/core": "^1.1.2", "@testing-library/jest-dom": "^5.17.0", @@ -27382,7 +27748,7 @@ "concurrently": "^8.2.0", "jest": "^29.6.2", "jest-environment-jsdom": "^29.6.2", - "next": "^13.4.13", + "next": "^14.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^5.0.1", @@ -27391,45 +27757,49 @@ "typescript": "^5.1.6" }, "engines": { - "node": ">=16", + "node": ">=18", "npm": ">=8" }, "peerDependencies": { "@apollo/client": ">=3.8.0", - "@apollo/experimental-nextjs-app-support": ">=0.3.2", + "@apollo/experimental-nextjs-app-support": ">=0.5.0", "@faustwp/cli": ">=1.1.3", "@faustwp/core": ">=1.1.2", - "next": ">=12.1.6", - "react": ">=17.0.2", - "react-dom": ">=17.0.2" + "next": ">=14.0.0", + "react": ">=18.0.0", + "react-dom": ">=18.0.0" } }, "packages/experimental-app-router/node_modules/@apollo/experimental-nextjs-app-support": { - "version": "0.4.1", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@apollo/experimental-nextjs-app-support/-/experimental-nextjs-app-support-0.5.1.tgz", + "integrity": "sha512-gQiFY/zntVAhPTTFfFFOogp4TKVMpbPsydv3gyMR5E0IK6WgtITTcl/uuWlnfL92+enk5mfrtoQ+0p+t2a9u2A==", "dev": true, - "license": "MIT", "dependencies": { + "server-only": "^0.0.1", "superjson": "^1.12.2", "ts-invariant": "^0.10.3" }, "peerDependencies": { - "@apollo/client": ">=3.8.0-rc || ^3.8.0", - "next": "^13.4.1", + "@apollo/client": ">=3.8.0-rc || ^3.8.0 || >=3.9.0-alpha || >=3.9.0-beta || >=3.9.0-rc", + "next": "^13.4.1 || ^14.0.0", "react": "^18" } }, "packages/experimental-app-router/node_modules/@next/env": { - "version": "13.5.4", - "dev": true, - "license": "MIT" + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.0.1.tgz", + "integrity": "sha512-Ms8ZswqY65/YfcjrlcIwMPD7Rg/dVjdLapMcSHG26W6O67EJDF435ShW4H4LXi1xKO1oRc97tLXUpx8jpLe86A==", + "dev": true }, "packages/experimental-app-router/node_modules/@next/swc-darwin-x64": { - "version": "13.5.4", + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.0.1.tgz", + "integrity": "sha512-625Z7bb5AyIzswF9hvfZWa+HTwFZw+Jn3lOBNZB87lUS0iuCYDHqk3ujuHCkiyPtSC0xFBtYDLcrZ11mF/ap3w==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -27564,11 +27934,12 @@ } }, "packages/experimental-app-router/node_modules/next": { - "version": "13.5.4", + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/next/-/next-14.0.1.tgz", + "integrity": "sha512-s4YaLpE4b0gmb3ggtmpmV+wt+lPRuGtANzojMQ2+gmBpgX9w5fTbjsy6dXByBuENsdCX5pukZH/GxdFgO62+pA==", "dev": true, - "license": "MIT", "dependencies": { - "@next/env": "13.5.4", + "@next/env": "14.0.1", "@swc/helpers": "0.5.2", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001406", @@ -27580,18 +27951,18 @@ "next": "dist/bin/next" }, "engines": { - "node": ">=16.14.0" + "node": ">=18.17.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "13.5.4", - "@next/swc-darwin-x64": "13.5.4", - "@next/swc-linux-arm64-gnu": "13.5.4", - "@next/swc-linux-arm64-musl": "13.5.4", - "@next/swc-linux-x64-gnu": "13.5.4", - "@next/swc-linux-x64-musl": "13.5.4", - "@next/swc-win32-arm64-msvc": "13.5.4", - "@next/swc-win32-ia32-msvc": "13.5.4", - "@next/swc-win32-x64-msvc": "13.5.4" + "@next/swc-darwin-arm64": "14.0.1", + "@next/swc-darwin-x64": "14.0.1", + "@next/swc-linux-arm64-gnu": "14.0.1", + "@next/swc-linux-arm64-musl": "14.0.1", + "@next/swc-linux-x64-gnu": "14.0.1", + "@next/swc-linux-x64-musl": "14.0.1", + "@next/swc-win32-arm64-msvc": "14.0.1", + "@next/swc-win32-ia32-msvc": "14.0.1", + "@next/swc-win32-x64-msvc": "14.0.1" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", @@ -32158,7 +32529,7 @@ }, "plugins/faustwp": { "name": "@faustwp/wordpress-plugin", - "version": "1.1.0" + "version": "1.1.1" } } } diff --git a/package.json b/package.json index 6db797f7d..806b169a1 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,7 @@ }, "overrides": { "semver": "~7.5.2", - "optionator": "0.9.3" + "optionator": "0.9.3", + "postcss": "8.4.31" } } diff --git a/packages/experimental-app-router/package.json b/packages/experimental-app-router/package.json index 2be4a538d..4dc6232e0 100644 --- a/packages/experimental-app-router/package.json +++ b/packages/experimental-app-router/package.json @@ -41,21 +41,21 @@ }, "homepage": "https://github.com/wpengine/faustjs#readme", "engines": { - "node": ">=16", + "node": ">=18", "npm": ">=8" }, "peerDependencies": { "@apollo/client": ">=3.8.0", - "@apollo/experimental-nextjs-app-support": ">=0.3.2", + "@apollo/experimental-nextjs-app-support": ">=0.5.0", "@faustwp/cli": ">=1.1.3", "@faustwp/core": ">=1.1.2", - "next": ">=12.1.6", - "react": ">=17.0.2", - "react-dom": ">=17.0.2" + "next": ">=14.0.0", + "react": ">=18.0.0", + "react-dom": ">=18.0.0" }, "devDependencies": { "@apollo/client": "^3.8.0", - "@apollo/experimental-nextjs-app-support": "^0.4.1", + "@apollo/experimental-nextjs-app-support": "^0.5.1", "@faustwp/cli": "^1.1.3", "@faustwp/core": "^1.1.2", "@testing-library/jest-dom": "^5.17.0", @@ -63,7 +63,7 @@ "concurrently": "^8.2.0", "jest": "^29.6.2", "jest-environment-jsdom": "^29.6.2", - "next": "^13.4.13", + "next": "^14.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^5.0.1", From 04579537befc435be5704eb90472bbd33efe3e7d Mon Sep 17 00:00:00 2001 From: John Parris Date: Mon, 13 Nov 2023 12:17:39 -0500 Subject: [PATCH 2/4] chore: Update @faustwp/cli and @faustwp/core packages in examples. (#1647) Adds the caret to allow updates that are compatible, instead of pinning to a single version that requires we update this all the time. --- examples/next/app-router/package.json | 4 ++-- examples/next/block-support/package.json | 4 ++-- examples/next/faustwp-getting-started/package.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/next/app-router/package.json b/examples/next/app-router/package.json index fb5a60d71..8a1081cfc 100644 --- a/examples/next/app-router/package.json +++ b/examples/next/app-router/package.json @@ -12,8 +12,8 @@ "dependencies": { "@apollo/client": "^3.8.0", "@apollo/experimental-nextjs-app-support": "^0.5.1", - "@faustwp/cli": "1.2.0", - "@faustwp/core": "1.2.0", + "@faustwp/cli": "^1.2.0", + "@faustwp/core": "^1.2.0", "@faustwp/experimental-app-router": "^0.1.0", "graphql": "^16.7.1", "next": "^14.0.1", diff --git a/examples/next/block-support/package.json b/examples/next/block-support/package.json index fd9fc1fb9..b2cdb776f 100644 --- a/examples/next/block-support/package.json +++ b/examples/next/block-support/package.json @@ -13,8 +13,8 @@ "dependencies": { "@apollo/client": "^3.6.6", "@faustwp/blocks": "2.0.0", - "@faustwp/cli": "1.2.0", - "@faustwp/core": "1.2.0", + "@faustwp/cli": "^1.2.0", + "@faustwp/core": "^1.2.0", "@wordpress/base-styles": "^4.26.0", "@wordpress/block-library": "^7.19.0", "classnames": "^2.3.1", diff --git a/examples/next/faustwp-getting-started/package.json b/examples/next/faustwp-getting-started/package.json index 46b1a5eb8..d2506d851 100644 --- a/examples/next/faustwp-getting-started/package.json +++ b/examples/next/faustwp-getting-started/package.json @@ -11,8 +11,8 @@ }, "dependencies": { "@apollo/client": "^3.6.6", - "@faustwp/cli": "1.2.0", - "@faustwp/core": "1.2.0", + "@faustwp/cli": "^1.2.0", + "@faustwp/core": "^1.2.0", "@wordpress/base-styles": "^4.26.0", "@wordpress/block-library": "^7.19.0", "classnames": "^2.3.1", From 62b7eeb2ef9cbafb305dd0fcc52a22217c1a724e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 11:24:37 -0600 Subject: [PATCH 3/4] Version Packages (#1645) Co-authored-by: github-actions[bot] --- .changeset/eighty-gorillas-impress.md | 10 ---------- .changeset/mean-doors-kneel.md | 5 ----- examples/next/app-router/package.json | 2 +- packages/experimental-app-router/CHANGELOG.md | 13 +++++++++++++ packages/experimental-app-router/package.json | 2 +- 5 files changed, 15 insertions(+), 17 deletions(-) delete mode 100644 .changeset/eighty-gorillas-impress.md delete mode 100644 .changeset/mean-doors-kneel.md diff --git a/.changeset/eighty-gorillas-impress.md b/.changeset/eighty-gorillas-impress.md deleted file mode 100644 index 6eae11d0d..000000000 --- a/.changeset/eighty-gorillas-impress.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@faustwp/experimental-app-router': minor ---- - -**BREAKING**: Updated the following peer dependencies to new required minimums: - -- `@apollo/experimental-nextjs-app-support`: `0.4.1` -> `0.5.0` -- `next`: `12.1.6` -> `14.0.0` -- `react`: `17.0.2` -> `18.0.0` -- `react-dom`: `17.0.2` -> `18.0.0` diff --git a/.changeset/mean-doors-kneel.md b/.changeset/mean-doors-kneel.md deleted file mode 100644 index 152cd1a3c..000000000 --- a/.changeset/mean-doors-kneel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@faustwp/experimental-app-router': minor ---- - -**BREAKING**: This package now requires **Node 18+** diff --git a/examples/next/app-router/package.json b/examples/next/app-router/package.json index 8a1081cfc..a318149cb 100644 --- a/examples/next/app-router/package.json +++ b/examples/next/app-router/package.json @@ -14,7 +14,7 @@ "@apollo/experimental-nextjs-app-support": "^0.5.1", "@faustwp/cli": "^1.2.0", "@faustwp/core": "^1.2.0", - "@faustwp/experimental-app-router": "^0.1.0", + "@faustwp/experimental-app-router": "^0.2.0", "graphql": "^16.7.1", "next": "^14.0.1", "react": "^18.3.0-canary-ce2bc58a9-20231102", diff --git a/packages/experimental-app-router/CHANGELOG.md b/packages/experimental-app-router/CHANGELOG.md index e00eb53d6..5c52841f2 100644 --- a/packages/experimental-app-router/CHANGELOG.md +++ b/packages/experimental-app-router/CHANGELOG.md @@ -1,5 +1,18 @@ # @faustwp/experimental-app-router +## 0.2.0 + +### Minor Changes + +- 6e43598: **BREAKING**: Updated the following peer dependencies to new required minimums: + + - `@apollo/experimental-nextjs-app-support`: `0.4.1` -> `0.5.0` + - `next`: `12.1.6` -> `14.0.0` + - `react`: `17.0.2` -> `18.0.0` + - `react-dom`: `17.0.2` -> `18.0.0` + +- 6e43598: **BREAKING**: This package now requires **Node 18+** + ## 0.1.0 ### Minor Changes diff --git a/packages/experimental-app-router/package.json b/packages/experimental-app-router/package.json index 4dc6232e0..a0aa15799 100644 --- a/packages/experimental-app-router/package.json +++ b/packages/experimental-app-router/package.json @@ -1,6 +1,6 @@ { "name": "@faustwp/experimental-app-router", - "version": "0.1.0", + "version": "0.2.0", "description": "Experimental: A Faust package to support Next.js' App Router", "exports": { ".": "./dist/index.js", From abfb60c7f98f8082bda79658eabcc5f39dd4aa81 Mon Sep 17 00:00:00 2001 From: Theofanis Despoudis <328805+theodesp@users.noreply.github.com> Date: Tue, 14 Nov 2023 11:38:56 +0000 Subject: [PATCH 4/4] Fixes Axios advisory (#1650) https://github.com/advisories/GHSA-wf5p-g6vw-rhxx --- package-lock.json | 26 ++++++++++++++------------ package.json | 3 ++- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index c5934ec24..efb289713 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,9 +51,9 @@ "dependencies": { "@apollo/client": "^3.8.0", "@apollo/experimental-nextjs-app-support": "^0.5.1", - "@faustwp/cli": "1.2.0", - "@faustwp/core": "1.2.0", - "@faustwp/experimental-app-router": "^0.1.0", + "@faustwp/cli": "^1.2.0", + "@faustwp/core": "^1.2.0", + "@faustwp/experimental-app-router": "^0.2.0", "graphql": "^16.7.1", "next": "^14.0.1", "react": "^18.3.0-canary-ce2bc58a9-20231102", @@ -253,8 +253,8 @@ "dependencies": { "@apollo/client": "^3.6.6", "@faustwp/blocks": "2.0.0", - "@faustwp/cli": "1.2.0", - "@faustwp/core": "1.2.0", + "@faustwp/cli": "^1.2.0", + "@faustwp/core": "^1.2.0", "@wordpress/base-styles": "^4.26.0", "@wordpress/block-library": "^7.19.0", "classnames": "^2.3.1", @@ -709,8 +709,8 @@ "version": "0.1.0", "dependencies": { "@apollo/client": "^3.6.6", - "@faustwp/cli": "1.2.0", - "@faustwp/core": "1.2.0", + "@faustwp/cli": "^1.2.0", + "@faustwp/core": "^1.2.0", "@wordpress/base-styles": "^4.26.0", "@wordpress/block-library": "^7.19.0", "classnames": "^2.3.1", @@ -8902,12 +8902,14 @@ } }, "node_modules/axios": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.25.0.tgz", - "integrity": "sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.1.tgz", + "integrity": "sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==", "dev": true, "dependencies": { - "follow-redirects": "^1.14.7" + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" } }, "node_modules/axobject-query": { @@ -27736,7 +27738,7 @@ }, "packages/experimental-app-router": { "name": "@faustwp/experimental-app-router", - "version": "0.1.0", + "version": "0.2.0", "license": "MIT", "devDependencies": { "@apollo/client": "^3.8.0", diff --git a/package.json b/package.json index 806b169a1..4ef363c28 100644 --- a/package.json +++ b/package.json @@ -81,6 +81,7 @@ "overrides": { "semver": "~7.5.2", "optionator": "0.9.3", - "postcss": "8.4.31" + "postcss": "8.4.31", + "axios": "^1.6.1" } }