Skip to content

Add an environment variable to disable the "old data" warning #107

Closed as duplicate

Description

@silverwind

I'm using this module as part of eslint-plugin-unicorn and this warning is slightly annoying during eslint runs:

console.warn(
"[baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: `npm i baseline-browser-mapping@latest -D`",
);

Maybe we can have a BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA environment variable that if set, would silence this warning, similar to BROWSERSLIST_IGNORE_OLD_DATA for the browserslist module?

Activity

  1. alumni commented on Nov 24, 2025

    @alumni

    See #105 - Honestly, would be nice if there was an opt-in, not an opt-out. There are hundreds of modules in a mid-size repo, having to do this even for just a few would be really painful :P

  2. Audetas commented on Nov 25, 2025

    @Audetas

    This entire "warning" is a bad practice and should be removed. This is not a CLI tool.

  3. n3ndor commented on Nov 28, 2025

    @n3ndor

    in package.json I have this version:
    "baseline-browser-mapping": "^2.8.32"

    And I get this annoying warning:
    [baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: npm i baseline-browser-mapping@latest -D

    Even after installing with @latest flag, removing node modules, package-lock, reinstalling the packages...

    Please remove the warning, it's annoying and wrong at the same time

  4. phuctm97 commented on Nov 28, 2025

    @phuctm97

    Getting this as well

  5. salirzv commented on Nov 28, 2025

    @salirzv

    I'm on the latest version and continuously getting this warning during builds.

  6. tonypconway commented on Nov 28, 2025

    @tonypconway
    Collaborator

    Working on changes in #108 that will hopefully address this. I'm going to close this as it's substantively the same as #105

  7. wahyusahajaa commented on Nov 29, 2025

    @wahyusahajaa

    that's very annoying😔

  8. tonypconway commented on Nov 29, 2025

    @tonypconway
    Collaborator

    If you're following along, try installing baseline-browser-mapping@beta and see if you can reproduce the error. It should resolve it, unless you're affected by the way Vercel are compiling browserslist into Next.js, in which case you'll need to update next.js. Again, closing this because it's the same as #105 . Please follow that issue for updates.

  9. Noah202226 commented on Dec 1, 2025

    @Noah202226

    npx @next/codemod@canary upgrade latest

    This will fix the issue

  10. radenpioneer commented on Dec 1, 2025

    @radenpioneer

    npx @next/codemod@canary upgrade latest

    This will fix the issue

    Thank you @Noah202226 ! Works for me.

  11. tonypconway commented on Dec 1, 2025

    @tonypconway
    Collaborator

    The Vercel team shared on the main tracking bug that next patch 16.0.6 has and updated version, so you shouldn't need the Canary build.

  12. tonypconway commented on Dec 3, 2025

    @tonypconway
    Collaborator

    baseline-browser-mapping v2.9.0 is live - read the release notes for more information.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions