diff --git a/package.json b/package.json index 410180b6ff..281b112ce3 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "medium-zoom": "1.1.0", "mermaid": "11.3.0", "nanoid": "^5.0.7", - "next": "14.2.15", + "next": "14.2.8", "next-auth": "4.24.8", "next-runtime-env": "3.2.2", "next-themes": "0.3.0", @@ -210,4 +210,4 @@ "browserslist": [ "defaults and fully supports es6-module" ] -} +} \ No newline at end of file diff --git a/patches/next-auth.patch b/patches/next-auth.patch index 103aba9a14..31dca6072c 100644 --- a/patches/next-auth.patch +++ b/patches/next-auth.patch @@ -1,15 +1,15 @@ diff --git a/client/_utils.js b/client/_utils.js -index 25bd573915c9bd9251ed6ce241889e0d6f13ba55..13a0976921eee51ecaab15ec062ba3ce6e8b47ce 100644 +index 25bd573915c9bd9251ed6ce241889e0d6f13ba55..0c7e9e06fec0a9c00cd8e733d2222afb4b4d4670 100644 --- a/client/_utils.js +++ b/client/_utils.js -@@ -46,6 +46,7 @@ function _fetchData() { +@@ -45,6 +45,7 @@ function _fetchData() { + options.body = JSON.stringify(req.body); options.method = "POST"; } - _context.next = 7; + options.credentials = "include"; + _context.next = 7; return fetch(url, options); case 7: - res = _context.sent; @@ -63,7 +64,7 @@ function _fetchData() { case 16: _context.prev = 16; diff --git a/patches/next.patch b/patches/next.patch new file mode 100644 index 0000000000..83062c798b --- /dev/null +++ b/patches/next.patch @@ -0,0 +1,34 @@ +diff --git a/dist/compiled/@vercel/og/index.edge.js b/dist/compiled/@vercel/og/index.edge.js +index 089354ce4b62dde0fed3482e028ffade3d34b750..3a2f17f0356e815023b9054b52dc1706fa05b2b6 100644 +--- a/dist/compiled/@vercel/og/index.edge.js ++++ b/dist/compiled/@vercel/og/index.edge.js +@@ -18784,7 +18784,11 @@ async function render(satori, resvg, opts, defaultFonts, element) { + value: options.width + } + }); +- return resvgJS.render().asPng(); ++ const pngData = resvgJS.render(); ++ const pngBuffer = pngData.asPng(); ++ pngData.free(); ++ resvgJS.free(); ++ return pngBuffer; + } + + // src/figma/index.tsx +diff --git a/dist/compiled/@vercel/og/index.node.js b/dist/compiled/@vercel/og/index.node.js +index c92983c67cbcc73d197d1ccd2a6f22345a2f7590..a516f4fec131f1a103605bdab0bf1b03d0f8a053 100644 +--- a/dist/compiled/@vercel/og/index.node.js ++++ b/dist/compiled/@vercel/og/index.node.js +@@ -18786,7 +18786,11 @@ async function render(satori2, resvg, opts, defaultFonts, element) { + value: options.width + } + }); +- return resvgJS.render().asPng(); ++ const pngData = resvgJS.render(); ++ const pngBuffer = pngData.asPng(); ++ pngData.free(); ++ resvgJS.free(); ++ return pngBuffer; + } + + // src/figma/index.tsx diff --git a/patches/qrcode.react.patch b/patches/qrcode.react.patch new file mode 100644 index 0000000000..b5535a1e93 --- /dev/null +++ b/patches/qrcode.react.patch @@ -0,0 +1,21 @@ +diff --git a/package.json b/package.json +index b5c49b77316f9679f18c7da74f96ae7a890074a2..80fc320e66c0f8448be34e7bf090a9f819e3368d 100644 +--- a/package.json ++++ b/package.json +@@ -12,9 +12,13 @@ + "module": "./lib/esm/index.js", + "types": "./lib/index.d.ts", + "exports": { +- ".": { +- "import": "./lib/esm/index.js", +- "require": "./lib/index.js" ++ "import": { ++ "types": "./lib/index.d.mts", ++ "default": "./lib/esm/index.js" ++ }, ++ "require": { ++ "types": "./lib/index.d.ts", ++ "default": "./lib/index.js" + } + }, + "author": "Paul O’Shannessy ", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b336b304dc..eb4f68b66f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,7 +21,7 @@ overrides: patchedDependencies: next-auth: - hash: 7sgv3uk6kpon6r22zwyk6dkubi + hash: bypl5vvk4pupso5gu43wjzlen4 path: patches/next-auth.patch importers: @@ -81,7 +81,7 @@ importers: version: 1.16.1 '@openpanel/nextjs': specifier: 1.0.5 - version: 1.0.5(next@14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.0.5(next@14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@prosemirror-adapter/react': specifier: 0.2.6 version: 0.2.6(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -132,7 +132,7 @@ importers: version: 1.34.3 '@vercel/analytics': specifier: 1.3.1 - version: 1.3.1(next@14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 1.3.1(next@14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) '@vercel/postgres': specifier: 0.10.0 version: 0.10.0 @@ -221,14 +221,14 @@ importers: specifier: ^5.0.7 version: 5.0.7 next: - specifier: 14.2.15 - version: 14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 14.2.8 + version: 14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-auth: specifier: 4.24.8 - version: 4.24.8(patch_hash=7sgv3uk6kpon6r22zwyk6dkubi)(next@14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 4.24.8(patch_hash=bypl5vvk4pupso5gu43wjzlen4)(next@14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) next-runtime-env: specifier: 3.2.2 - version: 3.2.2(next@14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 3.2.2(next@14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) next-themes: specifier: 0.3.0 version: 0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1535,59 +1535,59 @@ packages: '@next/bundle-analyzer@14.2.15': resolution: {integrity: sha512-W6iyrp/3G7WbIztDcNt+owYX1iv37m9f4RJs0fa/Ayw4EDdjNPX6qKQrC7gBrESHV3FuchED+8R+CNiw1i78eQ==} - '@next/env@14.2.15': - resolution: {integrity: sha512-S1qaj25Wru2dUpcIZMjxeMVSwkt8BK4dmWHHiBuRstcIyOsMapqT4A4jSB6onvqeygkSSmOkyny9VVx8JIGamQ==} + '@next/env@14.2.8': + resolution: {integrity: sha512-L44a+ynqkolyNBnYfF8VoCiSrjSZWgEHYKkKLGcs/a80qh7AkfVUD/MduVPgdsWZ31tgROR+yJRA0PZjSVBXWQ==} - '@next/swc-darwin-arm64@14.2.15': - resolution: {integrity: sha512-Rvh7KU9hOUBnZ9TJ28n2Oa7dD9cvDBKua9IKx7cfQQ0GoYUwg9ig31O2oMwH3wm+pE3IkAQ67ZobPfEgurPZIA==} + '@next/swc-darwin-arm64@14.2.8': + resolution: {integrity: sha512-1VrQlG8OzdyvvGZhGJFnaNE2P10Jjy/2FopnqbY0nSa/gr8If3iINxvOEW3cmVeoAYkmW0RsBazQecA2dBFOSw==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@next/swc-darwin-x64@14.2.15': - resolution: {integrity: sha512-5TGyjFcf8ampZP3e+FyCax5zFVHi+Oe7sZyaKOngsqyaNEpOgkKB3sqmymkZfowy3ufGA/tUgDPPxpQx931lHg==} + '@next/swc-darwin-x64@14.2.8': + resolution: {integrity: sha512-87t3I86rNRSOJB1gXIUzaQWWSWrkWPDyZGsR0Z7JAPtLeX3uUOW2fHxl7dNWD2BZvbvftctTQjgtfpp7nMtmWg==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@next/swc-linux-arm64-gnu@14.2.15': - resolution: {integrity: sha512-3Bwv4oc08ONiQ3FiOLKT72Q+ndEMyLNsc/D3qnLMbtUYTQAmkx9E/JRu0DBpHxNddBmNT5hxz1mYBphJ3mfrrw==} + '@next/swc-linux-arm64-gnu@14.2.8': + resolution: {integrity: sha512-ta2sfVzbOpTbgBrF9HM5m+U58dv6QPuwU4n5EX4LLyCJGKc433Z0D9h9gay/HSOjLEXJ2fJYrMP5JYYbHdxhtw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-musl@14.2.15': - resolution: {integrity: sha512-k5xf/tg1FBv/M4CMd8S+JL3uV9BnnRmoe7F+GWC3DxkTCD9aewFRH1s5rJ1zkzDa+Do4zyN8qD0N8c84Hu96FQ==} + '@next/swc-linux-arm64-musl@14.2.8': + resolution: {integrity: sha512-+IoLTPK6Z5uIgDhgeWnQF5/o5GBN7+zyUNrs4Bes1W3g9++YELb8y0unFybS8s87ntAKMDl6jeQ+mD7oNwp/Ng==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] - '@next/swc-linux-x64-gnu@14.2.15': - resolution: {integrity: sha512-kE6q38hbrRbKEkkVn62reLXhThLRh6/TvgSP56GkFNhU22TbIrQDEMrO7j0IcQHcew2wfykq8lZyHFabz0oBrA==} + '@next/swc-linux-x64-gnu@14.2.8': + resolution: {integrity: sha512-pO+hVXC+mvzUOQJJRG4RX4wJsRJ5BkURSf6dD6EjUXAX4Ml9es1WsEfkaZ4lcpmFzFvY47IkDaffks/GdCn9ag==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-linux-x64-musl@14.2.15': - resolution: {integrity: sha512-PZ5YE9ouy/IdO7QVJeIcyLn/Rc4ml9M2G4y3kCM9MNf1YKvFY4heg3pVa/jQbMro+tP6yc4G2o9LjAz1zxD7tQ==} + '@next/swc-linux-x64-musl@14.2.8': + resolution: {integrity: sha512-bCat9izctychCtf3uL1nqHq31N5e1VxvdyNcBQflkudPMLbxVnlrw45Vi87K+lt1CwrtVayHqzo4ie0Szcpwzg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] - '@next/swc-win32-arm64-msvc@14.2.15': - resolution: {integrity: sha512-2raR16703kBvYEQD9HNLyb0/394yfqzmIeyp2nDzcPV4yPjqNUG3ohX6jX00WryXz6s1FXpVhsCo3i+g4RUX+g==} + '@next/swc-win32-arm64-msvc@14.2.8': + resolution: {integrity: sha512-gbxfUaSPV7EyUobpavida2Hwi62GhSJaSg7iBjmBWoxkxlmETOD7U4tWt763cGIsyE6jM7IoNavq0BXqwdW2QA==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@next/swc-win32-ia32-msvc@14.2.15': - resolution: {integrity: sha512-fyTE8cklgkyR1p03kJa5zXEaZ9El+kDNM5A+66+8evQS5e/6v0Gk28LqA0Jet8gKSOyP+OTm/tJHzMlGdQerdQ==} + '@next/swc-win32-ia32-msvc@14.2.8': + resolution: {integrity: sha512-PUXzEzjTTlUh3b5VAn1nlpwvujTnuCMMwbiCnaTazoVlN1nA3kWjlmp42IfURA2N/nyrlVEw7pURa/o4Qxj1cw==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] - '@next/swc-win32-x64-msvc@14.2.15': - resolution: {integrity: sha512-SzqGbsLsP9OwKNUG9nekShTwhj6JSB9ZLMWQ8g1gG6hdE5gQLncbnbymrwy2yVmH9nikSLYRYxYMFu78Ggp7/g==} + '@next/swc-win32-x64-msvc@14.2.8': + resolution: {integrity: sha512-EnPKv0ttq02E9/1KZ/8Dn7kuutv6hy1CKc0HlNcvzOQcm4/SQtvfws5gY0zrG9tuupd3HfC2L/zcTrnBhpjTuQ==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -4668,8 +4668,8 @@ packages: react: ^16.8 || ^17 || ^18 react-dom: ^16.8 || ^17 || ^18 - next@14.2.15: - resolution: {integrity: sha512-h9ctmOokpoDphRvMGnwOJAedT6zKhwqyZML9mDtspgf4Rh3Pn7UTYKqePNoDvhsWBAO5GoPNYshnAUGIazVGmw==} + next@14.2.8: + resolution: {integrity: sha512-EyEyJZ89r8C5FPlS/401AiF3O8jeMtHIE+bLom9MwcdWJJFBgRl+MR/2VgO0v5bI6tQORNY0a0DR5sjpFNrjbg==} engines: {node: '>=18.17.0'} hasBin: true peerDependencies: @@ -7853,33 +7853,33 @@ snapshots: - bufferutil - utf-8-validate - '@next/env@14.2.15': {} + '@next/env@14.2.8': {} - '@next/swc-darwin-arm64@14.2.15': + '@next/swc-darwin-arm64@14.2.8': optional: true - '@next/swc-darwin-x64@14.2.15': + '@next/swc-darwin-x64@14.2.8': optional: true - '@next/swc-linux-arm64-gnu@14.2.15': + '@next/swc-linux-arm64-gnu@14.2.8': optional: true - '@next/swc-linux-arm64-musl@14.2.15': + '@next/swc-linux-arm64-musl@14.2.8': optional: true - '@next/swc-linux-x64-gnu@14.2.15': + '@next/swc-linux-x64-gnu@14.2.8': optional: true - '@next/swc-linux-x64-musl@14.2.15': + '@next/swc-linux-x64-musl@14.2.8': optional: true - '@next/swc-win32-arm64-msvc@14.2.15': + '@next/swc-win32-arm64-msvc@14.2.8': optional: true - '@next/swc-win32-ia32-msvc@14.2.15': + '@next/swc-win32-ia32-msvc@14.2.8': optional: true - '@next/swc-win32-x64-msvc@14.2.15': + '@next/swc-win32-x64-msvc@14.2.8': optional: true '@noble/curves@1.0.0': @@ -7908,10 +7908,10 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 - '@openpanel/nextjs@1.0.5(next@14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@openpanel/nextjs@1.0.5(next@14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@openpanel/web': 1.0.1 - next: 14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) @@ -9120,11 +9120,11 @@ snapshots: transitivePeerDependencies: - graphql - '@vercel/analytics@1.3.1(next@14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': + '@vercel/analytics@1.3.1(next@14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': dependencies: server-only: 0.0.1 optionalDependencies: - next: 14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 '@vercel/postgres@0.10.0': @@ -11529,13 +11529,13 @@ snapshots: natural-compare@1.4.0: {} - next-auth@4.24.8(patch_hash=7sgv3uk6kpon6r22zwyk6dkubi)(next@14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next-auth@4.24.8(patch_hash=bypl5vvk4pupso5gu43wjzlen4)(next@14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.24.1 '@panva/hkdf': 1.2.1 cookie: 0.5.0 jose: 4.15.9 - next: 14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) oauth: 0.9.15 openid-client: 5.7.0 preact: 10.23.2 @@ -11544,9 +11544,9 @@ snapshots: react-dom: 18.3.1(react@18.3.1) uuid: 8.3.2 - next-runtime-env@3.2.2(next@14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1): + next-runtime-env@3.2.2(next@14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1): dependencies: - next: 14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: 18.3.1 next-themes@0.3.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): @@ -11554,9 +11554,9 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - next@14.2.15(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next@14.2.8(@babel/core@7.25.7)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - '@next/env': 14.2.15 + '@next/env': 14.2.8 '@swc/helpers': 0.5.5 busboy: 1.6.0 caniuse-lite: 1.0.30001667 @@ -11566,15 +11566,15 @@ snapshots: react-dom: 18.3.1(react@18.3.1) styled-jsx: 5.1.1(@babel/core@7.25.7)(react@18.3.1) optionalDependencies: - '@next/swc-darwin-arm64': 14.2.15 - '@next/swc-darwin-x64': 14.2.15 - '@next/swc-linux-arm64-gnu': 14.2.15 - '@next/swc-linux-arm64-musl': 14.2.15 - '@next/swc-linux-x64-gnu': 14.2.15 - '@next/swc-linux-x64-musl': 14.2.15 - '@next/swc-win32-arm64-msvc': 14.2.15 - '@next/swc-win32-ia32-msvc': 14.2.15 - '@next/swc-win32-x64-msvc': 14.2.15 + '@next/swc-darwin-arm64': 14.2.8 + '@next/swc-darwin-x64': 14.2.8 + '@next/swc-linux-arm64-gnu': 14.2.8 + '@next/swc-linux-arm64-musl': 14.2.8 + '@next/swc-linux-x64-gnu': 14.2.8 + '@next/swc-linux-x64-musl': 14.2.8 + '@next/swc-win32-arm64-msvc': 14.2.8 + '@next/swc-win32-ia32-msvc': 14.2.8 + '@next/swc-win32-x64-msvc': 14.2.8 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros