Skip to content

Releases: findingtheconcept/kindagoose

Kindagoose v1.3.7 is here!

Choose a tag to compare

@findingtheconcept findingtheconcept released this 29 Sep 07:48

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!

Choose a tag to compare

@findingtheconcept findingtheconcept released this 09 Jun 22:20

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!

Choose a tag to compare

@findingtheconcept findingtheconcept released this 12 Apr 20:27

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!

Choose a tag to compare

@findingtheconcept findingtheconcept released this 10 Apr 21:02

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!

Choose a tag to compare

@findingtheconcept findingtheconcept released this 07 Mar 12:07

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!

Choose a tag to compare

@findingtheconcept findingtheconcept released this 23 Dec 15:36

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!

Choose a tag to compare

@findingtheconcept findingtheconcept released this 07 Aug 12:55

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

Choose a tag to compare

@findingtheconcept findingtheconcept released this 03 Aug 14:15

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.