You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If your installed version of baseline-browser-mapping is greater than 2 months old, you will receive a console warning advising you to update to the latest version.
This warning is blocking us to run CI pipelines on older builds.
This violates the principle of reproducible builds - we need to be able to reproduce any build from the past and have the exact same output each time.
Besides that, it's also really annoying to have to constantly update this package when all we care about is nodejs features which rarely change.
Describe the solution you'd like
Provide a way to opt out of (or better: opt into) this feature.
Describe alternatives you've considered
Difficult to find alternatives when Babel.js depends on this package.
Additional context
n/a
Reacted by WebMechanic, Henrik Hall, Alexander Katchkatchishvili, Leon, Lantis Pillay, Jake Nelken, urbansaaz-soft, Vijay Sridhar, Henning Sieh, Guillem Garcia and 22 more
same. even if updated (like I did yesterday) this annoying message keeps reappearing
[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
Hi @alumni thanks for raising this. I assume you're not using the Baseline targets in your Babel/browserslist config as , is that right? It would certainly make sense to update the module to only show the warning if users actually call it, where at the moment it's being called whenever browserslist spins up. 2 months is also probably overzealous for most users anyway, as the majority will be targeting widely available if anything, and that data is pretty settled in most cases.
I'll think about our best approach for opt-in/opt-out. I don't want to remove warning altogether as they will become relevant down the line, but of course they shouldn't appear if you're not targeting Baseline anyway.
blocking us to run CI pipelines on older builds
It should go without saying that I won't necessarily be able to fix this issue for you.
same. even if updated (like I did yesterday) this annoying message keeps reappearing
That's surprising. I've just checked and as of today any version of the module from 2.8.7 onwards shouldn't show a warning because the embedded timestamp is < 2 months ago. Can you check in your node_modules and share the package.json contents for baseline-browser-mapping?
@tonypconway initially it was "baseline-browser-mapping": "latest", it's now "baseline-browser-mapping": "^2.8".
In node_modules there is a "version": "2.8.30"
In both cases I get the warning, noteably when running PostCSS.
Reacted by famousStratum and Burkhard Vogel-Kreykenbohm
That's very strange as 2.8.30 is only a day and a half old so it certainly shouldn't be triggering the message. Can you share a repo where you're seeing this error so I can try to reproduce?
In my case I have no control over babel because nyc (and other tools) import it.
In one repo we are checking if stderr is empty (console.warn outputs to stderr) to make sure things are fine. We just replaced nyc with c8, so we got rid of babel thankfully.
In the other repo, @nx/jest depends on babel, but I didn't see the message yet. Luckily, we don't use babel to build and we override the NX defaults so that we can have the tests as close as possible to the production build :)
Anyway, since I managed to avoid this issue in the repos I'm working (for now), you can also close this if you'd like. Initially, it was a bit shocking to see something browser-related breaking the backend CI :P
Thanks for letting me know @alumni , good to hear you've got a workaround for now. I'm still going to refactor so that the warning is only called if users are actually calling the module, as at the moment it performs the check whenever browserslist or any other module loads it, which is overkill.
I'm going to keep it open until I make those changes, and also while we figure out what is going on with @WebMechanic 's build - it definitely shouldn't be triggering a warning on 2.8.30!
FYI: just updated to 2.8.31 and Vitest 4.0.13 using happy-dom 20.0.10 (as @vitest-environment happy-dom). The project uses yarn 3.6 as the package manager.
[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
I'm still going to refactor so that the warning is only called if users are actually calling the module, as at the moment it performs the check whenever browserslist or any other module loads it, which is overkill.
Just an idea: this is the only module we had that is not a CLI but produces CLI output - IMO, this shouldn't happen at all 😛 Maybe baseline-browser-mapping should report the timestamp of its data and let the other tools handle outdated data.
Quite some packages use debug to log things, that would require the user to set the env var DEBUG=baseline-browser-mapping.
👍 on this issue. I had to introduce babel-jest in my pure Node.JS backend code a while back to get around something (I don't remember what right now, something with commonjs vs ESM probably), and now when running the unit tests of my package a month later I keep getting a zillion of these warnings. There's not a trace of any frontend code in my application so browser warnings are not applicable to my setup.
$ yarn why baseline-browser-mapping
=> Found "baseline-browser-mapping@2.8.6"
info Reasons this module exists
- "@babel#preset-env#@babel#helper-compilation-targets#browserslist" depends on it
- Hoisted from "@babel#preset-env#@babel#helper-compilation-targets#browserslist#baseline-browser-mapping"
While I second the opinion that libraries should not output warnings that are dependent on the current time, if you must do this, could you at least support suppressing it, e.g. by BASELINE_BROWSER_MAPPING_DISABLE_WARNINGS=1or something?
the risk of having "mildly old" baseline data is way lower than the annoyance of seeing this message all the time 🤷
it should be a year or two minimum
Reacted by Alexander Katchkatchishvili, Henning Sieh, Arslan Zahid, Michael Dewald, Grant Joy, Tom Siwik, Orway-DK, Huang Xin, Aref Shafaei, Ward Boumans and 2 more
I am seeing a lot of the [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' messages pop up in my CI, however it should be up-to-date. I'm not too sure what is happening.
I run the command, same issue.
Even running npm i --save-dev baseline-browser-mapping@latest I see the same when using npm run build for example.
Adding/updating it using the above command doesn't do much other than adding it to my package.json as "baseline-browser-mapping": "^2.8.32",. Not too sure what package is using it, and npm why baseline-browser-mapping just shows me no dependencies found.
This started popping up after I updated @types/react from 19.2.5 to 19.2.7, Next from 16.0.3 to 16.0.5, and sass from 1.94.0 to 1.94.2
Reacted by eadanlin, Rafael Aslanian, Lantis Pillay, Alexander Katchkatchishvili, Emilien Bidet, ygor-infotera, Mo, Henning Sieh, Vitor Amaral, Arslan Zahid and 7 more
At the moment the function that checks for staleness is called every time the module is loaded which is obviously too often - it should only be called if someone actually tries to use the functionality.
The vast majority of people who actually want to use this module are only going to be looking for Widely available or a year 2-3 years in the past, in which case updating every ~2 years or so is probably sufficient.
Those who might want to target Newly available (you crazy cats!), or those using the getAllVersions() function do need up to date data, as they depend on the very latest browsers being in the data set. Warning those users by defauly is an important safeguard against unwittingly running out of compatible browsers.
There's not currently a way to suppress the warning.
I'm working on a PR that addresses these points. Warnings will only be attempted if the functions are actually called, they'll only be displayed if your feature cut off date is in the last two months (i.e. Newly available or widelyAvailableOnDate: today + 2 years and 2 months) and your lastUpdated date is >2 months in the past, and it adds suppression mechanisms, including recognising the existing browserlist environment variable for suppressing data staleness messages.
I'm planning to make this a minor release rather than a patch, as it exposes new config options and changes functionality. Hoping to get it out middle of next week, and will probably do a beta release so some folks can verify it. I still need to write tests, too.
Some people are getting the warning when they've already updated
I haven't been able to reproduce this issue yet. I'm hoping that the changes in #108 will resolve it, but if they don't, I'll keep digging.
Reacted by Dominik-Notzon, Ryan Rampersad, felix-quotez, qadzek, Pronsh, Guillermo Enrique Bernal Moreira, Grant Joy, Vincent, yassin slati, time-and-tide and 5 more
Reacted by Dominik-Notzon, Ryan Rampersad, Matheus Calixto, Vijay Sridhar, Ignacio, Henning Sieh, the_magician, Bora, Stijn Houwelijckx, Michael Baumann and 16 more
Hi, I'm getting this suddenly in a style guide package that I maintain. Next.js is installed in the monorepo, but all packages are updated (locally, maybe not in main). I get this error when I run lint, of all things. The env var changes nothing for me. Packages absolutely should not be printing console warnings when they could be some random nested dependency. I don't have time to figure out why this package is being pulled in for me, I'm just gonna write a script to delete this warning.
Your dependency chain is probably nextjs -> browserslist -> baseline-browser-mapping.
It became abundantly clear that the way the warning was implemented wasn't suitable when this was first reported over a month ago, and we also learned that the way nextjs was bundling the package made it impossible for people to update the package themselves as well.
I would suggest updating your nextjs version to latest then ensuring baseline-browser-mapping is up to date if you don't want to implement a workaround.
@abue-ammar The wording of the message you're seeing hasn't been in this module since v2.9.0 released ~2 months ago. So you're not using the latest version of this module, and need to look at how Next.js is loading browserslist in your local set up. In future, please refrain from just posting obscenities without properly investigating and/or offering any actually useful information.
AIUI Next.js 16.1.0 compiled version 2.8.3 of this module into browserslist which had the old error message you're seeing. It looks like 16.2.0 plans to move up to browserslist 4.28.1 which suppresses warnings from this module and issues its own warnings.
There's nothing else I can do in this module to stop Next.js triggering errors, and they've done what they can to address it.
Activity
WebMechanic commentedon Nov 20, 2025
same. even if updated (like I did yesterday) this annoying message keeps reappearing
tonypconway commentedon Nov 20, 2025
Hi @alumni thanks for raising this. I assume you're not using the Baseline targets in your Babel/browserslist config as , is that right? It would certainly make sense to update the module to only show the warning if users actually call it, where at the moment it's being called whenever browserslist spins up. 2 months is also probably overzealous for most users anyway, as the majority will be targeting
widely availableif anything, and that data is pretty settled in most cases.I'll think about our best approach for opt-in/opt-out. I don't want to remove warning altogether as they will become relevant down the line, but of course they shouldn't appear if you're not targeting Baseline anyway.
It should go without saying that I won't necessarily be able to fix this issue for you.
@WebMechanic
That's surprising. I've just checked and as of today any version of the module from 2.8.7 onwards shouldn't show a warning because the embedded timestamp is < 2 months ago. Can you check in your node_modules and share the package.json contents for baseline-browser-mapping?
WebMechanic commentedon Nov 21, 2025
@tonypconway initially it was
"baseline-browser-mapping": "latest", it's now"baseline-browser-mapping": "^2.8".In node_modules there is a
"version": "2.8.30"In both cases I get the warning, noteably when running PostCSS.
tonypconway commentedon Nov 21, 2025
That's very strange as 2.8.30 is only a day and a half old so it certainly shouldn't be triggering the message. Can you share a repo where you're seeing this error so I can try to reproduce?
alumni commentedon Nov 21, 2025
In my case I have no control over
babelbecausenyc(and other tools) import it.In one repo we are checking if
stderris empty (console.warnoutputs tostderr) to make sure things are fine. We just replacednycwithc8, so we got rid ofbabelthankfully.In the other repo,
@nx/jestdepends onbabel, but I didn't see the message yet. Luckily, we don't usebabelto build and we override the NX defaults so that we can have the tests as close as possible to the production build :)Anyway, since I managed to avoid this issue in the repos I'm working (for now), you can also close this if you'd like. Initially, it was a bit shocking to see something browser-related breaking the backend CI :P
tonypconway commentedon Nov 21, 2025
Thanks for letting me know @alumni , good to hear you've got a workaround for now. I'm still going to refactor so that the warning is only called if users are actually calling the module, as at the moment it performs the check whenever browserslist or any other module loads it, which is overkill.
I'm going to keep it open until I make those changes, and also while we figure out what is going on with @WebMechanic 's build - it definitely shouldn't be triggering a warning on 2.8.30!
WebMechanic commentedon Nov 24, 2025
FYI: just updated to 2.8.31 and Vitest 4.0.13 using happy-dom 20.0.10 (as @vitest-environment happy-dom). The project uses yarn 3.6 as the package manager.
alumni commentedon Nov 24, 2025
Just an idea: this is the only module we had that is not a CLI but produces CLI output - IMO, this shouldn't happen at all 😛 Maybe
baseline-browser-mappingshould report the timestamp of its data and let the other tools handle outdated data.Quite some packages use
debugto log things, that would require the user to set the env varDEBUG=baseline-browser-mapping.henhal commentedon Nov 24, 2025
👍 on this issue. I had to introduce
babel-jestin my pure Node.JS backend code a while back to get around something (I don't remember what right now, something with commonjs vs ESM probably), and now when running the unit tests of my package a month later I keep getting a zillion of these warnings. There's not a trace of any frontend code in my application so browser warnings are not applicable to my setup.While I second the opinion that libraries should not output warnings that are dependent on the current time, if you must do this, could you at least support suppressing it, e.g. by
BASELINE_BROWSER_MAPPING_DISABLE_WARNINGS=1or something?techrome commentedon Nov 28, 2025
I suddenly started getting this warning even with upgrading the library through "npm i baseline-browser-mapping@latest -D"
switz commentedon Nov 28, 2025
the risk of having "mildly old" baseline data is way lower than the annoyance of seeing this message all the time 🤷
it should be a year or two minimum
TCNOco commentedon Nov 28, 2025
I am seeing a lot of the
[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'messages pop up in my CI, however it should be up-to-date. I'm not too sure what is happening.I run the command, same issue.
Even running
npm i --save-dev baseline-browser-mapping@latestI see the same when usingnpm run buildfor example.Adding/updating it using the above command doesn't do much other than adding it to my package.json as
"baseline-browser-mapping": "^2.8.32",. Not too sure what package is using it, andnpm why baseline-browser-mappingjust shows me no dependencies found.This started popping up after I updated @types/react from 19.2.5 to 19.2.7, Next from 16.0.3 to 16.0.5, and sass from 1.94.0 to 1.94.2
{ "name": "map", "version": "0.1.0", "scripts": { "dev": "next dev", "build": "next build", "lint": "next lint" }, "dependencies": { "next": "16.0.5", "react": "^19.2.0", "react-dom": "^19.2.0" }, "devDependencies": { "@types/node": "^24.10.1", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", "sass": "^1.80.0", "typescript": "^5.3.0" } }tonypconway commentedon Nov 28, 2025
Looks like we have two separate issues here:
Warning displayed too often
getAllVersions()function do need up to date data, as they depend on the very latest browsers being in the data set. Warning those users by defauly is an important safeguard against unwittingly running out of compatible browsers.I'm working on a PR that addresses these points. Warnings will only be attempted if the functions are actually called, they'll only be displayed if your feature cut off date is in the last two months (i.e. Newly available or
widelyAvailableOnDate: today + 2 years and 2 months) and yourlastUpdateddate is >2 months in the past, and it adds suppression mechanisms, including recognising the existingbrowserlistenvironment variable for suppressing data staleness messages.I'm planning to make this a minor release rather than a patch, as it exposes new config options and changes functionality. Hoping to get it out middle of next week, and will probably do a beta release so some folks can verify it. I still need to write tests, too.
Some people are getting the warning when they've already updated
I haven't been able to reproduce this issue yet. I'm hoping that the changes in #108 will resolve it, but if they don't, I'll keep digging.
avxobro commentedon Nov 28, 2025
How annoying.
bump the browserslist version to silence a warning in CI (#86625)
41 remaining items
Reduce frequency of data staleness warnings (#108)
tonypconway commentedon Dec 3, 2025
baseline-browser-mappingv2.9.0 is live - read the release notes for more information.ai commentedon Dec 3, 2025
Thanks.
update-browserslist-db1.2 andbrowserslist4.28.1 were also releases.connorshea commentedon Dec 3, 2025
Glad to see this fixed, it was annoying to have it suddenly start popping up yesterday in our app. Thank you for the quick fix!
drake-nathan commentedon Dec 19, 2025
Hi, I'm getting this suddenly in a style guide package that I maintain. Next.js is installed in the monorepo, but all packages are updated (locally, maybe not in main). I get this error when I run lint, of all things. The env var changes nothing for me. Packages absolutely should not be printing console warnings when they could be some random nested dependency. I don't have time to figure out why this package is being pulled in for me, I'm just gonna write a script to delete this warning.
tonypconway commentedon Dec 19, 2025
Your dependency chain is probably
nextjs->browserslist->baseline-browser-mapping.It became abundantly clear that the way the warning was implemented wasn't suitable when this was first reported over a month ago, and we also learned that the way
nextjswas bundling the package made it impossible for people to update the package themselves as well.Release 2.9.0 addressed this, as described in the PR linked to this issue.
browserslist4.26.1 suppresses the warnings altogether.nextjs16.1.0 treatesbaseline-browser-mappingas a separate dependency (see vercel/next.js#86653 ).I would suggest updating your
nextjsversion to latest then ensuringbaseline-browser-mappingis up to date if you don't want to implement a workaround.drake-nathan commentedon Dec 19, 2025
@tonypconway Thanks for the reply. I did update but maybe I need to clear node modules or something.
abue-ammar commentedon Jan 25, 2026
bump the browserslist version to silence a warning in CI (#86625)
eliotgevers commentedon Jan 31, 2026
I have this issue again on version 16.1.6
tonypconway commentedon Feb 3, 2026
@abue-ammar The wording of the message you're seeing hasn't been in this module since v2.9.0 released ~2 months ago. So you're not using the latest version of this module, and need to look at how Next.js is loading browserslist in your local set up. In future, please refrain from just posting obscenities without properly investigating and/or offering any actually useful information.
AIUI Next.js 16.1.0 compiled version 2.8.3 of this module into browserslist which had the old error message you're seeing. It looks like 16.2.0 plans to move up to browserslist 4.28.1 which suppresses warnings from this module and issues its own warnings.
There's nothing else I can do in this module to stop Next.js triggering errors, and they've done what they can to address it.
lbp003 commentedon Feb 9, 2026
Worked. Thank you
bhilbis commentedon May 13, 2026
nice thanks it worked
bump the browserslist version to silence a warning in CI (vercel#86625)