@ckeditor/ckeditor5-watchdog 10.0.1 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,56 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## [17.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v16.0.0...v17.0.0) (2020-02-19)
5
+
6
+ ### MAJOR BREAKING CHANGES
7
+
8
+ * The `Watchdog` class was renamed to `EditorWatchdog` and is available in `src/editorwatchdog.js`.
9
+ * The `EditorWatchdog.for()` method was removed in favor of the constructor.
10
+ * The `EditorWatchdog#constructor()` API changed. Now the `EditorWatchdog` constructor accepts the editor class as the first argument and the watchdog configuration as the second argument. The `EditorWatchdog` editor creator now defaults to `( sourceElementOrData, config ) => Editor.create( sourceElementOrData, config )`.
11
+
12
+ ### Features
13
+
14
+ * Introduced `ContextWatchdog` which is a watchdog for `Context`. Closes [ckeditor/ckeditor5#6079](https://github.com/ckeditor/ckeditor5/issues/6079). Closes [ckeditor/ckeditor5#6042](https://github.com/ckeditor/ckeditor5/issues/6042). Closes [ckeditor/ckeditor5#4696](https://github.com/ckeditor/ckeditor5/issues/4696). ([76c4938](https://github.com/ckeditor/ckeditor5-watchdog/commit/76c4938))
15
+
16
+
17
+ ## [16.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v15.0.0...v16.0.0) (2019-12-04)
18
+
19
+ ### Bug fixes
20
+
21
+ * Only instances of the `Error` class will be handled by `Watchdog`. Closes [ckeditor/ckeditor5#5678](https://github.com/ckeditor/ckeditor5/issues/5678). ([3f24a2e](https://github.com/ckeditor/ckeditor5-watchdog/commit/3f24a2e))
22
+
23
+
24
+ ## [15.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v11.0.0...v15.0.0) (2019-10-23)
25
+
26
+ ### Other changes
27
+
28
+ * Made the Watchdog#setDestructor() method optional and default to editor => editor.destroy(). Closes [#21](https://github.com/ckeditor/ckeditor5-watchdog/issues/21). ([5a9dc0c](https://github.com/ckeditor/ckeditor5-watchdog/commit/5a9dc0c))
29
+
30
+
31
+ ## [11.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v10.0.1...v11.0.0) (2019-08-26)
32
+
33
+ ### Features
34
+
35
+ * Added support for multi-root editors. Closes [#22](https://github.com/ckeditor/ckeditor5-watchdog/issues/22). ([692955e](https://github.com/ckeditor/ckeditor5-watchdog/commit/692955e))
36
+ * Added unhandled promise rejection error handling. Fixed objects in the `crashed` array. Closes [#3](https://github.com/ckeditor/ckeditor5-watchdog/issues/3). ([1a47364](https://github.com/ckeditor/ckeditor5-watchdog/commit/1a47364))
37
+ * Introduced the observable `Watchdog#state` property. Introduced the `minimumNonErrorTimePeriod` configuration which defaults to 5 seconds and will be used to prevent infinite restart loops while allowing a larger number of random crashes as long as they do not happen too often. Renamed `waitingTime` configuration option to `saveInterval`. Closes [#7](https://github.com/ckeditor/ckeditor5-watchdog/issues/7). Closes [#15](https://github.com/ckeditor/ckeditor5-watchdog/issues/15). ([5bdbfe5](https://github.com/ckeditor/ckeditor5-watchdog/commit/5bdbfe5))
38
+
39
+ ### Bug fixes
40
+
41
+ * The editor data will be saved correctly after the `destroy()` method is called. Added the protected `Watchdog#_now()` method that allows for time-based testing of the error handling mechanism. Closes [#17](https://github.com/ckeditor/ckeditor5-watchdog/issues/17). Closes [#19](https://github.com/ckeditor/ckeditor5-watchdog/issues/19). ([a54db15](https://github.com/ckeditor/ckeditor5-watchdog/commit/a54db15))
42
+
43
+ ### Other changes
44
+
45
+ * The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([741594a](https://github.com/ckeditor/ckeditor5-watchdog/commit/741594a))
46
+ * Made the `Watchdog#restart()` method private. Changed the signatures of `Watchdog#create()` and `Watchdog#destroy()`, so now these methods will return empty promises. Closes [#13](https://github.com/ckeditor/ckeditor5-watchdog/issues/13). ([69aef8b](https://github.com/ckeditor/ckeditor5-watchdog/commit/69aef8b))
47
+
48
+ ### BREAKING CHANGES
49
+
50
+ * Renamed `waitingTime` configuration option to `saveInterval`.
51
+ * `Watchdog#restart()` is no longer public.
52
+
53
+
4
54
  ## [10.0.1](https://github.com/ckeditor/ckeditor5-watchdog/compare/v10.0.0...v10.0.1) (2019-07-10)
5
55
 
6
56
  Internal changes only (updated dependencies, documentation, etc.).
@@ -8,4 +58,4 @@ Internal changes only (updated dependencies, documentation, etc.).
8
58
 
9
59
  ## [10.0.0](https://github.com/ckeditor/ckeditor5-watchdog/tree/v10.0.0) (2019-07-04)
10
60
 
11
- The initial font feature implementation.
61
+ The initial watchdog feature implementation.
package/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor 5 watchdog feature** – https://github.com/ckeditor/ckeditor5-watchdog <br>
5
- Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
5
+ Copyright (c) 2003-2020, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
6
6
 
7
7
  Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
8
8
 
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  CKEditor 5 watchdog feature
2
2
  ========================================
3
3
 
4
- [![Join the chat at https://gitter.im/ckeditor/ckeditor5](https://badges.gitter.im/ckeditor/ckeditor5.svg)](https://gitter.im/ckeditor/ckeditor5?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5
4
  [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-watchdog.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-watchdog)
6
5
  [![Build Status](https://travis-ci.org/ckeditor/ckeditor5-watchdog.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-watchdog)
7
6
  [![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5-watchdog/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5-watchdog?branch=master)
@@ -9,11 +8,11 @@ CKEditor 5 watchdog feature
9
8
  [![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-watchdog/status.svg)](https://david-dm.org/ckeditor/ckeditor5-watchdog)
10
9
  [![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-watchdog/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-watchdog?type=dev)
11
10
 
12
- This package implements the watchdog feature for CKEditor 5.
11
+ This package implements the watchdog feature for CKEditor 5. It keeps a CKEditor 5 rich-text editor instance running.
13
12
 
14
13
  ## Documentation
15
14
 
16
- See the [`@ckeditor/ckeditor5-watchdog` package](https://ckeditor.com/docs/ckeditor5/latest/api/watchdog.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
15
+ See the [`@ckeditor/ckeditor5-watchdog` package](https://ckeditor.com/docs/ckeditor5/latest/api/watchdog.html) page as well as the [Watchdog feature guide](https://ckeditor.com/docs/ckeditor5/latest/features/watchdog.html) in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
17
16
 
18
17
  ## License
19
18
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-watchdog",
3
- "version": "10.0.1",
4
- "description": "A watchdog feature for CKEditor 5 editors. It keeps a CKEditor 5 editor instance running",
3
+ "version": "17.0.0",
4
+ "description": "A watchdog feature for CKEditor 5 editors. It keeps a CKEditor 5 editor instance running.",
5
5
  "keywords": [
6
6
  "ckeditor",
7
7
  "ckeditor5",
@@ -9,17 +9,20 @@
9
9
  "ckeditor5-lib"
10
10
  ],
11
11
  "dependencies": {
12
- "@ckeditor/ckeditor5-utils": "^13.0.1",
13
12
  "lodash-es": "^4.17.10"
14
13
  },
15
14
  "devDependencies": {
16
- "@ckeditor/ckeditor5-core": "^12.2.1",
17
- "@ckeditor/ckeditor5-editor-classic": "^12.1.3",
18
- "@ckeditor/ckeditor5-paragraph": "^11.0.4",
15
+ "@ckeditor/ckeditor5-core": "^17.0.0",
16
+ "@ckeditor/ckeditor5-editor-classic": "^17.0.0",
17
+ "@ckeditor/ckeditor5-engine": "^17.0.0",
18
+ "@ckeditor/ckeditor5-paragraph": "^17.0.0",
19
+ "@ckeditor/ckeditor5-utils": "^17.0.0",
19
20
  "eslint": "^5.5.0",
20
21
  "eslint-config-ckeditor5": "^2.0.0",
21
22
  "husky": "^2.4.1",
22
- "lint-staged": "^8.2.1"
23
+ "lint-staged": "^8.2.1",
24
+ "stylelint-config-ckeditor5": "^1.0.0",
25
+ "stylelint": "^11.1.1"
23
26
  },
24
27
  "engines": {
25
28
  "node": ">=8.0.0",
@@ -28,7 +31,7 @@
28
31
  "author": "CKSource (http://cksource.com/)",
29
32
  "license": "GPL-2.0-or-later",
30
33
  "homepage": "https://ckeditor.com/ckeditor-5",
31
- "bugs": "https://github.com/ckeditor/ckeditor5-watchdog/issues",
34
+ "bugs": "https://github.com/ckeditor/ckeditor5/issues",
32
35
  "repository": {
33
36
  "type": "git",
34
37
  "url": "https://github.com/ckeditor/ckeditor5-watchdog.git"
@@ -39,11 +42,15 @@
39
42
  "theme"
40
43
  ],
41
44
  "scripts": {
42
- "lint": "eslint --quiet '**/*.js'"
45
+ "lint": "eslint --quiet '**/*.js'",
46
+ "stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css' 'docs/**/*.css'"
43
47
  },
44
48
  "lint-staged": {
45
49
  "**/*.js": [
46
50
  "eslint --quiet"
51
+ ],
52
+ "**/*.css": [
53
+ "stylelint --quiet --allow-empty-input"
47
54
  ]
48
55
  },
49
56
  "eslintIgnore": [