@ckeditor/ckeditor5-watchdog 29.0.0 → 31.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/README.md +1 -1
- package/ckeditor5-metadata.json +11 -0
- package/package.json +12 -10
- package/CHANGELOG.md +0 -75
- package/build/watchdog.js.map +0 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This package implements the watchdog feature for CKEditor 5. It keeps a CKEditor
|
|
|
9
9
|
|
|
10
10
|
## Documentation
|
|
11
11
|
|
|
12
|
-
See the [`@ckeditor/ckeditor5-watchdog` package](https://ckeditor.com/docs/ckeditor5/latest/api/watchdog.html) page as well as the [Watchdog feature
|
|
12
|
+
See the [`@ckeditor/ckeditor5-watchdog` package](https://ckeditor.com/docs/ckeditor5/latest/api/watchdog.html) page as well as the [Watchdog feature](https://ckeditor.com/docs/ckeditor5/latest/features/watchdog.html) guide in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
|
|
13
13
|
|
|
14
14
|
## License
|
|
15
15
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Watchdog",
|
|
5
|
+
"className": "EditorWatchdog",
|
|
6
|
+
"description": "A utility that detects if an editor crashed, destroys it, and automatically creates a new instance of that editor with the content of the previous editor.",
|
|
7
|
+
"docs": "features/watchdog.html",
|
|
8
|
+
"path": "src/editorwatchdog.js"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-watchdog",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.0",
|
|
4
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",
|
|
8
8
|
"ckeditor 5",
|
|
9
|
-
"ckeditor5-lib"
|
|
9
|
+
"ckeditor5-lib",
|
|
10
|
+
"ckeditor5-dll"
|
|
10
11
|
],
|
|
11
12
|
"main": "src/index.js",
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"lodash-es": "^4.17.15"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-core": "^
|
|
17
|
-
"@ckeditor/ckeditor5-dev-utils": "^25.
|
|
18
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
|
19
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
|
20
|
-
"@ckeditor/ckeditor5-theme-lark": "^
|
|
21
|
-
"@ckeditor/ckeditor5-utils": "^
|
|
22
|
-
"ckeditor5": "^
|
|
17
|
+
"@ckeditor/ckeditor5-core": "^31.0.0",
|
|
18
|
+
"@ckeditor/ckeditor5-dev-utils": "^25.4.0",
|
|
19
|
+
"@ckeditor/ckeditor5-editor-classic": "^31.0.0",
|
|
20
|
+
"@ckeditor/ckeditor5-paragraph": "^31.0.0",
|
|
21
|
+
"@ckeditor/ckeditor5-theme-lark": "^31.0.0",
|
|
22
|
+
"@ckeditor/ckeditor5-utils": "^31.0.0",
|
|
23
|
+
"ckeditor5": "^31.0.0",
|
|
23
24
|
"webpack": "^4.43.0",
|
|
24
25
|
"webpack-cli": "^3.3.11"
|
|
25
26
|
},
|
|
@@ -40,7 +41,8 @@
|
|
|
40
41
|
"lang",
|
|
41
42
|
"src",
|
|
42
43
|
"theme",
|
|
43
|
-
"build"
|
|
44
|
+
"build",
|
|
45
|
+
"ckeditor5-metadata.json"
|
|
44
46
|
],
|
|
45
47
|
"scripts": {
|
|
46
48
|
"dll:build": "webpack"
|
package/CHANGELOG.md
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
Changelog
|
|
2
|
-
=========
|
|
3
|
-
|
|
4
|
-
All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
|
|
5
|
-
|
|
6
|
-
Changes for the past releases are available below.
|
|
7
|
-
|
|
8
|
-
## [19.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v18.0.0...v19.0.0) (2020-04-29)
|
|
9
|
-
|
|
10
|
-
Internal changes only (updated dependencies, documentation, etc.).
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## [18.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v17.0.0...v18.0.0) (2020-03-19)
|
|
14
|
-
|
|
15
|
-
Internal changes only (updated dependencies, documentation, etc.).
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## [17.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v16.0.0...v17.0.0) (2020-02-19)
|
|
19
|
-
|
|
20
|
-
### MAJOR BREAKING CHANGES
|
|
21
|
-
|
|
22
|
-
* The `Watchdog` class was renamed to `EditorWatchdog` and is available in `src/editorwatchdog.js`.
|
|
23
|
-
* The `EditorWatchdog.for()` method was removed in favor of the constructor.
|
|
24
|
-
* 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 )`.
|
|
25
|
-
|
|
26
|
-
### Features
|
|
27
|
-
|
|
28
|
-
* 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))
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
## [16.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v15.0.0...v16.0.0) (2019-12-04)
|
|
32
|
-
|
|
33
|
-
### Bug fixes
|
|
34
|
-
|
|
35
|
-
* 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))
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## [15.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v11.0.0...v15.0.0) (2019-10-23)
|
|
39
|
-
|
|
40
|
-
### Other changes
|
|
41
|
-
|
|
42
|
-
* 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))
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## [11.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v10.0.1...v11.0.0) (2019-08-26)
|
|
46
|
-
|
|
47
|
-
### Features
|
|
48
|
-
|
|
49
|
-
* 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))
|
|
50
|
-
* 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))
|
|
51
|
-
* 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))
|
|
52
|
-
|
|
53
|
-
### Bug fixes
|
|
54
|
-
|
|
55
|
-
* 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))
|
|
56
|
-
|
|
57
|
-
### Other changes
|
|
58
|
-
|
|
59
|
-
* 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))
|
|
60
|
-
* 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))
|
|
61
|
-
|
|
62
|
-
### BREAKING CHANGES
|
|
63
|
-
|
|
64
|
-
* Renamed `waitingTime` configuration option to `saveInterval`.
|
|
65
|
-
* `Watchdog#restart()` is no longer public.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## [10.0.1](https://github.com/ckeditor/ckeditor5-watchdog/compare/v10.0.0...v10.0.1) (2019-07-10)
|
|
69
|
-
|
|
70
|
-
Internal changes only (updated dependencies, documentation, etc.).
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
## [10.0.0](https://github.com/ckeditor/ckeditor5-watchdog/tree/v10.0.0) (2019-07-04)
|
|
74
|
-
|
|
75
|
-
The initial watchdog feature implementation.
|