Skip to content

Commit 67a8d85

Browse files
committed
fix some weird type errors
1 parent b9da8e9 commit 67a8d85

File tree

7 files changed

+77
-261
lines changed

7 files changed

+77
-261
lines changed

apps/changelog/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
"@auth/prisma-adapter": "^1.2.0",
2222
"@google-cloud/storage": "^7.7.0",
2323
"@prisma/client": "^5.8.1",
24-
"@radix-ui/react-icons": "^1.3.0",
25-
"@radix-ui/react-toolbar": "^1.0.4",
26-
"@radix-ui/themes": "^2.0.3",
24+
"@radix-ui/react-icons": "^1.3.2",
25+
"@radix-ui/react-toolbar": "^1.1.0",
26+
"@radix-ui/themes": "^3.1.3",
2727
"@sentry/nextjs": "8.36.0",
2828
"@spotlightjs/spotlight": "^2.1.1",
29-
"next": "15.0.0-rc.1",
29+
"next": "15.0.3",
3030
"next-auth": "^4.24.5",
3131
"next-mdx-remote": "^4.4.1",
3232
"nextjs-toploader": "^1.6.6",
3333
"nuqs": "^1.17.7",
3434
"prism-sentry": "^1.0.2",
35-
"react": "19.0.0-rc-cd22717c-20241013",
36-
"react-dom": "19.0.0-rc-cd22717c-20241013",
35+
"react": "rc",
36+
"react-dom": "rc",
3737
"react-select": "^5.7.3",
3838
"react-textarea-autosize": "^8.5.3",
3939
"rehype-prism-plus": "^1.6.3",
@@ -66,4 +66,4 @@
6666
"@types/react": "npm:[email protected]",
6767
"@types/react-dom": "npm:[email protected]"
6868
}
69-
}
69+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@
5050
"@radix-ui/react-icons": "^1.3.2",
5151
"@radix-ui/react-tabs": "^1.1.1",
5252
"@radix-ui/react-toolbar": "^1.1.0",
53-
"@radix-ui/themes": "^3.1.3",
5453
"@radix-ui/react-tooltip": "^1.1.4",
54+
"@radix-ui/themes": "^3.1.3",
5555
"@sentry-internal/global-search": "^1.1.0",
5656
"@sentry/nextjs": "8.36.0",
57+
"@types/dompurify": "^3.0.5",
5758
"@types/mdx": "^2.0.9",
5859
"algoliasearch": "^4.23.3",
60+
"dompurify": "3.1.6",
5961
"esbuild": "^0.19.8",
6062
"framer-motion": "^10.12.16",
6163
"gray-matter": "^4.0.3",
@@ -131,4 +133,4 @@
131133
"node": "20.11.0",
132134
"yarn": "1.22.21"
133135
}
134-
}
136+
}

scripts/no-vercel-json-redirects.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {readFileSync} from 'fs';
2+
23
const vercelConfig = JSON.parse(readFileSync('./vercel.json', 'utf8'));
34

45
if (vercelConfig.redirects && vercelConfig.redirects.length > 0) {

src/components/search/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
SentryGlobalSearch,
99
standardSDKSlug,
1010
} from '@sentry-internal/global-search';
11-
import DOMPurify from 'dompurify';
11+
import * as DOMPurify from 'dompurify';
1212
import Link from 'next/link';
1313
import {usePathname, useRouter} from 'next/navigation';
1414
import algoliaInsights from 'search-insights';

src/mdx-deflist.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const isdeflist = (node: Node, i: number, parent: Parent) =>
3636

3737
export default function deflist(): Transformer {
3838
return tree => {
39-
visit(tree, ['paragraph'], (node, i, parent: Parent) => {
40-
const isdef = isdeflist(node, i!, parent as Parent);
39+
visit(tree, 'paragraph', (node: Node, i, parent: Parent) => {
40+
const isdef = isdeflist(node, i!, parent);
4141
if (!isdef) {
4242
return;
4343
}

src/remark-component-spacing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const remarkComponentSpacing: Plugin<void[], Root> = function () {
2424
node.type === 'mdxJsxTextElement' &&
2525
affectedComponents.includes(node.name ?? '')
2626
) {
27-
componentNode = node;
28-
componentNodeParent = parent;
27+
componentNode = node as Node;
28+
componentNodeParent = parent as Node;
2929
}
3030
});
3131
};

yarn.lock

Lines changed: 60 additions & 247 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)