diff --git a/lib/module.ts b/lib/module.ts index 624af7a1..a51c1100 100644 --- a/lib/module.ts +++ b/lib/module.ts @@ -1,5 +1,5 @@ /* eslint-disable new-cap */ -import { DynamicModule, Logger, Module, Provider } from "@nestjs/common"; +import { DynamicModule, Module, Provider } from "@nestjs/common"; import { Model } from "objection"; import { ObjectionCoreModule } from "./core"; import { @@ -9,13 +9,6 @@ import { @Module({}) export class ObjectionModule { - public static forRoot(options: ObjectionModuleOptions): DynamicModule { - Logger.warn( - "ObjectionModule#forRoot has been deprecated and will be removed in the next major version. Please use ObjectionModule#register instead.", - ); - return ObjectionModule.register(options); - } - public static register(options: ObjectionModuleOptions): DynamicModule { return { module: ObjectionModule, @@ -24,16 +17,6 @@ export class ObjectionModule { }; } - public static forRootAsync( - options: ObjectionModuleAsyncOptions, - ): DynamicModule { - Logger.warn( - "ObjectionModule#forRootAsync has been deprecated and will be removed in the next major version. Please use ObjectionModule#registerAsync instead.", - ); - - return ObjectionModule.registerAsync(options); - } - public static registerAsync( options: ObjectionModuleAsyncOptions, ): DynamicModule {