-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Update knockout #11269
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 knockout #11269
Conversation
What's the reasoning behind this change? There were any bugs affecting Magento? |
This is irrelevant. Main points to take into account:
I remember there was some bug with blur and autocompletion but last time I checked it was not fixed in knockout yet. |
Is there any timeline for this by the way? In terms of fixing possible problems caused by update it may be worth do it only once 3.3 -> 3.5. |
the only breaking change that i've found is knockout/knockout#1380 and i think i've fixed all the related problems in 216b595
good point, hard to say
the main new features are:
well, i may agree with you, but this is what we have now, do we have alternatives?
if you remember some specific case to test i'll take a look.
no dates, but it should not be so far away https://github.com/knockout/knockout/milestone/9
if we upgrade to 3.4.2 now and fix what we need, we will have less problems to fix with 3.5 |
I mean just stick to subset of knockout features used instead of using it in full force :) But observables performance improvement by itself looks worth updating.
Here it is: #6826 (comment) Not sure if it is fixed on Magento side already.
Yeah, for sure, just that it would be nice to execute full regression testing cycle only once instead of for both such updates |
thanks, i'll do some tests |
@orlangur I've tested with Safari 11 and Chrome 61, i could't reproduce the issue you linked |
@omiroshnichenko could you please take a quick look on these changes? Do you think they may be introduced in patch release or |
@orlangur This update can affect many important places that not covered by tests and we don't know what hidden issue is present in new versions of knockout. So I think such update is not good for patch releases, better to have it in develop branch. |
@omiroshnichenko thanks for your input. Yeah, I was quite surprised no functional test was broken running on Bamboo :) |
[EngCom] Public Pull Requests - develop - MAGETWO-82942: Send email to subscribers only when are new #11604 - MAGETWO-82752: Fixes translations by re-running the loadData for its correct locale #10913 - MAGETWO-82460: Fix AcountManagementTest unit test fail randomly #11605 - MAGETWO-82070: Update knockout #11269
@slackerzz big thanks for your contribution! Hope it won't break too much functionality not covered by automated tests but anyway the earlier we merge - the better 👍 |
Upgrade knockoutjs to 3.4.2.
This is still the debug version because we use
ko.utils.cloneNodes
in engine.jsWe have to wait until knockout/knockout#2248 gets released with knockout 3.5.
Alternatively we can refactor
RemoteTemplateEngine.prototype.renderTemplateSource
inengine.js
and switch to the knockout standard release.Contribution checklist