Skip to content

Commit

Permalink
Update dependencies, publish v9.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed May 31, 2022
1 parent 663cb40 commit d74df9c
Show file tree
Hide file tree
Showing 14 changed files with 2,095 additions and 2,567 deletions.
7 changes: 7 additions & 0 deletions HISTORY.md
Expand Up @@ -3,6 +3,13 @@
https://github.com/josdejong/jsoneditor


## 2022-05-31, version 9.8.0

- Implemented method `editor.expand({ path, isExpand, recursive })` and callback
`onExpand({ path, isExpand, recursive })`. Thanks @himanshu520.
- Upgrade to the latest version of Ace editor, `v1.5.3`.


## 2022-03-15, version 9.7.4

- Fix #1421: fix `onBlur` event not firing when focus goes to an `iframe`.
Expand Down
4,435 changes: 1,979 additions & 2,456 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "9.7.4",
"version": "9.8.0",
"main": "./dist/jsoneditor.min.js",
"description": "A web-based tool to view, edit, format, and validate JSON",
"tags": [
Expand All @@ -26,7 +26,7 @@
"prepublishOnly": "npm test && npm run build"
},
"dependencies": {
"ace-builds": "^1.4.14",
"ace-builds": "^1.5.3",
"ajv": "^6.12.6",
"javascript-natural-sort": "^0.7.1",
"jmespath": "^0.16.0",
Expand All @@ -37,12 +37,12 @@
"vanilla-picker": "^2.12.1"
},
"devDependencies": {
"@babel/core": "7.17.7",
"@babel/preset-env": "7.16.11",
"@babel/core": "7.18.2",
"@babel/preset-env": "7.18.2",
"@babel/register": "7.17.7",
"babel-loader": "8.2.3",
"babel-loader": "8.2.5",
"btoa": "1.2.1",
"date-format": "4.0.5",
"date-format": "4.0.10",
"fancy-log": "2.0.0",
"gulp": "4.0.2",
"gulp-clean-css": "4.3.0",
Expand All @@ -51,12 +51,12 @@
"jsdom": "19.0.0",
"json-loader": "0.5.7",
"mkdirp": "1.0.4",
"mocha": "9.2.2",
"sass": "1.49.9",
"mocha": "10.0.0",
"sass": "1.52.1",
"source-map-loader": "3.0.1",
"standard": "16.0.4",
"uglify-js": "3.15.3",
"webpack": "5.70.0"
"standard": "17.0.0",
"uglify-js": "3.15.5",
"webpack": "5.72.1"
},
"files": [
"dist",
Expand Down
8 changes: 3 additions & 5 deletions src/js/JSONEditor.js
Expand Up @@ -277,8 +277,6 @@ JSONEditor.prototype.setMode = function (mode) {
const container = this.container
const options = extend({}, this.options)
const oldMode = options.mode
let data
let name

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

const asText = (config.data === 'text')
name = this.getName()
data = this[asText ? 'getText' : 'get']() // get text or json
const name = this.getName()
const data = this[asText ? 'getText' : 'get']() // get text or json

this.destroy()
clear(this)
Expand Down Expand Up @@ -334,7 +332,7 @@ JSONEditor.prototype._onError = function (err) {
if (this.options && typeof this.options.onError === 'function') {
this.options.onError(err)
} else {
alert(err.toString())
window.alert(err.toString())
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/js/ModeSwitcher.js
Expand Up @@ -98,9 +98,9 @@ export class ModeSwitcher {
container.appendChild(frame)

this.dom = {
container: container,
box: box,
frame: frame
container,
box,
frame
}
}

Expand Down

0 comments on commit d74df9c

Please sign in to comment.