Hello,
We are using a lot of packages based on jquery 1.11.11/2.2.4 and we would like to upgrade jquery to 3.6.0 (or to remove jquery dependies when possible).
It seems we run jquery 2.2.4
console.log(jQuery.fn.jquery);
2.2.4
When we run meteor update we obtains this
Newer versions of the following indirect dependencies are available:
* jquery 1.11.11 (3.0.0 is available)
In the code : https://github.com/meteor/meteor/blob/ffcfa5062cf1bf8a64ea64fef681ffcd99fe7939/packages/non-core/jquery/package.js
I can read :
// Note that you can
meteor npm install jquery
(any version) into your
// applicationβs node_modules directory, and the meteor/jquery package
// will use that version instead of 1.12.1.
But is this going to break all other packages depending on jquery 1.11.1 ?
I read this thread : Replace Meteor base Jquery for the NPM one - #12 by evolross
But again I am not sure how to apply the advices.
Any advises on how to update jquery ?
This is an extract from meteor list --tree
βββ¬ j4507:datatables-bootstrap-3@0.2.5
β βββ¬ jquery@1.11.11
β β βββ modules@0.16.0 (expanded above)
βββ¬ rajit:bootstrap3-datepicker@1.7.1_1
β βββ jquery@1.11.11 (expanded above)
βββ¬ ajduke:bootstrap-tagsinput@0.7.1
β βββ jquery@1.11.11 (expanded above)
β βββ twbs:bootstrap@3.3.6
βββ¬ chrismbeckett:toastr@2.1.2_1
β βββ jquery@1.11.11 (expanded above)
βββ¬ dschulz:jquery-qrcode@1.0.2
β βββ jquery@1.11.11 (expanded above)
βββ¬ gadicohen:reactive-window@1.0.6
β βββ blaze@2.4.0 (expanded above)
β βββ jquery@1.11.11 (expanded above)
βββ¬ meteor-platform@1.2.6
β βββ autoupdate@1.7.0 (top level)
β βββ blaze@2.4.0 (expanded above)
β βββ check@1.3.1 (expanded above)
β βββ ddp@1.4.0 (expanded above)
β βββ deps@1.0.12 (expanded above)
β βββ ejson@1.1.1 (expanded above)
β βββ fastclick@1.0.13
β βββ jquery@1.11.11 (expanded above)
βββ¬ mizzao:bootboxjs@4.4.0
β βββ jquery@1.11.11 (expanded above)
βββ¬ mizzao:jquery-ui@1.12.1
β βββ jquery@1.11.11 (expanded above)
βββ¬ peppelg:bootstrap-3-modal@1.0.4
β βββ jquery@1.11.11 (expanded above)
βββ¬ sergeyt:typeahead@1.2.0
β βββ blaze@2.4.0 (expanded above)
β βββ jquery@1.11.11 (expanded above)
β βββ ui@1.0.13 (expanded above)
βββ¬ tsega:bootstrap3-datetimepicker@4.17.47
β βββ jquery@1.11.11 (expanded above)
βββ¬ tap:i18n@1.8.2
β βββ check@1.3.1 (expanded above)
β βββ coffeescript@1.0.17 (expanded above)
β βββ jquery@1.11.11 (expanded above)
βββ¬ xvendo:barcoder@0.0.3
βββ jquery@1.11.11 (expanded above)
βββ¬ iron:router@1.1.2
β βββ¬ deps@1.0.12
β β βββ tracker@1.2.0 (expanded above)
β βββ ejson@1.1.1 (expanded above)
β βββ¬ iron:controller@1.0.12
β β βββ¬ iron:core@1.0.11
β β β βββ ejson@1.1.1 (expanded above)
β β β βββ underscore@1.0.10
β β βββ¬ iron:dynamic-template@1.0.12
β β β βββ blaze@2.4.0 (expanded above)
β β β βββ iron:core@1.0.11 (expanded above)
β β β βββ jquery@1.11.11 (expanded above)
β β β βββ random@1.2.0 (expanded above)
β β β βββ reactive-var@1.0.11 (expanded above)
β β β βββ templating@1.4.0 (expanded above)
β β β βββ tracker@1.2.0 (expanded above)
β β β βββ ui@1.0.13 (expanded above)
β β β βββ underscore@1.0.10
β β βββ¬ iron:layout@1.0.12
β β β βββ blaze@2.4.0 (expanded above)
β β β βββ iron:core@1.0.11 (expanded above)
β β β βββ iron:dynamic-template@1.0.12 (expanded above)
β β β βββ templating@1.4.0 (expanded above)
β β β βββ tracker@1.2.0 (expanded above)
β β β βββ underscore@1.0.10
β β βββ¬ reactive-dict@1.3.0
β β β βββ ecmascript@0.15.1 (top level)
β β β βββ ejson@1.1.1 (expanded above)
β β β βββ tracker@1.2.0 (expanded above)
β β βββ templating@1.4.0 (expanded above)
β β βββ tracker@1.2.0 (expanded above)
β β βββ underscore@1.0.10
β βββ iron:core@1.0.11 (expanded above)
β βββ iron:layout@1.0.12 (expanded above)
β βββ¬ iron:location@1.0.11
β β βββ iron:core@1.0.11 (expanded above)
β β βββ¬ iron:url@1.1.0
β β β βββ iron:core@1.0.11 (expanded above)
β β β βββ underscore@1.0.10
β β βββ jquery@1.11.11 (expanded above)
β β βββ tracker@1.2.0 (expanded above)
β β βββ underscore@1.0.10
UPDATE :
I have added jquery@3.0.0!
in the file .meteor/packages
(with exclamation mark)
Now meteor list --tree
returns :
jquery@3.0.0
βββ modules@0.16.0
βββ¬ j4507:datatables-bootstrap-3@0.2.5
β βββ¬ jquery@3.0.0
βββ¬ rajit:bootstrap3-datepicker@1.7.1_1
β βββ jquery@3.0.0 (top level)
βββ¬ ajduke:bootstrap-tagsinput@0.7.1
β βββ jquery@3.0.0(top level)
βββ¬ chrismbeckett:toastr@2.1.2_1
β βββ jquery@3.0.0 (top level)
βββ¬ dschulz:jquery-qrcode@1.0.2
β βββ jquery@3.0.0 (top level)
βββ¬ gadicohen:reactive-window@1.0.6
β βββ jquery@3.0.0 (top level)
βββ¬ meteor-platform@1.2.6
β βββ jquery@3.0.0 (top level)
βββ¬ mizzao:bootboxjs@4.4.0
β βββ jquery@3.0.0 (top level)
βββ¬ mizzao:jquery-ui@1.12.1
β βββ jquery@3.0.0 (top level)
βββ¬ peppelg:bootstrap-3-modal@1.0.4
β βββ jquery@3.0.0 (top level)
βββ¬ sergeyt:typeahead@1.2.0
β βββ blaze@2.4.0 (top level)
β βββ jquery@3.0.0 (top level)
β βββ ui@1.0.13 (top level)
βββ¬ tsega:bootstrap3-datetimepicker@4.17.47
β βββ jquery@3.0.0 (top level)
βββ¬ tap:i18n@1.8.2
β βββ jquery@3.0.0 (top level)
βββ¬ xvendo:barcoder@0.0.3
βββ jquery@3.0.0 (top level)
βββ¬ iron:router@1.1.2
β β βββ¬ iron:dynamic-template@1.0.12
β β β βββ jquery@3.0.0 (top level)
β β βββ jquery@3.0.0 (top level)
But still
console.log(jQuery.fn.jquery);
2.2.4
Then when I perform meteor npm update --save jquery
: I am still stuck to 2.2.4
If I do meteor npm update --save jquery@3.6.0
some of the plugins does not work anymore like datetimepicker, datatables but some other work like toastr.
Do you know how to progress on this ?