Skip to content

Update brace-expansion (and remove glob) - #29101

Merged
williammead merged 7 commits into
mainfrom
wm/remove-glob
Aug 20, 2026
Merged

Update brace-expansion (and remove glob)#29101
williammead merged 7 commits into
mainfrom
wm/remove-glob

Conversation

@williammead

@williammead williammead commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What is the value of this and can you measure success?

We needed to update brace-expansion to the latest version (5.0.9) to fix a vulnerability.

fixes https://github.com/guardian/platform/issues/2318

As a bonus I have been able to remove our usage of the glob package.

What does this change?

As there are a few different dependencies which pull in different versions of brace-expansion there are a few things that need to happen to bring everything up to date.

1. Remove our use of the glob library, preferring instead to use node's fs.globSync()

The functionality of the glob package is achievable with the built in fs.globSync() function. This function has a slightly different signature which means the parameters are slightly different and in order to have the paths returned as strings I filter the returned entries to make sure they are files and not directories before mapping them to strings.

2. Update rimraf

Later versions of rimraf stopped using default exports so that's why its imports needed updating.

Related PR: Remove sass-graph package by removing the make watch command

This work can be found here: #29106

@williammead williammead added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Aug 19, 2026
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

@williammead
williammead marked this pull request as ready for review August 20, 2026 11:47
@williammead
williammead requested a review from a team as a code owner August 20, 2026 11:47

@arelra arelra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work 👏

The best kind of dependency upgrade is deleting it!

@williammead
williammead merged commit 91d9a49 into main Aug 20, 2026
11 checks passed
@williammead
williammead deleted the wm/remove-glob branch August 20, 2026 15:48
@gu-prout

gu-prout Bot commented Aug 20, 2026

Copy link
Copy Markdown

Seen on ADMIN-PROD (merged by @williammead 9 minutes and 11 seconds ago)

@gu-prout

gu-prout Bot commented Aug 20, 2026

Copy link
Copy Markdown

Seen on FRONTS-PROD (merged by @williammead 11 minutes and 24 seconds ago)

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

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature Seen-on-ADMIN-PROD Seen-on-FRONTS-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants