Skip to content

chore: upgrade javascript dependencies #2540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22.13.0
v22.14.0
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions Dockerfile.node
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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 .
Expand All @@ -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
Expand Down
4 changes: 1 addition & 3 deletions apps/api-reference/src/browser-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
4 changes: 1 addition & 3 deletions apps/insights/src/components/PriceFeed/chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 .",
Expand All @@ -19,13 +19,5 @@
"prettier": "catalog:",
"prettier-plugin-solidity": "catalog:",
"turbo": "^2.4.4"
},
"pnpm": {
"overrides": {
"@solana/[email protected]>rpc-websockets": "7.11.0"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
Loading
Loading