Skip to content

Conversation

@feugy
Copy link
Member

@feugy feugy commented Dec 23, 2025

🖖 What's in there?

This PR introduce loads a stringified configuration when injecting the script, which acts as defaults for unspecified properties.
This mechanism is a generic way for Vercel to configure at build time @vercel/analytics and other "client side" packages, while allowing users to override the configuration when needed.

This PR also introduce dedicated data attribute for the injected script: data-event-endpoint and data-view-endpoint.

Finally, it replaces eslint+prettier with biome, and husky+lint-staged with lefthook, and restore unit tests in CI.

TODO server side tracking support, add more tests

🤺 How to test?

🔬Notes to reviewers

Work in progress.

All changes on test apps are due to biome's linter and formatter.

@vercel
Copy link

vercel bot commented Dec 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
analytics-astro Ready Ready Preview, Comment Dec 23, 2025 6:28pm
analytics-next15 Ready Ready Preview, Comment Dec 23, 2025 6:28pm
analytics-nextjs Ready Ready Preview, Comment Dec 23, 2025 6:28pm
analytics-nuxt Ready Ready Preview, Comment Dec 23, 2025 6:28pm
analytics-remix Ready Ready Preview, Comment Dec 23, 2025 6:28pm
analytics-sveltekit Ready Ready Preview, Comment Dec 23, 2025 6:28pm
analytics-vue Ready Ready Preview, Comment Dec 23, 2025 6:28pm

@socket-security
Copy link

socket-security bot commented Dec 23, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedvitest@​2.1.5 ⏵ 4.0.1697 -1100 +757998 -1100
Updated@​testing-library/​jest-dom@​6.6.3 ⏵ 6.9.110010010089100
Updated@​testing-library/​react@​16.0.1 ⏵ 16.3.19910010091 -1100
Added@​biomejs/​biome@​2.3.1010010010099100

View full report

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