From 9213108212b6949f2f49ad150e91c5a72c4c20a5 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Mon, 18 Aug 2025 02:38:55 +0000 Subject: [PATCH] fix(mongodump.plugins): Bump @types/node to ^22.0.0 and use runtime import for @tsclass/tsclass in plugins --- changelog.md | 6 +++++ package.json | 2 +- pnpm-lock.yaml | 55 ++++++++++++++++++++++------------------ ts/00_commitinfo_data.ts | 2 +- ts/mongodump.plugins.ts | 2 +- 5 files changed, 40 insertions(+), 27 deletions(-) diff --git a/changelog.md b/changelog.md index 7d743eb..5c93666 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-08-18 - 1.0.10 - fix(mongodump.plugins) +Bump @types/node to ^22.0.0 and use runtime import for @tsclass/tsclass in plugins + +- Bumped dev dependency @types/node from ^17.0.40 to ^22.0.0 in package.json +- Changed import of @tsclass/tsclass from a type-only import to a runtime import in ts/mongodump.plugins.ts so tsclass is exported and available at runtime + ## 2025-08-18 - 1.0.9 - fix(dependencies) Update dependencies, normalize package scopes to @push.rocks, bump mongodb to v6, adjust tests and add pnpm metadata diff --git a/package.json b/package.json index ef4e53d..f3316ed 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@git.zone/tstest": "^2.3.4", "@push.rocks/smartdata": "^5.0.5", "@push.rocks/smartmongo": "^2.0.3", - "@types/node": "^17.0.40" + "@types/node": "^22.0.0" }, "browserslist": [ "last 1 chrome versions" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2abaea1..cf07027 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,8 +49,8 @@ importers: specifier: ^2.0.3 version: 2.0.12(@aws-sdk/credential-providers@3.864.0)(socks@2.8.7) '@types/node': - specifier: ^17.0.40 - version: 17.0.45 + specifier: ^22.0.0 + version: 22.17.2 packages: @@ -1352,8 +1352,8 @@ packages: '@types/node-forge@1.3.13': resolution: {integrity: sha512-zePQJSW5QkwSHKRApqWCVKeKoSOt4xvEnLENZPjyvm9Ezdf/EyDeJM7jqLzOwjVICQQzvLZ63T55MKdJB5H6ww==} - '@types/node@17.0.45': - resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} + '@types/node@22.17.2': + resolution: {integrity: sha512-gL6z5N9Jm9mhY+U2KXZpteb+09zyffliRkZyZOHODGATyC5B1Jt/7TzuuiLkFsSUMLbS1OLmlj/E+/3KF4Q/4w==} '@types/ping@0.4.4': resolution: {integrity: sha512-ifvo6w2f5eJYlXm+HiVx67iJe8WZp87sfa683nlqED5Vnt9Z93onkokNoWqOG21EaE8fMxyKPobE+mkPEyxsdw==} @@ -3513,6 +3513,9 @@ packages: resolution: {integrity: sha512-+NWHrac9dvilNgme+gP4YrBSumsaMZP0fNBtXXFIf33RLLKEcBUKaQZ7ULUbS0sBfcjxIZ4V96OTRkCbM7hxpw==} engines: {node: '>=18'} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + unified@11.0.5: resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==} @@ -5962,22 +5965,22 @@ snapshots: '@types/body-parser@1.19.6': dependencies: '@types/connect': 3.4.38 - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/buffer-json@2.0.3': {} '@types/clean-css@4.2.11': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 source-map: 0.6.1 '@types/connect@3.4.38': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/cors@2.8.19': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/debug@4.1.12': dependencies: @@ -5987,7 +5990,7 @@ snapshots: '@types/express-serve-static-core@5.0.7': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/qs': 6.14.0 '@types/range-parser': 1.2.7 '@types/send': 0.17.5 @@ -6005,16 +6008,16 @@ snapshots: '@types/fs-extra@11.0.4': dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/fs-extra@9.0.13': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/glob@7.2.0': dependencies: '@types/minimatch': 6.0.0 - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/hast@3.0.4': dependencies: @@ -6036,7 +6039,7 @@ snapshots: '@types/jsonfile@6.1.4': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/mdast@4.0.4': dependencies: @@ -6058,9 +6061,11 @@ snapshots: '@types/node-forge@1.3.13': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 - '@types/node@17.0.45': {} + '@types/node@22.17.2': + dependencies: + undici-types: 6.21.0 '@types/ping@0.4.4': {} @@ -6074,30 +6079,30 @@ snapshots: '@types/s3rver@3.7.4': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/semver@7.7.0': {} '@types/send@0.17.5': dependencies: '@types/mime': 1.3.5 - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/serve-static@1.15.8': dependencies: '@types/http-errors': 2.0.5 - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/send': 0.17.5 '@types/symbol-tree@3.2.5': {} '@types/tar-stream@3.1.4': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/through2@2.0.41': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/triple-beam@1.3.5': {} @@ -6121,18 +6126,18 @@ snapshots: '@types/whatwg-url@8.2.2': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/webidl-conversions': 7.0.3 '@types/which@3.0.4': {} '@types/ws@8.18.1': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 '@types/yauzl@2.10.3': dependencies: - '@types/node': 17.0.45 + '@types/node': 22.17.2 optional: true '@ungap/structured-clone@1.3.0': {} @@ -6585,7 +6590,7 @@ snapshots: engine.io@6.6.4: dependencies: '@types/cors': 2.8.19 - '@types/node': 17.0.45 + '@types/node': 22.17.2 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.7.2 @@ -8580,6 +8585,8 @@ snapshots: uint8array-extras@1.4.1: {} + undici-types@6.21.0: {} + unified@11.0.5: dependencies: '@types/unist': 3.0.3 diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 0e3d6af..6452858 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/mongodump', - version: '1.0.9', + version: '1.0.10', description: 'A tool to create and manage dumps of MongoDB databases, supporting data export and import.' } diff --git a/ts/mongodump.plugins.ts b/ts/mongodump.plugins.ts index acab74e..4a676a5 100644 --- a/ts/mongodump.plugins.ts +++ b/ts/mongodump.plugins.ts @@ -21,7 +21,7 @@ export { } // tsclass -import type * as tsclass from '@tsclass/tsclass'; +import * as tsclass from '@tsclass/tsclass'; export { tsclass