Skip to content

Use tinyglobby and picomatch#12165

Closed
bluwy wants to merge 5 commits intomainfrom
use-tinyglobby
Closed

Use tinyglobby and picomatch#12165
bluwy wants to merge 5 commits intomainfrom
use-tinyglobby

Conversation

@bluwy
Copy link
Member

@bluwy bluwy commented Oct 9, 2024

Changes

Replace fast-glob and globby with tinyglobby.

Benefits:

  1. Smaller install size (including transitive dependencies)
  2. While new, it's already being used by many notable libraries

Cons:

  1. Some APIs still fluctuate a bit. For example, the followSymbolicLinks option is currently disabled and affects us globbing into symlinked directories, which I think could be an issue for content layer glob loader?

Testing

Existing tests should pass. I also did some manual tests making sure the returned glob result matches the previous library we use, and that it's not globbing more files than needed.

Docs

n/a. internal change

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2024

🦋 Changeset detected

Latest commit: 325ceac

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Oct 9, 2024
@bluwy bluwy changed the title Use tinyglobby Use tinyglobby and picomatch Oct 9, 2024
@bluwy bluwy marked this pull request as draft October 9, 2024 08:42
Base automatically changed from next to main November 28, 2024 11:12
@bluwy
Copy link
Member Author

bluwy commented Jan 16, 2025

Mostly blocked by a new version of tinyglobby, which is blocked by a new version of fdir, but anyways it might be easier to start the changes from scratch, so closing this for now.

@bluwy bluwy closed this Jan 16, 2025
@bluwy bluwy deleted the use-tinyglobby branch January 16, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant