Skip to content

Latest commit

 

History

History
137 lines (79 loc) · 3.87 KB

CHANGELOG.md

File metadata and controls

137 lines (79 loc) · 3.87 KB

Added

  • Re-enabled symlinks resolution. Big thanks to thecodrr for fixing the critical bug upstream

Fixed

  • Processing of absolute negative patterns
  • Negative ignore patterns are now not processed for consistency with fast-glob

Changed

  • Temporarily reverted resolution of symbolic links due to a critical bug. See #54 for more info

Fixed

  • Escaped symbols (i.e. "\\[") in the inferred common root producing empty matches

Changed

  • Improved the common root inference algorithm to optimize non-trailing ** patterns

Added

  • Support for providing patterns as a string
  • followSymbolicLinks option
  • escapePath utility function by @benmccann
  • isDynamicPattern utility function
  • convertPathToPattern utility function

Fixed

  • . as a pattern now works as expected
  • Globbing no longer returns an empty string when matching the root directory
  • Handling of escaped symbols in patterns

Changed

  • Relicensed the project to the MIT license
  • Disabled source maps on release builds for smaller bundle size
  • Improved the common root inference algorithm

Added

  • Full support for absolute paths as patterns
  • caseSensitiveMatch option

Fixed

  • Using a pattern that doesn't end with special characters with expandDirectories disabled no longer produces incorrect matches

Fixed

  • Using a pattern that can't infer a common root with absolute enabled no longer produces incorrect matches

Added

  • Support for leading ../ in patterns

Changed

  • A common root is now inferred from the patterns if possible to avoid unnecessary crawling

Added

  • Basic handling of absolute patterns

Fixed

  • Adding trailing slashes to the end of patterns no longer returns incorrect results
  • Matching directories without expandDirectories without a trailing slash now works correctly

Fixed

  • Using an empty array of patterns no longer acts as ['**/*']

Changed

  • Windows now uses forward slashes instead of backslashes
  • Modified ignore behavior to vastly improve performance when ignoring whole directories

BREAKING CHANGES

The library no longer sets dot to true internally by default. It now defaults it to false, just like globby and fast-glob.

You can configure this by using the new dot option.

Added

  • Support for specifying the patterns option as the first argument to better approach a drop-in globby replacement
await glob(['src/*.ts'], { ignore: ['_secret'] });

// you can still specify it in the options object
await glob({ patterns: ['src/*.ts'], ignore: ['_secret'] });
  • Support for non-absolute paths in cwd
  • dot option
  • deep option
  • onlyFiles option

Added

  • onlyDirectories option

Added

  • ignore option
  • expandDirectories option