Skip to content

Releases: GrapeoffJS/kindagoose

Kindagoose v1.3.7 is here!

29 Sep 07:48
Compare
Choose a tag to compare

What's new?

Updated all dependencies to their latest versions

@nestjs/common ^9.4.2 β†’ ^10.2.6
@nestjs/core ^9.4.2 β†’ ^10.2.6
@typegoose/typegoose ^11.2.0 β†’ ^11.5.0
@types/node ^20.2.5 β†’ ^20.7.1
@typescript-eslint/eslint-plugin ^5.59.9 β†’ ^6.7.3
@typescript-eslint/parser ^5.59.9 β†’ ^6.7.3
eslint ^8.42.0 β†’ ^8.50.0
eslint-config-prettier ^8.8.0 β†’ ^9.0.0
eslint-plugin-import ^2.27.5 β†’ ^2.28.1
eslint-plugin-prettier ^4.2.1 β†’ ^5.0.0
eslint-plugin-sonarjs ^0.19.0 β†’ ^0.21.0
eslint-plugin-unicorn ^47.0.0 β†’ ^48.0.1
mongoose ^7.2.3 β†’ ^7.5.3
prettier ^2.8.8 β†’ ^3.0.3
rimraf ^5.0.1 β†’ ^5.0.5
typescript ^5.1.3 β†’ ^5.2.2

Kindagoose v1.3.6 is here!

09 Jun 22:20
Compare
Choose a tag to compare

What's new?

Updated all dependencies to their latest versions

@nestjs/common ^9.4.0 β†’ ^9.4.2
@nestjs/core ^9.4.0 β†’ ^9.4.2
@typegoose/typegoose ^11.1.0 β†’ ^11.2.0
@typescript-eslint/eslint-plugin ^5.59.5 β†’ ^5.59.9
@typescript-eslint/parser ^5.59.5 β†’ ^5.59.9
eslint ^8.40.0 β†’ ^8.42.0
mongoose ^7.1.0 β†’ ^7.2.3
rimraf ^5.0.0 β†’ ^5.0.1
typescript ^5.0.4 β†’ ^5.1.3

Kindagoose v1.3.4 is here!

12 Apr 20:27
Compare
Choose a tag to compare

What's new?

Fix TypeError: this.modle.find is not a function.

Fixed the error that described here: #117

Kindagoose v1.3.2 is here!

10 Apr 21:02
Compare
Choose a tag to compare

What's new?

Fix OverwriteModelError

The application crashes when the same schema is registered twice or more. Read here.

peerDependencies changes

Due to this issue, peerDependencies were updated to these versions:

"peerDependencies": {
    "@nestjs/common": "^9.2.1",
    "@nestjs/core": "^9.3.9",
    "@typegoose/typegoose": "^11.0.0",
    "mongoose": "~7.0.3",
    "reflect-metadata": "^0.1.13",
    "rxjs": "^7.5.6 || <9.0.0"
}

Updated all dependencies to their latest versions

@nestjs/common ^9.3.0 β†’ ^9.4.0
@nestjs/core ^9.2.1 β†’ ^9.4.0
@typegoose/typegoose ^10.3.0 β†’ ^11.0.0
@typescript-eslint/eslint-plugin ^5.54.0 β†’ ^5.58.0
@typescript-eslint/parser ^5.54.0 β†’ ^5.58.0
eslint ^8.35.0 β†’ ^8.38.0
eslint-config-prettier ^8.7.0 β†’ ^8.8.0
eslint-plugin-sonarjs ^0.18.0 β†’ ^0.19.0
mongoose ^7.0.0 β†’ ^7.0.3
prettier ^2.8.4 β†’ ^2.8.7
rimraf ^4.3.0 β†’ ^5.0.0
typescript ^4.9.5 β†’ ^5.0.4

Special Thanks

Big thanks to @etrock for notifying me about OverwriteModelError and for creating the repository with environment for debugging.

Kindagoose v1.3.1 is here!

07 Mar 12:07
Compare
Choose a tag to compare

What's new?

Fix argument types for Pre and Post decorators

See here: #87

Updated all dependencies to their latest versions

@nestjs/common ^9.2.1 β†’ ^9.3.9
@nestjs/core ^9.2.1 β†’ ^9.3.9
@typegoose/typegoose ^10.0.0 β†’ ^10.3.0
@typescript-eslint/eslint-plugin ^5.47.0 β†’ ^5.54.0
@typescript-eslint/parser ^5.47.0 β†’ ^5.54.0
eslint ^8.30.0 β†’ ^8.35.0
eslint-config-prettier ^8.5.0 β†’ ^8.7.0
eslint-plugin-import ^2.26.0 β†’ ^2.27.5
eslint-plugin-security ^1.5.0 β†’ ^1.7.1
eslint-plugin-simple-import-sort ^8.0.0 β†’ ^10.0.0
eslint-plugin-sonarjs ^0.17.0 β†’ ^0.18.0
eslint-plugin-unicorn ^45.0.2 β†’ ^46.0.0
mongoose ^6.8.1 β†’ ^7.0.0
prettier ^2.8.1 β†’ ^2.8.4
rimraf ^3.0.2 β†’ ^4.3.0
typescript ^4.9.4 β†’ ^4.9.5

peerDependencies changes

Due to deprecation of scanFromPrototype, @nestjs/core version must be 9.3.9 or higher. You also need to update mongoose and @typegoose/typegoose to their latest versions. @nestjs/common must be at least 9.2.1.

"peerDependencies": {
    "@nestjs/common": "^9.2.1",
    "@nestjs/core": "^9.3.9",
    "@typegoose/typegoose": "^10.3.0",
    "mongoose": "^7.0.0",
    "reflect-metadata": "^0.1.13",
    "rxjs": "^7.5.6 || <9.0.0"
}

Updated documentation

Information in documentation fully corresponds to the changes.

Kindagoose v1.3.0 is here!

23 Dec 15:36
Compare
Choose a tag to compare

What's new?

Updated all dependencies to their latest versions

"devDependencies": {
    "@nestjs/common": "^9.2.1",
    "@nestjs/core": "^9.2.1",
    "@typegoose/typegoose": "^10.0.0",
    "@types/mongoose": "^5.11.97",
    "@typescript-eslint/eslint-plugin": "^5.47.0",
    "@typescript-eslint/parser": "^5.47.0",
    "eslint": "^8.30.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-prettier": "^4.2.1",
    "eslint-plugin-security": "^1.5.0",
    "eslint-plugin-simple-import-sort": "^8.0.0",
    "eslint-plugin-sonarjs": "^0.17.0",
    "eslint-plugin-unicorn": "^45.0.2",
    "mongoose": "^6.8.1",
    "prettier": "^2.8.1",
    "reflect-metadata": "^0.1.13",
    "rimraf": "^3.0.2",
    "rxjs": "^7.8.0",
    "typescript": "^4.9.4"
},

Changed event tracking syntax

Updating to the latest version of typegoose has broken typings for PreEvents and PostEvents, so I had to change the way of specifying the hooks that you want to be subscribed on. See a chapter about it.

Updated documentation

Information in documentation fully corresponds to API changes. Grammar errors were fixed as well.

Kindagoose v1.2.1 is here!

07 Aug 12:55
Compare
Choose a tag to compare

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.

v1.1.12-beta.0

03 Aug 14:15
Compare
Choose a tag to compare

Kindagoose v1.1.12-beta.0 is here!

Welcome to the first beta release of kindagoose package! Let's list what's in this release:

  • Full documentation of package API in two languages.

  • Discriminators support.

  • Event tracking with dependency injection for schemas.