@ckeditor/ckeditor5-utils 47.7.3 → 47.7.5-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -987,9 +987,9 @@ function isObject(structure) {
987
987
  ];
988
988
  }
989
989
 
990
- const version = '47.7.3';
990
+ const version = '47.7.5-alpha.0';
991
991
  // The second argument is not a month. It is `monthIndex` and starts from `0`.
992
- const releaseDate = new Date(2026, 6, 14);
992
+ const releaseDate = new Date(2026, 8, 18);
993
993
  /* istanbul ignore next -- @preserve */ if (globalThis.CKEDITOR_VERSION) {
994
994
  /**
995
995
  * This error is thrown when, due to a mistake in the way CKEditor 5 was installed,
@@ -1470,8 +1470,11 @@ function EmitterMixin(base) {
1470
1470
  events[name].childEvents.push(childEventName);
1471
1471
  }
1472
1472
  childEventName = name;
1473
- // If `.lastIndexOf()` returns -1, `.substr()` will return '' which will break the loop.
1474
- name = name.substr(0, name.lastIndexOf(':'));
1473
+ // Truncate to the parent namespace. Do not use `substr( 0, lastIndexOf( ':' ) )`:
1474
+ // when there is no `:`, `lastIndexOf` is -1 and some JSC builds (Safari 27 x86_64)
1475
+ // miscompile `substr` with a negative length, returning the original string instead of `''`.
1476
+ const colonIndex = name.lastIndexOf(':');
1477
+ name = colonIndex > -1 ? name.substring(0, colonIndex) : '';
1475
1478
  }
1476
1479
  if (name !== '') {
1477
1480
  // If name is not empty, we found an already registered event that was a parent of the