Version Packages - #2
Merged
Merged
Conversation
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@developerehsan/nextjs-logger@1.0.1
Patch Changes
c3ce1b8: Fix Edge Runtime compatibility:
relaySecretderivation was eager (ran at module-import time for thelogsingleton and everycreateLogger()call), so an app using only server-sidelog.info()— never wiring up the client relay — would crash on import in production whenLOGGER_RELAY_SECRETwasn't set. Derivation is now lazy, only triggered by code paths that actually verify a relay token.Buffer-only base64 fallback (used when deriving the secret fromNEXTAUTH_SECRET/APP_SECRET) with aBuffer-free encoder, for true Edge/Workers runtimes that don't polyfillBuffer.process.stdout/process.stderr/process.cwd()/Buffer.from()references from the compiled output (now routed through indirect accessors insrc/utils/node-globals.ts), eliminating Next.js's "A Node.js API is used ... which is not supported in the Edge Runtime" build warning for any consumer app that imports this package from an Edge-eligible file (middleware/proxy.ts, Edge Route Handlers). Runtime behavior is unchanged — these were always guarded byisServer()/isEdgeRuntime()checks; this only stops the bundler's static scan from false-positiving on reachable-looking-but-unreachable code.postbuildscript (scripts/check-edge-safety.mjs) that fails the build if any of those literal Node API references reappear indist/, plus regression tests for both the lazy-secret behavior and the Edge-safe global accessors.