ts 5.6 and other updates (#4522)

<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to update dependencies across multiple packages and fix minor code issues.

### Detailed summary
- Updated `typedoc` to versions `0.26.7`.
- Updated `tsup` to versions `8.2.4`.
- Updated `typescript` to versions `5.6.2`.
- Updated various packages to use the latest TypeScript version.
- Fixed minor code issues like handling `delete` operations and eslint comments.

> The following files were skipped due to too many changes: `packages/thirdweb/src/wallets/in-app/core/eip5972/in-app-wallet-calls.ts`, `legacy_packages/wallets/src/evm/connectors/gcp-kms/utils/gcp-kms-utils.ts`, `apps/dashboard/package.json`, `packages/thirdweb/package.json`, `legacy_packages/contracts-js/package.json`, `pnpm-lock.yaml`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
This commit is contained in:
jnsdls
2024-09-11 02:35:34 +00:00
parent 02aabbf97d
commit 495aa042ba
37 changed files with 2238 additions and 2232 deletions
+13 -21
View File
@@ -49,7 +49,7 @@
"@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-tooltip": "1.1.2",
"@react-icons/all-files": "^4.1.0",
"@sentry/nextjs": "^8.26.0",
"@sentry/nextjs": "8.30.0",
"@shazow/whatsabi": "^0.14.1",
"@stripe/react-stripe-js": "^2.7.3",
"@stripe/stripe-js": "^3.5.0",
@@ -69,20 +69,20 @@
"date-fns": "^3.6.0",
"ethers": "5.7.2",
"flat": "^6.0.1",
"framer-motion": "^11.2.12",
"framer-motion": "11.5.4",
"fuse.js": "7.0.0",
"ioredis": "^5.4.1",
"ipaddr.js": "^2.2.0",
"lottie-react": "^2.4.0",
"lucide-react": "^0.399.0",
"next": "14.2.8",
"lucide-react": "0.439.0",
"next": "14.2.9",
"next-plausible": "^3.12.0",
"next-seo": "^6.5.0",
"next-themes": "^0.3.0",
"nextjs-toploader": "^1.6.12",
"papaparse": "^5.4.1",
"pluralize": "^8.0.0",
"posthog-js": "1.128.3",
"posthog-js": "1.161.3",
"posthog-js-opensource": "npm:[email protected]",
"prism-react-renderer": "^2.3.1",
"prismjs": "^1.29.0",
@@ -97,7 +97,7 @@
"react-intersection-observer": "^9.10.3",
"react-markdown": "^9.0.1",
"react-otp-input": "^3.1.1",
"react-query-v5": "npm:@tanstack/react-query@^5.40.1",
"react-query-v5": "npm:@tanstack/react-query@5.55.4",
"react-responsive-carousel": "^3.2.23",
"react-table": "^7.8.0",
"recharts": "^2.12.7",
@@ -118,9 +118,9 @@
"devDependencies": {
"@chakra-ui/cli": "^2.4.1",
"@chromatic-com/storybook": "^1.5.0",
"@next/bundle-analyzer": "^14.2.4",
"@next/bundle-analyzer": "14.2.9",
"@next/eslint-plugin-next": "^14.2.9",
"@playwright/test": "1.46.1",
"@playwright/test": "1.47.0",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-interactions": "^8.2.9",
"@storybook/addon-links": "^8.2.9",
@@ -145,16 +145,16 @@
"autoprefixer": "^10.4.19",
"checkly": "^4.8.1",
"eslint": "8.57.0",
"eslint-config-biome": "^1.7.3",
"eslint-config-biome": "1.8.3",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-promise": "^6.2.0",
"eslint-plugin-react-compiler": "0.0.0-experimental-51a85ea-20240601",
"eslint-plugin-react-compiler": "0.0.0-experimental-9ed098e-20240725",
"eslint-plugin-storybook": "^0.8.0",
"next-sitemap": "^4.2.3",
"next-unused": "^0.0.6",
"storybook": "^8.2.9",
"tailwindcss": "^3.4.10",
"typescript": "5.5.4"
"typescript": "5.6.2"
},
"next-unused": {
"alias": {},
@@ -169,16 +169,8 @@
"tw-components",
"contract-ui"
],
"exclude": [
"node_modules",
"types",
"tw-components"
],
"exclude": ["node_modules", "types", "tw-components"],
"entrypoints": []
},
"browserslist": [
"defaults",
"unreleased versions",
"not UCAndroid > 0"
]
"browserslist": ["defaults", "unreleased versions", "not UCAndroid > 0"]
}
@@ -65,10 +65,10 @@ export const ConfigureNetworkForm: React.FC<NetworkConfigFormProps> = ({
rpcUrl:
editingChain && editingChain?.status !== "deprecated"
? getDashboardChainRpc(editingChain.chainId, editingChain)
: "" || "",
: "",
chainId: editingChain?.chainId
? `${editingChain?.chainId}`
: "" || prefillChainId || "",
: prefillChainId || "",
currencySymbol: editingChain?.nativeCurrency.symbol || "",
type: editingChain?.testnet ? "testnet" : "mainnet",
icon: editingChain?.icon?.url || "",
@@ -57,19 +57,18 @@ export const CurrencySelector: React.FC<CurrencySelectorProps> = ({
return false;
}, [chainId, customCurrency, initialValue]);
const currencyOptions: CurrencyMetadata[] =
[
...(isPaymentsSelector
? []
: [
{
address: NATIVE_TOKEN_ADDRESS.toLowerCase(),
name: chain?.nativeCurrency.name || "Native Token",
symbol: chain?.nativeCurrency.symbol || "",
},
]),
...(hideDefaultCurrencies ? [] : helperCurrencies),
] || [];
const currencyOptions: CurrencyMetadata[] = [
...(isPaymentsSelector
? []
: [
{
address: NATIVE_TOKEN_ADDRESS.toLowerCase(),
name: chain?.nativeCurrency.name || "Native Token",
symbol: chain?.nativeCurrency.symbol || "",
},
]),
...(hideDefaultCurrencies ? [] : helperCurrencies),
];
const addCustomCurrency = () => {
if (!isAddress(editCustomCurrency)) {
@@ -321,6 +321,8 @@ const AnalyticsData: React.FC<AnalyticsStatProps> = ({
contractAddress,
useTotal,
}) => {
// FIXME: re-work this to not pass the hook down
// eslint-disable-next-line react-compiler/react-compiler
const totalQuery = useTotal({
contractAddress,
chainId,
@@ -562,6 +562,8 @@ const SnapshotTable: React.FC<SnapshotTableProps> = ({
pageIndex: 0,
},
},
// old package, this will be removed
// eslint-disable-next-line react-compiler/react-compiler
usePagination,
);
@@ -396,6 +396,8 @@ const AirdropTable: React.FC<AirdropTableProps> = ({ data, portalRef }) => {
pageIndex: 0,
},
},
// old package: this will be removed
// eslint-disable-next-line react-compiler/react-compiler
usePagination,
);
+4 -4
View File
@@ -29,8 +29,8 @@
"@tanstack/react-query": "^5.51.23",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.399.0",
"next": "14.2.8",
"lucide-react": "0.439.0",
"next": "14.2.9",
"next-themes": "^0.3.0",
"prettier": "^3.3.2",
"react": "18.3.1",
@@ -48,10 +48,10 @@
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
"eslint": "8.57.0",
"eslint-config-next": "14.2.4",
"eslint-plugin-react-compiler": "0.0.0-experimental-51a85ea-20240601",
"eslint-plugin-react-compiler": "0.0.0-experimental-9ed098e-20240725",
"postcss": "^8",
"tailwindcss": "^3.4.10",
"tailwindcss-animate": "^1.0.7",
"typescript": "5.5.4"
"typescript": "5.6.2"
}
}
@@ -15,7 +15,7 @@ function encodeUriData(dataUri: string): string {
const dataStart = dataUri.indexOf(",") + 1;
return (
dataUri.slice(0, dataStart) +
encodeURIComponent(dataUri.slice(dataStart)) ?? ""
encodeURIComponent(dataUri.slice(dataStart)) || ""
);
}
+4 -4
View File
@@ -32,11 +32,11 @@
"escape-string-regexp": "^5.0.0",
"flexsearch": "^0.7.43",
"github-slugger": "^2.0.0",
"lucide-react": "^0.399.0",
"next": "14.2.8",
"lucide-react": "0.439.0",
"next": "14.2.9",
"nextjs-toploader": "^1.6.12",
"node-html-parser": "^6.1.13",
"posthog-js": "1.128.3",
"posthog-js": "1.161.3",
"prettier": "^3.3.2",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -72,6 +72,6 @@
"postcss": "^8",
"tailwindcss": "^3.4.10",
"tsx": "^4.19.0",
"typescript": "5.5.4"
"typescript": "5.6.2"
}
}
+3 -3
View File
@@ -21,8 +21,8 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
"lucide-react": "^0.399.0",
"next": "14.2.8",
"lucide-react": "0.439.0",
"next": "14.2.9",
"next-themes": "^0.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
@@ -42,6 +42,6 @@
"eslint-config-next": "14.2.4",
"postcss": "^8",
"tailwindcss": "^3.4.10",
"typescript": "5.5.4"
"typescript": "5.6.2"
}
}