Skip to content

Commit b172235

Browse files
chore: upgrade to node.js 24 LTS, update dependencies and improve type definitions (#419)
- Updated @types/node to ^24.0.0 for compatibility with Node.js 24. - Upgraded @typescript-eslint/eslint-plugin and @typescript-eslint/parser to ^6.21.0. - Bumped ts-node version to 10.9.2. - Changed typescript version to ~5.7.3 for better type checking. - Updated Docker image for migrations-test to node:24-alpine. - Changed NodeJS.Timer to NodeJS.Timeout in web-socket-server-adapter and maintenance-worker. - Added skipLibCheck option to tsconfig files for faster builds. Co-authored-by: Ricardo Cabral <me@ricardocabral.io>
1 parent b3542f6 commit b172235

13 files changed

Lines changed: 3989 additions & 12463 deletions

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.8.0
1+
v24.14.1

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine3.16 AS build
1+
FROM node:24-alpine AS build
22

33
WORKDIR /build
44

@@ -10,7 +10,7 @@ COPY . .
1010

1111
RUN npm run build
1212

13-
FROM node:18-alpine3.16
13+
FROM node:24-alpine
1414

1515
LABEL org.opencontainers.image.title="Nostream"
1616
LABEL org.opencontainers.image.source=https://github.com/cameri/nostream

Dockerfile.railwayapp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Author Saransh Sharma @cynsar foundation
2-
FROM node:18-alpine3.16 as build
2+
FROM node:24-alpine as build
33

44
ARG PORT
55
ARG PGHOST
@@ -29,7 +29,7 @@ COPY . .
2929

3030
RUN npm run build
3131

32-
FROM node:18-alpine3.16
32+
FROM node:24-alpine
3333

3434
ARG PORT
3535
ARG PGHOST

Dockerfile.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine3.16
1+
FROM node:24-alpine
22

33
WORKDIR /code
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ NIPs with a relay-specific implementation are listed here.
6767
### Standalone setup
6868
- PostgreSQL 14.0
6969
- Redis
70-
- Node v18
70+
- Node v24
7171
- Typescript
7272

7373
### Docker setups

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ services:
114114
retries: 5
115115

116116
nostream-migrate:
117-
image: node:18-alpine3.16
117+
image: node:24-alpine
118118
container_name: nostream-migrate
119119
environment:
120120
DB_HOST: nostream-db

0 commit comments

Comments
 (0)