Skip to content

Releases: angezid/advanced-mark.js

Version 3.0.0

Choose a tag to compare

@angezid angezid released this 16 Apr 04:23
1ac454c

3.0.0

  • Combine pattern become the default in the mark() API.
  • The default number of the combineBy (old name combinePatterns) option is increase from 10 to 100.
  • Added requirement for g flag in markRegExp() API when not using acrossElements option.
  • Dropped support to highlight RegExp groups without d flag.
  • 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

Choose a tag to compare

@angezid angezid released this 08 Apr 18:56
  • Fixed the 'filter' callback 'matchesSoFar' counter (3 parameter) that affected the mark() method with the 'combinePatterns' option.

Version 2.7.0

Choose a tag to compare

@angezid angezid released this 31 Jul 15:35
  • Added source code to the npm package.

Version 2.6.0

Choose a tag to compare

@angezid angezid released this 04 May 16:21
  • 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

Choose a tag to compare

@angezid angezid released this 07 Apr 10:58
  • 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 iframes option (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

Choose a tag to compare

@angezid angezid released this 26 Mar 11:43
  • Fixed bug that occurs in markRanges() API then an array of ranges have a single item and a range start property is zero.

Version 2.4.1

Choose a tag to compare

@angezid angezid released this 20 Nov 07:38
  • Fixed infinite loop that can occur with ignoreGroups option 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

Choose a tag to compare

@angezid angezid released this 14 Nov 17:06
  • 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

Choose a tag to compare

@angezid angezid released this 10 Oct 15:06
  • Added preserveTerms value for separateWordSearch option 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 with preserveTerms.

Version 2.2.0

Choose a tag to compare

@angezid angezid released this 12 Sep 15:32
  • Added ability to mark line ranges (markRanges() API with markLines option).
  • Fixed handling br element in getTextNodesAcross() method.
  • Fixed negative value of the start index in wrapRangeAcross() method with wrapAllRanges option, which can occur in some cases.
  • An improvement that allows usage of RegExp conditional capturing groups with ignoreGroups option in markRegExp() API.