From b9671e76a4d73a84123786ea694887090ffe3ab3 Mon Sep 17 00:00:00 2001 From: Spocke Date: Fri, 24 Nov 2023 11:34:17 +0100 Subject: [PATCH] TINY-10394: Made logs argument optional for VersionLoader.setup --- CHANGELOG.md | 3 +++ src/main/ts/api/VersionLoader.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fec8251..7240703 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed - Removed support for TinyMCE 4.x. #TINY-10142 +### Changed +- Made the VersionLoader.setup functions logs argument optional. #TINY-10394 + ## 5.0.1 - 2022-06-29 ### Changed diff --git a/src/main/ts/api/VersionLoader.ts b/src/main/ts/api/VersionLoader.ts index 8cb6a04..019abdd 100644 --- a/src/main/ts/api/VersionLoader.ts +++ b/src/main/ts/api/VersionLoader.ts @@ -18,7 +18,7 @@ export const setupVersion = ( settings: Record, success: SuccessCallback, failure: FailureCallback, - logs: TestLogs + logs: TestLogs = TestLogs.init() ): void => { const plugins = readPlugins(testPlugins); @@ -42,4 +42,4 @@ export const sSetupVersion = (version: string, testPlugins: string[], call }, settings, next, die, initLogs) ); -export const sWithVersion = TinyVersions.sWithVersion; \ No newline at end of file +export const sWithVersion = TinyVersions.sWithVersion;