Skip to content

Bump @vercel/analytics from 1.6.1 to 2.0.1#45

Merged
github-actions[bot] merged 1 commit intomainfrom
dependabot/npm_and_yarn/vercel/analytics-2.0.1
Mar 12, 2026
Merged

Bump @vercel/analytics from 1.6.1 to 2.0.1#45
github-actions[bot] merged 1 commit intomainfrom
dependabot/npm_and_yarn/vercel/analytics-2.0.1

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 12, 2026

Bumps @vercel/analytics from 1.6.1 to 2.0.1.

Release notes

Sourced from @​vercel/analytics's releases.

v2.0.1

What's Changed

New Contributors

Full Changelog: vercel/analytics@v2.0.0...v2.0.1

v2.0.0

What's Changed

Breaking Changes

  • License changed from MPL-2.0 to MIT (#170)
  • Nuxt: introduce module support. If you need to configure it, load injectAnalytics() from @vercel/analytics/nuxt/runtime (#183)

Features

  • feat: load dynamic configuration (#184) — analytics config can now be loaded dynamically

Bug Fixes

  • fix: src and endpoint paths do not work when relative (#186)

Full Changelog: vercel/speed-insights@1.6.1...2.0.0

v2.0.0-canary.1

Canary release for testing 2.0.0 changes

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by cubic

Upgrade @vercel/analytics from 1.6.1 to 2.0.1. The v2 release switches to MIT license, adds dynamic config, fixes relative src/endpoint paths, and introduces Nuxt module support with nuxt as optional.

  • Migration
    • If you use Nuxt, configure via injectAnalytics() from @vercel/analytics/nuxt/runtime; otherwise no changes required.

Written for commit c621cba. Summary will update on new commits.

Bumps [@vercel/analytics](https://github.com/vercel/analytics/tree/HEAD/packages/web) from 1.6.1 to 2.0.1.
- [Release notes](https://github.com/vercel/analytics/releases)
- [Commits](https://github.com/vercel/analytics/commits/v2.0.1/packages/web)

---
updated-dependencies:
- dependency-name: "@vercel/analytics"
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 12, 2026
@github-actions
Copy link
Contributor

🤖 Hi @dependabot[bot], I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@github-actions
Copy link
Contributor

🤖 I'm sorry @dependabot[bot], but I was unable to process your request. Please see the logs for more details.

@github-actions github-actions bot merged commit 459a3ec into main Mar 12, 2026
7 of 9 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vercel/analytics-2.0.1 branch March 12, 2026 17:46
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.
Architecture diagram
sequenceDiagram
    participant App as Web Application
    participant SDK as @vercel/analytics (v2.0.1)
    participant Vercel as Vercel Edge / Ingestion API

    Note over App,Vercel: Analytics Initialization & Event Flow

    App->>SDK: inject() / injectAnalytics()
    
    rect rgb(23, 37, 84)
    Note right of SDK: NEW: Dynamic Configuration Loading
    SDK->>Vercel: GET /_vercel/insights/config
    Vercel-->>SDK: Dynamic settings (sample rate, etc.)
    end

    App->>SDK: track("pageview" / custom_event)

    alt Data Reporting
        SDK->>SDK: Process event with dynamic config
        Note right of SDK: CHANGED: Validates src/endpoint (fixes relative path resolution)
        SDK->>Vercel: POST [endpoint] (Event Data)
        Vercel-->>SDK: 204 No Content
    else Reporting Blocked
        Note right of SDK: SDK respects opt-out or blocklist
    end
Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants