Contents

@posthog/rollup-plugin

1.6.4

Patch Changes

  • #5664 a7485da Thanks @ioannisj! - Bump @posthog/cli to 0.19.1 so builds outside a git checkout that set only a release version upload source maps with a warning instead of failing with "Release fields are incomplete". (2026-11-11)

1.6.3

Patch Changes

  • #5571 2eccf01 Thanks @marandaneto! - Keep event-mode chunk IDs stable when unrelated lazy chunks are added in Rollup and Vite builds. (2026-11-06)

1.6.2

Patch Changes

  • #5351 4182940 Thanks @hpouillot! - Require PostHog CLI 0.18.11 or newer within the 0.18 release line. (2026-10-21)

1.6.1

Patch Changes

  • #5095 4e0f232 Thanks @ablaszkiewicz! - Keep the release snippet byte-exact under Vite 8 minification, so posthog-cli recognizes it and stops re-uploading unchanged chunks on every release. (2026-09-25)

1.6.0

Minor Changes

  • #4705 dd5888a Thanks @ablaszkiewicz! - Change the default sourcemaps.releaseMode to event: set sourcemaps.releaseMode: 'symbol-set', or POSTHOG_RELEASE_MODE=symbol-set, to keep binding uploaded symbol sets to a release. The @posthog/plugin-utils bump is major, so an installed plugin keeps the old default until the plugin itself is upgraded.

    event mode requires a posthog-cli with release resolve and --release-mode, and posthog-js 1.409.0, posthog-node 5.47.0, or @posthog/core 1.46.0 at runtime. An older CLI fails a rollup build and skips the upload on webpack and Next.js. An older SDK reports no release on exceptions. (2026-09-02)

Patch Changes

  • #4737 c589ab8 Thanks @cat-ph! - Bump @posthog/cli to ~0.16.2, which fixes a race in sourcemap process: inject and upload used to walk the directory roots separately, so a bundler still writing into the output directory mid-run (e.g. Turbopack's background filesystem-cache flush on Next.js 16.3+) could hand upload a chunk inject never stamped and abort the build with "Chunk ID not found". The CLI now uploads exactly the pairs it injected, and --delete-after cleanup skips files that vanished or changed after upload instead of failing the build. (2026-09-02)
  • Updated dependencies [dd5888a]:

1.5.1

Patch Changes

  • #4563 530d88b Thanks @ablaszkiewicz! - Bump @posthog/cli to ~0.14.1, which makes sourcemap inject --release-mode=event adopt a bundler-emitted ECMA-426 debug id as the chunk id instead of deriving its own, so the ids webpack stamps into each chunk are the ones the CLI uploads against. (2026-08-24)

  • #4601 a54efda Thanks @marandaneto! - Restore chunk ID comments after Vite 8 output minification so client source maps are uploaded. (2026-08-24)

1.5.0

Minor Changes

  • #4541 74d8f5a Thanks @ablaszkiewicz! - Add experimental sourcemaps.releaseMode: 'event' to the rollup plugin. In event mode the plugin resolves the release with posthog-cli release resolve and injects its id into every chunk, so exceptions report their release directly instead of it being bound to the uploaded symbol sets, and chunk ids are derived from chunk content so a rebuild of unchanged code reuses the symbol set already uploaded. The option defaults to the POSTHOG_RELEASE_MODE environment variable and then to symbol-set, which behaves exactly as before. Event mode needs a posthog-cli with the release resolve command. (2026-08-19)

Patch Changes

1.4.9

Patch Changes

  • #4512 1030636 Thanks @ablaszkiewicz! - Inject chunk ids (a fresh random id per build) into chunks in-memory during renderChunk instead of letting posthog-cli rewrite the emitted files on disk in writeBundle. The written bundle already contains the chunk-id snippet, so Subresource Integrity plugins (e.g. vite-plugin-sri3, which hashes chunks in generateBundle) now compute hashes over the final content and the browser no longer blocks the scripts. writeBundle runs the non-mutating sourcemap upload instead of sourcemap process, and with deleteAfterUpload the plugin deletes the .map files itself rather than passing --delete-after (which also rewrites the .js files). (2026-08-13)
  • Updated dependencies [1030636]:

1.4.8

Patch Changes

1.4.7

Patch Changes

  • #3821 2883857 Thanks @pesoszpesosz! - Add missing MIT license metadata to the published plugin package manifests. (2026-06-15)

1.4.6

Patch Changes

1.4.5

Patch Changes

1.4.4

Patch Changes

  • #3661 f12ee73 Thanks @rafaeelaudibert! - Bump @posthog/cli to ~0.7.13, which drops several unused runtime dependencies (axios, axios-proxy-builder, console.table, rimraf). (2026-05-22)

1.4.3

Patch Changes

  • #3519 fbeb006 Thanks @cat-ph! - Set Vite build sourcemap config before transform plugins run so uploaded source maps include original sources. The plugin also no longer overrides the sourcemap setting when sourcemaps.enabled is false. (2026-05-04)

1.4.2

Patch Changes

1.4.1

Patch Changes

1.4.0

Minor Changes

1.3.5

Patch Changes

  • #3309 197eeda Thanks @marandaneto! - Extract CLI and sourcemap utilities from @posthog/core into @posthog/plugin-utils to remove cross-spawn from React Native dependencies (2026-04-01)
  • Updated dependencies [197eeda]:

1.3.4

Patch Changes

1.3.3

Patch Changes

1.3.2

Patch Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

Patch Changes

1.2.16

Patch Changes

1.2.15

Patch Changes

1.2.14

Patch Changes

1.2.13

Patch Changes

1.2.12

Patch Changes

1.2.11

Patch Changes

  • #3076 91234bb Thanks @hpouillot! - rename sourcemaps config variables with releaseName, releaseVersion, projectId (2026-02-12)

1.2.10

Patch Changes

1.2.9

Patch Changes

1.2.8

Patch Changes

1.2.7

Patch Changes

1.2.6

Patch Changes

1.2.5

Patch Changes

1.2.4

Patch Changes

1.2.3

Patch Changes

1.2.2

Patch Changes

1.2.1

Patch Changes

1.2.0

Minor Changes

Patch Changes

1.1.14

Patch Changes

1.1.13

Patch Changes

1.1.12

Patch Changes

1.1.11

Patch Changes

1.1.10

Patch Changes

1.1.9

Patch Changes

1.1.8

Patch Changes

1.1.7

Patch Changes

1.1.6

Patch Changes

1.1.5

Patch Changes

1.1.4

Patch Changes

1.1.3

Patch Changes

1.1.2

Patch Changes

  • #2690 e9c00fd Thanks @robbie-c! - Related to https://www.wiz.io/blog/critical-vulnerability-in-react-cve-2025-55182

    We didn't include any of the vulnerable deps in any of our packages, however we did have them as dev / test / example project dependencies.

    There was no way that any of these vulnerable packages were included in any of our published packages.

    We've now patched out those dependencies.

    Out of an abundance of caution, let's create a new release of all of our packages. (2025-12-04)

  • Updated dependencies [e9c00fd]:

1.1.1

Patch Changes

1.1.0

Minor Changes

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

Patch Changes