Skip to content

Latest commit

 

History

History
142 lines (82 loc) · 3.13 KB

CHANGELOG.md

File metadata and controls

142 lines (82 loc) · 3.13 KB

3.0.2 - 2022-04-30

  • types: add missing Collect export

3.0.1 - 2022-04-28

  • documentation fix

3.0.0 - 2022-04-28

Breaking Changes

  • integer properties are now always treated as indices rather than only when the object is an array
  • collect is called for indexed access to non-arrays as well as for wildcard matches against them

Features

  • for indexed properties, collect is passed the index as a second argument (omitted for wildcard matches)
  • the return value of collect can be an array-like for indexed access rather than the full array required for wildcard matches

2.0.1 - 2022-02-27

  • remove unused dev dependency

2.0.0 - 2022-02-27

Breaking Changes

get-wild/fp

  • get and getter no longer support an (optional) default-value override, i.e. they now behave like pluck and plucker
  • remove pluck and plucker

compatibility

Changes

types

  • the return type of get can be supplied as a type parameter

1.5.0 - 2021-03-04

  • fix coercion of undefined to the default value in trailing wildcards
  • relicense: Artistic 2.0 -> MIT

1.4.1 - 2021-03-01

  • type fix: revert the any -> unknown change to avoid requiring casts

1.4.0 - 2021-01-28

Features

  • get-wild/fp: add unary variants of get (pluck) and getter (plucker)
  • speed up path parsing: replace String#replace with RegExp#exec (~1.6 times faster)

Changes

1.3.0 - 2020-12-07

Features

  • add curried (data last) versions of get and getter via get-wild/fp
  • add exports.parse as an alias for exports.parser

Fixes

  • fix a bug which caused custom collect, map and flatMap settings to be forgotten after the first wildcard match

Changes

  • types: narrow get's return type from any to unknown

1.2.0 - 2020-09-19

  • add exports.split as an alias for exports.parser
  • add options.split as an alias for options.parser

1.1.0 - 2020-09-19

  • allow parser to accept a string as a shortcut for path => path.split(string)

1.0.1 - 2020-09-18

  • remove superfluous file from the package

1.0.0 - 2020-09-18

  • allow the path to be a single number or symbol

0.3.1 - 2020-09-18

  • type tweaks

0.3.0 - 2020-09-18

  • type fixes

0.2.0 - 2020-09-17

  • add a collect option to customize value extraction

0.1.1 - 2020-09-17

  • speed up wildcard matching

0.1.0 - 2020-09-17

  • add a default option to bake in the default value
  • speed up array globbing

0.0.3 - 2020-09-17

  • documentation fix

0.0.2 - 2020-09-17

  • parser:
    • add missing backslash (\) to the list of excluded name characters
    • portability fix: replace lookbehind assertion (not supported on Safari) with lookahead

0.0.1 - 2020-09-15

  • initial release