Adjust automatic caniuse-lite update

Created on 29 April 2025, 11 days ago

Problem/Motivation

The automatic updates of the caniuse-lite database can cause unnecessary merge conflicts between branches and merge requests. This behavior can lead to inconsistencies in the generated CSS across projects when the database version differs.

We will offer easy way to trigger caniuse-lite database updates in theme update functions, so you can easily refresh all your project when you need it.

To suppress the related warning, you can set the BROWSERSLIST_IGNORE_OLD_DATA environment variable:

export BROWSERSLIST_IGNORE_OLD_DATA=true

Or add it to your environment configuration if using a tool like DDEV.

API changes

Default scripts in package.json will be changed a bit:

  • build-browsers is removed and new step update-browserslist is added instead of it which use new syntax for caniuse-lite db update
  • build is updated and runing of browserlist db update is removed
Feature request
Status

Active

Version

2.0

Component

BS Base

Created by

🇷🇸Serbia pivica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024