-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STENCIL-3672 - Upgrade dependencies #1069
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,7 +156,7 @@ class FacetedSearch { | |
const id = $navList.attr('id'); | ||
|
||
// Toggle depending on `collapsed` flag | ||
if (_.contains(this.collapsedFacetItems, id)) { | ||
if (_.includes(this.collapsedFacetItems, id)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lodash got rid of |
||
this.getMoreFacetResults($navList); | ||
|
||
return true; | ||
|
@@ -363,7 +363,7 @@ class FacetedSearch { | |
} | ||
|
||
onSortBySubmit(event) { | ||
const url = Url.parse(location.href, true); | ||
const url = Url.parse(window.location.href, true); | ||
const queryParams = $(event.currentTarget).serialize().split('='); | ||
|
||
url.query[queryParams[0]] = queryParams[1]; | ||
|
@@ -381,7 +381,7 @@ class FacetedSearch { | |
return; | ||
} | ||
|
||
const url = Url.parse(location.href); | ||
const url = Url.parse(window.location.href); | ||
const queryParams = decodeURI($(event.currentTarget).serialize()); | ||
|
||
urlUtils.goToUrl(Url.format({ pathname: url.pathname, search: `?${queryParams}` })); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,58 +5,62 @@ | |
"private": true, | ||
"author": "BigCommerce", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@bigcommerce/stencil-utils": "^1.0.7", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. webpack now complains about all of these deps being in devDeps and says to move them here |
||
"async": "^2.5.0", | ||
"babel-polyfill": "^6.26.0", | ||
"fastclick": "^1.0.6", | ||
"foundation-sites": "^5.5.3", | ||
"html5-history-api": "^4.2.7", | ||
"jquery": "^2.2.4", | ||
"jquery-zoom": "^1.7.15", | ||
"jstree": "vakata/jstree", | ||
"lazysizes": "3.0.0", | ||
"lodash": "^4.17.4", | ||
"nod-validate": "^2.0.12", | ||
"pace": "hubspot/pace#a03f1f1de62c9cea6c88b2267b8d7a83858b6cb6", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we know why pace is locked down to a commit & not to an actual release ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @junedkazi IIRC it's because they made a breaking change. i'll do a quick check to see if we can update now There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yup, there's a breaking change. let's just create a separate PR with the fix |
||
"slick-carousel": "^1.8.1", | ||
"sweetalert2": "^6.10.1" | ||
}, | ||
"devDependencies": { | ||
"@bigcommerce/citadel": "^2.15.1", | ||
"@bigcommerce/stencil-utils": "1.0.5", | ||
"async": "^1.5.2", | ||
"babel-core": "^6.23.1", | ||
"babel-eslint": "^7.1.1", | ||
"babel-loader": "^6.3.2", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.0.1", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-dynamic-import-webpack": "^1.0.1", | ||
"babel-plugin-lodash": "^3.2.11", | ||
"babel-plugin-syntax-dynamic-import": "^6.18.0", | ||
"babel-plugin-transform-regenerator": "^6.22.0", | ||
"babel-plugin-transform-regenerator": "^6.26.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-polyfill": "^6.23.0", | ||
"babel-preset-env": "^1.2.2", | ||
"babel-preset-es2015": "^6.24.0", | ||
"babel-preset-es2017": "^6.22.0", | ||
"clean-webpack-plugin": "^0.1.16", | ||
"core-js": "^2.4.1", | ||
"clean-webpack-plugin": "^0.1.17", | ||
"core-js": "^2.5.0", | ||
"es6-shim": "^0.35.3", | ||
"eslint-config-airbnb": "^6.0.2", | ||
"fastclick": "^1.0.6", | ||
"foundation-sites": "^5.5.3", | ||
"grunt": "^0.4.5", | ||
"grunt-eslint": "^18.0.0", | ||
"grunt-karma": "^0.12.2", | ||
"grunt-scss-lint": "^0.3.8", | ||
"grunt-svgstore": "^0.5.0", | ||
"html5-history-api": "^4.2.7", | ||
"eslint": "^4.8.0", | ||
"eslint-config-airbnb": "^16.0.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.2", | ||
"eslint-plugin-react": "^7.4.0", | ||
"grunt": "^1.0.1", | ||
"grunt-eslint": "^20.0.0", | ||
"grunt-karma": "^2.0.0", | ||
"grunt-scss-lint": "^0.5.0", | ||
"grunt-svgstore": "^1.0.0", | ||
"jasmine-core": "^2.2.0", | ||
"jquery": "^2.2.1", | ||
"jquery-zoom": "^1.7.15", | ||
"jstree": "vakata/jstree", | ||
"karma": "^0.13.22", | ||
"karma-babel-preprocessor": "6.0.1", | ||
"karma-coverage": "0.2.7", | ||
"karma-es6-shim": "0.2.3", | ||
"karma-jasmine": "0.3.7", | ||
"karma-phantomjs-launcher": "1.0.0", | ||
"karma": "^1.7.0", | ||
"karma-babel-preprocessor": "^7.0.0", | ||
"karma-coverage": "^1.1.1", | ||
"karma-es6-shim": "^1.0.0", | ||
"karma-jasmine": "^1.1.0", | ||
"karma-phantomjs-launcher": "^1.0.4", | ||
"karma-sourcemap-loader": "0.3.7", | ||
"karma-verbose-reporter": "0.0.2", | ||
"karma-webpack": "^2.0.2", | ||
"lazysizes": "3.0.0", | ||
"load-grunt-config": "0.17.1", | ||
"lodash": "^3.5.0", | ||
"karma-verbose-reporter": "0.0.6", | ||
"karma-webpack": "^2.0.4", | ||
"load-grunt-config": "^0.19.2", | ||
"lodash-webpack-plugin": "^0.11.2", | ||
"nod-validate": "^2.0.12", | ||
"pace": "hubspot/pace#a03f1f1de62c9cea6c88b2267b8d7a83858b6cb6", | ||
"regenerator-runtime": "^0.10.3", | ||
"slick-carousel": "1.5.5", | ||
"sweetalert2": "^6.6.5", | ||
"regenerator-runtime": "^0.11.0", | ||
"time-grunt": "^1.2.2", | ||
"uglify-js": "^2.8.14", | ||
"webpack": "^2.2.1" | ||
"uglify-js": "^3.0.28", | ||
"webpack": "^3.6.0" | ||
} | ||
} |
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these new additions are here so that we don't need to fix all these lint issues from the new version of airbnb's linter which marks them as errors by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before adding this, can you try using
eslint --fix
option? to see what can be automatically fixedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcampa i ran through and tried
fix
after removing each of these one-by-one and was able to auto-fix a few of them. we could create tickets or issues to go in and correct the others