Sfoglia il codice sorgente

chore: upgrade javascript dependencies

Connor Prussin 7 mesi fa
parent
commit
81655125f9

+ 0 - 2
.npmrc

@@ -1,2 +0,0 @@
-package-manager-strict=true
-engine-strict=true

+ 1 - 1
.nvmrc

@@ -1 +1 @@
-v22.13.0
+v22.14.0

+ 2 - 2
.tool-versions

@@ -1,4 +1,4 @@
-nodejs 22.13.0
-pnpm 9.15.4
+nodejs 22.14.0
+pnpm 10.7.0
 rust 1.78.0
 python 3.12.4

+ 3 - 3
Dockerfile.node

@@ -1,4 +1,4 @@
-FROM node:22.13.0-slim@sha256:f5a0871ab03b035c58bdb3007c3d177b001c2145c18e81817b71624dcf7d8bff as builder-base
+FROM node:22.14.0-slim@sha256:bac8ff0b5302b06924a5e288fb4ceecef9c8bb0bb92515985d2efdc3a2447052 as builder-base
 WORKDIR /usr/src/pyth
 ENV PNPM_HOME="/pnpm"
 ENV PATH="$PNPM_HOME:$PATH"
@@ -8,7 +8,7 @@ COPY ./ .
 RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
 
 
-FROM node:22.13.0-alpine3.21@sha256:f2dc6eea95f787e25f173ba9904c9d0647ab2506178c7b5b7c5a3d02bc4af145 as runner-base
+FROM node:22.14.0-alpine3.21@sha256:9bef0ef1e268f60627da9ba7d7605e8831d5b56ad07487d24d1aa386336d1944 as runner-base
 WORKDIR /srv
 ENV NODE_ENV production
 RUN addgroup --system --gid 1001 pyth && adduser --system --uid 1001 pyth -g pyth && chown pyth:pyth .
@@ -19,7 +19,7 @@ FROM builder-base AS builder
 ARG package
 ENV CI true
 RUN pnpm turbo build --filter $package
-RUN pnpm deploy --filter $package --prod /srv/$package
+RUN pnpm deploy --legacy --filter $package --prod /srv/$package
 
 
 FROM runner-base AS runner

+ 1 - 3
apps/api-reference/src/browser-logger.ts

@@ -6,8 +6,6 @@ import { IS_PRODUCTION_BUILD } from "./isomorphic-config";
 let LOGGER: Logger | undefined;
 
 export const getLogger = (): Logger => {
-  if (LOGGER === undefined) {
-    LOGGER = pino({ browser: { disabled: IS_PRODUCTION_BUILD } });
-  }
+  LOGGER ??= pino({ browser: { disabled: IS_PRODUCTION_BUILD } });
   return LOGGER;
 };

+ 1 - 3
apps/insights/src/components/PriceFeed/chart.tsx

