Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added token to headers #1347

Merged
merged 3 commits into from
Aug 13, 2024
Merged

feat: Added token to headers #1347

merged 3 commits into from
Aug 13, 2024

Conversation

benjackwhite
Copy link
Collaborator

@benjackwhite benjackwhite commented Aug 8, 2024

Changes

We filter on tokens all the time - having it as a header can make some processing much faster

Also fixed the fetch call that was iterating the wrong headers object

Checklist

  • Tests for new code (see advice on the tests we use)
  • Accounted for the impact of any changes across different browsers
  • Accounted for backwards compatibility of any changes (no breaking changes in posthog-js!)

Copy link

vercel bot commented Aug 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Aug 8, 2024 8:20am

@benjackwhite benjackwhite added the bump patch Bump patch version when this PR gets merged label Aug 8, 2024
Copy link

github-actions bot commented Aug 8, 2024

Size Change: +232 B (+0.02%)

Total Size: 1.16 MB

Filename Size Change
dist/array.full.js 333 kB +58 B (+0.02%)
dist/array.js 154 kB +58 B (+0.04%)
dist/main.js 154 kB +58 B (+0.04%)
dist/module.js 154 kB +58 B (+0.04%)
ℹ️ View Unchanged
Filename Size
dist/exception-autocapture.js 10.4 kB
dist/recorder-v2.js 110 kB
dist/recorder.js 110 kB
dist/surveys-preview.js 59.8 kB
dist/surveys.js 66 kB
dist/tracing-headers.js 8.26 kB
dist/web-vitals.js 5.79 kB

compressed-size-action

@benjackwhite benjackwhite requested a review from frankh August 8, 2024 08:09
@benjackwhite benjackwhite marked this pull request as ready for review August 8, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants