Skip to content

Releases: JSONPath-Plus/JSONPath

5.0.1

06 Feb 01:13
Compare
Choose a tag to compare

5.0.1 (2021-01-15)

  • Fix: Proper Node CommonJS export; fixes #143
  • Docs: Properly indicate new browser paths

5.0.0

14 Jan 12:34
Compare
Choose a tag to compare

Details on breaking changes:

  1. Adds support for genuine ESM in Node (type and exports in package.json and
    changed main path).
  2. Changes browser paths to include "-browser" in the file name
  3. Adds browser to package.json to point to browser build for browser-specific bundling.
    Rollup users wishing the browser bundle must ensure @rollup/plugin-node-resolve
    has mainFields to include browser as the first item in the array; Webpack users may
    need to set resolve with aliasFields: ['browser'] and/or
    mainFields: ['browser', 'module', 'main'], ensuring that browser is in the front of the list
  4. Has module point to the Node-specific build (with a new path)

Changes

  • Breaking change: Add type: 'commonjs' and exports: {import, require}
    (with node-import-test npm script to demo)
  • Breaking change: Change paths for browser (now is
    dist/index-browser-umd.js or dist/index-browser-es.js)
    (for Node, main and module point to new Node-specific dist)
  • Breaking enhancement: Add browser for browser bundling;
    allowing static analysis environments, doesn't have however
    conditional code to require vm); for ESM browser bundling,
    now must check browser in Rollup Node resolver plugin;
    see README
  • Build: Update per latest devDeps.
  • Docs: Add Regex (.match) example on value (@jeffreypriebe)
  • Docs: Add Regex (.match) example on property
  • Docs: Fix XPath example (@humbertoc-silva)
  • Docs: Link to XPath 2.0 tester
  • Docs: Update badges per latest updates
  • Linting: quote props
  • Linting: As per latest ash-nazg
  • Testing: Fix browser tests
  • Testing: Add test case for setting values in callbacks (issue #126)
  • Testing: Add more at-sign tests
  • Testing: Bump timeout
  • Travis: Check Node 14
  • Travis: add default dist field to avoid extra config reporting
  • npm: Update from deprecated rollup-plugin-babel to @rollup/plugin-babel
    (and make babelHelpers explicit)
  • npm: Reorder scripts by test execution order
  • npm: Update devDeps

4.0.0

06 Feb 01:13
Compare
Choose a tag to compare

4.0.0 (2020-04-09)

  • Breaking change/fix: Disallow resultType from being lower-cased
    (broke parentProperty)
  • Breaking change: Expect Node >= 10
  • Build: As per latest rollup
  • Linting: Check hidden files; update as per latest ash-nazg
  • Docs: Update coverage badge
  • npm: Update devDeps

3.0.0

06 Feb 01:14
Compare
Choose a tag to compare

3.0.0 (2020-01-13)

  • Breaking change: Expect Node >= 8
  • Fix: Require json as "own" property
  • Fix: wrap: false returning inconsistent data types (@CacheControl)
  • Fix: Ensure throwing with a bad result type
  • Fix: Allow empty string keys
  • Fix: Avoid erring when value before parent selector is falsey
  • Fix: If resultType is "all", if path resolves internally to a
    non-array (string), ensure it is converted to an array before
    converting to pointer for pointer
  • Enhancement: Allow path as array in non-object signature
  • Docs: Add locally-generated badges for testing, coverage, etc.
  • Linting (ESLint): As per latest ash-nazg
  • Linting (ESLint): Remove redundant "use strict" with switch to ESM
  • Maintenance: 2 sp. for package.json
  • Testing: Add nyc for coverage
  • Testing: Test against source (using esm)
  • Testing: Improve coverage (more type operator tests)
  • Testing: Check vm
  • npm: Add test-cov script
  • npm: Update devDeps

2.0.0

06 Feb 01:14
Compare
Choose a tag to compare

2.0.0 (2019-11-23)

  • Breaking change: Throw TypeError instead of Error for missing
    otherTypeCallback when using @other
  • Breaking change: Throw TypeError instead of Error for missing path
  • Enhancement: Throw TypeError for missing json (fixes #110)
  • Enhancement: Use more efficient new Function over eval;
    also allows use of cyclic context objects
  • Enhancement: Add @root filter selector
  • Maintenance: Add .editorconfig
  • Docs: Document options in jsdoc; add return values to callbacks;
    fix constructor doc sig.
  • Testing: Add test for missing path or json
  • Testing: Remove unneeded closures
  • npm: Update devDeps and package-lock.json

1.1.0

06 Feb 01:16
Compare
Choose a tag to compare

1.1.0 (September 26, 2019)

  • Enhancement: Add explicit 'any' to evaluate() declaration (for use
    with noImplicitAny TypeScript option)
  • Build: Update minified build files
  • Travis: Update to check Node 6, 10, 12
  • npm: Ignore .idea/.remarkrc files
  • npm: Update devDeps (Babel, linting, Rollup, TypeScript related)
  • npm: Avoid eslint script within test script
  • npm: Ignore typescript docs

1.0.0

06 Feb 01:15
Compare
Choose a tag to compare

1.0.0 (August 7, 2019)

  • Add TypeScript declaration

0.20.2

06 Feb 01:21
Compare
Choose a tag to compare

0.20.2 (July 9, 2019)

  • supportsNodeVM check that works in GOJA, node and ReactNative. (@legander)