posthog-node
6.0.5 · 19 Nov 2026MIT23.9M / weekRepositorynpmAtom feed
370 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 6.x · latest line
6.0.5
19 Nov 2026Keep falsy payloads (
0,false,"") for locally evaluated flags inevaluateFlagsandgetAllFlagsAndPayloads
(2026-11-19)
6.0.4
18 Nov 2026Send transactional email requests to
/api/messaging/instead of the/api/projects/@current/alias, which PostHog is removing. Needs PostHog Cloud, or a self-hosted PostHog from 2026-11-18 or later. Older self-hosted versions answer these calls with a 404.
(2026-11-18)
6.0.3
18 Nov 2026- Removed
Drop null-valued custom exception properties after
beforeSendwithout undoing redaction or changing array positions.
(2026-11-18) Preserve falsy JSON payloads in feature flag snapshots from legacy flag responses.
(2026-11-18)
Patch Changes
- Removed
Drop null-valued custom exception properties after
beforeSendwithout undoing redaction or changing array positions.
(2026-11-18) Preserve falsy JSON payloads in feature flag snapshots from legacy flag responses.
(2026-11-18)
6.0.2
17 Nov 2026Accept the 5.x option names
before_send,custom_blocked_useragents,disable_capture_url_hashes, and__preview_capture_bot_pageviewsagain as deprecated aliases. Each one maps to its camelCase name and logs one deprecation error per process. When both names are set, the camelCase one wins. In 6.0.0 the old names were ignored without a warning, so abefore_sendhook stopped running.
(2026-11-17)
6.0.1
17 Nov 2026Add the missing commas to the
captureImmediateandidentifydoc comment examples, so the examples parse when you copy them.
(2026-11-17)
6.0.0
17 Nov 2026- Breaking
Remove
enterContext(); usewithContext()to scope async context to a callback.
(2026-11-17) - Breaking
Use camelCase SDK configuration names and typed boolean event options with support for additional JSON-valued options.
(2026-11-17) - Breaking
captureException()andcaptureExceptionImmediate()take an options object (distinctId,properties,options,uuid,flags,level). The old positional form still works in posthog-node 6.x.x and logs a deprecation error once per method.levelis read case-insensitively, with the same aliases as posthog-python (critical→fatal,warn→warning). An unknown level keepserror.registerOptions()andunregisterOptions()return a promise, andprepareEventMessage()returns a flat message with top-leveloptions,uuid,timestampanddisableGeoip. (2026-11-17)
Major Changes
- Breaking
Remove
enterContext(); usewithContext()to scope async context to a callback.
(2026-11-17) - Breaking
Use camelCase SDK configuration names and typed boolean event options with support for additional JSON-valued options.
(2026-11-17) - Breaking
captureException()andcaptureExceptionImmediate()take an options object (distinctId,properties,options,uuid,flags,level). The old positional form still works in posthog-node 6.x.x and logs a deprecation error once per method.levelis read case-insensitively, with the same aliases as posthog-python (critical→fatal,warn→warning). An unknown level keepserror.registerOptions()andunregisterOptions()return a promise, andprepareEventMessage()returns a flat message with top-leveloptions,uuid,timestampanddisableGeoip. (2026-11-17) - Breaking
Generated event uuids and personless distinct ids take their random bits from
crypto.getRandomValuesinstead ofMath.random.
(2026-11-17) - Breaking
A personal API key (
phx_...) passed as the project API key now disables the client, like a missing key, and either case logs one error that never includes the key.
Debug mode logs event names, uuids and counts instead of whole events, and abefore_sendfunction that throws is logged with the error's type instead of its message. In debug mode, a capture error can still include the server or proxy response text.
A new client option,captureTracingHeaders(defaulttrue), controls whether the Express and NestJS integrations read theX-POSTHOG-DISTINCT-IDandX-POSTHOG-SESSION-IDrequest headers into the request context. (2026-11-17) - Breaking
Analytics and AI events are batched and sent on separate lanes, in batches of about 5 MiB at most, and events that fail with a network error are kept and retried on the next flush.
flush()no longer rejects on delivery failures (they arrive through the'error'event), andmaxQueueSizenow applies to analytics events only.
(2026-11-17) - Breaking
Values set on the event, in context or with
register()/ the newregisterOptions()now win over the values the SDK adds ($is_server,$geoip_disable, feature flag properties, trace ids), andbefore_sendsees and can change all of them. Context and registered properties and options, including the new contextoptions, also reach identify, alias and group identify events, but they do not setprocess_person_profileon$identify,$create_alias,$merge_dangerously,$groupidentify,$setor$set_onceevents whose distinct id the SDK did not generate, which default totrueunless the call sets it.
An empty or whitespace distinct id counts as missing, and$groupidentifywithout a distinct id uses the context id, then$<type>_<key>.$geoip_disableand$groupsare filled beforebefore_send, so a hook that changes the message'sdisableGeoiporgroupsfield has no effect: edit the properties instead.
Reserved exception properties such as$exception_levelpassed incaptureException()properties are now ignored, so the SDK's value is sent. (2026-11-17) - Breaking
Every capture call takes a per-event
optionsmap that is sent to capture unchanged (the SDK no longer converts option values). Legacy option properties still work, but an option overrides its legacy property. Use options.
A$session_idor$window_idthat is not a string is dropped with a warning.
Capture drops an event whose option value it cannot read, such ascookieless_mode: [1, 2, 3], and the SDK reports it through'error'withdetails: 'invalid_options'. (2026-11-17) - Breaking
Events send
$liband$lib_versionin their properties: a$libset on the event, in context or withregister()wins over the SDK's own pair, andbefore_sendcan change or remove them.
(2026-11-17) - Breaking
Capture follows only same-origin 307 and 308 redirects. Invalid event uuids are replaced with a warning, and dropped duplicate copies are reported.
(2026-11-17) - Breaking
Capture retries only 404, 408, 429, 500, 502, 503, 504 and network errors, waiting 100 ms doubled per retry with jitter (at most 30 s, at least
Retry-After).
AddscaptureMaxRetries,captureCompression,captureAiCompression,captureAiMaxQueueSizeandcaptureAiRequestTimeoutMs. (2026-11-17) - Breaking
Capture always uses capture v1:
POSTHOG_CAPTURE_MODEis no longer read,captureAisends to/i/v1/ai/events, andCaptureV1Erroris nowCaptureError.
(2026-11-17) - Breaking
Send events only through capture v1, with AI events on their own lane. See the posthog-node 6.0.0 migration guide.
(2026-11-17) - Breaking
An event whose name is missing, empty or not a string, or whose name, distinct id, session id or window id is not well-formed Unicode (a lone surrogate), is dropped before sending and reported through the
'error'event, instead of being sent and failing at capture (an object name was sent as"[object Object]"). Lone surrogates in property strings are replaced with U+FFFD, so one bad character no longer fails the whole request.
An unparseable event timestamp is still replaced with the current time, and now logs a warning that never includes the value. (2026-11-17)
Patch Changes
Export the table of per-event options and the event properties posthog-node 5.x.x reads instead, so posthog-node,
@posthog/aiand@posthog/mcpshare one copy.
(2026-11-17)A 2xx capture response whose JSON body has no
resultsfield now fails the whole batch and reports it through the'error'event, like a body that is not JSON or has aresultsvalue that is not an object. The batch is not resent. A response with an emptyresultsobject still means every event was delivered.
(2026-11-17)An event whose
before_sendhook leavesdistinctIdmissing,nullor not a string is now dropped before sending and reported through the'error'event as a local drop (details: 'invalid event'). Before, the SDK sent the value as text, or sent""when the hook removed it. A caller's non-stringdistinctIdis now turned into a string beforebefore_sendruns, so a hook that leaves it alone still sends it. A hook that setsdistinctIdto""still sends it, and capture drops that event and reports it.
(2026-11-17)A
before_sendhook that throws is now logged withconsole.erroreven whendebugis off, so the dropped event is never silent. The line still names only the event and the error's type.
(2026-11-17)An event with a property value that throws when the SDK reads or serializes it, such as a getter or a
toJSONmethod that throws, is now dropped alone and reported through the'error'event as a local drop (details: 'unserializable event'). This covers the call's properties, the copy made forbefore_send, and serialization, on the analytics and AI lanes. In posthog-node 5.x.x, a value that threw while the client read the call's properties printed the raw error withconsole.error, and one that threw during serialization failed the whole batch and emitted the raw error on'error'. With no'error'listener, the SDK logs one line with the count and reason only.
(2026-11-17)
- 5.x
5.74.0
15 Nov 2026Treat failed flag evaluations as unavailable: Node
getFeatureFlag()/isFeatureEnabled()returnundefined,getAllFlags()omits failed keys, and no failed values or payloads are exposed.
(2026-11-15)
Minor Changes
Treat failed flag evaluations as unavailable: Node
getFeatureFlag()/isFeatureEnabled()returnundefined,getAllFlags()omits failed keys, and no failed values or payloads are exposed.
(2026-11-15)
5.73.1
14 Nov 2026node:
shutdown()now also sends logs captured while its logs flush was in flight, instead of dropping them
(2026-11-14)
5.73.0
13 Nov 2026Send
$experiment_exposurefor config version 2 experiment splits, and send the reason code and rule attribution on$feature_flag_calledfor config version 2 flags in place of$feature_flag_reason.
(2026-11-13)Request
/flags/?v=4instead of/flags/?v=2and read its typed flag records. For a well-formed response, flag getters and$feature_flag_calledevents return the same values as before. A PostHog server that does not servev=4answers as it does forv=2, and that response is read as before.A flag record with a field of the wrong JSON type, such as a string
metadata.version, now reads as disabled: flag getters returnfalseand it has no payload. Other flags in the same response are not affected. This applies to both response versions, so tests that mock/flagsmay need to match the new URL and send correctly typed fields. (2026-11-13)
Minor Changes
Send
$experiment_exposurefor config version 2 experiment splits, and send the reason code and rule attribution on$feature_flag_calledfor config version 2 flags in place of$feature_flag_reason.
(2026-11-13)Request
/flags/?v=4instead of/flags/?v=2and read its typed flag records. For a well-formed response, flag getters and$feature_flag_calledevents return the same values as before. A PostHog server that does not servev=4answers as it does forv=2, and that response is read as before.A flag record with a field of the wrong JSON type, such as a string
metadata.version, now reads as disabled: flag getters returnfalseand it has no payload. Other flags in the same response are not affected. This applies to both response versions, so tests that mock/flagsmay need to match the new URL and send correctly typed fields. (2026-11-13)
5.72.0
13 Nov 2026Send cc, bcc and attachments with email from code. The SDK uploads each file PostHog doesn't have yet, then sends the email with the files' hashes. An email carries at most 10 files and 40 MB after Base64 encoding, about 29 MB of files.
(2026-11-13)
5.71.0
12 Nov 2026A send with
templateKeynow takestrackingandsensitive.trackingchooses what PostHog tracks for the email.tracking: trueturns on opens, clicks and engagement events.tracking: falseturns them all off. An object such as{ clicks: true }or{ engagement: false }turns each kind on or off, and a key you leave out keeps its default. Without it, PostHog counts opens, captures engagement events, and counts clicks only when the email isn't sensitive.sensitivemarks an email that carries login links, reset tokens or codes. A sensitive email keeps its links as they are unlesstrackingturns clicks on, leaves its subject off engagement events, and keeps its content out of PostHog's logs. Without it, a send whosetemplateKeymatches a template saved in PostHog follows that template's setting, and any other send is sensitive. PostHog refusessensitive: falsewhen the matching template is sensitive. A send that sets neither option works exactly as before.captureEngagementis deprecated in favor oftracking: { engagement: false }. It keeps working, but PostHog refuses a send that sets both.trackingandsensitiveneed PostHog's API support, which is rolling out. Until it reaches your PostHog instance, PostHog refuses a send that sets either one. (2026-11-12)
5.70.0
12 Nov 2026Opt a recipient out of email topics, or back in, with
posthog.emails.setPreferences({ to, topics, allMarketing }). One call sends the whole change in one request, using the client'ssecretKey.
(2026-11-12)
5.69.0
11 Nov 2026posthog.emails.send()takes a React Email element asreactand renders it with the optional peer@react-email/render.
(2026-11-11)
5.68.2
10 Nov 2026With
POSTHOG_CAPTURE_MODE=v1, capture now retries404and429responses like408and5xxinstead of failing the batch at once.
(2026-11-10)
5.68.1
10 Nov 2026Fix empty OR and legacy cohort group matching, and fall back to the server for unsupported group types.
(2026-11-10)
5.68.0
10 Nov 2026node: Let the NestJS interceptor take the request's distinct ID from a
getDistinctIdoption or from identity already set in the PostHog context
(2026-11-10)
5.67.2
10 Nov 2026Fix nested cohort
not_inconditions in local feature flag evaluation.
(2026-11-10)
5.67.1
10 Nov 2026Relative date filters in local flag evaluation no longer roll past the end of a shorter month.
1mon March 31 now resolves to February 28, matching the flags service.
(2026-11-10)
Patch Changes
Relative date filters in local flag evaluation no longer roll past the end of a shorter month.
1mon March 31 now resolves to February 28, matching the flags service.
(2026-11-10)
5.67.0
10 Nov 2026node: Add
instrumentRequestandposthogHonoMiddlewarefor fetch-API servers (Hono, Bun, Deno, Next route handlers). They readx-posthog-session-id, wrap the request inwithContext, open a server span that continuestraceparentand is named by route, mark 5xx as errors, and recordhttp.server.request.durationandhttp.server.request.count.feat(core): add
PostHogMetrics.flushCoalesced(), a flush that callers can request once per unit of work: concurrent calls share one queued send, and it waits out a metrics backoff. (2026-11-10)
Minor Changes
node: Add
instrumentRequestandposthogHonoMiddlewarefor fetch-API servers (Hono, Bun, Deno, Next route handlers). They readx-posthog-session-id, wrap the request inwithContext, open a server span that continuestraceparentand is named by route, mark 5xx as errors, and recordhttp.server.request.durationandhttp.server.request.count.feat(core): add
PostHogMetrics.flushCoalesced(), a flush that callers can request once per unit of work: concurrent calls share one queued send, and it waits out a metrics backoff. (2026-11-10)
5.66.0
10 Nov 2026Convex functions in the default runtime can now import
posthog-nodewithout"use node".
(2026-11-10)
5.65.0
10 Nov 2026node: Stamp the configured
serviceName(fromtracesormetrics) on events asservice_name
(2026-11-10)node: Add a logs API,
posthog.logger.info(...)andposthog.captureLog(...), configured with thelogsoption. Records attach the active span's trace and span ids and thewithContextdistinctId and sessionId, andserviceNamedefaults to the traces or metrics one.
(2026-11-10)node: Expose
traceIdandspanIdgetters on theSpanhandle, for correlating logs from other loggers with a trace without parsingtraceparent()
(2026-11-10)
Minor Changes
node: Stamp the configured
serviceName(fromtracesormetrics) on events asservice_name
(2026-11-10)node: Add a logs API,
posthog.logger.info(...)andposthog.captureLog(...), configured with thelogsoption. Records attach the active span's trace and span ids and thewithContextdistinctId and sessionId, andserviceNamedefaults to the traces or metrics one.
(2026-11-10)node: Expose
traceIdandspanIdgetters on theSpanhandle, for correlating logs from other loggers with a trace without parsingtraceparent()
(2026-11-10)
5.64.0
9 Nov 2026node: Expose
traceIdandspanIdgetters on theSpanhandle, for correlating logs from other loggers with a trace without parsingtraceparent()
(2026-11-09)
Minor Changes
node: Expose
traceIdandspanIdgetters on theSpanhandle, for correlating logs from other loggers with a trace without parsingtraceparent()
(2026-11-09)
5.63.2
9 Nov 2026Treat a
/flagsresponse whoseflagsfield is not an object as a failed request instead of throwing aTypeError, and report it toerrorevent listeners.
(2026-11-09)
5.63.1
6 Nov 2026Parse Node stack frames for functions named
asyncwithout a leading parenthesis in the filename.
(2026-11-06)
Patch Changes
Parse Node stack frames for functions named
asyncwithout a leading parenthesis in the filename.
(2026-11-06)
5.63.0
5 Nov 2026metrics.histogram()accepts aboundsoption that sets the histogram's bucket boundaries, andbeforeSendsees and can change them. The first sample of a histogram (name and unit) fixes its bounds until the client resets. A later sample with different bounds is recorded in the fixed buckets and logs a warning, and a sample with invalid bounds is dropped. The experimentalposthog.flags.request.durationhistogram now uses the bounds[50, 75, 100, 150, 200, 300, 400, 500, 750, 1000, 1500, 2000, 3000, 5000, 10000]ms, so its p50 and p95 resolve between 50ms and 5s. This changes the metric's buckets, which its experimental status allows.
(2026-11-05)
Minor Changes
metrics.histogram()accepts aboundsoption that sets the histogram's bucket boundaries, andbeforeSendsees and can change them. The first sample of a histogram (name and unit) fixes its bounds until the client resets. A later sample with different bounds is recorded in the fixed buckets and logs a warning, and a sample with invalid bounds is dropped. The experimentalposthog.flags.request.durationhistogram now uses the bounds[50, 75, 100, 150, 200, 300, 400, 500, 750, 1000, 1500, 2000, 3000, 5000, 10000]ms, so its p50 and p95 resolve between 50ms and 5s. This changes the metric's buckets, which its experimental status allows.
(2026-11-05)
5.62.0
5 Nov 2026posthog.emails.send()can now send email content your code rendered, such as HTML from React Email. Give the email atemplateKeyand asubject, and passhtml,textor both.const posthog = new PostHog("phc_...", { secretKey: "phs_..." }); const { data, error } = await posthog.emails.send({ to: "user@example.com", distinctId: "user_123", templateKey: "password-reset", subject: "Reset your password", html: renderedHtml, }); if (error) throw error; // 'delivered', 'bounced', ... const { data: status } = await posthog.emails.get(data.id);You need a project secret API key, the kind that starts with
phs_. Create one under Project secret API keys in your project settings. Set its Transactional email scope to Write to send emails, or to Read for a key that only reads statuses. Pass it to the client assecretKey. SetappHostto your PostHog app URL when you self-host PostHog or send through a reverse proxy.PostHog records each email's delivery, opens and clicks on the person with that
distinctId. It groups every email with the sametemplateKey, so you see their metrics and logs in one place. The SDK retries a request that hits a network error, a rate limit or an outage twice by default. Every send carries an idempotency key, so a retry never sends the email twice. Pass your ownidempotencyKey, such aswelcome:user_123, and your job runner's retries are safe too.A send with your own content also takes
from,replyToandcaptureEngagement: false. SetmigratedFromon the client to tell PostHog which email provider you moved from. A failed call returns anEmailErrorwith PostHog'scodeand the HTTPstatusCode.Docs: Send transactional emails with Node.js and the transactional email overview. (2026-11-05)
5.61.3
5 Nov 2026Skip client-only flag warnings and unnecessary server fallback during bulk evaluation.
(2026-11-05)
5.61.2
2 Nov 2026posthog.emails.send()now sends a flat request body withtemplate_idanddistinct_idat the top level.
(2026-11-02)
5.61.1
30 Oct 2026Exception autocapture now captures unhandled promise rejections when the app or framework (for example Next.js, Nitro or PM2) has its own
unhandledRejectionlistener, without changing what Node does with the rejection. Each occurrence is captured once per project, however many clients the app creates, and an error reported more than once in the same turn of the event loop (rethrown by a host listener, or one Error object rejected by two promises) is captured once. When the process survives the error, autocapture captures it at the end of the current turn of the event loop, so that acaptureExceptioncall for the same error in that turn, from the app's own listener or a framework's error hook such as Nitro's, is the one sent, with itsdistinctIdand properties. AcaptureExceptioncall for an error that autocapture already captured in the same turn is skipped. When the app flushes or shuts down a client, that client captures at once what is still waiting for the end of the turn, so a crash handler that flushes or shuts down and then exits still sends the error. A crash is captured whatever the error, anAbortErroror a framework's control flow included. A rejection that the app handles only later is still captured, as Node reports it as unhandled. Next.js and React control-flow errors andAbortErrorrejections are skipped when the process survives them.
(2026-10-30)
5.61.0
30 Oct 2026Send transactional email from a PostHog email template with
posthog.emails.send(), using the newappHost,emailRequestTimeoutMsandemailRequestMaxRetriesclient options. Read what happened to a sent email withposthog.emails.get(id), using the message ID thatsend()returned.
(2026-10-30)
Minor Changes
Send transactional email from a PostHog email template with
posthog.emails.send(), using the newappHost,emailRequestTimeoutMsandemailRequestMaxRetriesclient options. Read what happened to a sent email withposthog.emails.get(id), using the message ID thatsend()returned.
(2026-10-30)
5.60.1
29 Oct 2026Let later conditions resolve a flag locally when an unexpected error follows a filter that local evaluation cannot check, instead of failing the whole flag
(2026-10-29)Fall back to the server when a flag depends on a flag that only the server can evaluate (for example, one with a static cohort), instead of letting a later condition choose a different value locally.
unresolvedFlagsreports such a flag asunresolved_dependency
(2026-10-29)
5.60.0
29 Oct 2026The Express and NestJS integrations can read the session ID, and the distinct ID of an identified user, from the posthog-js cookie when a request has no tracing headers, so backend events link to browser sessions on same-site requests without frontend configuration. Turn it on with the
readPostHogCookieoption.
(2026-10-29)
5.59.0
28 Oct 2026Reads from an
evaluateFlags()snapshot now honorsendFeatureFlagEvent: false, andisEnabled()/getFlag()accept asendFeatureFlagEventsoption that overrides it for one read. If you setsendFeatureFlagEvent: falseand rely on snapshot reads for experiment exposures, passsendFeatureFlagEvents: trueon those reads.
(2026-10-28)
Minor Changes
Reads from an
evaluateFlags()snapshot now honorsendFeatureFlagEvent: false, andisEnabled()/getFlag()accept asendFeatureFlagEventsoption that overrides it for one read. If you setsendFeatureFlagEvent: falseand rely on snapshot reads for experiment exposures, passsendFeatureFlagEvents: trueon those reads.
(2026-10-28)
5.58.0
28 Oct 2026Add an optional OpenTelemetry context processor, and an optional
signalthat ends a context's lifetime.
(2026-10-28)
5.57.2
25 Oct 2026Esbuild no longer fails to bundle posthog-node when the optional
@opentelemetry/apipeer is not installed
(2026-10-25)
5.57.1
23 Oct 2026Apply the client
privacyModeoption to AI integrations, keep prompts out of errors, provider metadata and OTel spans in privacy mode, and redact MCP tool credentials
(2026-10-23)Fall back instead of returning inconsistent local regex flag results for Unicode and advanced patterns.
(2026-10-23)
Patch Changes
Apply the client
privacyModeoption to AI integrations, keep prompts out of errors, provider metadata and OTel spans in privacy mode, and redact MCP tool credentials
(2026-10-23)Fall back instead of returning inconsistent local regex flag results for Unicode and advanced patterns.
(2026-10-23)
5.57.0
22 Oct 2026Report flags local evaluation could not resolve on
evaluateFlags()snapshots viaunresolvedFlags, tag reads of them withlocal_evaluation_inconclusive, and warn once about flags whose definition local evaluation does not supportBehavior changes:
Minor Changes
Report flags local evaluation could not resolve on
evaluateFlags()snapshots viaunresolvedFlags, tag reads of them withlocal_evaluation_inconclusive, and warn once about flags whose definition local evaluation does not supportBehavior changes:
A condition with a filter local evaluation cannot check and a filter that does not match now resolves locally as no match, instead of falling back to a server request or staying unresolved.
$feature_flag_calledevents from snapshot reads reportlocal_evaluation_inconclusiveinstead offlag_missingfor these flags.The load-time warning now also logs with
strictLocalEvaluation: true. (2026-10-22)
5.56.4
21 Oct 2026Fall back from local flag evaluation when a required property value is undefined.
(2026-10-21)
Patch Changes
Fall back from local flag evaluation when a required property value is undefined.
(2026-10-21)
5.56.3
21 Oct 2026Local flag evaluation now matches a null property with string operators like the flags service, so negated operators such as
not_icontainsmatch instead of failing.
(2026-10-21)
Patch Changes
Local flag evaluation now matches a null property with string operators like the flags service, so negated operators such as
not_icontainsmatch instead of failing.
(2026-10-21)
5.56.2
16 Oct 2026Allow local feature flag evaluation from a shared definition cache without a secret or personal API key.
(2026-10-16)
5.56.1
14 Oct 2026Link captured exceptions to active OpenTelemetry traces when the API is available.
(2026-10-14)
5.56.0
13 Oct 2026Attach trace exemplars to metrics recorded inside sampled spans.
(2026-10-13)
Minor Changes
Attach trace exemplars to metrics recorded inside sampled spans.
(2026-10-13)
5.55.3
12 Oct 2026Fix
before_sendcallback types to accept non-null events while still allowingnullreturns to drop events.
(2026-10-12)
Patch Changes
Fix
before_sendcallback types to accept non-null events while still allowingnullreturns to drop events.
(2026-10-12)
5.55.2
11 Oct 2026Clarify which server-only credentials to use for local evaluation when a project API key is supplied instead.
(2026-10-11)
5.55.1
8 Oct 2026Evict only the least recently used distinct ids from the
$feature_flag_calleddedupe cache instead of clearing it entirely.distinctIdHasSentFlagCallsnow returns a snapshot, so writing or deleting individual keys on it no longer changes deduplication.
(2026-10-08)
5.55.0
30 Sep 2026Allow
featureFlagsPollingInterval: nullto disable automatic local flag polling while retaining initialization and manual refresh.
(2026-09-30)
5.54.1
25 Sep 2026Support snake_case feature flag cache payloads while preserving compatibility with camelCase providers and cached data.
(2026-09-25)
5.54.0
25 Sep 2026Expose feature flag evaluation reasons and preserve them in OpenFeature resolution metadata.
(2026-09-25)
5.53.0
23 Sep 2026Read a feature flag's evaluation runtime with
getFeatureFlagEvaluationRuntime(key)andgetFeatureFlagKeysByEvaluationRuntime(runtime)
(2026-09-23)
5.52.6
23 Sep 2026Honor
filters.holdoutduring local feature flag evaluation. A user in an experiment holdout now receives theholdout-<id>variant instead of being bucketed into a regular variant, matching how the server evaluates the same flag. The holdout is resolved before the release conditions, so a held-out user never reaches the flag's targeting — including when those conditions would have excluded them, soisFeatureEnabledcan return true where it previously returned false. Experiments with an active holdout will see variant assignment change for the held-out share of traffic on upgrade, bringing locally evaluated assignments in line with server-evaluated ones.
(2026-09-23)
Patch Changes
Honor
filters.holdoutduring local feature flag evaluation. A user in an experiment holdout now receives theholdout-<id>variant instead of being bucketed into a regular variant, matching how the server evaluates the same flag. The holdout is resolved before the release conditions, so a held-out user never reaches the flag's targeting — including when those conditions would have excluded them, soisFeatureEnabledcan return true where it previously returned false. Experiments with an active holdout will see variant assignment change for the held-out share of traffic on upgrade, bringing locally evaluated assignments in line with server-evaluated ones.
(2026-09-23)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.