@mikro-orm/nestjs 7.0.2-dev.9 → 7.0.3-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/package.json +5 -5
- package/typings.d.ts +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,18 @@ export class AppModule {}
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
The `forRoot()` method accepts the same configuration object as `init()` from the MikroORM package.
|
|
58
|
-
|
|
58
|
+
Since v7, the configuration must be provided explicitly — passing the options is required
|
|
59
|
+
(see the [v6 to v7 upgrading guide](https://mikro-orm.io/docs/upgrading-v6-to-v7#mikroorminit-requires-options-parameter)).
|
|
60
|
+
If you keep your config in a separate file (e.g. `mikro-orm.config.ts`), import it and pass it in:
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
import config from './mikro-orm.config';
|
|
64
|
+
|
|
65
|
+
@Module({
|
|
66
|
+
imports: [MikroOrmModule.forRoot(config)],
|
|
67
|
+
})
|
|
68
|
+
export class AppModule {}
|
|
69
|
+
```
|
|
59
70
|
|
|
60
71
|
Afterward, the `EntityManager` will be available to inject across entire project (without importing any module elsewhere).
|
|
61
72
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/nestjs",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3-dev.0",
|
|
4
4
|
"description": "NestJS module for MikroORM",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"conventional-changelog": "^7.1.1",
|
|
62
62
|
"conventional-changelog-cli": "^5.0.0",
|
|
63
63
|
"jsr": "0.14.3",
|
|
64
|
-
"oxfmt": "^0.
|
|
64
|
+
"oxfmt": "^0.50.0",
|
|
65
65
|
"oxlint": "^1.33.0",
|
|
66
|
-
"oxlint-tsgolint": "^0.
|
|
66
|
+
"oxlint-tsgolint": "^0.23.0",
|
|
67
67
|
"reflect-metadata": "^0.2.2",
|
|
68
68
|
"rimraf": "^6.1.2",
|
|
69
69
|
"rxjs": "^7.8.2",
|
|
70
70
|
"supertest": "^7.1.4",
|
|
71
|
-
"typescript": "6.0.
|
|
71
|
+
"typescript": "6.0.3",
|
|
72
72
|
"unplugin-swc": "^1.5.9",
|
|
73
73
|
"vitest": "^4.0.16"
|
|
74
74
|
},
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">= 22.17.0"
|
|
91
91
|
},
|
|
92
|
-
"packageManager": "yarn@4.
|
|
92
|
+
"packageManager": "yarn@4.14.1",
|
|
93
93
|
"readme": "./README.md",
|
|
94
94
|
"renovate": {
|
|
95
95
|
"extends": [
|
package/typings.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export type MikroOrmModuleOptions<D extends IDatabaseDriver = IDatabaseDriver> =
|
|
|
43
43
|
* @default false
|
|
44
44
|
*/
|
|
45
45
|
autoLoadEntities?: boolean;
|
|
46
|
-
} & Partial<Options<
|
|
46
|
+
} & Partial<Options<any, any, any>> & MikroOrmMiddlewareModuleOptions;
|
|
47
47
|
export interface MikroOrmModuleFeatureOptions {
|
|
48
48
|
/**
|
|
49
49
|
* The entities to provide an EntityRepository for.
|