mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-01-14 01:42:56 -05:00
bump a looooooot of deps
This commit is contained in:
@@ -1 +1 @@
|
|||||||
18.16.1
|
18.17.1
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ import removeMarkdown from "remove-markdown";
|
|||||||
import { unified } from "unified";
|
import { unified } from "unified";
|
||||||
import remarkParse from "remark-parse";
|
import remarkParse from "remark-parse";
|
||||||
import remarkRehype from "remark-rehype";
|
import remarkRehype from "remark-rehype";
|
||||||
import rehypeStringify from "rehype-stringify";
|
import rehypeSanitize from "rehype-sanitize";
|
||||||
import remarkSmartypants from "remark-smartypants";
|
import remarkSmartypants from "remark-smartypants";
|
||||||
|
import rehypeStringify from "rehype-stringify";
|
||||||
import { formatDate } from "./format-date";
|
import { formatDate } from "./format-date";
|
||||||
|
|
||||||
import type { NoteFrontMatter } from "../../types";
|
import type { NoteFrontMatter } from "../../types";
|
||||||
import rehypeSanitize from "rehype-sanitize";
|
|
||||||
|
|
||||||
export const getNoteSlugs = async (): Promise<string[]> => {
|
export const getNoteSlugs = async (): Promise<string[]> => {
|
||||||
// list all .mdx files in "/notes"
|
// list all .mdx files in "/notes"
|
||||||
|
|||||||
@@ -2,16 +2,18 @@ import { PrismaClient } from "@prisma/client/edge";
|
|||||||
|
|
||||||
// creating PrismaClient here prevents next.js from starting too many concurrent prisma instances and exhausting the
|
// creating PrismaClient here prevents next.js from starting too many concurrent prisma instances and exhausting the
|
||||||
// number of connection pools available (especially when hot reloading from `next dev`).
|
// number of connection pools available (especially when hot reloading from `next dev`).
|
||||||
// https://pris.ly/d/help/next-js-best-practices
|
// https://www.prisma.io/docs/guides/other/troubleshooting-orm/help-articles/nextjs-prisma-client-dev-practices
|
||||||
|
|
||||||
const globalForPrisma = globalThis as unknown as {
|
const prismaClientSingleton = () => {
|
||||||
prisma: PrismaClient | undefined;
|
return new PrismaClient();
|
||||||
};
|
};
|
||||||
|
|
||||||
export const prisma =
|
type PrismaClientSingleton = ReturnType<typeof prismaClientSingleton>;
|
||||||
globalForPrisma.prisma ??
|
|
||||||
new PrismaClient({
|
const globalForPrisma = globalThis as unknown as {
|
||||||
log: ["query"],
|
prisma: PrismaClientSingleton | undefined;
|
||||||
});
|
};
|
||||||
|
|
||||||
|
export const prisma = globalForPrisma.prisma ?? prismaClientSingleton();
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;
|
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;
|
||||||
|
|||||||
@@ -1,26 +1,21 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");
|
|
||||||
const config = require("./lib/config");
|
const config = require("./lib/config");
|
||||||
|
|
||||||
module.exports = (/** @type {string} */ phase) => {
|
/**
|
||||||
/**
|
|
||||||
* @type {import("next").NextConfig}
|
* @type {import("next").NextConfig}
|
||||||
*/
|
*/
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
swcMinify: true,
|
swcMinify: true,
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
trailingSlash: true,
|
trailingSlash: true,
|
||||||
productionBrowserSourceMaps: true,
|
productionBrowserSourceMaps: true,
|
||||||
transpilePackages: ["@novnc/novnc"],
|
transpilePackages: ["@novnc/novnc"],
|
||||||
env: {
|
env: {
|
||||||
BASE_URL:
|
BASE_URL: process.env.NEXT_PUBLIC_VERCEL_URL
|
||||||
process.env.NEXT_PUBLIC_VERCEL_ENV !== "production" && process.env.NEXT_PUBLIC_VERCEL_URL !== undefined
|
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
|
||||||
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}` // https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables
|
: `http://localhost:${process.env.PORT || 3000}`,
|
||||||
: phase === PHASE_DEVELOPMENT_SERVER
|
|
||||||
? `http://localhost:${process.env.PORT || 3000}` // https://nextjs.org/docs/api-reference/cli#development
|
|
||||||
: `https://${config.siteDomain}`, // fallback to production url
|
|
||||||
// freeze timestamp at build time for when server-side pages need a "last updated" date. calling Date.now() from
|
// freeze timestamp at build time for when server-side pages need a "last updated" date. calling Date.now() from
|
||||||
// pages using getServerSideProps will return the current(ish) time instead, which is usually not what we want.
|
// pages using getServerSideProps will return the current(ish) time instead, which is usually not what we want.
|
||||||
RELEASE_DATE: new Date().toISOString(),
|
RELEASE_DATE: new Date().toISOString(),
|
||||||
@@ -33,6 +28,7 @@ module.exports = (/** @type {string} */ phase) => {
|
|||||||
legacyBrowsers: false,
|
legacyBrowsers: false,
|
||||||
newNextLinkBehavior: true, // https://github.com/vercel/next.js/pull/36436
|
newNextLinkBehavior: true, // https://github.com/vercel/next.js/pull/36436
|
||||||
optimisticClientCache: false, // https://github.com/vercel/next.js/discussions/40268#discussioncomment-3572642
|
optimisticClientCache: false, // https://github.com/vercel/next.js/discussions/40268#discussioncomment-3572642
|
||||||
|
largePageDataBytes: 128 * 1000, // raise getStaticProps limit to 512 kB since compiled MDX might exceed this.
|
||||||
},
|
},
|
||||||
webpack: (config) => {
|
webpack: (config) => {
|
||||||
// allow processing SVGs from the below packages directly instead of through their different exports, and leave
|
// allow processing SVGs from the below packages directly instead of through their different exports, and leave
|
||||||
@@ -155,7 +151,6 @@ module.exports = (/** @type {string} */ phase) => {
|
|||||||
{ source: "/resume/", destination: "/static/resume.pdf", permanent: false },
|
{ source: "/resume/", destination: "/static/resume.pdf", permanent: false },
|
||||||
{ source: "/resume.pdf", destination: "/static/resume.pdf", permanent: false },
|
{ source: "/resume.pdf", destination: "/static/resume.pdf", permanent: false },
|
||||||
],
|
],
|
||||||
};
|
|
||||||
|
|
||||||
return nextConfig;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
module.exports = nextConfig;
|
||||||
|
|||||||
70
package.json
70
package.json
@@ -21,24 +21,24 @@
|
|||||||
"@giscus/react": "^2.3.0",
|
"@giscus/react": "^2.3.0",
|
||||||
"@hcaptcha/react-hcaptcha": "^1.8.1",
|
"@hcaptcha/react-hcaptcha": "^1.8.1",
|
||||||
"@novnc/novnc": "github:novnc/novnc#ca6527c1bf7131adccfdcc5028964a1e67f9018c",
|
"@novnc/novnc": "github:novnc/novnc#ca6527c1bf7131adccfdcc5028964a1e67f9018c",
|
||||||
"@octokit/graphql": "^6.0.1",
|
"@octokit/graphql": "^7.0.1",
|
||||||
"@octokit/graphql-schema": "^14.19.0",
|
"@octokit/graphql-schema": "^14.27.2",
|
||||||
"@primer/octicons": "^19.4.0",
|
"@primer/octicons": "^19.7.0",
|
||||||
"@prisma/client": "^4.16.2",
|
"@prisma/client": "^5.2.0",
|
||||||
"@react-spring/web": "^9.7.3",
|
"@react-spring/web": "^9.7.3",
|
||||||
"@stitches/react": "^1.3.1-1",
|
"@stitches/react": "^1.3.1-1",
|
||||||
"@vercel/analytics": "^1.0.1",
|
"@vercel/analytics": "^1.0.2",
|
||||||
"@vercel/postgres": "^0.4.0",
|
"@vercel/postgres": "^0.4.1",
|
||||||
"comma-number": "^2.1.0",
|
"comma-number": "^2.1.0",
|
||||||
"copy-to-clipboard": "^3.3.3",
|
"copy-to-clipboard": "^3.3.3",
|
||||||
"dayjs": "^1.11.9",
|
"dayjs": "^1.11.9",
|
||||||
"fast-glob": "^3.3.0",
|
"fast-glob": "^3.3.1",
|
||||||
"fathom-client": "^3.5.0",
|
"fathom-client": "^3.5.0",
|
||||||
"feather-icons": "^4.29.0",
|
"feather-icons": "^4.29.1",
|
||||||
"feed": "^4.2.2",
|
"feed": "^4.2.2",
|
||||||
"formik": "^2.4.2",
|
"formik": "^2.4.3",
|
||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"next": "13.4.8",
|
"next": "13.4.19",
|
||||||
"next-mdx-remote": "^4.4.1",
|
"next-mdx-remote": "^4.4.1",
|
||||||
"next-seo": "^6.1.0",
|
"next-seo": "^6.1.0",
|
||||||
"obj-str": "^1.1.0",
|
"obj-str": "^1.1.0",
|
||||||
@@ -49,59 +49,59 @@
|
|||||||
"query-string": "^8.1.0",
|
"query-string": "^8.1.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"react-error-boundary": "^4.0.10",
|
"react-error-boundary": "^4.0.11",
|
||||||
"react-gist": "^1.2.4",
|
"react-gist": "^1.2.4",
|
||||||
"react-innertext": "^1.1.5",
|
"react-innertext": "^1.1.5",
|
||||||
"react-intersection-observer": "^9.5.2",
|
"react-intersection-observer": "^9.5.2",
|
||||||
"react-is": "18.2.0",
|
"react-is": "18.2.0",
|
||||||
"react-player": "~2.10.1",
|
"react-player": "~2.10.1",
|
||||||
"react-textarea-autosize": "^8.5.2",
|
"react-textarea-autosize": "^8.5.3",
|
||||||
"react-twitter-embed": "^4.0.4",
|
"react-twitter-embed": "^4.0.4",
|
||||||
"rehype-prism-plus": "^1.6.1",
|
"rehype-prism-plus": "^1.6.3",
|
||||||
"rehype-sanitize": "^5.0.1",
|
"rehype-sanitize": "^5.0.1",
|
||||||
"rehype-slug": "^5.1.0",
|
"rehype-slug": "^5.1.0",
|
||||||
"rehype-stringify": "^9.0.3",
|
"rehype-stringify": "^9.0.4",
|
||||||
"remark-gfm": "^3.0.1",
|
"remark-gfm": "^3.0.1",
|
||||||
"remark-parse": "^10.0.2",
|
"remark-parse": "^10.0.2",
|
||||||
"remark-rehype": "^10.1.0",
|
"remark-rehype": "^10.1.0",
|
||||||
"remark-smartypants": "^2.0.0",
|
"remark-smartypants": "^2.0.0",
|
||||||
"remark-unwrap-images": "^3.0.1",
|
"remark-unwrap-images": "^3.0.1",
|
||||||
"remove-markdown": "^0.5.0",
|
"remove-markdown": "^0.5.0",
|
||||||
"simple-icons": "^9.4.0",
|
"simple-icons": "^9.12.0",
|
||||||
"sitemap": "^7.1.1",
|
"sitemap": "^7.1.1",
|
||||||
"stitches-normalize": "^2.0.0",
|
"stitches-normalize": "^2.0.0",
|
||||||
"swr": "^2.2.0",
|
"swr": "^2.2.2",
|
||||||
"unified": "^10.1.2"
|
"unified": "^10.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jakejarvis/eslint-config": "^3.1.0",
|
"@jakejarvis/eslint-config": "github:jakejarvis/eslint-config",
|
||||||
"@svgr/webpack": "^8.0.1",
|
"@svgr/webpack": "^8.1.0",
|
||||||
"@types/comma-number": "^2.1.0",
|
"@types/comma-number": "^2.1.0",
|
||||||
"@types/node": "^18.16.19",
|
"@types/node": "^18.17.12",
|
||||||
"@types/novnc__novnc": "^1.3.0",
|
"@types/novnc__novnc": "^1.3.0",
|
||||||
"@types/prop-types": "^15.7.5",
|
"@types/prop-types": "^15.7.5",
|
||||||
"@types/react": "^18.2.14",
|
"@types/react": "^18.2.21",
|
||||||
"@types/react-dom": "^18.2.6",
|
"@types/react-dom": "^18.2.7",
|
||||||
"@types/react-is": "^18.2.1",
|
"@types/react-is": "^18.2.1",
|
||||||
"@types/remove-markdown": "^0.3.1",
|
"@types/remove-markdown": "^0.3.1",
|
||||||
"@types/uglify-js": "^3.17.1",
|
"@types/uglify-js": "^3.17.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
||||||
"@typescript-eslint/parser": "^5.61.0",
|
"@typescript-eslint/parser": "^6.5.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "~8.44.0",
|
"eslint": "~8.48.0",
|
||||||
"eslint-config-next": "13.4.8",
|
"eslint-config-next": "13.4.19",
|
||||||
"eslint-config-prettier": "~8.8.0",
|
"eslint-config-prettier": "~8.8.0",
|
||||||
"eslint-plugin-mdx": "~2.1.0",
|
"eslint-plugin-mdx": "~2.2.0",
|
||||||
"eslint-plugin-prettier": "~4.2.1",
|
"eslint-plugin-prettier": "~4.2.1",
|
||||||
"lint-staged": "^13.2.3",
|
"lint-staged": "^14.0.1",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"prisma": "^4.16.2",
|
"prisma": "^5.2.0",
|
||||||
"simple-git-hooks": "^2.8.1",
|
"simple-git-hooks": "^2.9.0",
|
||||||
"typescript": "^5.1.6",
|
"typescript": "^5.2.2",
|
||||||
"uglify-js": "^3.17.4"
|
"uglify-js": "^3.17.4"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"sharp": "^0.32.1"
|
"sharp": "^0.32.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.x"
|
"node": ">=16.x"
|
||||||
@@ -118,9 +118,9 @@
|
|||||||
"eslint"
|
"eslint"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@8.6.6",
|
"packageManager": "pnpm@8.7.1",
|
||||||
"volta": {
|
"volta": {
|
||||||
"node": "18.16.1",
|
"node": "18.17.1",
|
||||||
"pnpm": "8.6.6"
|
"pnpm": "8.7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1070
pnpm-lock.yaml
generated
1070
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,5 @@
|
|||||||
generator client {
|
generator client {
|
||||||
provider = "prisma-client-js"
|
provider = "prisma-client-js"
|
||||||
previewFeatures = ["jsonProtocol"]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
datasource db {
|
datasource db {
|
||||||
|
|||||||
Reference in New Issue
Block a user