Skip to content

Commit b05dc3e

Browse files
committed
- npm: Avoid adding core-js-bundle as peerDep. (fixes #95)
- Docs: Add reference to `core-js-bundle` usage
1 parent b35922b commit b05dc3e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGES for jsonpath-plus
22

3+
## 0.20.1 (June 12, 2019)
4+
5+
- npm: Avoid adding `core-js-bundle` as peerDep. (fixes #95)
6+
37
## 0.20.0 (June 4, 2019)
48

59
- Build: Add `browserslist` for Babel builds

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ For browser usage you can directly include `dist/index-umd.js`; no Browserify
6161
magic is necessary:
6262

6363
```html
64-
<script src="dist/index-umd.js"></script>
64+
<!-- Polyfill recommended by Babel for items not covered for older
65+
browsers in dist -->
66+
<script src="node_modules/core-js-bundle/minified.js"></script>
67+
68+
<script src="node_modules/jsonpath-plus/dist/index-umd.js"></script>
6569
<script>
6670
const result = JSONPath({path: '...', json: ...});
6771
</script>

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Stefan Goessner",
33
"name": "jsonpath-plus",
4-
"version": "0.20.0",
4+
"version": "0.20.1",
55
"main": "dist/index-umd.js",
66
"module": "dist/index-es.js",
77
"description": "A JS implementation of JSONPath with some additional operators",
@@ -44,9 +44,6 @@
4444
"react-native": {
4545
"vm": false
4646
},
47-
"peerDependencies": {
48-
"core-js-bundle": "^3.1.3"
49-
},
5047
"dependencies": {},
5148
"devDependencies": {
5249
"@babel/core": "^7.4.5",

0 commit comments

Comments
 (0)