Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
TINY-10394: Added pLoadVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Nov 24, 2023
1 parent b9671e7 commit fbcf230
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Added
- `VersionLoader.pLoadVersion` function. #TINY-10394

### Removed
- Removed support for TinyMCE 4.x. #TINY-10142

### Changed
- Made the VersionLoader.setup functions logs argument optional. #TINY-10394
- Made the `VersionLoader.setup` functions logs argument optional. #TINY-10394

## 5.0.1 - 2022-06-29

Expand Down
3 changes: 2 additions & 1 deletion src/main/ts/api/VersionLoader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Pipeline, Step, TestLogs } from '@ephox/agar';
import { TinyLoader } from '@ephox/mcagar';

import * as Loader from '../loader/Loader';
import { readPlugins, registerPlugins, sRegisterPlugins } from '../loader/Plugins';
import * as TinyVersions from '../loader/Versions';

Expand Down Expand Up @@ -42,4 +43,4 @@ export const sSetupVersion = <T, U>(version: string, testPlugins: string[], call
}, settings, next, die, initLogs)
);

export const sWithVersion = TinyVersions.sWithVersion;
export const pLoadVersion = (version: string): Promise<void> => new Promise((resolve, reject) => Loader.load(version, resolve, reject));
2 changes: 1 addition & 1 deletion src/main/ts/loader/Versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ const sWithVersion = (version: string, step: Step<any, any>): Step<unknown, unkn
]);
};

export { sWithVersion, sLoad, sLoadFrom, sUnload };
export { sWithVersion, sLoad, sLoadFrom, sUnload };

0 comments on commit fbcf230

Please sign in to comment.