Skip to content

Commit

Permalink
fix: downgrade next
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <tukon479@gmail.com>
  • Loading branch information
Innei committed Oct 14, 2024
1 parent f14188d commit b71fcb6
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 64 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -210,4 +210,4 @@
"browserslist": [
"defaults and fully supports es6-module"
]
}
}
8 changes: 4 additions & 4 deletions patches/next-auth.patch
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
34 changes: 34 additions & 0 deletions patches/next.patch
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions patches/qrcode.react.patch
Original file line number Diff line number Diff line change
@@ -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 <paul@oshannessy.com>",
116 changes: 58 additions & 58 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b71fcb6

Please sign in to comment.