Skip to content

v1.1

Compare
Choose a tag to compare
@matryer matryer released this 03 Oct 16:51
· 42 commits to master since this release
  • Added Arg(key) shorter interface as well as Arg.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)