@ckeditor/ckeditor5-utils
Advanced tools
Comparing version 15.0.0 to 16.0.0
Changelog | ||
========= | ||
## [16.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v15.0.0...v16.0.0) (2019-12-04) | ||
### Bug fixes | ||
* Improved error rethrowing by replacing the error stack. Closes [ckeditor/ckeditor5#5595](https://github.com/ckeditor/ckeditor5/issues/5595). ([7685c0d](https://github.com/ckeditor/ckeditor5-utils/commit/7685c0d)) | ||
## [15.0.0](https://github.com/ckeditor/ckeditor5-utils/compare/v14.0.0...v15.0.0) (2019-10-23) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-utils", | ||
"version": "15.0.0", | ||
"version": "16.0.0", | ||
"description": "Miscellaneous utils used by CKEditor 5.", | ||
@@ -12,10 +12,9 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "^15.0.0", | ||
"lodash-es": "^4.17.10" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-build-classic": "^15.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^15.0.0", | ||
"@ckeditor/ckeditor5-core": "^15.0.0", | ||
"@ckeditor/ckeditor5-engine": "^15.0.0", | ||
"@ckeditor/ckeditor5-build-classic": "^16.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^16.0.0", | ||
"@ckeditor/ckeditor5-core": "^16.0.0", | ||
"@ckeditor/ckeditor5-engine": "^16.0.0", | ||
"assertion-error": "^1.1.0", | ||
@@ -26,3 +25,5 @@ "eslint": "^5.5.0", | ||
"js-beautify": "^1.10.2", | ||
"lint-staged": "^7.0.0" | ||
"lint-staged": "^7.0.0", | ||
"stylelint": "^11.1.1", | ||
"stylelint-config-ckeditor5": "^1.0.0" | ||
}, | ||
@@ -47,3 +48,4 @@ "engines": { | ||
"scripts": { | ||
"lint": "eslint --quiet '**/*.js'" | ||
"lint": "eslint --quiet '**/*.js'", | ||
"stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css' 'docs/**/*.css'" | ||
}, | ||
@@ -53,2 +55,5 @@ "lint-staged": { | ||
"eslint --quiet" | ||
], | ||
"**/*.css": [ | ||
"stylelint --quiet --allow-empty-input" | ||
] | ||
@@ -55,0 +60,0 @@ }, |
@@ -97,7 +97,7 @@ /** | ||
* A utility that ensures the the thrown error is a {@link module:utils/ckeditorerror~CKEditorError} one. | ||
* It is uesful when combined with the {@link module:watchdog/watchdog~Watchdog} feature, which can restart the editor in case | ||
* It is useful when combined with the {@link module:watchdog/watchdog~Watchdog} feature, which can restart the editor in case | ||
* of a {@link module:utils/ckeditorerror~CKEditorError} error. | ||
* | ||
* @param {Error} err An error. | ||
* @param {Object} context An object conected through properties with the editor instance. This context will be used | ||
* @param {Object} context An object connected through properties with the editor instance. This context will be used | ||
* by the watchdog to verify which editor should be restarted. | ||
@@ -111,17 +111,17 @@ */ | ||
/** | ||
* An unexpected error occurred inside the CKEditor 5 codebase. The `error.data.originalError` property | ||
* shows the original error properties. | ||
* An unexpected error occurred inside the CKEditor 5 codebase. This error will look like the original one | ||
* to make the debugging easier. | ||
* | ||
* This error is only useful when the editor is initialized using the {@link module:watchdog/watchdog~Watchdog} feature. | ||
* In case of such error (or any {@link module:utils/ckeditorerror~CKEditorError} error) the wathcdog should restart the editor. | ||
* In case of such error (or any {@link module:utils/ckeditorerror~CKEditorError} error) the watchdog should restart the editor. | ||
* | ||
* @error unexpected-error | ||
*/ | ||
throw new CKEditorError( 'unexpected-error', context, { | ||
originalError: { | ||
message: err.message, | ||
stack: err.stack, | ||
name: err.name | ||
} | ||
} ); | ||
const error = new CKEditorError( err.message, context ); | ||
// Restore the original stack trace to make the error look like the original one. | ||
// See https://github.com/ckeditor/ckeditor5/issues/5595 for more details. | ||
error.stack = err.stack; | ||
throw error; | ||
} | ||
@@ -128,0 +128,0 @@ } |
@@ -242,2 +242,4 @@ /** | ||
} catch ( err ) { | ||
// @if CK_DEBUG // throw err; | ||
/* istanbul ignore next */ | ||
CKEditorError.rethrowUnexpectedError( err, this ); | ||
@@ -244,0 +246,0 @@ } |
@@ -129,7 +129,7 @@ /** | ||
/** | ||
* Cannot bind the same property more that once. | ||
* Cannot bind the same property more than once. | ||
* | ||
* @error observable-bind-rebind | ||
*/ | ||
throw new CKEditorError( 'observable-bind-rebind: Cannot bind the same property more that once.', this ); | ||
throw new CKEditorError( 'observable-bind-rebind: Cannot bind the same property more than once.', this ); | ||
} | ||
@@ -136,0 +136,0 @@ } ); |
@@ -12,7 +12,10 @@ /** | ||
import { version } from 'ckeditor5/package.json'; | ||
import CKEditorError from './ckeditorerror'; | ||
const version = '16.0.0'; | ||
/* istanbul ignore next */ | ||
const windowOrGlobal = typeof window === 'object' ? window : global; | ||
/* istanbul ignore next */ | ||
if ( windowOrGlobal.CKEDITOR_VERSION ) { | ||
@@ -19,0 +22,0 @@ /** |
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
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
236109
1
5911
12
- Removedckeditor5@^15.0.0
- Removedckeditor5@15.0.0(transitive)