-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
Upgrade prototype to version 1.7.3 #1497
Conversation
This update is long overdued. When I compare the official version here with this PR version, there are lots of discrepancies, all due to 2-spaces indent in the original versus the 4-spaces indent in the PR version. No biggie, but wouldn't it be better to use the official file as is? I think it'll help to verify the file easier. |
Just FYI I applied the same update to a different Magento-based project just now that has a fairly rigorous suite of functional tests using Cypress and it passed just fine. |
@kiatng Fixed :-) I did not realise, that PHPStorm reformated file |
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.
Thank you!
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.
Compared old and new version with original source
this update of prototype from 1.7 to 1.7.3 break many things with 3rd party extension like proxyblue recaptcha, firecheckout and i also see many issues opened related to this change. so...i can ask why this update? there was some security / performance reason? maybe we can mantain original version in the 19.4.15 release? related issues 3rd party extensions: also in proxyblue recaptcha |
Prototype.js 1.7 is not compatible with vuejs, but 1.7.3 is. That is the reason I needed the upgrade. |
@kiatng but vuejs is not used in magento (it would be great if it were 😅), it's for more specific 3rd party extension not compatibile with original magento? |
I have 1.7.3 in production for more than a year now, there's no issue with OM so far. For BC to 3rd party extensions, perhaps we can revert prototype.js in ver 19? And keep 1.7.3 in ver 20? |
my opinion is to revert to original prototype.js version because there is no real improvment or security issues and have a big impact in many areas, even because we had to be rewritten original library for issues with serialize function but I leave the choice to the maintainers @colinmollenhour @Flyingmana @LeeSaferite @drobinson @tmotyl @sreichel |
If it breaks something, please revert - at least for 19.x branch. |
@empiricompany What is the difference between EDIT: no mention of I think supporting Vue, a widely used library on the same playing field as jQuery, is a strong reason to keep the latest version. Neither Vue or If using The most obvious resolution would be to keep the old in v19 and the new in v20. |
yes it is more correct to use input[type=tel] and the problem with firecheckout is solved (I will report it to them). |
@empiricompany Ref prototypejs/prototype#337, v1.7.3 is not just for vuejs. |
thanks @kiatng this seems to me a more correct reason to update from my point of view |
After this PR was merged, comments appeared in which issues related to functionality were reported. There were also some requests for revert. Because Prototype was updated in Magento 2 to the same version, I think we should analyze if they used the version from this PR or a modified one. Here is the PR merged in Magento 2 magento/magento2#33480 |
I made a comparison between the two files and went through it carefully. I didn't find any differences except for some of the shape, added/deleted spaces or lines. I recommend those who have issues with this PR to post them in the Issues section, also to follow the messages displayed in the browser console. |
Description (*)
Upgrade prototype from version
1.7
to1.7.3
http://prototypejs.org/
Contribution checklist (*)