unstale

npm / isbot

isbot

What changed in isbot 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-24.

8 breaking13 new APIs and options2 performance1 behavior and defaults2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

isbot 514 changes

Breaking changes 2

New APIs and options 8

  • New name for createIsbot; the old name remains available for backwards compatibility.

    5.2.0release notes

  • New name for createIsbotFromList; the old name remains available for backwards compatibility.

    5.2.0release notes

  • New name for isbotMatch; the old name remains available for backwards compatibility.

    5.2.0release notes

  • New name for isbotMatches; the old name remains available for backwards compatibility.

    5.2.0release notes

  • New name for isbotPattern; the old name remains available for backwards compatibility.

    5.2.0release notes

  • New name for isbotPatterns; the old name remains available for backwards compatibility.

    5.2.0release notes

  • New name for isbot; the old name remains available for backwards compatibility.

    5.2.0release notes

  • New name for isbotNaive; the old name remains available for backwards compatibility.

    5.2.0release notes

Performance 1

Behavior and default changes 1

Fixes and other changes 2

  • The browser entry was missing from package output; it is now included.

    5.1.41release notes

  • Interface functions check more effectively for non-empty strings.

    5.1.37release notes

isbot 412 changes

Breaking changes 6

  • The default import was removed; import isbot as a named export instead.

    4.0.0release notes

  • Support for end-of-life Node versions was dropped.

    4.0.0release notes

  • Functions attached to isbot are no longer supported.

    4.0.0release notes

  • The isbot function is now imported as a named export.

    4.0.0release notes

  • Exports the list of all individual pattern parts.

    4.0.0release notes

  • Exports the regular expression used to identify bots.

    4.0.0release notes

New APIs and options 5

  • Creates a custom isbot function from a regular expression.

    4.0.0release notes

  • Returns the substring matched by the regular expression, or null.

    4.0.0release notes

  • Returns all substrings matched by the regular expression.

    4.0.0release notes

  • Returns the regular expression used to identify a bot substring in a user agent.

    4.0.0release notes

  • Returns all regular expressions used to identify bot substrings in a user agent.

    4.0.0release notes

Performance 1

  • The regular expression is built at build time instead of runtime to reduce package size and improve performance.

    4.0.0release notes