chore: update all deps

This commit is contained in:
Corbin Crutchley
2023-07-24 12:14:29 -07:00
parent 4178af320c
commit 6e1a88e4f6
7 changed files with 1063 additions and 387 deletions

View File

@@ -1,6 +1,7 @@
const tsRules = { const tsRules = {
"@typescript-eslint/ban-types": "off", "@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-unused-vars": "off",
}; };
module.exports = { module.exports = {

View File

@@ -68,7 +68,7 @@ export default defineConfig({
/* start remark plugins here */ /* start remark plugins here */
[behead, { depth: 1 }], [behead, { depth: 1 }],
[ [
remarkEmbedder as any, remarkEmbedder,
{ {
transformers: [oembedTransformer, TwitchTransformer], transformers: [oembedTransformer, TwitchTransformer],
} as RemarkEmbedderOptions, } as RemarkEmbedderOptions,

View File

@@ -16,16 +16,14 @@ export const createIndex = async () => {
{ {
name: "authorName", name: "authorName",
getFn: (post) => { getFn: (post) => {
return (post as any).authorsMeta return post.authorsMeta.map((author) => author.name).join(", ");
.map((author) => author.name)
.join(", ");
}, },
weight: 1.8, weight: 1.8,
}, },
{ {
name: "authorHandles", name: "authorHandles",
getFn: (post) => { getFn: (post) => {
return (post as any).authorsMeta return post.authorsMeta
.flatMap((author) => Object.values(author.socials)) .flatMap((author) => Object.values(author.socials))
.join(", "); .join(", ");
}, },
@@ -35,7 +33,7 @@ export const createIndex = async () => {
{ name: "description", weight: 1.2 }, { name: "description", weight: 1.2 },
{ name: "excerpt", weight: 1.2 }, { name: "excerpt", weight: 1.2 },
], ],
posts posts,
).toJSON(); ).toJSON();
}; };

1393
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -43,26 +43,26 @@
"@astrojs/image": "^0.17.1", "@astrojs/image": "^0.17.1",
"@astrojs/mdx": "^0.19.7", "@astrojs/mdx": "^0.19.7",
"@astrojs/preact": "^2.2.1", "@astrojs/preact": "^2.2.1",
"@astrojs/sitemap": "^1.3.3", "@astrojs/sitemap": "^2.0.1",
"@lesjoursfr/html-to-epub": "^4.0.0", "@lesjoursfr/html-to-epub": "^4.0.0",
"@remark-embedder/core": "^3.0.1", "@remark-embedder/core": "^3.0.1",
"@remark-embedder/transformer-oembed": "^3.0.0", "@remark-embedder/transformer-oembed": "^3.0.0",
"@testing-library/dom": "^9.3.1", "@testing-library/dom": "^9.3.1",
"@testing-library/jest-dom": "^5.16.5", "@testing-library/jest-dom": "^5.17.0",
"@testing-library/preact": "^3.2.3", "@testing-library/preact": "^3.2.3",
"@types/jest": "^29.4.0", "@types/jest": "^29.4.0",
"@types/node": "^18.13.0", "@types/node": "^20.4.4",
"@types/uuid": "^9.0.2", "@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^5.60.0", "@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^5.60.0", "@typescript-eslint/parser": "^6.2.0",
"@vercel/node": "^2.15.2", "@vercel/node": "^2.15.6",
"astro": "^2.7.0", "astro": "^2.9.2",
"astro-icon": "^0.8.1", "astro-icon": "^0.8.1",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"classnames": "^2.3.2", "classnames": "^2.3.2",
"dayjs": "^1.11.8", "dayjs": "^1.11.8",
"env-cmd": "^10.1.0", "env-cmd": "^10.1.0",
"esbuild": "^0.18.7", "esbuild": "^0.18.16",
"esbuild-jest": "^0.5.0", "esbuild-jest": "^0.5.0",
"eslint": "^8.43.0", "eslint": "^8.43.0",
"eslint-plugin-astro": "^0.27.1", "eslint-plugin-astro": "^0.27.1",
@@ -85,11 +85,11 @@
"lint-staged": "^13.2.2", "lint-staged": "^13.2.2",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"playwright": "^1.36.1", "playwright": "^1.36.1",
"postcss": "^8.4.24", "postcss": "^8.4.27",
"postcss-csso": "^6.0.1", "postcss-csso": "^6.0.1",
"preact-render-to-string": "^6.1.0", "preact-render-to-string": "^6.1.0",
"prettier": "^2.8.8", "prettier": "^3.0.0",
"prettier-plugin-astro": "^0.10.0", "prettier-plugin-astro": "^0.11.0",
"probe-image-size": "^7.2.3", "probe-image-size": "^7.2.3",
"rehype-raw": "^6.1.1", "rehype-raw": "^6.1.1",
"rehype-retext": "^3.0.2", "rehype-retext": "^3.0.2",
@@ -99,17 +99,17 @@
"remark-shiki-twoslash": "^3.1.3", "remark-shiki-twoslash": "^3.1.3",
"remark-unwrap-images": "^3.0.1", "remark-unwrap-images": "^3.0.1",
"retext-english": "^4.1.0", "retext-english": "^4.1.0",
"sass": "^1.63.6", "sass": "^1.64.1",
"sitemap": "^7.1.1", "sitemap": "^7.1.1",
"symlink-dir": "^5.1.1", "symlink-dir": "^5.1.1",
"terser": "^5.18.1", "terser": "^5.19.2",
"tsx": "^3.12.7", "tsx": "^3.12.7",
"typescript": "^4.9.5", "typescript": "^5.1.6",
"unified": "^10.1.2", "unified": "^10.1.2",
"unist-util-find-all-after": "^4.0.1", "unist-util-find-all-after": "^5.0.0",
"unist-util-is": "^5.2.1", "unist-util-is": "^6.0.0",
"unist-util-replace-all-between": "^0.1.1", "unist-util-replace-all-between": "^0.1.1",
"unist-util-visit": "^4.1.2", "unist-util-visit": "^5.0.0",
"vite-plugin-svgr": "^3.2.0" "vite-plugin-svgr": "^3.2.0"
}, },
"lint-staged": { "lint-staged": {
@@ -117,10 +117,10 @@
"*.{js,ts,astro,jsx}": "prettier --write" "*.{js,ts,astro,jsx}": "prettier --write"
}, },
"dependencies": { "dependencies": {
"react-aria": "^3.26.0",
"react-stately": "^3.24.0",
"medium-zoom": "^1.0.8", "medium-zoom": "^1.0.8",
"preact": "^10.16.0" "preact": "^10.16.0",
"react-aria": "^3.26.0",
"react-stately": "^3.24.0"
}, },
"overrides": { "overrides": {
"react": "npm:@preact/compat@latest", "react": "npm:@preact/compat@latest",

View File

@@ -3,6 +3,6 @@ export {};
declare global { declare global {
const plausible: ( const plausible: (
val: string, val: string,
args?: { props?: any; callback?: () => void } args?: { props?: unknown; callback?: () => void },
) => void; ) => void;
} }

View File

@@ -5,10 +5,10 @@
export function debounce<T extends Function>( export function debounce<T extends Function>(
func: T, func: T,
wait: number, wait: number,
immediate: boolean immediate: boolean,
): T { ): T {
let timeout: number | null; let timeout: number | null;
return function (this: any) { return function (this: unknown) {
// eslint-disable-next-line @typescript-eslint/no-this-alias // eslint-disable-next-line @typescript-eslint/no-this-alias
const context = this; const context = this;
// eslint-disable-next-line prefer-rest-params // eslint-disable-next-line prefer-rest-params