Repository navigation
chore(deps): bump pino to 10.4.0 and pino-pretty to 13.1.3 - #19
Merged
Merged
Conversation
pino 10 only drops Node 18. pino-pretty 12/13 drop Node 14/16 and replace readable-stream with the built-in stream; since 13.1.0 the keys of logged objects are colored magenta when colorize is on. Plain-text output is otherwise unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
pino9.14.0 -> 10.4.0 andpino-pretty11.3.0 -> 13.1.3 in all four workspaces that declare them (apps/dokploy,apps/api,apps/schedules,packages/server), plusbun.lock. No code changes.Transitive updates pulled in by the bump:
thread-stream3 -> 4,real-require0.2 -> 1.0,pino-abstract-transport2 -> 3,fast-copy3 -> 4,secure-json-parse2 -> 4,strip-json-comments3 -> 5. Each package still has a single copy in the lockfile.pino-pretty13.2.0 was published two days ago and is skipped by the 3-day release-age rule, so 13.1.3 is the newest eligible version.How the logger is used
All three loggers (
packages/server/src/lib/logger.ts,apps/api/src/logger.ts,apps/schedules/src/logger.ts) are created unconditionally withtransport: { target: "pino-pretty", options: { colorize: true } }. pino-pretty is not dev-only: it formats the production container logs too.apps/dokployhas no direct imports; it uses the logger from@dokploy/server. The esbuild server bundle keeps packages external, so pino resolves thepino-prettytransport at runtime as before. Noredact, custom serializers or multi-target transports are used.Release notes
censorcallback types (unused here). 10.1 to 10.4 are fixes: thread-stream v4, safer transport loading, worker thread names for transports, NODE_OPTIONS preload sanitising for workers, adefaultnamed export.readable-streamwith the built-instream. Neither renames options or changes transport behaviour.colorize: truethe keys of logged objects are now wrapped in magenta ANSI codes. This is the only visible output change.Verification
NODE_ENV=production, stdout piped, not a TTY) with info / object / format-string / error /errkey / debug calls, before and after the bump. With ANSI codes stripped the output is byte-identical (timestamps, PIDs and stack line numbers normalised). The only raw difference is the magenta keys on object properties.packages/serverlogger under plainnode(no tsx loader) to check the transport worker starts and flushes.bun run typecheck: all four workspaces pass.vitest runinapps/dokployexcluding*.real.test.ts: 2054 passed, 3 failed, all timeouts on a heavily loaded machine.better-auth-schema-compatandcloud-queue-availabilitypass when rerun alone with longer timeouts.env-file-literalsneeds a Docker daemon, which isn't available locally.biome checkon the changedpackage.jsonfiles: clean.next buildwas not run locally; CI covers it.Manual check on dev
key: valuemay now see ANSI codes around the key. If that matters, setcolorizeObjects: falsein the pino-pretty options.🤖 Generated with Claude Code