Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:

strategy:
matrix:
node-version: [24.x]
node-version: [24.x, 25.x]

steps:
- uses: actions/checkout@v5

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- Base Node ----
FROM node:24.9.0-trixie-slim as base
FROM node:24.10.0-trixie-slim as base

RUN set -ex &&\
apt-get update && \
Expand Down
5,384 changes: 2,453 additions & 2,931 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"cmd:getUserImportJobs": "node --env-file-if-exists=.env scripts/cmd/getUserImportJobs.ts"
},
"dependencies": {
"@aws-sdk/client-sns": "^3.908.0",
"@aws-sdk/client-sqs": "^3.908.0",
"@aws-sdk/credential-providers": "^3.908.0",
"@aws-sdk/client-sns": "^3.916.0",
"@aws-sdk/client-sqs": "^3.916.0",
"@aws-sdk/credential-providers": "^3.916.0",
"@fastify/auth": "^5.0.3",
"@fastify/awilix": "^8.0.0",
"@fastify/cors": "^11.1.0",
Expand All @@ -62,29 +62,29 @@
"@message-queue-toolkit/sns": "^23.1.3",
"@message-queue-toolkit/sqs": "^22.3.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.65.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.206.0",
"@opentelemetry/sdk-node": "^0.206.0",
"@scalar/fastify-api-reference": "^1.38.0",
"@opentelemetry/auto-instrumentations-node": "^0.66.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.207.0",
"@opentelemetry/sdk-node": "^0.207.0",
"@scalar/fastify-api-reference": "^1.38.1",
"@supercharge/promise-pool": "^3.2.0",
"amqplib": "^0.10.9",
"awilix": "^12.0.5",
"awilix-manager": "^6.1.0",
"bullmq": "^5.61.0",
"bullmq": "^5.61.2",
"drizzle-kit": "^0.31.5",
"drizzle-orm": "^0.44.6",
"drizzle-orm": "^0.44.7",
"drizzle-zod": "^0.8.3",
"fastify": "^5.6.1",
"fastify-graceful-shutdown": "^5.0.0",
"fastify-metrics": "^12.1.0",
"fastify-no-icon": "^7.0.0",
"fastify-type-provider-zod": "^6.0.0",
"ioredis": "^5.8.1",
"ioredis": "^5.8.2",
"jsonwebtoken": "^9.0.2",
"layered-loader": "^14.2.0",
"newrelic": "13.4.0",
"newrelic": "13.5.0",
"opinionated-machine": "^4.0.0",
"pino": "^10.0.0",
"pino": "^10.1.0",
"pino-pretty": "^13.1.2",
"postgres": "^3.4.7",
"prom-client": "^15.1.3",
Expand All @@ -95,23 +95,23 @@
"zod": "^4.1.12"
},
"devDependencies": {
"@amplitude/analytics-types": "^2.10.0",
"@biomejs/biome": "2.2.5",
"@amplitude/analytics-types": "^2.11.0",
"@biomejs/biome": "2.3.0",
"@lokalise/biome-config": "^3.1.0",
"@lokalise/tsconfig": "^3.0.0",
"@lokalise/universal-testing-utils": "^2.4.0",
"@opentelemetry/sdk-trace-node": "^2.1.0",
"@opentelemetry/sdk-trace-node": "^2.2.0",
"@readme/openapi-parser": "^5.0.2",
"@types/amqplib": "^0.10.7",
"@types/amqplib": "^0.10.8",
"@types/jsonwebtoken": "^9.0.10",
"@types/newrelic": "^9.14.8",
"@types/node": "^24.7.2",
"@vitest/coverage-v8": "^3.2.4",
"@types/node": "^24.9.1",
"@vitest/coverage-v8": "^4.0.2",
"cpy-cli": "^6.0.0",
"cross-env": "^10.1.0",
"mockttp": "^4.2.0",
"typescript": "5.9.3",
"vitest": "^3.2.4",
"vitest": "^4.0.2",
"yaml": "^2.8.1"
}
}
4 changes: 2 additions & 2 deletions scripts/generateOpenApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ async function run() {
jobQueuesEnabled: false,
})

const openApiSpecResponse = await app.inject().get('/documentation/openapi.json')
const openApiSpecAsYaml = toYaml(JSON.parse(openApiSpecResponse.body))
const openApiSpec = await app.swagger()
const openApiSpecAsYaml = toYaml(openApiSpec)

try {
await rm(targetPath)
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
requestContextProviderPlugin,
} from '@lokalise/fastify-extras'
import { type CommonLogger, resolveGlobalErrorLogObject, resolveLogger } from '@lokalise/node-core'
import scalarFastifyApiReference from '@scalar/fastify-api-reference'
import { default as scalarFastifyApiReference } from '@scalar/fastify-api-reference'
import { type AwilixContainer, createContainer } from 'awilix'
import type { FastifyInstance } from 'fastify'
import fastify from 'fastify'
Expand Down
14 changes: 7 additions & 7 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
poolOptions: {
threads: {
singleThread: true,
},
},
maxWorkers: 1,
isolate: false,
pool: 'threads',
watch: false,
environment: 'node',
Expand All @@ -18,7 +15,11 @@ export default defineConfig({
provider: 'v8',
include: ['src/**/*.ts'],
exclude: [
'src/otel.ts',
'src/db/*',
'src/infrastructure/healthchecks/healthchecks.ts',
'src/infrastructure/jobs/AbstractPeriodicJob.ts',
'src/infrastructure/CommonModule.ts',
'src/infrastructure/logger.ts',
'src/infrastructure/diConfig.ts',
'src/infrastructure/errors/publicErrors.ts',
Expand All @@ -32,11 +33,10 @@ export default defineConfig({
'src/**/*.test.ts',
],
reporter: ['text'],
all: true,
thresholds: {
lines: 89,
functions: 89,
branches: 85,
branches: 80,
statements: 89,
},
},
Expand Down
Loading