Skip to content

Commit

Permalink
feat: allow MikroORM v7 dev versions in peer dependency constraints (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan authored Feb 16, 2025
1 parent d5ff649 commit 98e228e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"lint": "eslint src/**/*.ts"
},
"peerDependencies": {
"@mikro-orm/core": "^6.0.0 || ^6.0.0-dev.0",
"@mikro-orm/core": "^6.0.0 || ^6.0.0-dev.0 || ^7.0.0-dev.0",
"@nestjs/common": "^10.0.0 || ^11.0.5",
"@nestjs/core": "^10.0.0 || ^11.0.5"
},
Expand Down
2 changes: 1 addition & 1 deletion src/mikro-orm.providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function createMikroOrmProvider(
if (!options || Object.keys(options).length === 0) {
const config = await ConfigurationLoader.getConfiguration();
config.set('logger', logger.log.bind(logger));
options = config as unknown as MikroOrmModuleOptions;
options = config.getAll();
}

return MikroORM.init(options);
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98e228e

Please sign in to comment.