@@ -141,9 +141,7 @@ const useChartElem = (symbol: string, feedId: string) => {
 
   useEffect(() => {
     if (current && chartRef.current) {
-      if (!earliestDateRef.current) {
-        earliestDateRef.current = current.timestamp;
-      }
+      earliestDateRef.current ??= current.timestamp;
       const { price, confidence } = current.aggregate;
       const time = getLocalTimestamp(
         new Date(Number(current.timestamp * 1000n)),

+ 3 - 3
flake.lock

@@ -72,11 +72,11 @@
     },
     "nixpkgs_2": {
       "locked": {
-        "lastModified": 1742091044,
-        "narHash": "sha256-uygocyOFl9KlzpUbQrYn0/D0eE5rc+jRp+5qqm+0L3Q=",
+        "lastModified": 1743529221,
+        "narHash": "sha256-RIvE0cA40F2E0L5j9vMGOJNVhsi3Lm3IJPq+v6f3ZmE=",
         "owner": "NixOS",
         "repo": "nixpkgs",
-        "rev": "fb6ff3988cc0f68d23b6db9cd70b87f2f88e1a32",
+        "rev": "190060a0647d91d82e425c0287759035312cc879",
         "type": "github"
       },
       "original": {

+ 3 - 11
package.json

@@ -1,10 +1,10 @@
 {
   "name": "@pythnetwork/pyth-crosschain",
   "private": true,
-  "packageManager": "pnpm@9.15.4",
+  "packageManager": "pnpm@10.7.0",
   "engines": {
-    "node": "^22.11.0",
-    "pnpm": "^9.15.3"
+    "node": "^22.14.0",
+    "pnpm": "^10.7.0"
   },
   "scripts": {
     "fix:format": "prettier --write .",
@@ -19,13 +19,5 @@
     "prettier": "catalog:",
     "prettier-plugin-solidity": "catalog:",
     "turbo": "^2.4.4"
-  },
-  "pnpm": {
-    "overrides": {
-      "@solana/web3.js@1.77.4>rpc-websockets": "7.11.0"
-    },
-    "patchedDependencies": {
-      "eccrypto@1.1.6": "patches/eccrypto@1.1.6.patch"
-    }
   }
 }

File diff suppressed because it is too large
+ 191 - 191
pnpm-lock.yaml


+ 82 - 36
pnpm-workspace.yaml

@@ -1,3 +1,15 @@
+packageManagerStrict: true
+packageManagerStrictVersion: true
+engineStrict: true
+strictDepBuilds: true
+managePackageManagerVersions: true
+
+overrides:
+  "@solana/web3.js@1.77.4>rpc-websockets": 7.11.0
+
+patchedDependencies:
+  "eccrypto@1.1.6": patches/eccrypto@1.1.6.patch
+
 packages:
   - apps/*
   - packages/*
@@ -33,19 +45,19 @@ packages:
   - lazer/sdk/js
 
 catalog:
-  "@amplitude/analytics-browser": ^2.12.0
+  "@amplitude/analytics-browser": ^2.13.0
   "@amplitude/plugin-autocapture-browser": ^1.0.0
   "@axe-core/react": ^4.10.1
   "@bonfida/spl-name-service": ^3.0.10
-  "@clickhouse/client": ^1.10.1
-  "@cprussin/eslint-config": ^4.0.1
-  "@cprussin/jest-config": ^2.0.1
-  "@cprussin/prettier-config": ^2.2.1
-  "@cprussin/tsconfig": ^3.1.1
-  "@floating-ui/react": ^0.27.5
+  "@clickhouse/client": ^1.11.0
+  "@cprussin/eslint-config": ^4.0.2
+  "@cprussin/jest-config": ^2.0.2
+  "@cprussin/prettier-config": ^2.2.2
+  "@cprussin/tsconfig": ^3.1.2
+  "@floating-ui/react": ^0.27.6
   "@headlessui/react": ^2.2.0
   "@heroicons/react": ^2.2.0
-  "@next/third-parties": ^15.2.2
+  "@next/third-parties": ^15.2.4
   "@phosphor-icons/react": ^2.1.7
   "@pythnetwork/client": ^2.22.1
   "@pythnetwork/pyth-sdk-solidity": ^4.0.0
@@ -53,45 +65,45 @@ catalog:
   "@radix-ui/react-slot": ^1.1.2
   "@radix-ui/react-switch": ^1.1.3
   "@react-hookz/web": ^25.1.0
-  "@solana/wallet-adapter-base": ^0.9.23
-  "@solana/wallet-adapter-react": ^0.15.35
-  "@solana/wallet-adapter-react-ui": ^0.9.35
-  "@solana/wallet-adapter-wallets": ^0.19.32
+  "@solana/wallet-adapter-base": ^0.9.24
+  "@solana/wallet-adapter-react": ^0.15.36
+  "@solana/wallet-adapter-react-ui": ^0.9.36
+  "@solana/wallet-adapter-wallets": ^0.19.33
   "@solana/web3.js": ^1.98.0
-  "@storybook/addon-essentials": ^8.6.6
+  "@storybook/addon-essentials": ^8.6.12
   "@storybook/addon-styling-webpack": ^1.0.1
-  "@storybook/addon-themes": ^8.6.6
-  "@storybook/blocks": ^8.6.6
-  "@storybook/nextjs": ^8.6.6
-  "@storybook/react": ^8.6.6
+  "@storybook/addon-themes": ^8.6.12
+  "@storybook/blocks": ^8.6.12
+  "@storybook/nextjs": ^8.6.12
+  "@storybook/react": ^8.6.12
   "@svgr/webpack": ^8.1.0
   "@tailwindcss/forms": ^0.5.10
-  "@tanstack/react-query": ^5.68.0
+  "@tanstack/react-query": ^5.71.5
   "@types/jest": ^29.5.14
-  "@types/node": ^22.13.10
-  "@types/react": ^19.0.10
-  "@types/react-dom": ^19.0.4
+  "@types/node": ^22.14.0
+  "@types/react": ^19.1.0
+  "@types/react-dom": ^19.1.1
   "@vercel/functions": ^2.0.0
   autoprefixer: ^10.4.21
   bcp-47: ^2.1.0
   bs58: ^6.0.0
   class-variance-authority: ^0.7.1
   clsx: ^2.1.1
-  connectkit: ^1.8.2
+  connectkit: ^1.9.0
   cryptocurrency-icons: ^0.18.1
   css-loader: ^7.1.2
   dnum: ^2.14.0
-  eslint: ^9.22.0
-  framer-motion: ^12.5.0
+  eslint: ^9.23.0
+  framer-motion: ^12.6.3
   highlight.js: ^11.11.1
   ip-range-check: ^0.2.0
   jest: ^29.7.0
   lerna: ^8.2.1
-  lightweight-charts: ^5.0.3
-  lucide-react: ^0.482.0
+  lightweight-charts: ^5.0.5
+  lucide-react: ^0.487.0
   modern-normalize: ^3.0.1
-  motion: ^12.5.0
-  next: ^15.2.2
+  motion: ^12.6.3
+  next: ^15.2.4
   next-themes: ^0.4.6
   nuqs: ^2.4.1
   pino: ^9.6.0
@@ -100,29 +112,63 @@ catalog:
   prettier: ^3.5.3
   prettier-plugin-solidity: ^1.4.2
   proxycheck-ts: ^0.0.11
-  react: ^19.0.0
+  react: ^19.1.0
   react-aria: ^3.38.1
   react-aria-components: ^1.7.1
-  react-dom: ^19.0.0
+  react-dom: ^19.1.0
   react-markdown: ^10.1.0
   recharts: ^2.15.1
-  sass: ^1.85.1
+  sass: ^1.86.1
   sass-loader: ^16.0.5
   shiki: ^3.2.1
-  storybook: ^8.6.6
+  storybook: ^8.6.12
   style-loader: ^4.0.0
-  stylelint: ^16.16.0
+  stylelint: ^16.17.0
   stylelint-config-standard-scss: ^14.0.0
   superjson: ^2.2.2
   swr: ^2.3.3
-  tailwind-merge: ^3.0.2
+  tailwind-merge: ^3.1.0
   tailwindcss: ^3.0.0
   tailwindcss-animate: ^1.0.7
   tailwindcss-react-aria-components: ^2.0.0
   ts-node: ^10.9.2
   typescript: ^5.8.2
   vercel: ^41.4.1
-  viem: ^2.23.11
-  wagmi: ^2.14.13
+  viem: ^2.24.3
+  wagmi: ^2.14.16
   zod: ^3.24.2
   zod-validation-error: ^3.4.0
+
+onlyBuiltDependencies:
+  - "@apollo/protobufjs"
+  - "@injectivelabs/networks"
+  - "@injectivelabs/sdk-ts"
+  - "@injectivelabs/token-metadata"
+  - "@injectivelabs/utils"
+  - "@parcel/watcher"
+  - "@scarf/scarf"
+  - "@trufflesuite/bigint-buffer"
+  - bigint-buffer
+  - blake-hash
+  - bufferutil
+  - core-js
+  - core-js-pure
+  - cpu-features
+  - eccrypto
+  - es5-ext
+  - esbuild
+  - keccak
+  - leveldown
+  - node-hid
+  - nx
+  - protobufjs
+  - secp256k1
+  - sharp
+  - ssh2
+  - tiny-secp256k1
+  - truffle
+  - usb
+  - utf-8-validate
+  - web3
+  - web3-bzz
+  - web3-shh

Some files were not shown because too many files changed in this diff