Kindagoose v1.2.1 is here!
findingtheconcept
released this
07 Aug 12:55
·
39 commits
to master
since this release
What's new?
Schema registration shortcut
Now, if you don't need to add discriminators to your schema, you can pass only Typegoose
class to forFearure()
.
Before:
@Module({
imports: [
KindagooseModule.forFeature([
{ schema: User },
]),
],
controllers: [],
providers: [UsersService],
})
export class UsersModule {}
Now:
@Module({
imports: [
KindagooseModule.forFeature([User]),
],
controllers: [],
providers: [],
})
export class UsersModule {}
Connection retrying
At this moment, if kinagoose
could not connect to the database, it won't crash your application immediately, it will retry to reconnect to the database with default delay
and retryAttempts
count, but you can change them in forRoot()
and forRootAsync()
.
Code for this feature was completely copied from official @nestjs/mongoose repository.
Updated documentation
Information in documentation fully corresponds to API changes. Grammar errors were fixed as well.
Added new required dependency
Now, kindagoose
requires rxjs
: ^7.5.6 || < 9.0.0
to be installed.