Repository navigation
build(deps): bump glob from 13.0.6 to 14.0.2 #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 (optional) Consumers passing
globOptionstocreatePackageWithOptionsget glob 14's breaking behavior and types in what ships as a non-major asar release. TheglobOptionsfield (src/asar.ts:47) is glob's ownGlobOptionsWithFileTypesFalse, and src/crawlfs.ts:32 forwards it unchanged. So glob 14 dropsdebug, re-rootsignorepatterns starting with/, applieswindowsPathsNoEscape: truetoignore, and changes matching to minimatch 11. Fix: publish this as a breaking asar release (e.g. a!/BREAKING CHANGE commit), or keep glob ^13 until a planned major.Why this was flagged
An asar API caller such as electron-builder or Forge passes
globOptions: { ignore: [...] }ordebugthroughcreatePackageWithOptions. src/asar.ts:63-68 hands them to crawlFilesystem, and src/crawlfs.ts:32-35 spreads them intoglob()afterwindowsPathsNoEscape: true. With glob 14, backslash-escapedignoreentries are now read as path separators on Windows.ignoreentries starting with/now resolve againstroot, anddebugis a TypeScript error. Files the caller excluded on 13.0.6 can now end up in the archive, or included files can drop out. The release workflow (.github/workflows/release.yml) runs semantic-release, and abuild(deps):commit does not cut a major version, so^ranges in downstream projects pick this up automatically. No source change or test adapts or documents the new semantics.Verification: Trigger: a programmatic asar caller passes
globOptions.crawlspreads it intoglob(dir, { windowsPathsNoEscape: true, ...options })(src/crawlfs.ts:32-35). The diff changes"glob": "^13.0.2"to"^14.0.2". This commit is typedbuild(deps):with no breaking marker. The result is that consumers' ignore sets can silently include or exclude different files, all without a major bump.