Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 1, 2026

Bumps posthog-js from 1.268.5 to 1.312.0.

Release notes

Sourced from posthog-js's releases.

[email protected]

1.312.0

Minor Changes

  • #2834 548b466 Thanks @​ordehi! - fix: Clear PageViewManager state on session rotation to prevent cross-session duration pollution

    When a browser tab is backgrounded and the session rotates (30 min idle or 24 hour max), PageViewManager now clears its state. This prevents $prev_pageview_duration from spanning session boundaries, which was causing impossibly large values (94+ hours observed) in web analytics "Average Time on Page" metrics.

    Users who implemented workarounds for inflated $prev_pageview_duration values (e.g., capping at 30 minutes) may want to review those after upgrading, as the root cause is now fixed. (2025-12-31)

[email protected]

1.311.0

Minor Changes

  • #2813 4b7443c Thanks @​ordehi! - feat(flags): add updateFlags() method for injecting flags without network request

    Adds posthog.updateFlags(flags, payloads?, options?) to inject feature flag values from an external source (e.g., server-side evaluation, edge middleware) without making a network request. Supports { merge: true } option to merge with existing flags instead of replacing. (2025-12-29)

[email protected]

1.310.2

Patch Changes

[email protected]

1.310.1

Patch Changes

  • #2797 8b1a39a Thanks @​adboio! - product tours: support custom appearance, clean up animations (2025-12-23)

[email protected]

1.310.0

Minor Changes

... (truncated)

Commits
  • fc438c3 chore: update versions and lockfile [version bump]
  • 548b466 fix(web): Clear PageViewManager state on session rotation (#2834)
  • bba0edf chore: update versions and lockfile [version bump]
  • c7c3140 fix: expo web export (#2833)
  • 072a1d0 chore: update versions and lockfile [version bump]
  • 5a4a8e2 fix(flags): Apply exponential backoff to on-demand fetches after errors (#2825)
  • 07d86c1 chore: update versions and lockfile [version bump]
  • 4b7443c feat(flags): add updateFlags() method for injecting flags without network req...
  • 1a8a9f0 chore: update versions and lockfile [version bump]
  • ad42eae fix(surveys): queue callbacks when fetch is in progress instead of returning ...
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for posthog-js since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [posthog-js](https://github.com/PostHog/posthog-js) from 1.268.5 to 1.312.0.
- [Release notes](https://github.com/PostHog/posthog-js/releases)
- [Changelog](https://github.com/PostHog/posthog-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/PostHog/posthog-js/compare/[email protected]@1.312.0)

---
updated-dependencies:
- dependency-name: posthog-js
  dependency-version: 1.312.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jan 1, 2026
@netlify
Copy link

netlify bot commented Jan 1, 2026

Deploy Preview for tolgee-docs ready!

Name Link
🔨 Latest commit 6aed98b
🔍 Latest deploy log https://app.netlify.com/projects/tolgee-docs/deploys/69567e6aa1ba2b000902a43c
😎 Deploy Preview https://deploy-preview-1072--tolgee-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant