Skip to content

Commit

Permalink
- npm: Avoid adding core-js-bundle as peerDep. (fixes JSONPath-Plus#95
Browse files Browse the repository at this point in the history
)

- Docs: Add reference to `core-js-bundle` usage
  • Loading branch information
brettz9 committed Jun 12, 2019
1 parent b35922b commit b05dc3e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGES for jsonpath-plus

## 0.20.1 (June 12, 2019)

- npm: Avoid adding `core-js-bundle` as peerDep. (fixes #95)

## 0.20.0 (June 4, 2019)

- Build: Add `browserslist` for Babel builds
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ For browser usage you can directly include `dist/index-umd.js`; no Browserify
magic is necessary:

```html
<script src="dist/index-umd.js"></script>
<!-- Polyfill recommended by Babel for items not covered for older
browsers in dist -->
<script src="node_modules/core-js-bundle/minified.js"></script>

<script src="node_modules/jsonpath-plus/dist/index-umd.js"></script>
<script>
const result = JSONPath({path: '...', json: ...});
</script>
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Stefan Goessner",
"name": "jsonpath-plus",
"version": "0.20.0",
"version": "0.20.1",
"main": "dist/index-umd.js",
"module": "dist/index-es.js",
"description": "A JS implementation of JSONPath with some additional operators",
Expand Down Expand Up @@ -44,9 +44,6 @@
"react-native": {
"vm": false
},
"peerDependencies": {
"core-js-bundle": "^3.1.3"
},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.4.5",
Expand Down

0 comments on commit b05dc3e

Please sign in to comment.