Skip to content

Commit 6352d88

Browse files
committed
- Breaking change/fix: Disallow resultType from being lower-cased
(broke `parentProperty`); fixes #119 - Docs: Add license badges - npm: Bump to 4.0.0
1 parent c630cd1 commit 6352d88

14 files changed

+525
-12
lines changed

CHANGES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# CHANGES for jsonpath-plus
22

3-
## ?
3+
## 4.0.0 (2020-04-09)
44

5+
- Breaking change/fix: Disallow `resultType` from being lower-cased
6+
(broke `parentProperty`)
57
- Breaking change: Expect Node >= 10
68
- Build: As per latest rollup
79
- Linting: Check hidden files; update as per latest ash-nazg

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
[![Total Alerts](https://img.shields.io/lgtm/alerts/g/s3u/JSONPath.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/s3u/JSONPath/alerts)
1010
[![Code Quality: Javascript](https://img.shields.io/lgtm/grade/javascript/g/s3u/JSONPath.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/s3u/JSONPath/context:javascript)
1111

12-
[![License](https://img.shields.io/npm/l/intl-dom.svg)](LICENSE-MIT.txt)
12+
<!--[![License](https://img.shields.io/npm/l/JSONPath.svg)](LICENSE-MIT.txt)-->
13+
[![Licenses badge](https://raw.githubusercontent.com/s3u/JSONPath/master/badges/licenses-badge.svg?sanitize=true)](badges/licenses-badge.svg)
14+
15+
<small>(see also [licenses for dev. deps.](https://raw.githubusercontent.com/s3u/JSONPath/master/badges/licenses-badge-dev.svg?sanitize=true))</small>
1316

1417
# JSONPath Plus [![build status](https://secure.travis-ci.org/s3u/JSONPath.png)](http://travis-ci.org/s3u/JSONPath)
1518

badges/licenses-badge-dev.svg

Lines changed: 1 addition & 0 deletions
Loading

badges/licenses-badge.svg

Lines changed: 1 addition & 0 deletions
Loading

dist/index-es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ function JSONPath(opts, expr, obj, callback, otherTypeCallback) {
465465
opts = opts || {};
466466
this.json = opts.json || obj;
467467
this.path = opts.path || expr;
468-
this.resultType = opts.resultType && opts.resultType.toLowerCase() || 'value';
468+
this.resultType = opts.resultType || 'value';
469469
this.flatten = opts.flatten || false;
470470
this.wrap = hasOwnProp.call(opts, 'wrap') ? opts.wrap : true;
471471
this.sandbox = opts.sandbox || {};

dist/index-es.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-es.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-umd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@
471471
opts = opts || {};
472472
this.json = opts.json || obj;
473473
this.path = opts.path || expr;
474-
this.resultType = opts.resultType && opts.resultType.toLowerCase() || 'value';
474+
this.resultType = opts.resultType || 'value';
475475
this.flatten = opts.flatten || false;
476476
this.wrap = hasOwnProp.call(opts, 'wrap') ? opts.wrap : true;
477477
this.sandbox = opts.sandbox || {};

dist/index-umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)