corejavascript / corejavascript/typeahead.js

Add jQuery 4 compatibility

Open
#263 1 comment 10 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
968
Forks
231
PR merge metrics
No merged PRs in 30d

Description

The latest release (`1.3.4`) does not appear to be compatible with the recently released jQuery 4.

While attempting to upgrade, I'm seeing the following error:

```
Uncaught TypeError: _.isFunction is not a function
parse bloodhound.js:702
Bloodhound2 bloodhound.js:836
```

Looking at the [jQuery 4 release announcement blog post](https://blog.jquery.com/2026/01/17/jquery-4-0-0/), there are a number of previously deprecated APIs that have been removed:

> Deprecated APIs removed
>
> These functions have been deprecated for several versions. It’s time to remove them now that we’ve reached a major release. These functions were either always meant to be internal or ones that now have native equivalents in all supported browsers. The removed functions include:
>
> `jQuery.isArray`, `jQuery.parseJSON`, `jQuery.trim`, `jQuery.type`, `jQuery.now`, `jQuery.isNumeric`, `jQuery.isFunction`, `jQuery.isWindow`, `jQuery.camelCase`, `jQuery.nodeName`, `jQuery.cssNumber`, `jQuery.cssProps`, and `jQuery.fx.interval`.
>
> Use native equivalents like `Array.isArray()`, `JSON.parse()`, `String.prototype.trim()`, and `Date.now()` instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.