Skip to content

chore(deps): bump posthog-node from 5.51.8 to 5.52.4 - #276

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/posthog-node-5.52.1
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/posthog-node-5.52.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumps posthog-node from 5.51.8 to 5.52.4.

Release notes

Sourced from posthog-node's releases.

[email protected]

5.52.4

Patch Changes

  • #4885 39a8980 Thanks @​decknamec! - Server-side feature flags now resolve in posthog-node and posthog-edge even when a proxy rewrites the request's User-Agent. Flags restricted to the client runtime now resolve to undefined in these SDKs, where a rewritten User-Agent previously let them through. (2026-09-15)
  • Updated dependencies [39a8980]:
    • @​posthog/core@​1.54.2

[email protected]

5.52.3

Patch Changes

  • #4941 07c1045 Thanks @​marandaneto! - Capture causes and AggregateError members with relationship metadata and individual stacks, limiting output to 50 entries and 1,000 member inspections. (2026-09-15)
  • Updated dependencies [07c1045]:
    • @​posthog/core@​1.54.1

[email protected]

5.52.2

Patch Changes

  • #4951 55c5142 Thanks @​marandaneto! - Fix Express exception events reporting the initial response status instead of the final HTTP status. (2026-09-14)

[email protected]

5.52.1

Patch Changes

  • #4908 4a3c74b Thanks @​turnipdabeets! - Child spans now share their parent's clock, so a child no longer appears to start before or end after its parent by up to a millisecond, or by more when the system clock is adjusted mid-trace. (2026-09-11)
  • Updated dependencies [4a3c74b]:
    • @​posthog/core@​1.53.1

[email protected]

5.52.0

Minor Changes

  • #4579 19e78cc Thanks @​turnipdabeets! - Add experimental distributed tracing to posthog-node: startSpan, withSpan and getActiveSpan record spans against a new traces client option. A service with tracing off still forwards an inbound traceparent, including from spans nested inside the one that received it, so a distributed trace is not severed. A traceparent may be passed as the one-element array req.headersDistinct gives. A beforeSpanSend hook sees every span before it is exported and may edit or drop it, and maxAttributesPerSpan, maxEventsPerSpan, maxAttributeValueLength, maxLiveSpans and maxSpanAgeMs bound what a single span and a single process may hold. (2026-09-10)

Patch Changes

  • #4579 19e78cc Thanks @​turnipdabeets! - Stop a throwing getter in metrics.resourceAttributes from breaking every metrics export — the key is recorded as [Unserializable] instead. (2026-09-10)

... (truncated)

Changelog

Sourced from posthog-node's changelog.

5.52.4

Patch Changes

  • #4885 39a8980 Thanks @​decknamec! - Server-side feature flags now resolve in posthog-node and posthog-edge even when a proxy rewrites the request's User-Agent. Flags restricted to the client runtime now resolve to undefined in these SDKs, where a rewritten User-Agent previously let them through. (2026-09-15)
  • Updated dependencies [39a8980]:
    • @​posthog/core@​1.54.2

5.52.3

Patch Changes

  • #4941 07c1045 Thanks @​marandaneto! - Capture causes and AggregateError members with relationship metadata and individual stacks, limiting output to 50 entries and 1,000 member inspections. (2026-09-15)
  • Updated dependencies [07c1045]:
    • @​posthog/core@​1.54.1

5.52.2

Patch Changes

  • #4951 55c5142 Thanks @​marandaneto! - Fix Express exception events reporting the initial response status instead of the final HTTP status. (2026-09-14)

5.52.1

Patch Changes

  • #4908 4a3c74b Thanks @​turnipdabeets! - Child spans now share their parent's clock, so a child no longer appears to start before or end after its parent by up to a millisecond, or by more when the system clock is adjusted mid-trace. (2026-09-11)
  • Updated dependencies [4a3c74b]:
    • @​posthog/core@​1.53.1

5.52.0

