Skip to content
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

Update for node iron lts #155

Merged
merged 9 commits into from
Sep 30, 2024

Conversation

mattgoud
Copy link
Contributor

Upgrade node modules

  • Upgrade some packages + audit fix (reduce some security warnings) to prepare for the transition to node 20
    (see #37041 )
  • fix style (due to bootstrap-touchspin upgrade )
Questions Answers
Description? upgrade node modules
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? related #34058
Sponsor company Your company or customer's name goes here (if applicable).
How to test? Indicate how to verify that this change works as expected.

@mattgoud mattgoud added dependencies Pull requests that update a dependency file task labels Sep 27, 2024
@ps-jarvis
Copy link

Hello @mattgoud!

This is your first pull request on classic-theme repository of the PrestaShop project.

Thank you, and welcome to this Open Source community!

@mattgoud mattgoud assigned Progi1984 and unassigned Progi1984 Sep 27, 2024
@mattgoud mattgoud requested a review from Progi1984 September 27, 2024 15:02
@Progi1984 Progi1984 removed their request for review September 27, 2024 15:03
@Progi1984 Progi1984 removed their request for review September 27, 2024 15:05
.hintrc Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be put in the _dev folder along with the package.json file and all the other configs?

@@ -150,8 +150,6 @@
width: auto;

.btn {
padding: 0.5rem 0.6875rem;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this one? This seems like an UX change not required for the Node 20 compatibility no?
Unless this is related to the bootstrap-touchspin update you mentioned?

}

.ui-autocomplete.ui-front {
z-index: 999;
}

.btn.btn-touchspin.js-touchspin.bootstrap-touchspin-up {
border-radius: 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as above, what is the link between this and the Node 20 compatibility?

_dev/js/cart.js Outdated
@@ -72,8 +72,8 @@ function createSpin() {
$.each($(spinnerSelector), (index, spinner) => {
$(spinner).TouchSpin({
verticalbuttons: true,
verticalupclass: 'material-icons touchspin-up',
verticaldownclass: 'material-icons touchspin-down',
verticalupclass: 'glyphicon glyphicon-plus',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this change the style of all the icons?
Is it also because of bootstrap-touchspin update?

"css-loader": "^6.7.1",
"csso-webpack-plugin": "^2.0.0-beta.3",
"esbuild-loader": "^2.15.1",
"bootstrap-touchspin": "^4.7.3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so bootstrap version was not changed, which is critical here for backward compatibility of all the modules.

I wonder if bootstrap-touchspin should be updated. For the same reason, updating to a new major version maybe bring some breaking changes. Is it possible to keep the same major version? Or was it not possible because of Node 20 update?

jolelievre
jolelievre previously approved these changes Sep 30, 2024
@ps-jarvis ps-jarvis added the Waiting for QA Status: Waiting for QA feedback label Sep 30, 2024
@florine2623 florine2623 added QA ✔️ Status: QA-Approved and removed Waiting for QA Status: Waiting for QA feedback labels Sep 30, 2024
@florine2623
Copy link

No need functional testing :) ok to be merged

@jolelievre jolelievre merged commit fb07f25 into PrestaShop:develop Sep 30, 2024
6 checks passed
@ps-jarvis
Copy link

PR merged, well done!

Message to @PrestaShop/committers: do not forget to milestone it before the merge.

@jolelievre
Copy link
Contributor

Thanks @mattgoud

@jolelievre jolelievre added this to the 3.0.0 milestone Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file QA ✔️ Status: QA-Approved task
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants