Skip to content

feat(targeting): publish package so the page-url targeting fix ships#1845

Draft
bravecod wants to merge 2 commits into
mainfrom
publish-sr-targeting
Draft

feat(targeting): publish package so the page-url targeting fix ships#1845
bravecod wants to merge 2 commits into
mainfrom
publish-sr-targeting

Conversation

@bravecod

Copy link
Copy Markdown
Collaborator

@amplitude/targeting is marked private, so the release pipeline (lerna --no-private + pnpm publish) skips it entirely. The page-url targeting fix (#1571, on main since March) therefore never reached npm — every published targeting version (through 0.2.3) omits page from the eval context, so URL-based Session Replay targeting rules never match. This is the root cause of the 'TRC on but not recording' reports.

  • Remove private so targeting publishes through the normal release flow.
  • Bump 0.2.0 -> 0.2.3 to match the latest published version (repo was stale), so the next release bumps forward without a version collision.
  • Exclude the auto-generated version.ts from coverage (targeting doesn't import VERSION, so the lifecycle-generated file would fail the 100% threshold once targeting is versioned).

Summary

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@amplitude/targeting is marked private, so the release pipeline (lerna
--no-private + pnpm publish) skips it entirely. The page-url targeting fix
(#1571, on main since March) therefore never reached npm — every published
targeting version (through 0.2.3) omits page from the eval context, so
URL-based Session Replay targeting rules never match. This is the root cause
of the 'TRC on but not recording' reports.

- Remove private so targeting publishes through the normal release flow.
- Bump 0.2.0 -> 0.2.3 to match the latest published version (repo was stale),
  so the next release bumps forward without a version collision.
- Exclude the auto-generated version.ts from coverage (targeting doesn't
  import VERSION, so the lifecycle-generated file would fail the 100%
  threshold once targeting is versioned).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

size-limit report 📦

Path Size
packages/analytics-browser/lib/scripts/amplitude-min.js.gz 58.43 KB (0%)
packages/session-replay-browser/lib/scripts/session-replay-browser-min.js.gz 133.19 KB (0%)
packages/unified/lib/scripts/amplitude-min.umd.js.gz 210.94 KB (0%)
@amplitude/element-selector (gzipped esm) 2.67 KB (0%)

 - @amplitude/element-selector@0.2.0-publish-sr-targeting.0
 - @amplitude/plugin-session-replay-browser@1.32.2-publish-sr-targeting.0
 - @amplitude/segment-session-replay-plugin@0.0.30-publish-sr-targeting.0
 - @amplitude/session-replay-browser@1.46.1-publish-sr-targeting.0
 - @amplitude/targeting@0.3.0-publish-sr-targeting.0
 - @amplitude/unified@1.1.17-publish-sr-targeting.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants