Closed filipsobol closed 2 weeks ago
The update focuses on improving the CKEditor5 engine module by introducing renamed exports for getData
and setData
functions as _getModelData
and _setModelData
. These changes are designed to facilitate development and testing tasks by providing utilities for managing and accessing model data efficiently.
File Path | Change Summary |
---|---|
packages/ckeditor5-engine/src/index.ts |
Added exports for _getModelData and _setModelData from model.js for development/testing utilities. Also included exports for parsing and stringifying model and view data. |
The merge commit message should mention that those are helpers for unit tests only. I'd classify this as "Other", not "Feature".
The merge commit message should mention that those are helpers for unit tests only. I'd classify this as "Other", not "Feature".
Updated
Suggested merge commit message (convention)
Other (engine): Export
_getModelData
,_setModelData
,_parseModel
,_stringifyModel
,_getViewData
,_setViewData
,_parseView
, and_stringifyView
helpers.Additional information
In the Testing helpers document, we show how to get the stringified version of the model using the
getData
helper. Currently, this helper is not exported from the main package entry point, so it will not be available in the new installation method. This PR adds export ofgetData
andsetData
under the aliases_getModelData
and_setModelData
. The aliases are prefixed with_
, because they are only meant to be used in development and testing, not in "production".Summary by CodeRabbit
Summary by CodeRabbit