Files
zeekay 043ac58d3c chore: sweep upstream brand from ALL files; restore LICENSE/NOTICE attribution
Extends the sweep beyond packages/ to the whole repo (178 files): workflows,
.eslintrc, playground, examples, tooling, root docs. Zero upstream-brand refs and
zero such filenames outside the exemptions.

REVERTS A LICENSING ERROR (from earlier rebrand e43ab1af, not this sweep):
- LICENSE had its copyright holder rewritten to 'Insights'. Restored to the real
  holder: 'Copyright 2020 Posthog / Hiberly, Inc.' (+ Mixpanel, Inc.).
- NOTICE credited a non-existent upstream (github.com/getinsights/insights-js).
  Restored to the real one: github.com/PostHog/posthog-js.
Apache-2.0 4(c) requires retaining upstream attribution; rewriting a third
party's copyright line falsifies ownership. Both files are now excluded from the
guard and documented as exempt in LLM.md.

Also:
- Deleted junk: AGENTS.md~upstream_main (merge leftover), the now-obsolete
  rebrand script; renamed upload-*-s3.ts tooling (still used by cli.ts).
- Removed 42 stale playground/example pnpm-lock.yaml files: they pinned upstream
  packages the package.json no longer references. Regenerated on install —
  sed-ing a lockfile would corrupt its integrity hashes.
- Guard renamed no-posthog.yml -> brand-guard.yml and now assembles the pattern
  at runtime, so no filename or file content carries the string (the previous
  guard was swept by its own rule, inverting it to forbid 'insights').
2026-07-16 09:54:05 -07:00

30 KiB

@insights/next

0.4.73

Patch Changes

0.4.72

Patch Changes

0.4.71

Patch Changes

0.4.70

Patch Changes

0.4.69

Patch Changes

0.4.68

Patch Changes

0.4.67

Patch Changes

0.4.66

Patch Changes

0.4.65

Patch Changes

0.4.64

Patch Changes

0.4.63

Patch Changes

0.4.62

Patch Changes

0.4.61

Patch Changes

0.4.60

Patch Changes

0.4.59

Patch Changes

0.4.58

Patch Changes

0.4.57

Patch Changes

0.4.56

Patch Changes

0.4.55

Patch Changes

0.4.54

Patch Changes

0.4.53

Patch Changes

0.4.52

Patch Changes

0.4.51

Patch Changes

  • #3549 77ee9df Thanks @brandonhines-mialabs! - Fix @insights/next/pages default export condition to resolve to the client barrel (pages.client.js) instead of the server barrel (pages.js), matching the behavior of the root "." export. This prevents bundlers that don't match a more specific condition from pulling in server-only and insights-node unnecessarily. (2026-05-14)

0.4.50

Patch Changes

0.4.49

Patch Changes

0.4.48

Patch Changes

  • #3599 ad60818 Thanks @turnipdabeets! - Expose UUID and cookie helpers from @insights/core and insights-node for users managing distinct_id outside the browser SDK (e.g. Lambda functions handing out cross-domain redirects). The helpers were already implemented in @insights/next — this change lifts them to core so all SDKs can re-use them. @insights/next now re-exports the same surface from @insights/core to keep existing consumers working without churn. Closes #2143. (2026-05-12)
  • Updated dependencies [ad60818]:

0.4.47

Patch Changes

0.4.46

Patch Changes

0.4.45

Patch Changes

0.4.44

Patch Changes

0.4.43

Patch Changes

  • #3543 ece3097 Thanks @dustinbyrne! - Publish @insights/next from the release workflow so npm catches up with the versions already recorded in the changelog. (2026-05-07)

0.4.42

Patch Changes

  • #3533 eb546b4 Thanks @brandonhines-mialabs! - Fix @insights/next/pages packaging so the documented Pages Router setup builds without a server-only import error.

    The ./pages subpath previously had no per-runtime exports conditions, so any module importing from @insights/next/pages (e.g. pages/_app.tsx) transitively pulled in 'server-only' and insights-node. Next.js rejects 'server-only' from client modules before tree-shaking can drop the unused re-exports, breaking next build. The barrel is now split per runtime:

    • browser → ./dist/pages.client.js — InsightsProvider, InsightsPageView
    • edge-light / edge / worker → ./dist/pages.edge.js — insightsMiddleware, InsightsPageView, DEFAULT_INGEST_PATH
    • react-server / default → ./dist/pages.js — full surface including getServerSideInsights and getInsights

    Existing imports (from '@insights/next/pages') keep working unchanged; the resolver picks the right barrel per runtime. (2026-05-06)

0.4.41

Patch Changes

0.4.40

Patch Changes

0.4.39

Patch Changes

0.4.38

Patch Changes

0.4.37

Patch Changes

0.4.36

Patch Changes

0.4.35

Patch Changes

0.4.34

Patch Changes

0.4.33

Patch Changes

0.4.32

Patch Changes

0.4.31

Patch Changes

0.4.30

Patch Changes

0.4.29

Patch Changes

0.4.28

Patch Changes

0.4.27

Patch Changes

0.4.26

Patch Changes

0.4.25

Patch Changes

0.4.24

Patch Changes

0.4.23

Patch Changes

0.4.22

Patch Changes

0.4.21

Patch Changes

0.4.20

Patch Changes

0.4.19

Patch Changes

0.4.18

Patch Changes

0.4.17

Patch Changes

0.4.16

Patch Changes

0.4.15

Patch Changes

0.4.14

Patch Changes

  • #3376 e8548a5 Thanks @dustinbyrne! - fix: pass bootstrap flags via React context so feature flag hooks return correct values during SSR (2026-04-15)

0.4.13

Patch Changes

0.4.12

Patch Changes

0.4.11

Patch Changes

0.4.10

Patch Changes

0.4.9

Patch Changes

0.4.8

Patch Changes

0.4.7

Patch Changes

0.4.6

Patch Changes

0.4.5

Patch Changes

0.4.4

Patch Changes

0.4.3

Patch Changes

0.4.2

Patch Changes

0.4.1

Patch Changes

0.4.0

Minor Changes

Patch Changes

0.3.1

Patch Changes

0.3.0

Minor Changes

  • #3301 bd4b0ac Thanks @dustinbyrne! - Read Insights tracing headers (X-INSIGHTS-SESSION-ID, X-INSIGHTS-DISTINCT-ID, X-INSIGHTS-WINDOW-ID) in getInsights() and getServerSideInsights() (2026-04-02)

Patch Changes

0.2.19

Patch Changes

0.2.18

Patch Changes

0.2.17

Patch Changes

0.2.16

Patch Changes

0.2.15

Patch Changes

0.2.14

Patch Changes

0.2.13

Patch Changes

0.2.12

Patch Changes

0.2.11

Patch Changes

0.2.10

Patch Changes

0.2.9

Patch Changes

0.2.8

Patch Changes

0.2.7

Patch Changes

0.2.6

Patch Changes

0.2.5

Patch Changes

0.2.4

Patch Changes

0.2.3

Patch Changes

0.2.2

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • #3215 429b389 Thanks @dustinbyrne! - feat: rename optOutByDefault to seedAnonymousCookie

    Renamed to better express what the option does: to control whether the middleware seeds a cookie containing an anonymous identifier on first page load.

    Migration: replace optOutByDefault: true with seedAnonymousCookie: false. (2026-03-10)

0.1.1

Patch Changes

0.1.0

Minor Changes

  • #3122 706adb8 Thanks @dustinbyrne! - Initial release of @insights/next, a Insights integration with Next.js (2026-03-06)

Patch Changes