Skip to content

Commit 29e20e7

Browse files
leerobsteven-tey
andauthored
Update dependencies. (#353)
Co-authored-by: Steven Tey <[email protected]>
1 parent fdca323 commit 29e20e7

File tree

7 files changed

+1861
-2253
lines changed

7 files changed

+1861
-2253
lines changed

.gitignore

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,37 @@
1-
**/node_modules
2-
**.next
3-
**.env
4-
**.DS_Store
5-
**.vercel
6-
.vscode
7-
**.git
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
/.yarn
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
.pnpm-debug.log*
28+
29+
# local env files
30+
.env*
31+
!.env*.example
32+
33+
# vercel
834
.vercel
35+
36+
# typescript
37+
*.tsbuildinfo

components/mdx.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { MDXRemote, MDXRemoteProps } from "next-mdx-remote";
55
import { replaceLinks } from "@/lib/remark-plugins";
66
import { Tweet } from "react-tweet";
77
import BlurImage from "@/components/blur-image";
8-
import styles from './mdx.module.css'
8+
import styles from "./mdx.module.css";
99

1010
export default function MDX({ source }: { source: MDXRemoteProps }) {
1111
const components = {

components/uploader.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { useState, useCallback, useMemo, ChangeEvent } from "react";
44
import { toast } from "sonner";
55
import LoadingDots from "@/components/icons/loading-dots";
6-
import { BlobResult } from "@vercel/blob";
76

87
export default function Uploader() {
98
const [data, setData] = useState<{
@@ -52,7 +51,7 @@ export default function Uploader() {
5251
body: file,
5352
}).then(async (res) => {
5453
if (res.status === 200) {
55-
const { url } = (await res.json()) as BlobResult;
54+
const { url } = await res.json();
5655
toast(
5756
<div className="relative">
5857
<div className="p-2">

next.config.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
*/
44
module.exports = {
55
experimental: {
6-
serverActions: true,
6+
serverActions: {
7+
allowedOrigins: ["app.localhost:3000"],
8+
},
79
},
810
images: {
9-
domains: [
10-
"public.blob.vercel-storage.com",
11-
"res.cloudinary.com",
12-
"abs.twimg.com",
13-
"pbs.twimg.com",
14-
"avatar.vercel.sh",
15-
"avatars.githubusercontent.com",
16-
"www.google.com",
17-
"flag.vercel.app",
18-
"illustrations.popsy.co",
19-
],
11+
remotePatterns: [
12+
{ hostname: "public.blob.vercel-storage.com" },
13+
{ hostname: "res.cloudinary.com" },
14+
{ hostname: "abs.twimg.com" },
15+
{ hostname: "pbs.twimg.com" },
16+
{ hostname: "avatar.vercel.sh" },
17+
{ hostname: "avatars.githubusercontent.com" },
18+
{ hostname: "www.google.com" },
19+
{ hostname: "flag.vercel.app" },
20+
{ hostname: "illustrations.popsy.co" },
21+
]
2022
},
21-
reactStrictMode: false,
2223
};

package.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,55 +10,55 @@
1010
},
1111
"dependencies": {
1212
"@next-auth/prisma-adapter": "^1.0.7",
13-
"@prisma/client": "^5.2.0",
14-
"@tremor/react": "^3.4.1",
15-
"@upstash/ratelimit": "^0.4.3",
16-
"@vercel/analytics": "^1.0.1",
17-
"@vercel/blob": "^0.9.2",
18-
"@vercel/kv": "^0.2.2",
19-
"@vercel/postgres": "^0.3.2",
20-
"ai": "^2.1.17",
21-
"clsx": "^1.2.1",
13+
"@prisma/client": "^5.5.2",
14+
"@tremor/react": "^3.11.1",
15+
"@upstash/ratelimit": "^0.4.4",
16+
"@vercel/analytics": "^1.1.1",
17+
"@vercel/blob": "^0.15.0",
18+
"@vercel/kv": "^1.0.0",
19+
"@vercel/postgres": "^0.5.1",
20+
"ai": "^2.2.22",
21+
"clsx": "^2.0.0",
2222
"date-fns": "^2.30.0",
23-
"focus-trap-react": "^10.2.1",
24-
"framer-motion": "^10.12.18",
23+
"focus-trap-react": "^10.2.3",
24+
"framer-motion": "^10.16.4",
2525
"gray-matter": "^4.0.3",
2626
"js-cookie": "^3.0.5",
27-
"lucide-react": "^0.244.0",
27+
"lucide-react": "^0.292.0",
2828
"nanoid": "^4.0.2",
29-
"next": "14.0.1",
30-
"next-auth": "4.23.1",
29+
"next": "14.0.2",
30+
"next-auth": "4.24.5",
3131
"next-mdx-remote": "^4.4.1",
3232
"novel": "^0.1.22",
33-
"openai-edge": "^1.2.0",
33+
"openai-edge": "^1.2.2",
3434
"react": "^18.2.0",
3535
"react-dom": "^18.2.0",
36-
"react-textarea-autosize": "^8.5.2",
37-
"react-tweet": "^3.0.2",
36+
"react-textarea-autosize": "^8.5.3",
37+
"react-tweet": "^3.1.1",
3838
"remark": "^14.0.3",
39-
"sharp": "^0.31.3",
40-
"sonner": "^0.4.0",
41-
"swr": "^2.2.0",
42-
"tailwind-merge": "^1.13.2",
43-
"unist-util-visit": "^4.1.2",
44-
"use-debounce": "^9.0.4"
39+
"sharp": "^0.32.6",
40+
"sonner": "^1.2.0",
41+
"swr": "^2.2.4",
42+
"tailwind-merge": "^2.0.0",
43+
"unist-util-visit": "^5.0.0",
44+
"use-debounce": "^10.0.0"
4545
},
4646
"devDependencies": {
47-
"@tailwindcss/forms": "^0.5.3",
48-
"@tailwindcss/typography": "^0.5.9",
49-
"@types/js-cookie": "^3.0.3",
50-
"@types/node": "^20.4.1",
51-
"@types/react": "^18.2.14",
47+
"@tailwindcss/forms": "^0.5.7",
48+
"@tailwindcss/typography": "^0.5.10",
49+
"@types/js-cookie": "^3.0.6",
50+
"@types/node": "^20.9.0",
51+
"@types/react": "^18.2.37",
5252
"@types/react-dom": "^18.2.15",
53-
"autoprefixer": "^10.4.14",
54-
"eslint": "8.31.0",
55-
"eslint-config-next": "^13.4.9",
56-
"postcss": "^8.4.25",
57-
"prettier": "^2.8.8",
58-
"prettier-plugin-tailwindcss": "^0.3.0",
59-
"prisma": "^5.2.0",
60-
"tailwindcss": "^3.3.3",
61-
"tailwindcss-animate": "^1.0.6",
62-
"typescript": "^5.1.6"
53+
"autoprefixer": "^10.4.16",
54+
"eslint": "8.53.0",
55+
"eslint-config-next": "^14.0.2",
56+
"postcss": "^8.4.31",
57+
"prettier": "^3.1.0",
58+
"prettier-plugin-tailwindcss": "^0.5.7",
59+
"prisma": "^5.5.2",
60+
"tailwindcss": "^3.3.5",
61+
"tailwindcss-animate": "^1.0.7",
62+
"typescript": "^5.2.2"
6363
}
6464
}

0 commit comments

Comments
 (0)