Skip to content

Commit d74df9c

Browse files
committed
Update dependencies, publish v9.8.0
1 parent 663cb40 commit d74df9c

14 files changed

+2095
-2567
lines changed

HISTORY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
https://github.com/josdejong/jsoneditor
44

55

6+
## 2022-05-31, version 9.8.0
7+
8+
- Implemented method `editor.expand({ path, isExpand, recursive })` and callback
9+
`onExpand({ path, isExpand, recursive })`. Thanks @himanshu520.
10+
- Upgrade to the latest version of Ace editor, `v1.5.3`.
11+
12+
613
## 2022-03-15, version 9.7.4
714

815
- Fix #1421: fix `onBlur` event not firing when focus goes to an `iframe`.

package-lock.json

Lines changed: 1979 additions & 2456 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsoneditor",
3-
"version": "9.7.4",
3+
"version": "9.8.0",
44
"main": "./dist/jsoneditor.min.js",
55
"description": "A web-based tool to view, edit, format, and validate JSON",
66
"tags": [
@@ -26,7 +26,7 @@
2626
"prepublishOnly": "npm test && npm run build"
2727
},
2828
"dependencies": {
29-
"ace-builds": "^1.4.14",
29+
"ace-builds": "^1.5.3",
3030
"ajv": "^6.12.6",
3131
"javascript-natural-sort": "^0.7.1",
3232
"jmespath": "^0.16.0",
@@ -37,12 +37,12 @@
3737
"vanilla-picker": "^2.12.1"
3838
},
3939
"devDependencies": {
40-
"@babel/core": "7.17.7",
41-
"@babel/preset-env": "7.16.11",
40+
"@babel/core": "7.18.2",
41+
"@babel/preset-env": "7.18.2",
4242
"@babel/register": "7.17.7",
43-
"babel-loader": "8.2.3",
43+
"babel-loader": "8.2.5",
4444
"btoa": "1.2.1",
45-
"date-format": "4.0.5",
45+
"date-format": "4.0.10",
4646
"fancy-log": "2.0.0",
4747
"gulp": "4.0.2",
4848
"gulp-clean-css": "4.3.0",
@@ -51,12 +51,12 @@
5151
"jsdom": "19.0.0",
5252
"json-loader": "0.5.7",
5353
"mkdirp": "1.0.4",
54-
"mocha": "9.2.2",
55-
"sass": "1.49.9",
54+
"mocha": "10.0.0",
55+
"sass": "1.52.1",
5656
"source-map-loader": "3.0.1",
57-
"standard": "16.0.4",
58-
"uglify-js": "3.15.3",
59-
"webpack": "5.70.0"
57+
"standard": "17.0.0",
58+
"uglify-js": "3.15.5",
59+
"webpack": "5.72.1"
6060
},
6161
"files": [
6262
"dist",

src/js/JSONEditor.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ JSONEditor.prototype.setMode = function (mode) {
277277
const container = this.container
278278
const options = extend({}, this.options)
279279
const oldMode = options.mode
280-
let data
281-
let name
282280

283281
options.mode = mode
284282
const config = JSONEditor.modes[mode]
@@ -287,8 +285,8 @@ JSONEditor.prototype.setMode = function (mode) {
287285
}
288286

289287
const asText = (config.data === 'text')
290-
name = this.getName()
291-
data = this[asText ? 'getText' : 'get']() // get text or json
288+
const name = this.getName()
289+
const data = this[asText ? 'getText' : 'get']() // get text or json
292290

293291
this.destroy()
294292
clear(this)
@@ -334,7 +332,7 @@ JSONEditor.prototype._onError = function (err) {
334332
if (this.options && typeof this.options.onError === 'function') {
335333
this.options.onError(err)
336334
} else {
337-
alert(err.toString())
335+
window.alert(err.toString())
338336
}
339337
}
340338

src/js/ModeSwitcher.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ export class ModeSwitcher {
9898
container.appendChild(frame)
9999

100100
this.dom = {
101-
container: container,
102-
box: box,
103-
frame: frame
101+
container,
102+
box,
103+
frame
104104
}
105105
}
106106

0 commit comments

Comments
 (0)