@ckeditor/ckeditor5-engine
Advanced tools
Comparing version 43.0.0 to 43.1.0-alpha.0
{ | ||
"name": "@ckeditor/ckeditor5-engine", | ||
"version": "43.0.0", | ||
"version": "43.1.0-alpha.0", | ||
"description": "The editing engine of CKEditor 5 – the best browser-based rich text editor.", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-utils": "43.0.0", | ||
"@ckeditor/ckeditor5-utils": "43.1.0-alpha.0", | ||
"lodash-es": "4.17.21" | ||
@@ -30,0 +30,0 @@ }, |
@@ -1251,3 +1251,14 @@ /** | ||
else { | ||
diff.push(...'a'.repeat(change.howMany).split('')); | ||
// Total maximum amount of arguments that can be passed to `Array.prototype.push` may be limited so we need to | ||
// add them manually one by one to avoid this limit. However loop might be a bit slower than `push` method on | ||
// smaller changesets so we need to decide which method to use based on the size of the change. | ||
// See: https://github.com/ckeditor/ckeditor5/issues/16819 | ||
if (change.howMany > 1500) { | ||
for (let i = 0; i < change.howMany; i++) { | ||
diff.push('a'); | ||
} | ||
} | ||
else { | ||
diff.push(...'a'.repeat(change.howMany).split('')); | ||
} | ||
// The last handled offset is at the position after the changed range. | ||
@@ -1254,0 +1265,0 @@ offset = change.offset + change.howMany; |
@@ -192,3 +192,8 @@ /** | ||
else { | ||
this._writer.setAttribute(name, value, viewRoot); | ||
// There is a chance that some attributes have already been set on the view root before attaching | ||
// the DOM root and should be preserved. This is a similar case to the "class" attribute except | ||
// this time there is no workaround using a some low-level API. | ||
if (!viewRoot.hasAttribute(name)) { | ||
this._writer.setAttribute(name, value, viewRoot); | ||
} | ||
} | ||
@@ -195,0 +200,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13438197
126473
1
+ Added@ckeditor/ckeditor5-utils@43.1.0-alpha.0(transitive)
- Removed@ckeditor/ckeditor5-utils@43.0.0(transitive)