Internal changes only (updated dependencies, documentation, etc.).
Internal changes only (updated dependencies, documentation, etc.).
Watchdog class was renamed to EditorWatchdog and is available in src/editorwatchdog.js.EditorWatchdog.for() method was removed in favor of the constructor.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 ).ContextWatchdog which is a watchdog for Context. Closes ckeditor/ckeditor5#6079. Closes ckeditor/ckeditor5#6042. Closes ckeditor/ckeditor5#4696. (76c4938)Error class will be handled by Watchdog. Closes ckeditor/ckeditor5#5678. (3f24a2e)crashed array. Closes #3. (1a47364)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. Closes #15. (5bdbfe5)destroy() method is called. Added the protected Watchdog#_now() method that allows for time-based testing of the error handling mechanism. Closes #17. Closes #19. (a54db15)Watchdog#restart() method private. Changed the signatures of Watchdog#create() and Watchdog#destroy(), so now these methods will return empty promises. Closes #13. (69aef8b)waitingTime configuration option to saveInterval.Watchdog#restart() is no longer public.Internal changes only (updated dependencies, documentation, etc.).
The initial watchdog feature implementation.