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: pkgjs/parseargs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.0
Choose a base ref
...
head repository: pkgjs/parseargs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.0
Choose a head ref
  • 6 commits
  • 20 files changed
  • 5 contributors

Commits on Feb 7, 2022

  1. docs: ordering of positional and option does not matter (#46)

    * docs: ordering of positional and option does not matter
    
    * Add test to match README FAQ
    shadowspawn authored Feb 7, 2022
    Configuration menu
    Copy the full SHA
    f575021 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2022

  1. Configuration menu
    Copy the full SHA
    2ab5af3 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2022

  1. Configuration menu
    Copy the full SHA
    81eca14 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2022

  1. refactor!: restructure configuration to take options bag (#63)

    Per the discussion in #45 this PR restructures the current options API where each option is configured in three separate list and instead allows options to be configured in a single object.
    
    The goal being to make the API more intuitive for configuring options (e.g. short, withValue, and multiples) while creating a path forward for introducing more configuration options in the future (e.g. default).
    
    Co-authored-by: Benjamin E. Coe <bencoe@google.com>
    Co-authored-by: John Gee <john@ruru.gen.nz>
    Co-authored-by: Jordan Harband <ljharb@gmail.com>
    4 people authored Mar 2, 2022
    Configuration menu
    Copy the full SHA
    b412095 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2022

  1. refactor!: parsing, revisit short option groups, add support for comb…

    …ined short and value (#75)
    
    
    1) Refactor parsing to use independent blocks of code, rather than nested cascading context. This makes it easier to reason about the behaviour.
    
    2) Split out small pieces of logic to named routines to improve readability, and allow extra documentation and examples without cluttering the parsing. (Thanks to @aaronccasanova for inspiration.)
    
    3) Existing tests untouched to make it clear that the tested functionality has not changed.
    
    4) Be more explicit about short option group expansion, and ready to throw error in strict mode for string option in the middle of the argument. (See #11 and #74.)
    
    5) Add support for short option combined with value (without intervening `=`). This is what Commander and Open Group Utility Conventions do, but is _not_ what Yargs does. I don't want to block PR on this and happy to comment it out for further discussion if needed. (I have found some interesting variations in the wild.) [Edit: see also #78]
    
    6) Add support for multiple unit tests files. Expand tests from 33 to 113, but many for internal routines rather than testing exposed API.
    
    7) Added `.editorconfig` file
    
    
    Co-authored-by: Jordan Harband <ljharb@gmail.com>
    Co-authored-by: Aaron Casanova <32409546+aaronccasanova@users.noreply.github.com>
    3 people authored Mar 12, 2022
    Configuration menu
    Copy the full SHA
    a92600f View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2022

  1. chore(main): release 0.4.0 (#73)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Mar 27, 2022
    Configuration menu
    Copy the full SHA
    835b17a View commit details
    Browse the repository at this point in the history
Loading