Skip to content

Commit 5e3a797

Browse files
author
Brett Zamir
committed
- Fix: Proper Node CommonJS export; fixes #143
- Docs: Properly indicate new browser paths - npm: Bump to 5.0.1
1 parent 3a06227 commit 5e3a797

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.iml
22
.DS_Store
33
.idea
4+
ignore
45
temp
56
node_modules
67
pids

CHANGES.md

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

3-
## 5.0.0 (2020-07-11)
3+
## 5.0.1 (2021-01-15)
4+
5+
- Fix: Proper Node CommonJS export; fixes #143
6+
- Docs: Properly indicate new browser paths
7+
8+
## 5.0.0 (2021-01-14)
49

510
- Breaking change: Add `type: 'commonjs'` and `exports: {import, require}`
611
(with `node-import-test` npm script to demo)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const result = JSONPath({path: '...', json});
7878

7979
### Browser
8080

81-
For browser usage you can directly include `dist/index-umd.js`; no Browserify
81+
For browser usage you can directly include `dist/index-browser-umd.js`; no Browserify
8282
magic is necessary:
8383

8484
```html
@@ -102,7 +102,7 @@ You may also use ES6 Module imports (for modern browsers):
102102
```html
103103
<script type="module">
104104
105-
import {JSONPath} from './node_modules/jsonpath-plus/dist/index-browser-es.js';
105+
import {JSONPath} from './node_modules/jsonpath-plus/dist/index-browser-esm.js';
106106
const result = JSONPath({path: '...', json: ...});
107107
108108
</script>

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"author": "Stefan Goessner",
33
"name": "jsonpath-plus",
4-
"version": "5.0.0",
4+
"version": "5.0.1",
55
"type": "commonjs",
6-
"main": "dist/index-node-umd.js",
6+
"main": "dist/index-node-cjs.js",
77
"exports": {
88
"import": "dist/index-node-esm.mjs",
9-
"require": "dist/index-node-umd.js"
9+
"require": "dist/index-node-cjs.js"
1010
},
1111
"module": "dist/index-node-esm.mjs",
1212
"browser": "dist/index-browser-esm.js",

0 commit comments

Comments
 (0)