@ckeditor/ckeditor5-watchdog 40.1.0 → 41.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 +8 -8
- package/LICENSE.md +1 -1
- package/package.json +2 -1
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/contextwatchdog.d.ts +5 -5
- package/src/contextwatchdog.js +5 -5
- package/src/editorwatchdog.d.ts +4 -4
- package/src/editorwatchdog.js +3 -3
- package/src/index.d.ts +5 -5
- package/src/index.js +5 -5
- package/src/utils/areconnectedthroughproperties.d.ts +1 -1
- package/src/utils/areconnectedthroughproperties.js +2 -2
- package/src/utils/getsubnodes.d.ts +1 -1
- package/src/utils/getsubnodes.js +1 -1
- package/src/watchdog.d.ts +4 -4
- package/src/watchdog.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,17 +5,17 @@ All changes in the package are documented in the main repository. See: https://g
|
|
|
5
5
|
|
|
6
6
|
Changes for the past releases are available below.
|
|
7
7
|
|
|
8
|
-
## [19.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v18.0.0...v19.0.0) (2020
|
|
8
|
+
## [19.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v18.0.0...v19.0.0) (April 29, 2020)
|
|
9
9
|
|
|
10
10
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
## [18.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v17.0.0...v18.0.0) (2020
|
|
13
|
+
## [18.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v17.0.0...v18.0.0) (March 19, 2020)
|
|
14
14
|
|
|
15
15
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
## [17.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v16.0.0...v17.0.0) (2020
|
|
18
|
+
## [17.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v16.0.0...v17.0.0) (February 19, 2020)
|
|
19
19
|
|
|
20
20
|
### MAJOR BREAKING CHANGES
|
|
21
21
|
|
|
@@ -28,21 +28,21 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
28
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
29
|
|
|
30
30
|
|
|
31
|
-
## [16.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v15.0.0...v16.0.0) (2019
|
|
31
|
+
## [16.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v15.0.0...v16.0.0) (December 4, 2019)
|
|
32
32
|
|
|
33
33
|
### Bug fixes
|
|
34
34
|
|
|
35
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
36
|
|
|
37
37
|
|
|
38
|
-
## [15.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v11.0.0...v15.0.0) (2019
|
|
38
|
+
## [15.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v11.0.0...v15.0.0) (October 23, 2019)
|
|
39
39
|
|
|
40
40
|
### Other changes
|
|
41
41
|
|
|
42
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
43
|
|
|
44
44
|
|
|
45
|
-
## [11.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v10.0.1...v11.0.0) (2019
|
|
45
|
+
## [11.0.0](https://github.com/ckeditor/ckeditor5-watchdog/compare/v10.0.1...v11.0.0) (August 26, 2019)
|
|
46
46
|
|
|
47
47
|
### Features
|
|
48
48
|
|
|
@@ -65,11 +65,11 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
65
65
|
* `Watchdog#restart()` is no longer public.
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
## [10.0.1](https://github.com/ckeditor/ckeditor5-watchdog/compare/v10.0.0...v10.0.1) (2019
|
|
68
|
+
## [10.0.1](https://github.com/ckeditor/ckeditor5-watchdog/compare/v10.0.0...v10.0.1) (July 10, 2019)
|
|
69
69
|
|
|
70
70
|
Internal changes only (updated dependencies, documentation, etc.).
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
## [10.0.0](https://github.com/ckeditor/ckeditor5-watchdog/tree/v10.0.0) (2019
|
|
73
|
+
## [10.0.0](https://github.com/ckeditor/ckeditor5-watchdog/tree/v10.0.0) (July 4, 2019)
|
|
74
74
|
|
|
75
75
|
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–
|
|
5
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-watchdog",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.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",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"ckeditor5-lib",
|
|
10
10
|
"ckeditor5-dll"
|
|
11
11
|
],
|
|
12
|
+
"type": "module",
|
|
12
13
|
"main": "src/index.js",
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"lodash-es": "4.17.21"
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { EditorData } from './editorwatchdog';
|
|
5
|
+
import type { EditorData } from './editorwatchdog.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
7
|
interface EditorConfig {
|
|
8
8
|
/**
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/contextwatchdog.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module watchdog/contextwatchdog
|
|
7
7
|
*/
|
|
8
|
-
import type { Context, Editor, EditorConfig, ContextConfig } from 'ckeditor5/src/core';
|
|
9
|
-
import type { ArrayOrItem, CKEditorError } from 'ckeditor5/src/utils';
|
|
10
|
-
import Watchdog, { type WatchdogConfig, type WatchdogState } from './watchdog';
|
|
11
|
-
import EditorWatchdog, { type EditorCreatorFunction } from './editorwatchdog';
|
|
8
|
+
import type { Context, Editor, EditorConfig, ContextConfig } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { ArrayOrItem, CKEditorError } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import Watchdog, { type WatchdogConfig, type WatchdogState } from './watchdog.js';
|
|
11
|
+
import EditorWatchdog, { type EditorCreatorFunction } from './editorwatchdog.js';
|
|
12
12
|
/**
|
|
13
13
|
* A watchdog for the {@link module:core/context~Context} class.
|
|
14
14
|
*
|
package/src/contextwatchdog.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import Watchdog from './watchdog';
|
|
6
|
-
import EditorWatchdog from './editorwatchdog';
|
|
7
|
-
import areConnectedThroughProperties from './utils/areconnectedthroughproperties';
|
|
8
|
-
import getSubNodes from './utils/getsubnodes';
|
|
5
|
+
import Watchdog from './watchdog.js';
|
|
6
|
+
import EditorWatchdog from './editorwatchdog.js';
|
|
7
|
+
import areConnectedThroughProperties from './utils/areconnectedthroughproperties.js';
|
|
8
|
+
import getSubNodes from './utils/getsubnodes.js';
|
|
9
9
|
const mainQueueId = Symbol('MainQueueId');
|
|
10
10
|
/**
|
|
11
11
|
* A watchdog for the {@link module:core/context~Context} class.
|
package/src/editorwatchdog.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module watchdog/editorwatchdog
|
|
7
7
|
*/
|
|
8
|
-
import type { CKEditorError } from 'ckeditor5/src/utils';
|
|
9
|
-
import type { Editor, EditorConfig, Context } from 'ckeditor5/src/core';
|
|
10
|
-
import Watchdog, { type WatchdogConfig } from './watchdog';
|
|
8
|
+
import type { CKEditorError } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import type { Editor, EditorConfig, Context } from 'ckeditor5/src/core.js';
|
|
10
|
+
import Watchdog, { type WatchdogConfig } from './watchdog.js';
|
|
11
11
|
/**
|
|
12
12
|
* A watchdog for CKEditor 5 editors.
|
|
13
13
|
*
|
package/src/editorwatchdog.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import areConnectedThroughProperties from './utils/areconnectedthroughproperties';
|
|
6
|
-
import Watchdog from './watchdog';
|
|
5
|
+
import areConnectedThroughProperties from './utils/areconnectedthroughproperties.js';
|
|
6
|
+
import Watchdog from './watchdog.js';
|
|
7
7
|
import { throttle, cloneDeepWith, isElement } from 'lodash-es';
|
|
8
8
|
/**
|
|
9
9
|
* A watchdog for CKEditor 5 editors.
|
package/src/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module watchdog
|
|
7
7
|
*/
|
|
8
|
-
export { default as ContextWatchdog } from './contextwatchdog';
|
|
9
|
-
export { default as EditorWatchdog } from './editorwatchdog';
|
|
10
|
-
export { default as Watchdog } from './watchdog';
|
|
11
|
-
import './augmentation';
|
|
8
|
+
export { default as ContextWatchdog } from './contextwatchdog.js';
|
|
9
|
+
export { default as EditorWatchdog } from './editorwatchdog.js';
|
|
10
|
+
export { default as Watchdog } from './watchdog.js';
|
|
11
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module watchdog
|
|
7
7
|
*/
|
|
8
|
-
export { default as ContextWatchdog } from './contextwatchdog';
|
|
9
|
-
export { default as EditorWatchdog } from './editorwatchdog';
|
|
10
|
-
export { default as Watchdog } from './watchdog';
|
|
11
|
-
import './augmentation';
|
|
8
|
+
export { default as ContextWatchdog } from './contextwatchdog.js';
|
|
9
|
+
export { default as EditorWatchdog } from './editorwatchdog.js';
|
|
10
|
+
export { default as Watchdog } from './watchdog.js';
|
|
11
|
+
import './augmentation.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module watchdog/utils/areconnectedthroughproperties
|
|
7
7
|
*/
|
|
8
8
|
/* globals console */
|
|
9
|
-
import getSubNodes from './getsubnodes';
|
|
9
|
+
import getSubNodes from './getsubnodes.js';
|
|
10
10
|
/**
|
|
11
11
|
* Traverses both structures to find out whether there is a reference that is shared between both structures.
|
|
12
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/utils/getsubnodes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/watchdog.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module watchdog/watchdog
|
|
7
7
|
*/
|
|
8
|
-
import type { CKEditorError } from 'ckeditor5/src/utils';
|
|
9
|
-
import type { EditorWatchdogRestartEvent } from './editorwatchdog';
|
|
10
|
-
import type { ContextWatchdogItemErrorEvent, ContextWatchdogItemRestartEvent } from './contextwatchdog';
|
|
8
|
+
import type { CKEditorError } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import type { EditorWatchdogRestartEvent } from './editorwatchdog.js';
|
|
10
|
+
import type { ContextWatchdogItemErrorEvent, ContextWatchdogItemRestartEvent } from './contextwatchdog.js';
|
|
11
11
|
/**
|
|
12
12
|
* An abstract watchdog class that handles most of the error handling process and the state of the underlying component.
|
|
13
13
|
*
|
package/src/watchdog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|