1.2

The main changes of this update are upgrading Nest from v10 to v11, and some more improvements that have been grouped in a new section: Further Improvements. The reason is to avoid bloating the Improvements/Tips module too much, as it is considered an early module. Changes are as follows:

Version upgrades

  • NestJS: v10 to v11

  • Several other packages

New improvements

  • Sending emails: Send an email to the user when the account is created

  • Health checks: Check the health of the database

  • Cron jobs: Regularly check for old soft-deleted users and hard-delete them

Other changes

  • Explain that git config core.autocrlf should be set back to true

  • Fix: set prettier as default formatter in settings.json

  • Disable some troublesome strictness options:

    • strictNullChecks option in tsconfig

    • Several rules in ESLint file

  • Prefix bootstrap() call with void to explicitly not await it

  • In Insomnia:

    • Rename baseUrl to host

    • Create a variable for the token

  • Use again the function extractFromText() to encapsulate extraction with regex

  • Use App type for app and server in e2e test file

  • Use single command to stop and remove docker container for test database

  • Relocate More validations lesson to Further improvements section, and show example using standard @IsAlpha() validator with locale

Last updated