diff --git a/DevDockerfile b/DevDockerfile index 3e2b3897..6230ef85 100644 --- a/DevDockerfile +++ b/DevDockerfile @@ -1,7 +1,7 @@ # Copyright (c) Microsoft Corporation and others. Licensed under the MIT license. # SPDX-License-Identifier: MIT -FROM docker.io/library/node:24-bullseye +FROM docker.io/library/node:24-trixie ENV APPDIR=/opt/service ## get SSH server running diff --git a/Dockerfile b/Dockerfile index 02fca69a..221502bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Copyright (c) Microsoft Corporation and others. Licensed under the MIT license. # SPDX-License-Identifier: MIT -FROM docker.io/library/node:24-bullseye +FROM docker.io/library/node:24-trixie ENV APPDIR=/opt/service ## get SSH server running diff --git a/package-lock.json b/package-lock.json index 52150e49..56b26708 100644 --- a/package-lock.json +++ b/package-lock.json @@ -62,7 +62,7 @@ "winston": "^3.17.0" }, "devDependencies": { - "@tsconfig/node20": "20.1.6", + "@tsconfig/node24": "24.0.2", "@tsconfig/strictest": "2.0.5", "@types/base-64": "0.1.3", "@types/body-parser": "1.19.6", @@ -144,6 +144,7 @@ "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", @@ -1164,6 +1165,7 @@ "resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.6.tgz", "integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==", "license": "MIT", + "peer": true, "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", @@ -1575,6 +1577,7 @@ "resolved": "https://registry.npmjs.org/@redis/client/-/client-5.10.0.tgz", "integrity": "sha512-JXmM4XCoso6C75Mr3lhKA3eNxSzkYi3nCzxDIKY+YOszYsJjuKbFgVtguVPbLMOttN4iu2fXoc2BGhdnYhIOxA==", "license": "MIT", + "peer": true, "dependencies": { "cluster-key-slot": "1.1.2" }, @@ -1683,10 +1686,10 @@ "dev": true, "license": "MIT" }, - "node_modules/@tsconfig/node20": { - "version": "20.1.6", - "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.6.tgz", - "integrity": "sha512-sz+Hqx9zwZDpZIV871WSbUzSqNIsXzghZydypnfgzPKLltVJfkINfUeTct31n/tTSa9ZE1ZOfKdRre1uHHquYQ==", + "node_modules/@tsconfig/node24": { + "version": "24.0.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node24/-/node24-24.0.2.tgz", + "integrity": "sha512-CNeOLUPI9PjbBc1DSIqb3GF/u+3kX/TDe9DKCzoI62mYI4dEDrMQ0r/9+SfYACP4UNMbiTlz7n8H7Rx/xTisQg==", "dev": true, "license": "MIT" }, @@ -1805,6 +1808,7 @@ "integrity": "sha512-wGA0NX93b19/dZC1J18tKWVIYWyyF2ZjT9vin/NRu0qzzvfVzWjs04iq2rQ3H65vCTQYlRqs3YHfY7zjdV+9Kw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/body-parser": "*", "@types/express-serve-static-core": "^5.0.0", @@ -2183,6 +2187,7 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -2232,6 +2237,7 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "license": "MIT", + "peer": true, "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", @@ -3032,6 +3038,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "baseline-browser-mapping": "^2.9.0", "caniuse-lite": "^1.0.30001759", @@ -3258,6 +3265,7 @@ "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "assertion-error": "^1.1.0", "check-error": "^1.0.3", @@ -4499,6 +4507,7 @@ "integrity": "sha512-zmxXPNMOXmwm9E0yQLi5uqXHs7uq2UIiqEKo3Gq+3fwo1XrJ+hijAZImyF7hclW3E6oHz43Yk3RP8at6OTKflQ==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", @@ -4766,6 +4775,7 @@ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", "license": "MIT", + "peer": true, "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", @@ -4809,6 +4819,7 @@ "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.1.tgz", "integrity": "sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw==", "license": "MIT", + "peer": true, "engines": { "node": ">= 16" }, @@ -5499,6 +5510,7 @@ "integrity": "sha512-BL/Xd/T9baO6NFzoMpiMD7YUZ62R6viR5tp/MULVEnbYJXZA//kRNW7J0j1w/wXArgL0sCxhDfK5dczSKn3+cg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">= 10.x" } @@ -11402,6 +11414,7 @@ "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10.0.0" }, diff --git a/package.json b/package.json index e520cd66..13ee7c36 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "winston": "^3.17.0" }, "devDependencies": { - "@tsconfig/node20": "20.1.6", + "@tsconfig/node24": "24.0.2", "@tsconfig/strictest": "2.0.5", "@types/base-64": "0.1.3", "@types/body-parser": "1.19.6", @@ -125,4 +125,4 @@ "testcontainers": "^11.2.1", "typescript": "5.8.3" } -} +} \ No newline at end of file diff --git a/test/providers/store/mongoDefinitionPagination.js b/test/providers/store/mongoDefinitionPagination.js index 2200ede0..5085223b 100644 --- a/test/providers/store/mongoDefinitionPagination.js +++ b/test/providers/store/mongoDefinitionPagination.js @@ -33,8 +33,11 @@ const shouldPaginateSearchCorrectly = function () { }) after('cleanup database', async function () { - await mongoStore.collection.drop() - await mongoStore.close() + if (mongoStore) { + await mongoStore.collection.drop() + await mongoStore.close() + } + await mongoServer.stop() }) diff --git a/tsconfig.json b/tsconfig.json index 79140ded..9e54cca5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node20/tsconfig.json"], + "extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node24/tsconfig.json"], "compilerOptions": { "allowJs": true, "checkJs": true,