Minor Changes

  • #4579 19e78cc Thanks @​turnipdabeets! - Add experimental distributed tracing to posthog-node: startSpan, withSpan and getActiveSpan record spans against a new traces client option. A service with tracing off still forwards an inbound traceparent, including from spans nested inside the one that received it, so a distributed trace is not severed. A traceparent may be passed as the one-element array req.headersDistinct gives. A beforeSpanSend hook sees every span before it is exported and may edit or drop it, and maxAttributesPerSpan, maxEventsPerSpan, maxAttributeValueLength, maxLiveSpans and maxSpanAgeMs bound what a single span and a single process may hold. (2026-09-10)

Patch Changes

  • #4579 19e78cc Thanks @​turnipdabeets! - Stop a throwing getter in metrics.resourceAttributes from breaking every metrics export — the key is recorded as [Unserializable] instead. (2026-09-10)

  • #4579 19e78cc Thanks @​turnipdabeets! - Honor Retry-After when the ingestion endpoint refuses a logs or metrics batch, instead of retrying on the SDK's own schedule alone. A refusal naming a longer wait extends the one being served, up to five minutes from when it started. Retry delays now carry jitter so clients refused together do not return together, and metrics backs off exponentially across consecutive failures rather than retrying on a fixed interval. (2026-09-10)

  • #4579 19e78cc Thanks @​turnipdabeets! - Logs and metrics now always send service.name and telemetry.sdk.*, even when a resourceAttributes value is too large to encode in full. Previously that value could crowd them out, and the records reached PostHog with no service attribution.

... (truncated)

