mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
build(deps-dev): bump typescript from 5.9.3 to 6.0.2 (#4899)
* build(deps-dev): bump typescript from 5.9.3 to 6.0.2 in /website Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v6.0.2) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update TypeScript to 6.0.2 for all packages --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Fleny <fleny113@outlook.com>
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
"turbo": "^2.9.3",
|
||||
"typedoc": "^0.28.17",
|
||||
"typedoc-plugin-markdown": "^4.11.0",
|
||||
"typescript": "^5.9.3"
|
||||
"typescript": "^6.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.19.0"
|
||||
|
||||
@@ -44,6 +44,6 @@
|
||||
"sinon": "^21.0.3",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^5.9.3"
|
||||
"typescript": "^6.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,6 @@
|
||||
"mocha": "^11.7.5",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^5.9.3"
|
||||
"typescript": "^6.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,6 @@
|
||||
"sinon": "^21.0.3",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^5.9.3"
|
||||
"typescript": "^6.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,6 @@
|
||||
"sinon": "^21.0.3",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^5.9.3"
|
||||
"typescript": "^6.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
"skipDefaultLibCheck": true,
|
||||
"strict": true,
|
||||
"incremental": true,
|
||||
"resolveJsonModule": true
|
||||
"resolveJsonModule": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["${configDir}/src"],
|
||||
"ts-node": {
|
||||
|
||||
@@ -33,6 +33,6 @@
|
||||
"mocha": "^11.7.5",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^5.9.3"
|
||||
"typescript": "^6.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,6 @@
|
||||
"sinon": "^21.0.3",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsconfig": "*",
|
||||
"typescript": "^5.9.3"
|
||||
"typescript": "^6.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"@docusaurus/types": "^3.9.2",
|
||||
"@types/react": "^19.2.14",
|
||||
"turbo": "^2.8.21",
|
||||
"typescript": "5.9.3",
|
||||
"typescript": "6.0.2",
|
||||
"webpack": "5.105.4"
|
||||
},
|
||||
"resolutions": {
|
||||
|
||||
@@ -33,7 +33,7 @@ export default function BaseFlowChart({ initialNodes = [], initialEdges = [] }:
|
||||
nodes={nodes}
|
||||
edges={edges}
|
||||
defaultEdgeOptions={{ focusable: false, animated: true }}
|
||||
colorMode={color.isDarkTheme ? 'dark' : 'light'}
|
||||
colorMode={color.colorMode === 'dark' ? 'dark' : 'light'}
|
||||
nodeTypes={{
|
||||
baseLineNode: () => (
|
||||
<div style={{ height: '1px', width: '20px' }}>
|
||||
|
||||
@@ -31,8 +31,8 @@ const handlers: Record<
|
||||
};
|
||||
|
||||
export default function FlowChart() {
|
||||
const transformers = [];
|
||||
const events = [];
|
||||
const transformers: string[] = [];
|
||||
const events: string[] = [];
|
||||
const initialNodes: Node[] = [
|
||||
{
|
||||
id: 'baseNode-gateway',
|
||||
@@ -274,7 +274,7 @@ export default function FlowChart() {
|
||||
const [edges, setEdges] = useEdgesState(initialEdges);
|
||||
const [userClick, setUserClick] = useState(false);
|
||||
|
||||
const nodeMouseHandler = (_: React.MouseEvent, node: Node, userTrigger = true) => {
|
||||
const nodeMouseHandler = (_: React.MouseEvent | null, node: Node, userTrigger = true) => {
|
||||
if (userTrigger) setUserClick(true);
|
||||
if (node.id.split('-')[0] === 'baseNode') {
|
||||
edges.forEach((e) => {
|
||||
@@ -287,6 +287,7 @@ export default function FlowChart() {
|
||||
}
|
||||
if (handlerKeys.find((h) => handlers[h].event === node.id)) {
|
||||
const handlerName = handlerKeys.find((h) => handlers[h].event === node.id);
|
||||
if (!handlerName) return;
|
||||
const handler = handlers[handlerName];
|
||||
edges.forEach((e) => {
|
||||
if (e.id.startsWith('baseLine')) return;
|
||||
@@ -401,11 +402,11 @@ export default function FlowChart() {
|
||||
const randomIndex = Math.round((handlerKeys.length - 1) * Math.random());
|
||||
if (!userClick) {
|
||||
nodeMouseHandler(
|
||||
undefined,
|
||||
null,
|
||||
{
|
||||
id: handlerKeys[randomIndex],
|
||||
data: undefined,
|
||||
position: undefined,
|
||||
data: undefined!,
|
||||
position: undefined!,
|
||||
},
|
||||
false,
|
||||
);
|
||||
@@ -439,7 +440,7 @@ export default function FlowChart() {
|
||||
<ReactFlow
|
||||
nodes={nodes}
|
||||
edges={edges}
|
||||
colorMode={color.isDarkTheme ? 'dark' : 'light'}
|
||||
colorMode={color.colorMode === 'dark' ? 'dark' : 'light'}
|
||||
defaultEdgeOptions={{ focusable: false }}
|
||||
onNodeDoubleClick={nodeMouseHandler}
|
||||
onNodeClick={nodeMouseHandler}
|
||||
@@ -450,7 +451,7 @@ export default function FlowChart() {
|
||||
nodeMouseHandler(e, {
|
||||
id: ' - ',
|
||||
data: { label: ' - ' },
|
||||
position: undefined,
|
||||
position: undefined!,
|
||||
});
|
||||
}
|
||||
}}
|
||||
|
||||
@@ -5,13 +5,15 @@ export const defaultNodeOptions = {
|
||||
targetPosition: Position.Top,
|
||||
sourcePosition: Position.Bottom,
|
||||
draggable: false,
|
||||
style: { width: '70px', height: '50px', padding: '10px 0' },
|
||||
type: 'default',
|
||||
style: { width: '80px', height: '50px', padding: '10px 0' },
|
||||
};
|
||||
|
||||
const genServer = (x: number, id: number) => {
|
||||
const server: Node<any, string>[] = [
|
||||
{
|
||||
id: `s${id + 1}`,
|
||||
type: 'default',
|
||||
data: { label: `Server ${id + 1}` },
|
||||
position: { x: x - 42.5, y: 100 },
|
||||
},
|
||||
@@ -54,8 +56,8 @@ const genServer = (x: number, id: number) => {
|
||||
label: `Shard ${id * 500 + (i === 3 ? 49 : i) * 10}-${id * 500 + (i === 3 ? 49 : i) * 10 + 9}`,
|
||||
},
|
||||
position: { x: x - 112.5 + 75 * i, y: 300 },
|
||||
type: 'output',
|
||||
...defaultNodeOptions,
|
||||
type: 'output',
|
||||
...{
|
||||
style: {
|
||||
...defaultNodeOptions.style,
|
||||
@@ -78,9 +80,9 @@ const nodes = [
|
||||
position: { x: -42.5, y: 0 },
|
||||
type: 'input',
|
||||
},
|
||||
...genServer(-300, 0),
|
||||
...genServer(-310, 0),
|
||||
...genServer(0, 1),
|
||||
...genServer(300, 9),
|
||||
...genServer(310, 9),
|
||||
{
|
||||
id: 'baseLineNodeText-6',
|
||||
type: 'baseLineNodeText',
|
||||
|
||||
@@ -171,11 +171,13 @@ export default function DiscordenoReviews() {
|
||||
fill="currentColor"
|
||||
/>
|
||||
</svg>
|
||||
{review.memory_improvement
|
||||
? (review.memory_improvement.from / 1000).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') +
|
||||
'GB' +
|
||||
` (${DiscordLibraries[review.previous_library]})`
|
||||
: DiscordLibraries[review.previous_library]}
|
||||
{review.previous_library
|
||||
? review.memory_improvement
|
||||
? (review.memory_improvement.from / 1000).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') +
|
||||
'GB' +
|
||||
` (${DiscordLibraries[review.previous_library]})`
|
||||
: DiscordLibraries[review.previous_library]
|
||||
: undefined}
|
||||
<div>→</div>
|
||||
{review.memory_improvement
|
||||
? (review.memory_improvement.to / 1000).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') + 'GB'
|
||||
|
||||
@@ -2,8 +2,11 @@
|
||||
// This file is not used in compilation. It is here just for a nice editor experience.
|
||||
"extends": "@docusaurus/tsconfig",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"downlevelIteration": true
|
||||
// When @docusaurus/tsconfig is updated for TS 6, we can remove this and just extend the base config.
|
||||
"baseUrl": null,
|
||||
"paths": {
|
||||
"@site/*": ["./*"]
|
||||
}
|
||||
},
|
||||
"exclude": ["node_modules", ".docusarus", "build"]
|
||||
}
|
||||
|
||||
@@ -13524,23 +13524,23 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@npm:5.9.3":
|
||||
version: 5.9.3
|
||||
resolution: "typescript@npm:5.9.3"
|
||||
"typescript@npm:6.0.2":
|
||||
version: 6.0.2
|
||||
resolution: "typescript@npm:6.0.2"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5
|
||||
checksum: 10c0/4b860b0bf87cc0fee0f66d8ef2640b5a8a8a8c74d1129adb82e389e5f97124383823c47946bef8a73ede371461143a3aa8544399d2133c7b2e4f07e81860af7f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>":
|
||||
version: 5.9.3
|
||||
resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"
|
||||
"typescript@patch:typescript@npm%3A6.0.2#optional!builtin<compat/typescript>":
|
||||
version: 6.0.2
|
||||
resolution: "typescript@patch:typescript@npm%3A6.0.2#optional!builtin<compat/typescript>::version=6.0.2&hash=5786d5"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430
|
||||
checksum: 10c0/49f0b84fc6ca55653e77752b8a61beabc09ee3dae5d965c31596225aa6ef213c5727b1d2e895b900416dc603854ba0872ac4a812c2a4ed6793a601f9c675de02
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -14118,7 +14118,7 @@ __metadata:
|
||||
react: "npm:^19.2.4"
|
||||
react-dom: "npm:^19.2.4"
|
||||
turbo: "npm:^2.8.21"
|
||||
typescript: "npm:5.9.3"
|
||||
typescript: "npm:6.0.2"
|
||||
webpack: "npm:5.105.4"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
30
yarn.lock
30
yarn.lock
@@ -133,7 +133,7 @@ __metadata:
|
||||
sinon: "npm:^21.0.3"
|
||||
ts-node: "npm:^10.9.2"
|
||||
tsconfig: "npm:*"
|
||||
typescript: "npm:^5.9.3"
|
||||
typescript: "npm:^6.0.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -158,7 +158,7 @@ __metadata:
|
||||
sinon: "npm:^21.0.3"
|
||||
ts-node: "npm:^10.9.2"
|
||||
tsconfig: "npm:*"
|
||||
typescript: "npm:^5.9.3"
|
||||
typescript: "npm:^6.0.2"
|
||||
ws: "npm:^8.20.0"
|
||||
dependenciesMeta:
|
||||
fzstd:
|
||||
@@ -188,7 +188,7 @@ __metadata:
|
||||
sinon: "npm:^21.0.3"
|
||||
ts-node: "npm:^10.9.2"
|
||||
tsconfig: "npm:*"
|
||||
typescript: "npm:^5.9.3"
|
||||
typescript: "npm:^6.0.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -205,7 +205,7 @@ __metadata:
|
||||
mocha: "npm:^11.7.5"
|
||||
ts-node: "npm:^10.9.2"
|
||||
tsconfig: "npm:*"
|
||||
typescript: "npm:^5.9.3"
|
||||
typescript: "npm:^6.0.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -227,7 +227,7 @@ __metadata:
|
||||
sinon: "npm:^21.0.3"
|
||||
ts-node: "npm:^10.9.2"
|
||||
tsconfig: "npm:*"
|
||||
typescript: "npm:^5.9.3"
|
||||
typescript: "npm:^6.0.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -1517,7 +1517,7 @@ __metadata:
|
||||
turbo: "npm:^2.9.3"
|
||||
typedoc: "npm:^0.28.17"
|
||||
typedoc-plugin-markdown: "npm:^4.11.0"
|
||||
typescript: "npm:^5.9.3"
|
||||
typescript: "npm:^6.0.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -1541,7 +1541,7 @@ __metadata:
|
||||
mocha: "npm:^11.7.5"
|
||||
ts-node: "npm:^10.9.2"
|
||||
tsconfig: "npm:*"
|
||||
typescript: "npm:^5.9.3"
|
||||
typescript: "npm:^6.0.2"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -3045,23 +3045,23 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@npm:^5.9.3":
|
||||
version: 5.9.3
|
||||
resolution: "typescript@npm:5.9.3"
|
||||
"typescript@npm:^6.0.2":
|
||||
version: 6.0.2
|
||||
resolution: "typescript@npm:6.0.2"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5
|
||||
checksum: 10c0/4b860b0bf87cc0fee0f66d8ef2640b5a8a8a8c74d1129adb82e389e5f97124383823c47946bef8a73ede371461143a3aa8544399d2133c7b2e4f07e81860af7f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@patch:typescript@npm%3A^5.9.3#optional!builtin<compat/typescript>":
|
||||
version: 5.9.3
|
||||
resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"
|
||||
"typescript@patch:typescript@npm%3A^6.0.2#optional!builtin<compat/typescript>":
|
||||
version: 6.0.2
|
||||
resolution: "typescript@patch:typescript@npm%3A6.0.2#optional!builtin<compat/typescript>::version=6.0.2&hash=5786d5"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430
|
||||
checksum: 10c0/49f0b84fc6ca55653e77752b8a61beabc09ee3dae5d965c31596225aa6ef213c5727b1d2e895b900416dc603854ba0872ac4a812c2a4ed6793a601f9c675de02
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user