react-ace
Advanced tools
Comparing version 9.3.0 to 9.4.0
# Changelog | ||
## 9.4.0 | ||
- Upgrade dev dependencies | ||
- Prevent no theme error #1038 | ||
## 9.3.0 | ||
- Upgrade dev dependencies | ||
- Update annotations type #998 | ||
- Accept an object as mode #1001 | ||
## 9.2.1 | ||
- Bump ace-builds from 1.4.11 to 1.4.12 | ||
- Import Range from ace-builds in ace.tsx to match split.tsx | ||
- Fix type for exec param in ICommand interface | ||
- Add React 17 Support | ||
- Upgrade dev dependencies | ||
## 9.1.4 | ||
- Use https for demo site | ||
- style prop type to conditional object | ||
- Security fixes and dev dependencies upgrades | ||
## 9.1.3 | ||
@@ -4,0 +29,0 @@ |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -75,3 +77,4 @@ function __() { this.constructor = d; } | ||
.setMode(typeof mode === "string" ? "ace/mode/" + mode : mode); | ||
this.editor.setTheme("ace/theme/" + theme); | ||
if (theme && theme !== "") | ||
this.editor.setTheme("ace/theme/" + theme); | ||
this.editor.setFontSize(typeof fontSize === "number" ? fontSize + "px" : fontSize); | ||
@@ -78,0 +81,0 @@ this.editor |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getAceInstance = exports.debounce = exports.editorEvents = exports.editorOptions = void 0; | ||
var editorOptions = [ | ||
@@ -4,0 +5,0 @@ "minLines", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.diff = exports.split = void 0; | ||
var ace_1 = require("./ace"); | ||
@@ -4,0 +5,0 @@ var diff_1 = require("./diff"); |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
{ | ||
"name": "react-ace", | ||
"version": "9.3.0", | ||
"version": "9.4.0", | ||
"description": "A react component for Ace Editor", | ||
@@ -12,4 +12,4 @@ "main": "lib/index.js", | ||
"build:lib": "tsc", | ||
"build:umd": "webpack src/index.ts -o dist/react-ace.js --config webpack.config.development.js", | ||
"build:umd:min": "webpack src/index.ts -o dist/react-ace.min.js --config webpack.config.production.js", | ||
"build:umd": "webpack ./src/index.ts -o dist/react-ace.js --config webpack.config.development.js", | ||
"build:umd:min": "webpack ./src/index.ts -o dist/react-ace.min.js --config webpack.config.production.js", | ||
"example": "webpack-dev-server --config webpack.config.example.js", | ||
@@ -23,3 +23,3 @@ "build:example": "webpack --config webpack.config.example.js", | ||
"prepublishOnly": "npm run clean && npm run build", | ||
"test": "mocha --require ts-node/register --require @babel/register --require tests/setup.js tests/src/*.spec.js --exit", | ||
"test": "_mocha --require ts-node/register --require @babel/register --require tests/setup.js tests/src/*.spec.js --exit", | ||
"coverage": "nyc npm run test", | ||
@@ -50,4 +50,4 @@ "prepare": "npm run build:lib" | ||
"coveralls": "^3.0.2", | ||
"enzyme": "^3.9.0", | ||
"enzyme-adapter-react-16": "^1.13.1", | ||
"enzyme": "^3.11.0", | ||
"enzyme-adapter-react-16": "^1.15.6", | ||
"eslint": "7.11.0", | ||
@@ -58,5 +58,5 @@ "eslint-plugin-import": "^2.17.3", | ||
"husky": "^4.2.3", | ||
"jsdom": "^16.1.0", | ||
"jsdom": "16.5.1", | ||
"minimist": ">=1.2.2", | ||
"mocha": "7.2.0", | ||
"mocha": "8.3.2", | ||
"node-forge": ">=0.10.0", | ||
@@ -75,6 +75,6 @@ "nyc": "15.1.0", | ||
"tslint-react": "^5.0.0", | ||
"typescript": "^3.4.5", | ||
"webpack": "4.44.2", | ||
"webpack-cli": "3.3.10", | ||
"webpack-dev-server": "3.11.0" | ||
"typescript": "^4.2.3", | ||
"webpack": "5.28.0", | ||
"webpack-cli": "4.6.0", | ||
"webpack-dev-server": "3.11.2" | ||
}, | ||
@@ -88,3 +88,3 @@ "keywords": [ | ||
"dependencies": { | ||
"ace-builds": "^1.4.6", | ||
"ace-builds": "^1.4.12", | ||
"diff-match-patch": "^1.0.4", | ||
@@ -112,3 +112,5 @@ "lodash.get": "^4.4.2", | ||
".js", | ||
".jsx" | ||
".jsx", | ||
".tsx", | ||
".ts" | ||
], | ||
@@ -115,0 +117,0 @@ "reporter": [ |
@@ -1,12 +0,5 @@ | ||
const webpack = require('webpack'); | ||
const baseConfig = require('./webpack.config.base'); | ||
const baseConfig = require("./webpack.config.base"); | ||
const config = Object.assign({}, baseConfig); | ||
config.plugins = [ | ||
new webpack.optimize.OccurrenceOrderPlugin(), | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('development'), | ||
}), | ||
]; | ||
config.mode = 'development' | ||
config.mode = "development"; | ||
module.exports = config; |
@@ -20,6 +20,3 @@ const webpack = require("webpack"); | ||
}, | ||
plugins: [ | ||
new webpack.optimize.OccurrenceOrderPlugin(), | ||
new webpack.HotModuleReplacementPlugin() | ||
], | ||
plugins: [new webpack.HotModuleReplacementPlugin()], | ||
module: { | ||
@@ -26,0 +23,0 @@ rules: [ |
@@ -1,14 +0,7 @@ | ||
'use strict'; | ||
"use strict"; | ||
const webpack = require('webpack'); | ||
const baseConfig = require('./webpack.config.base'); | ||
const baseConfig = require("./webpack.config.base"); | ||
const config = Object.assign({}, baseConfig); | ||
config.plugins = [ | ||
new webpack.optimize.OccurrenceOrderPlugin(), | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('production'), | ||
}) | ||
]; | ||
config.mode = 'production'; | ||
config.mode = "production"; | ||
module.exports = config; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1763494
56
6774
1
Updatedace-builds@^1.4.12