Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
15ff8c2 to
2ca6632
Compare
2ca6632 to
f525048
Compare
f525048 to
ba87b22
Compare
ba87b22 to
d53efdb
Compare
d53efdb to
d5cd852
Compare
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
evlog@2.15.0
Minor Changes
#315
9b3739bThanks @HugoRCD! - Refactor core & toolkit into composable building blocks (EVL-155). The internal helpers that powered every built-in adapter, enricher, and framework integration are now public underevlog/toolkit, alongside three new factories and a canonical config entry point.This release is fully backwards-compatible. Every previously-working snippet keeps working — adapter renames ship with deprecated aliases, the dual PostHog factory is kept as a thin wrapper, and the new toolkit primitives are additive. Nothing to migrate.
What's new
definePlugin()— single canonical extension contract. A plugin can opt into any subset ofsetup,enrich,drain,keep,onRequestStart,onRequestFinish,onClientLog,extendLogger. Drains and enrichers are now sugar over plugins (drainPlugin,enricherPlugin).defineHttpDrain()— adapter factory. Provideresolve()(config) andencode()(payload); retries, timeouts, batching, and error isolation are handled for you. All 8 built-in adapters (Axiom, OTLP, HyperDX, PostHog, Sentry, Better Stack, Datadog, FS) now use this internally.defineEnricher()— enricher factory. Providecompute(); merge, error isolation, and undefined skipping are handled for you. All 4 built-in enrichers (UserAgent, Geo, RequestSize, TraceContext) now use this internally.defineFrameworkIntegration()— manifest-mode framework integration. ProvideextractRequest,attachLogger, and an optionalstorage; the helper handles header normalization, request-id generation, ALS, andlog.fork()attachment. Hono, Express, Fastify, and Elysia now use this internally.defineEvlog()— canonical config object. One shape that works acrossinitLogger, framework middlewares, the Nuxt module, and Workers viatoLoggerConfig/toMiddlewareOptions.composeEnrichers,composeDrains,composeKeep,composePluginsfor combining multiple extensions with built-in error isolation.evlog/toolkitis now the public entry point for all building blocks.createDefaultEnrichers()— shorthand forcomposeEnrichers([userAgent, geo, requestSize, traceContext]).Standardized naming (additive, with deprecated aliases)
We've standardized on
apiKeyfor any bearer-style secret. The previous names continue to work and emit a one-time deprecation warning:apiKey/AXIOM_API_KEYtoken/AXIOM_TOKENapiKey/BETTER_STACK_API_KEYsourceToken/BETTER_STACK_SOURCE_TOKENSentry keeps
dsn(genuinely different format).PostHog's two factories are unified — but the old name is still exported:
These deprecated aliases will be removed in the next major release.
Adoption
Existing code keeps working. To opt into the new primitives:
See Toolkit Reference for the complete public API.
Patch Changes
#317
cda80e5Thanks @HugoRCD! - Add end-to-end adapter tests against the real Axiom, PostHog, Sentry, and Better Stack APIs (pnpm run test:e2e). They run nightly via a dedicated GitHub Actions workflow plus on PRs labellede2e, so any breaking change on a destination platform is caught within 24 hours instead of in production.The Axiom suite does a full round-trip — it ingests events tagged with a unique correlation ID, queries them back via APL, and asserts presence and shape. PostHog/Sentry/Better Stack are smoke-tested (their write APIs don't expose a read path).
Pure infra: no user-facing API change, no published code change.
evlog-community-adapter-skeleton@1.0.0
Patch Changes
cda80e5,9b3739b]:evlog-community-enricher-skeleton@1.0.0
Patch Changes
cda80e5,9b3739b]:evlog-community-framework-skeleton@1.0.0
Patch Changes
cda80e5,9b3739b]: