From bfafd41c46e6006f87441e9d992a18e6893ebb79 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Sat, 8 Mar 2025 00:48:22 +0100 Subject: [PATCH] npm update, mikro orm bug fix --- package-lock.json | 86 ++++++++++++++++++++--------------------- src/mikro-orm.config.ts | 8 ++-- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/package-lock.json b/package-lock.json index 45a1ae5..c063cd5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1073,14 +1073,14 @@ } }, "node_modules/@mikro-orm/cli": { - "version": "6.4.7", - "resolved": "https://registry.npmjs.org/@mikro-orm/cli/-/cli-6.4.7.tgz", - "integrity": "sha512-jaEm8olUP7h/kz4AZyu21TJ8P1qAGgdyvFYG+J5eGAtPsdMN8ZMQJJy2m6DZcHNbuyllCVdzp3XT6MAzG+uwMw==", + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/@mikro-orm/cli/-/cli-6.4.9.tgz", + "integrity": "sha512-LQzVsmar/0DoJkPGyz3OpB8pa9BCQtvYreEC71h0O+RcizppJjgBQNTkj5tJd2Iqvh4hSaMv6qTv0l5UK6F2Vw==", "license": "MIT", "dependencies": { "@jercle/yargonaut": "1.1.5", - "@mikro-orm/core": "6.4.7", - "@mikro-orm/knex": "6.4.7", + "@mikro-orm/core": "6.4.9", + "@mikro-orm/knex": "6.4.9", "fs-extra": "11.3.0", "tsconfig-paths": "4.2.0", "yargs": "17.7.2" @@ -1094,9 +1094,9 @@ } }, "node_modules/@mikro-orm/core": { - "version": "6.4.7", - "resolved": "https://registry.npmjs.org/@mikro-orm/core/-/core-6.4.7.tgz", - "integrity": "sha512-ZePm7IRpW6/tGC6axCezI1/5YA3+MiDsbEj5KHgXDIxzHnftVfL3nbYlPlr0pW/UQSL5QcRqXxHIQz4P2OlFhg==", + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/@mikro-orm/core/-/core-6.4.9.tgz", + "integrity": "sha512-osB2TbvSH4ZL1s62LCBQFAnxPqLycX5fakPHOoztudixqfbVD5QQydeGizJXMMh2zKP6vRCwIJy3MeSuFxPjHg==", "license": "MIT", "dependencies": { "dataloader": "2.2.3", @@ -1104,7 +1104,7 @@ "esprima": "4.0.1", "fs-extra": "11.3.0", "globby": "11.1.0", - "mikro-orm": "6.4.7", + "mikro-orm": "6.4.9", "reflect-metadata": "0.2.2" }, "engines": { @@ -1115,9 +1115,9 @@ } }, "node_modules/@mikro-orm/knex": { - "version": "6.4.7", - "resolved": "https://registry.npmjs.org/@mikro-orm/knex/-/knex-6.4.7.tgz", - "integrity": "sha512-IH2imlCzEzPyjMGmAn/9yEP4wRxKHczCiPfI7GWAVI2dRToox1MFpQzBW1x/m+3Dvwz8jXVakHVANN7KPZBi5w==", + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/@mikro-orm/knex/-/knex-6.4.9.tgz", + "integrity": "sha512-iGXJfe/TziVOQsWuxMIqkOpurysWzQA6kj3+FDtOkHJAijZhqhjSBnfUVHHY/JzU9o0M0rgLrDVJFry/uEaJEA==", "license": "MIT", "dependencies": { "fs-extra": "11.3.0", @@ -1146,12 +1146,12 @@ } }, "node_modules/@mikro-orm/mariadb": { - "version": "6.4.7", - "resolved": "https://registry.npmjs.org/@mikro-orm/mariadb/-/mariadb-6.4.7.tgz", - "integrity": "sha512-YICNykIbkzGHuY6Lk8s9pkafHgTxl1tY3C/UE2F6We1KAcOqr1XDkOBxHNS+Jadyw21LbWyY8XWHMxUSnfWg4w==", + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/@mikro-orm/mariadb/-/mariadb-6.4.9.tgz", + "integrity": "sha512-KuCzDGkC9cmNA8WxE9pZca6/Ds2sso3JUxiGoVyekOj/t9qer81UQYWasI80TBJ82TxrUdLM9NFBBO++tz+NYA==", "license": "MIT", "dependencies": { - "@mikro-orm/knex": "6.4.7", + "@mikro-orm/knex": "6.4.9", "mariadb": "3.4.0" }, "engines": { @@ -1162,12 +1162,12 @@ } }, "node_modules/@mikro-orm/migrations": { - "version": "6.4.7", - "resolved": "https://registry.npmjs.org/@mikro-orm/migrations/-/migrations-6.4.7.tgz", - "integrity": "sha512-T5d5oPc+2pZq5tLn4PSFo5EGo/kp0l3x8YqLw3mJWetW8OKnUxmj6MPhboptycAHkc7SysakyRh3Oenn6brRXQ==", + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/@mikro-orm/migrations/-/migrations-6.4.9.tgz", + "integrity": "sha512-vwTXG8PU3bpzTZxxu1dWlhnUumM2Yob2IWajoh+Rj9+19VBZYc5N3tm8FRekt5oPzxeK5/9+sDfxT9FzXgjeNw==", "license": "MIT", "dependencies": { - "@mikro-orm/knex": "6.4.7", + "@mikro-orm/knex": "6.4.9", "fs-extra": "11.3.0", "umzug": "3.8.2" }, @@ -1179,13 +1179,13 @@ } }, "node_modules/@mikro-orm/mysql": { - "version": "6.4.7", - "resolved": "https://registry.npmjs.org/@mikro-orm/mysql/-/mysql-6.4.7.tgz", - "integrity": "sha512-a5cc4Iy11PsbR2/cFV/5Ej+1ccd+xhBzlQjoCcDTbfJvncOt1F+FB/a4a11FInIVgDQl9wJSzbWOvarLM+SgmA==", + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/@mikro-orm/mysql/-/mysql-6.4.9.tgz", + "integrity": "sha512-rmHonMzvurB+50BNpKb9FORFVs3+V8S4Om1Tmv6MFvSdeD1Qqb/efvYp7cgv+NncHSrgMtKLMy3FDm7guU6yYQ==", "license": "MIT", "dependencies": { - "@mikro-orm/knex": "6.4.7", - "mysql2": "3.12.0" + "@mikro-orm/knex": "6.4.9", + "mysql2": "3.13.0" }, "engines": { "node": ">= 18.12.0" @@ -1195,9 +1195,9 @@ } }, "node_modules/@mikro-orm/reflection": { - "version": "6.4.7", - "resolved": "https://registry.npmjs.org/@mikro-orm/reflection/-/reflection-6.4.7.tgz", - "integrity": "sha512-toBQarVnyDsoZmMro4JUtUgmwuXGF2YDRl4W89J4FtxUyD1pCfCQKdSQEh9byB5W9cA9WQVyJkWqEYbZtpRQ6w==", + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/@mikro-orm/reflection/-/reflection-6.4.9.tgz", + "integrity": "sha512-fgY7yLrcZm3J/8dv9reUC4PQo7C2muImU31jmzz1SxmNKPJFDJl7OzcDZlM5NOisXzsWUBrcNdCyuQiWViVc3A==", "license": "MIT", "dependencies": { "globby": "11.1.0", @@ -1674,9 +1674,9 @@ } }, "node_modules/acorn": { - "version": "8.14.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", - "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", + "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", "dev": true, "license": "MIT", "bin": { @@ -2989,9 +2989,9 @@ } }, "node_modules/ioredis": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.5.0.tgz", - "integrity": "sha512-7CutT89g23FfSa8MDoIFs2GYYa0PaNiW/OrT+nRyjRXHDZd17HmIgy+reOQ/yhh72NznNjGuS8kbCAcA4Ro4mw==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.6.0.tgz", + "integrity": "sha512-tBZlIIWbndeWBWCXWZiqtOF/yxf6yZX3tAlTJ7nfo5jhd6dctNxF7QnYlZLZ1a0o0pDoen7CgZqO+zjNaFbJAg==", "license": "MIT", "dependencies": { "@ioredis/commands": "^1.1.1", @@ -3478,9 +3478,9 @@ } }, "node_modules/mikro-orm": { - "version": "6.4.7", - "resolved": "https://registry.npmjs.org/mikro-orm/-/mikro-orm-6.4.7.tgz", - "integrity": "sha512-lRB92yekDcdQEHloNY9LWfNLyKd3WajxPSe3jBvyVR9gMIO7YsjhqxL0mYvoQi8MQzXcUTi1EkWG05IM3gidIw==", + "version": "6.4.9", + "resolved": "https://registry.npmjs.org/mikro-orm/-/mikro-orm-6.4.9.tgz", + "integrity": "sha512-XwVrWNT4NNwS6kHIKFNDfvy8L1eWcBBEHeTVzFFYcnb2ummATaLxqeVkNEmKA68jmdtfQdUmWBqGdbcIPwtL2Q==", "license": "MIT", "engines": { "node": ">= 18.12.0" @@ -3579,9 +3579,9 @@ } }, "node_modules/mysql2": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.12.0.tgz", - "integrity": "sha512-C8fWhVysZoH63tJbX8d10IAoYCyXy4fdRFz2Ihrt9jtPILYynFEKUUzpp1U7qxzDc3tMbotvaBH+sl6bFnGZiw==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.13.0.tgz", + "integrity": "sha512-M6DIQjTqKeqXH5HLbLMxwcK5XfXHw30u5ap6EZmu7QVmcF/gnh2wS/EOiQ4MTbXz/vQeoXrmycPlVRM00WSslg==", "license": "MIT", "dependencies": { "aws-ssl-profiles": "^1.1.1", @@ -4801,9 +4801,9 @@ } }, "node_modules/type-fest": { - "version": "4.36.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.36.0.tgz", - "integrity": "sha512-3T/PUdKTCnkUmhQU6FFJEHsLwadsRegktX3TNHk+2JJB9HlA8gp1/VXblXVDI93kSnXF2rdPx0GMbHtJIV2LPg==", + "version": "4.37.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.37.0.tgz", + "integrity": "sha512-S/5/0kFftkq27FPNye0XM1e2NsnoD/3FS+pBmbjmmtLT6I+i344KoOf7pvXreaFsDamWeaJX55nczA1m5PsBDg==", "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=16" diff --git a/src/mikro-orm.config.ts b/src/mikro-orm.config.ts index 1274891..f1844ef 100644 --- a/src/mikro-orm.config.ts +++ b/src/mikro-orm.config.ts @@ -1,15 +1,15 @@ import serverConfig from '@/application/config' -import { defineConfig, MariaDbDriver } from '@mikro-orm/mariadb' -// import { defineConfig, MySqlDriver } from '@mikro-orm/mysql' import { Migrator } from '@mikro-orm/migrations' +// import { defineConfig, MariaDbDriver } from '@mikro-orm/mariadb' +import { defineConfig, MySqlDriver } from '@mikro-orm/mysql' import { TsMorphMetadataProvider } from '@mikro-orm/reflection' export default defineConfig({ extensions: [Migrator], metadataProvider: TsMorphMetadataProvider, - entities: ['./dist/entities/*.js'], + entities: ['./src/entities/*.ts'], entitiesTs: ['./src/entities/*.ts'], - driver: MariaDbDriver, + driver: MySqlDriver, host: serverConfig.DB_HOST, port: serverConfig.DB_PORT, user: serverConfig.DB_USER,