Skip to content

Commit 0c77c7f

Browse files
committed
Build: Make jQuery a peerDependency, update version range
jQuery 1.12/2.2 or newer are required due to the presence of the `$.uniqueSort` method; update the range accordingly, so that e.g. jQuery 2.1 is rejected.
1 parent beac2ea commit 0c77c7f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"test:unit": "jtr",
5252
"test": "grunt && npm run test:unit -- --headless"
5353
},
54-
"dependencies": {
55-
"jquery": ">=1.12.0 <5.0.0"
54+
"peerDependencies": {
55+
"jquery": ">=1.12 <2 || >=2.2 <5.0.0"
5656
},
5757
"devDependencies": {
5858
"@swc/core": "1.11.5",
@@ -68,6 +68,7 @@
6868
"grunt-eslint": "25.0.0",
6969
"grunt-git-authors": "3.2.0",
7070
"grunt-html": "17.1.0",
71+
"jquery": "^3.7.1",
7172
"jquery-test-runner": "0.2.5",
7273
"load-grunt-tasks": "5.1.0",
7374
"rimraf": "6.0.1"

0 commit comments

Comments
 (0)