Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: isaacs/minimatch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.0.1
Choose a base ref
...
head repository: isaacs/minimatch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.1.0
Choose a head ref
  • 3 commits
  • 14 files changed
  • 1 contributor

Commits on Feb 22, 2023

  1. Add optimizationLevel option

    Fix: #198
    
    This introduces an "optimizationLevel" which can be set to 0, 1, or 2.
    
    Level 0 is the bare minimum reduction of adjascent globstars and turning
    globstars into `*` when noglobstar is set, as was done in minimatch 5.0
    through 6.1.
    
    Level 1 is the slightly more advanced optimization, where `..` following
    a single-portion pattern (anything other than `''`, `'.'`, `'..'` or
    `'**'`) is resolved out.
    
    Level 2 goes much further, making all of the various file-walker
    optimized transforms to the pattern that help node-glob walk file paths
    more efficiently while still returning correct results.
    
    In _most_ cases, it's now safe to use optimization level 2, since the
    provided file path will _also_ have its `..`, `'.'` and `''` portions
    resolved out similarly.  However, there are some situations where that
    might not be the case, so at least for the time being, optimizationLevel
    1 is set as the default.
    isaacs committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    fd0b3ab View commit details
    Browse the repository at this point in the history
  2. changelog 7.1

    isaacs committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    8fe83f4 View commit details
    Browse the repository at this point in the history
  3. 7.1.0

    isaacs committed Feb 22, 2023
    Configuration menu
    Copy the full SHA
    40ddf3b View commit details
    Browse the repository at this point in the history
Loading