Skip to content

Commit

Permalink
Update install templates to use jquery3
Browse files Browse the repository at this point in the history
jQuery has known vulnerabilities in versions prior to `3.5.0`. This
commit updates the load configuration to require `jquery3` instead of
`jquery`. This will resolve the `jquery` version from `1.12.4` to
`3.5.1`, thereby alleviating the vulnerability for new installations.
  • Loading branch information
cpfergus1 committed Sep 14, 2021
1 parent 0957c0f commit d438b82
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/spec/javascripts/spec_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//= require support/chai-jq-0.0.7

//= require_self
//= require jquery
//= require jquery3
//= require rails-ujs
//= require spree/backend
//= require_tree ./support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery3
//= require rails-ujs
//= require spree/backend
//= require_tree .
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery3
//= require rails-ujs
//= require spree/frontend
//= require_tree .
2 changes: 1 addition & 1 deletion guides/source/developers/assets/asset-management.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ you that your Solidus backend include jQuery and any other files that you create
in this `spree/backend` directory:

```javascript
//= require jquery
//= require jquery3
//= require rails-ujs
//= require spree/backend
//= require_tree .
Expand Down

0 comments on commit d438b82

Please sign in to comment.