Commits
  • bba9db4 chore: update versions and lockfile [version bump]
  • 39a8980 fix(core): declare the evaluation runtime on /flags requests (#4885)
  • 8aecf43 chore: update versions and lockfile [version bump]
  • 07c1045 fix(error-tracking): link causes and aggregate members in one event (#4941)
  • 94ba514 chore: update versions and lockfile [version bump]
  • 55c5142 fix(node): capture the final Express response status (#4951)
  • 3786cff fix(core): reject terminal non-2xx write responses (#4922)
  • bc1cc15 chore: update versions and lockfile [version bump]
  • 1bef871 chore: update versions and lockfile [version bump]
  • 19e78cc feat(node): distributed tracing spans (#4579)
  • See full diff in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 16, 2026
@github-actions github-actions Bot added area:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines labels Sep 16, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/posthog-node-5.52.1 branch from 0e6bd43 to a00b0d5 Compare September 16, 2026 15:55
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/posthog-node-5.52.1 branch from a00b0d5 to b1d3364 Compare September 16, 2026 16:45
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/posthog-node-5.52.1 branch 2 times, most recently from 7337b50 to b98baa4 Compare September 16, 2026 18:19
allisonmahmood added a commit that referenced this pull request Sep 19, 2026
Dependabot opened five PRs for the Effect 4 RC bump (#273, #275, #277,
#278, #279), one per package, and each fails alone because the RCs ship
in lockstep. This PR lands rc.112 → rc.115 for `effect`,
`@effect/platform-node`, `@effect/sql-pg`, `@effect/sql-pglite` and
`@effect/vitest` together through the pnpm catalog, and fixes what the
three RCs broke.

## What the RCs changed for us

- **`@effect/sql-pg` replaced `pg` with a native client.** Rows now
decode `int8` as `bigint` and timestamps as epoch milliseconds,
`PgClient.fromPool` is gone, and the extended protocol takes one
statement per query. `@patchy/sql` now owns a `types` registry that
keeps `int8` as a decimal string and timestamps as `Date`, so no row
schema moved and PGlite still answers the same shapes;
`@patchy/company-database` builds its pools on it and drops its direct
`pg` dependency. Migration records are `ddl(...statements)`, one
statement per string. A plain `timestamp` is read as UTC wall time on
both Postgres and PGlite, with a parity assertion in the inventory
contract.
- **Pools tick on the wall clock.** The native pool runs an idle sweep
on the Effect clock; a test that calls `TestClock.setTime` on a far date
replays that timer millions of times and never returns (OrphanSweep,
Pages, DeviceLogins all hung). `Sql.pool` provides the live clock to the
pool only, so virtual time still drives domain timestamps.
- **PascalCase constructors.** `Config.string/int/redacted` →
`Config.String/Int/Redacted`, `mapOrFail` → `mapEffect`; CLI `Flag`,
`Argument`, `Prompt` and `GlobalFlag` constructors likewise (`choice` →
`Literals`, `float` → `Finite`, `Prompt.text` → `Prompt.String`).
Parsing behavior is unchanged.
- **`FileSystem.Size` → `ByteSize`** for
`HttpServerRequest.MaxBodySize`.
- **`parseOptions` annotations no longer affect parsing.** The now-inert
annotations are removed and every decoder that must reject unknown
fields passes `onExcessProperty: "error"` at the parser: the publish
manifest, the runtime envelope, operation arguments and principal, and
the shell broker. `POST /api/sdk/generate` now reads its body raw and
decodes it strictly, since the `HttpApi` payload decoder would strip
unknown fields; a raw HTTP test covers it. Nothing on the wire loosened.
- **`onExcessProperty: "preserve"` was removed.** `patchy.json` reads
use `Schema.StructWithRest` so a rewrite still keeps keys the repo
added.
- **`HttpServer.address`** is a `NetAddress.SocketAddress`; socket tests
check for a Unix path instead of a `TcpAddress` tag.
- `msgpackr` left `@effect/platform-node`, so its `allowBuilds` entry is
gone from the workspace file.
- **Connection URLs.** The native client resolves `dbname` and `user`
parameters differently from `pg`, and reads no `ssl=` or
`statement_timeout=` at all. Company pools pass the placement's database
and the validated login as explicit options, so neither a `dbname`
parameter nor an empty `user=` can redirect them. A URL carrying a
parameter the client does not read fails at startup with
`UnsupportedUrlParameters` (and the company URL schema refuses it)
rather than silently connecting without TLS; ask for TLS with
`sslmode=`.

## Not in this PR

- `@effect/vitest` rc.115 declares a peer on vitest 5; we stay on vitest
4.1.11, which it runs on with a peer warning. The vitest 5 major is its
own bump.
- Vite 8 (#280) and posthog-node (#276) follow one by one on top of this
branch.

## Verification

- `pnpm lint`, `pnpm typecheck` pass.
- `pnpm test`: 939 of 939 pass after the review fixes (the first run had
two 5-second load timeouts that passed in isolation; nothing was
relaxed).
- `pnpm test:postgres-concurrency`: 7 of 7 pass.

Rebased onto `main` after the portal stack landed.

Model: Claude Fable 5.1. Harness: Claude Code.

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
@dependabot dependabot Bot changed the title chore(deps): bump posthog-node from 5.51.8 to 5.52.1 chore(deps): bump posthog-node from 5.51.8 to 5.52.4 Sep 19, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/posthog-node-5.52.1 branch from b98baa4 to aedaf48 Compare September 19, 2026 13:38
@github-actions github-actions Bot removed the area:ci CI, shared testing infrastructure, development scripts and tooling label Sep 19, 2026
allisonmahmood added a commit that referenced this pull request Sep 19, 2026
Dependabot's #276 bumps posthog-node to 5.52.1 against `main`; the range
now resolves to 5.52.4, so this lands the bump on top of the Effect RC
bump (#284) instead.

posthog-node 5.52 adds experimental distributed tracing (`startSpan`,
`withSpan`, a `traces` option), honours `Retry-After` for refused log
and metric batches, and drops oversized batches client-side.
`@patchy/analytics` uses only the client constructor, `capture` and
`shutdown`, none of which changed.

## Verification

- `pnpm typecheck` passes; `packages/analytics` tests pass (6 of 6).

Stacked on `deps/effect-rc-115` (#284); replaces #276.

Model: Claude Fable 5.1. Harness: Claude Code.

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
@dependabot @github

dependabot Bot commented on behalf of github Sep 19, 2026

Copy link
Copy Markdown
Contributor Author

Looks like posthog-node is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Sep 19, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/posthog-node-5.52.1 branch September 19, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:server Touches the server area dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants