Releases: stretchr/arg.js
Releases · stretchr/arg.js
v1.4.0
v1.3.2
v1.3.1
v1.2
v1.1
- Added
Arg(key)
shorter interface as well asArg.get(key)
. - Ignores undefined/empty keys and values.
- Cleans up edge cases (i.e. where paths are present in parse() calls etc).
- Will now optionally coerce a native type out of value if possible (i.e. Number, Boolean, undefined, etc). To not coerce, set
Arg.coerceMode = false
via @joshschumacher - Better handling of complex objects that have mixed nested objects/arrays. See new test case added to test/spec/arg.js for an example object that was failing and is no longer failing. via @joshschumacher
- Added support for anchors in
Arg.url(path, params, anchorString)
(i.e. no longer assumes they're variables if it's a string)