diff --git a/.changeset/monocle-nextjs-next-16.md b/.changeset/monocle-nextjs-next-16.md new file mode 100644 index 0000000..89330c2 --- /dev/null +++ b/.changeset/monocle-nextjs-next-16.md @@ -0,0 +1,7 @@ +--- +"@spur.us/monocle-nextjs": minor +--- + +Accept Next.js 16 as a peer dependency. + +The declared range stopped at `^15.2.3`, so installing into a Next 16 project failed peer resolution and needed `--legacy-peer-deps`. The SDK already worked on Next 16 once installed; only the range was out of date. diff --git a/packages/monocle-nextjs/package.json b/packages/monocle-nextjs/package.json index dee0a6d..8a14fa3 100644 --- a/packages/monocle-nextjs/package.json +++ b/packages/monocle-nextjs/package.json @@ -48,7 +48,7 @@ "@spur.us/monocle-react": "workspace:^" }, "peerDependencies": { - "next": "^13.5.7 || ^14.2.25 || ^15.2.3", + "next": "^13.5.7 || ^14.2.25 || ^15.2.3 || ^16.0.0", "react": "catalog:peer-react", "react-dom": "catalog:peer-react" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 72fb245..a78fcdd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -143,7 +143,7 @@ importers: specifier: workspace:^ version: link:../monocle-react next: - specifier: ^13.5.7 || ^14.2.25 || ^15.2.3 + specifier: ^13.5.7 || ^14.2.25 || ^15.2.3 || ^16.0.0 version: 15.3.1(@babel/core@7.26.10)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) react: specifier: catalog:peer-react @@ -1950,6 +1950,7 @@ packages: next@15.3.1: resolution: {integrity: sha512-8+dDV0xNLOgHlyBxP1GwHGVaNXsmp+2NhZEYrXr24GWLHtt27YrBPbPuHvzlhi7kZNYjeJNR93IF5zfFu5UL0g==} engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0} + deprecated: This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/CVE-2025-66478 for more details. hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0