Skip to content

Conversation

@Tony133
Copy link
Contributor

@Tony133 Tony133 commented Jan 28, 2026

Proposals:

  • Fixes a contradictory TODO comment in logger.d.ts

    • Before: // TODO delete FastifyBaseLogger in the next major release. It seems that it is enough to have only FastifyBaseLogger.
    • After: // TODO delete FastifyLoggerInstance in the next major release. It seems that it is enough to have only FastifyBaseLogger.

    The comment was contradicting itself. The correct intention is to delete FastifyLoggerInstance (the deprecated alias) ( see commit here: e622c39)

  • Updated imports and type references from FastifyLoggerInstance to FastifyBaseLogger, because FastifyLoggerInstance has been deprecated in favor of FastifyBaseLogger ( see screenshot and commit here: f7856cd )

The rest will be removed when the FastifyLoggerInstance type is permanently removed in the next major release 🚀

screenshot

The TODO comment incorrectly stated to delete FastifyBaseLogger while
also saying to keep only FastifyBaseLogger. It should say to delete
FastifyLoggerInstance (the deprecated alias) in the next major release.
@github-actions github-actions bot added the typescript TypeScript related label Jan 28, 2026
…gger

FastifyLoggerInstance is deprecated in favor of FastifyBaseLogger.
This commit updates imports and type references to use the
non-deprecated type.
@Tony133 Tony133 force-pushed the chore/update-type-logger-and-comment branch from f7856cd to 4e2772e Compare January 28, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typescript TypeScript related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants