chore: bump 3 major deps

This commit is contained in:
Corbin Crutchley
2022-05-12 00:32:51 +01:00
parent d3c1c5b84b
commit ef9f6a8d3b
5 changed files with 5473 additions and 5683 deletions

View File

@@ -2,6 +2,7 @@
"plugins": ["prettier"],
"extends": ["next/core-web-vitals", "prettier"],
"rules": {
"prettier/prettier": "error"
"prettier/prettier": "error",
"@next/next/no-img-element": "off"
}
}

11129
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -38,12 +38,12 @@
"@types/lodash": "^4.14.182",
"batteries-not-included": "^0.1.0",
"classnames": "2.3.1",
"copy-webpack-plugin": "^9.0.1",
"copy-webpack-plugin": "^10.2.4",
"date-fns": "^2.28.0",
"dayjs": "^1.11.2",
"disqus-react": "^1.1.3",
"framer-motion": "^4.1.17",
"gatsby-remark-embedder": "^5.0.0",
"gatsby-remark-embedder": "^6.0.0",
"github-slugger": "^1.4.0",
"gray-matter": "4.0.3",
"jest-environment-jsdom": "^28.1.0",
@@ -61,7 +61,7 @@
"rehype-react": "^7.1.1",
"rehype-slug-custom-id": "^1.1.0",
"rehype-stringify": "^9.0.3",
"remark-behead": "^2.3.3",
"remark-behead": "^3.0.0",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.1",
"remark-rehype": "^10.1.0",
@@ -104,6 +104,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"feed": "^4.2.2",
"gatsby": "^4.13.1",
"hast-util-heading-rank": "^2.1.0",
"husky": "^7.0.4",
"identity-obj-proxy": "^3.0.0",

14
src/types/modules/remark-behead.d.ts vendored Normal file
View File

@@ -0,0 +1,14 @@
declare module "remark-behead" {
import type { Node } from "unist";
import type { Root } from "mdast";
import type { Plugin } from "unified";
export interface BeheadOptions {
depth: number;
after: number | string | Node;
before: number | string | Node;
between: [number | string | Node, number | string | Node];
}
declare const plugin: Plugin<[BeheadOptions?] | void[], Root, string>;
export default plugin;
}

View File

@@ -17,9 +17,8 @@ import { UserConfigSettings } from "shiki-twoslash";
import { rehypeTabs, RehypeTabsProps } from "utils/markdown/plugins/tabs";
import { PluggableList } from "unified";
// Optional now. Probably should move to an array that's passed or something
// TODO: Create types
const behead = require("remark-behead");
import behead from "remark-behead";
interface markdownChainProps {
remarkPlugins: PluggableList;