question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrate to caniuse-lite.

See original GitHub issue

Hi @Nyalab!

I’ve been working on an unofficial way to consume caniuse support data that is intended for modules, whereas the official dataset is intended for people. So I dropped a lot of keys that Autoprefixer & Browserslist don’t use and then compacted the rest of the data. The end result weighs around 7 times less than the official database as of this writing, and the only downside is a slight performance hit when the data is restored into a caniuse format. We optimised for size, not speed, but I think we can perhaps improve this further in the future. For now the dataset is as close to caniuse-db as possible, for easy migration.

So I think it’s important to use a single source of truth for the support data, and as I am starting to make much more use of caniuse-api I’d like to update the module to use caniuse-lite too.

My only reservation about the migration is that you are using the title key from each feature. I’d like to know if that can be dropped so that we can keep caniuse-lite as lean as possible. But I would like some input from caniuse-api users, on whether they think this is necessary or not. I’m open to any feedback! 😄

Copying in users of this module/caniuse data: @agauniyal, @una, @schiehll, @sylvainpolletvillard, @moox, @bebraw & @ai.

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
MoOxcommented, Apr 10, 2017

What about letting people choose between one or the other? Anyway, node_modules for real world projet is never less than 100MB so not sure it’s super important.

2reactions
aicommented, Apr 8, 2017

I think caniuse-lite is one of the best thing in frontend in 2017. With it we will dramatically reduce node_modules size around the world. Autoprefixer and Browserslist will use it in next major release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

caniuse-lite - npm
lite.region(js) ... The region method takes a file from data/regions and converts it into something that more closely represents the caniuse-db ...
Read more >
Browserslist: caniuse-lite is outdated · Issue #1184 - GitHub
I ran the command ( yarn upgrade caniuse-lite browserlist ), but I keep getting the Browserslist: caniuse-lite is outdated. -message.
Read more >
caniuse-lite is outdated. Please run next command `npm ...
First, as the message says, I ran npm update caniuse-lite browserslist but it didn't fix the issue. I deleted the whole node_modules directory ......
Read more >
caniuse-lite - NPM Package Overview - Socket.dev
The region method takes a file from data/regions and converts it into something that more closely represents the caniuse-db format. Note that ...
Read more >
ERROR: Browserslist: caniuse-lite is outdated - SonarQube
1 (build 44547) , we are using SonarScanner.MSBuild.exe wrapped in an custom application. The ERRORS flagged we think that must be flagged as ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found