diff --git a/.node-version b/.node-version index 02c8b485edb5..a9d087399d71 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -18.18.0 +18.19.0 diff --git a/frontend/package.json b/frontend/package.json index d3ff9e5b333c..c210239d2600 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -52,7 +52,7 @@ "@types/lodash.clonedeep": "4.5.9", "@types/lodash.mapvalues": "^4.6.9", "@types/lodash.omit": "4.5.9", - "@types/node": "18.17.19", + "@types/node": "18.19.4", "@types/react": "17.0.74", "@types/react-dom": "17.0.25", "@types/react-linkify": "1.0.4", diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 9544602bd1fa..3721e6a95d48 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -2208,10 +2208,12 @@ dependencies: undici-types "~5.26.4" -"@types/node@18.17.19": - version "18.17.19" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.17.19.tgz#80c9b8a89d3648d9e6098f4a7184e03833fee3c5" - integrity sha512-+pMhShR3Or5GR0/sp4Da7FnhVmTalWm81M6MkEldbwjETSaPalw138Z4KdpQaistvqQxLB7Cy4xwYdxpbSOs9Q== +"@types/node@18.19.4": + version "18.19.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.4.tgz#89672e84f11a2c19543d694dac00ab8d7bc20ddb" + integrity sha512-xNzlUhzoHotIsnFoXmJB+yWmBvFZgKCI9TtPIEdYIMM1KWfwuY8zh7wvc1u1OAXlC7dlf6mZVx/s+Y5KfFz19A== + dependencies: + undici-types "~5.26.4" "@types/node@^18.17.5": version "18.18.5" diff --git a/package.json b/package.json index 57bbcee6e986..7745b5e173b8 100644 --- a/package.json +++ b/package.json @@ -166,7 +166,7 @@ "@types/make-fetch-happen": "10.0.4", "@types/memoizee": "0.4.11", "@types/mime": "3.0.4", - "@types/node": "18.17.19", + "@types/node": "18.19.4", "@types/nodemailer": "6.4.14", "@types/owasp-password-strength-test": "1.3.2", "@types/pg": "8.10.9", diff --git a/src/lib/features/playground/feature-evaluator/repository/index.ts b/src/lib/features/playground/feature-evaluator/repository/index.ts index bba8bc134176..ac86655b531d 100644 --- a/src/lib/features/playground/feature-evaluator/repository/index.ts +++ b/src/lib/features/playground/feature-evaluator/repository/index.ts @@ -23,7 +23,7 @@ interface FeatureToggleData { } export default class Repository extends EventEmitter { - private timer: NodeJS.Timer | undefined; + private timer: NodeJS.Timeout | undefined; private appName: string; diff --git a/src/lib/features/scheduler/scheduler-service.ts b/src/lib/features/scheduler/scheduler-service.ts index c94cecfe5049..867f4e8fef90 100644 --- a/src/lib/features/scheduler/scheduler-service.ts +++ b/src/lib/features/scheduler/scheduler-service.ts @@ -4,7 +4,7 @@ import { IMaintenanceStatus } from '../maintenance/maintenance-service'; import { SCHEDULER_JOB_TIME } from '../../metric-events'; export class SchedulerService { - private intervalIds: NodeJS.Timer[] = []; + private intervalIds: NodeJS.Timeout[] = []; private logger: Logger; diff --git a/src/lib/metrics.ts b/src/lib/metrics.ts index e9de062ca947..2d970352c2a1 100644 --- a/src/lib/metrics.ts +++ b/src/lib/metrics.ts @@ -22,15 +22,14 @@ import { import { IUnleashConfig } from './types/option'; import { IEnvironmentStore, IUnleashStores } from './types/stores'; import { hoursToMilliseconds, minutesToMilliseconds } from 'date-fns'; -import Timer = NodeJS.Timer; import { InstanceStatsService } from './features/instance-stats/instance-stats-service'; import { ValidatedClientMetrics } from './services/client-metrics/schema'; import { IEnvironment } from './types'; export default class MetricsMonitor { - timer?: Timer; + timer?: NodeJS.Timeout; - poolMetricsTimer?: Timer; + poolMetricsTimer?: NodeJS.Timeout; constructor() { this.timer = undefined; diff --git a/src/lib/proxy/proxy-repository.ts b/src/lib/proxy/proxy-repository.ts index 579f892577b6..e490cfd89af7 100644 --- a/src/lib/proxy/proxy-repository.ts +++ b/src/lib/proxy/proxy-repository.ts @@ -43,7 +43,7 @@ export class ProxyRepository extends EventEmitter implements RepositoryInterface private interval: number; - private timer: NodeJS.Timer | null; + private timer: NodeJS.Timeout | null; private running: boolean; diff --git a/yarn.lock b/yarn.lock index eaef94cb4286..8eaf61740d9a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1504,10 +1504,12 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.18.tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f" integrity sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA== -"@types/node@18.17.19": - version "18.17.19" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.17.19.tgz#80c9b8a89d3648d9e6098f4a7184e03833fee3c5" - integrity sha512-+pMhShR3Or5GR0/sp4Da7FnhVmTalWm81M6MkEldbwjETSaPalw138Z4KdpQaistvqQxLB7Cy4xwYdxpbSOs9Q== +"@types/node@18.19.4": + version "18.19.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.4.tgz#89672e84f11a2c19543d694dac00ab8d7bc20ddb" + integrity sha512-xNzlUhzoHotIsnFoXmJB+yWmBvFZgKCI9TtPIEdYIMM1KWfwuY8zh7wvc1u1OAXlC7dlf6mZVx/s+Y5KfFz19A== + dependencies: + undici-types "~5.26.4" "@types/node@>=12.0.0": version "20.4.1" @@ -7064,6 +7066,11 @@ uid-safe@~2.1.5: dependencies: random-bytes "~1.0.0" +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + unique-filename@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-2.0.1.tgz#e785f8675a9a7589e0ac77e0b5c34d2eaeac6da2"