Make WordPress Core

Opened 7 weeks ago

Last modified 7 weeks ago

#64900 new defect (bug)

Improve `browserslist:update` Grunt task

Reported by: desrosj's profile desrosj Owned by:
Milestone: 7.0.1 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: good-first-bug has-patch
Focuses: Cc:

Description

The browserslist:update Grunt task was previously run as a part of the sync-gutenberg-packages script when the update-browserlist flag was specified.

This script was removed in [62062], but the browserslist:update task was left in place because it should still be run periodically.

The task should be re-surfaced somewhere in the relevant build scripts (maybe added to precommit:css or as a script in package.json), or documented somewhere so it's clear when/how it should be used.

The npx browserslist@latest --update-db command is run for the task, but the --update-db command is deprecated. This should be replaced with npx update-browserslist-db@latest.

Attachments (1)

64900.diff (498 bytes) - added by ekla 7 weeks ago.
This patch replaces the deprecated --update-db command in the browserslist:update Grunt task with update-browserslist-db@latest. Tested by running npx grunt browserslist:update, which executed successfully.

Download all attachments as: .zip

Change History (3)

@ekla
7 weeks ago

This patch replaces the deprecated --update-db command in the browserslist:update Grunt task with update-browserslist-db@latest. Tested by running npx grunt browserslist:update, which executed successfully.

This ticket was mentioned in PR #11316 on WordPress/wordpress-develop by @ekla.


7 weeks ago
#1

  • Keywords has-patch added

This patch replaces the deprecated --update-db command in the browserslist:update Grunt task with update-browserslist-db@latest.

Tested by running npx grunt browserslist:update, which executed successfully.

Trac ticket: https://core.trac.wordpress.org/ticket/64900

## Use of AI Tools
AI assistance: Yes
Tool(s): ChatGPT
Model(s): GPT-5.3
Used for: Testing the patch and understanding why it exists

#2 @desrosj
7 weeks ago

Related #53685.

Note: See TracTickets for help on using tickets.