Releases: angezid/advanced-mark.js
Releases · angezid/advanced-mark.js
Release list
Version 3.0.0
3.0.0
- Combine pattern become the default in the
mark()API. - The default number of the
combineBy(old namecombinePatterns) option is increase from 10 to 100. - Added requirement for
gflag inmarkRegExp()API when not usingacrossElementsoption. - Dropped support to highlight RegExp groups without
dflag. - Removed RegExpCreator module from the npm package.
- Added the ability to abort a method execution on the 'each' callback.
- Removed the 'execution' object from the 'filter ' and 'each' callbacks' info object.
- Added support for CSS Custom Highlight API.
- Dropped support of very older browsers.
Version 2.7.1
- Fixed the 'filter' callback 'matchesSoFar' counter (3 parameter) that affected the mark() method with the 'combinePatterns' option.
Version 2.7.0
- Added source code to the npm package.
Version 2.6.0
- Added ability to mark inside iframes in shadow DOM.
- Changed the way to truck iframes states (dropped using attribute).
- Added ability to use HTMLCollection (returned by 'getElementsByClassName()' and 'getElementsByTagName()').
Version 2.5.0
- Added ability to select iframe elements when using non-jQuery libraries and iframe elements are dynamically created by javascript.
- Fixed multiple wrapping of highlighted text in mark elements that can occur on some conditions with
iframesoption (page contains several iframes and selecting several contexts). Previous 2.x.x versions correctly handle only one context. - Fixed bug that is related to old browsers in DOMIterator class, e.g. IE11. (introduced in v2.4.1)
Version 2.4.2
- Fixed bug that occurs in
markRanges()API then an array of ranges have a single item and a rangestartproperty is zero.
Version 2.4.1
- Fixed infinite loop that can occur with
ignoreGroupsoption in markRegExp() API with the conditional main group. - Fixed missing window object of the Node interface (causes an exception in virtual DOM environments when context is an array of elements).
Version 2.4.0
- Fixed handling escaped wildcards characters (backslashes were stripped from searching string, e.g. 'C:\\\\*' resulted in 'C:\\*' and is treated as escape '*', not a wildcard)
- Fixed breaking UTF-16 surrogate pairs and continues pairs of backslashes by joiners/punctuation
- Slightly reduce a code size
Version 2.3.0
- Added
preserveTermsvalue forseparateWordSearchoption that allows highlight exact term(s) alone side with separate word(s). - Added
'startsWith'value for accuracy option that allows highlight whole word(s) just typing the start of it(s). It also works withpreserveTerms.
Version 2.2.0
- Added ability to mark line ranges (
markRanges()API withmarkLinesoption). - Fixed handling
brelement ingetTextNodesAcross()method. - Fixed negative value of the start index in
wrapRangeAcross()method withwrapAllRangesoption, which can occur in some cases. - An improvement that allows usage of RegExp conditional capturing groups with
ignoreGroupsoption inmarkRegExp()API.