From 68b30870fa6c7a275b0823e5fdca9d884110c511 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 1 Apr 2026 10:22:34 +0000 Subject: [PATCH 1/3] chore(deps): update dependency typescript to v6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 626399db..3ae47af0 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "semantic-release": "25.0.3", "sinon": "21.0.3", "ts-jest": "29.4.6", - "typescript": "5.9.3" + "typescript": "6.0.2" }, "repository": "https://github.com/runk/node-maxmind", "bugs": { From 9d2ba19c6e72e824df571d5ba229e46e0e55b521 Mon Sep 17 00:00:00 2001 From: Dmitry Shirokov Date: Wed, 1 Apr 2026 21:27:21 +1100 Subject: [PATCH 2/3] Remove ts-jest --- LICENSE | 2 +- jest.config.js | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index 243a3cbf..18ed0788 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2024 Dmitry Shirokov +Copyright (c) 2026 Dmitry Shirokov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/jest.config.js b/jest.config.js index c9bbccc2..722ea2db 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,7 +1,7 @@ module.exports = { testEnvironment: 'node', testRegex: '.*test.ts$', - transform: { '^.+\\.ts?$': 'ts-jest' }, + transform: { '^.+\\.ts?$': '@swc/jest' }, moduleFileExtensions: ['ts', 'js', 'json'], rootDir: 'src', collectCoverage: true, diff --git a/package.json b/package.json index 3ae47af0..74a653b3 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,8 @@ "tiny-lru": "13.0.0" }, "devDependencies": { + "@swc/core": "1.15.3", + "@swc/jest": "0.2.39", "@types/ip6addr": "0.2.6", "@types/jest": "30.0.0", "@types/netmask": "2.0.6", @@ -42,7 +44,6 @@ "prettier": "3.8.1", "semantic-release": "25.0.3", "sinon": "21.0.3", - "ts-jest": "29.4.6", "typescript": "6.0.2" }, "repository": "https://github.com/runk/node-maxmind", @@ -63,7 +64,6 @@ "scripts": { "build": "rm -rf lib/* && tsc", "format": "prettier --write .", - "prepublish": "npm run build", "semantic-release": "semantic-release", "test": "jest" }, From ea0ec05e5e3dcb0a5440ecc7db8f2b0ea71e2363 Mon Sep 17 00:00:00 2001 From: Dmitry Shirokov Date: Wed, 1 Apr 2026 21:34:33 +1100 Subject: [PATCH 3/3] Add node types to tsconfig --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 8eb5bf54..200b63e5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "removeComments": true, "sourceMap": true, "strict": true, + "types": ["node"], "lib": ["ES2020"], "target": "ES2020" },