A brand new version of Modernizr has been released. According to the creators:
"Modernizr v.3 is not a mere version bump with some new additions; it is a complete architectural rewrite of the entire library and all of the 150+ community feature tests." Modernizr 3, Stickers & Diversity
In addition, they have added over 100 new detects. Modernizr 3: A new release and website.
I guess the question is whether we want to update so close to RC1. However, since this is a major version change with significant added functionality (the over 100 new detects), we may want to try to get it in now.
Comment | File | Size | Author |
---|---|---|---|
#21 | core-js-update-modernizr-2568387-21.patch | 12.92 KB | nod_ |
#20 | core-js-update-modernizr-2568387-20.patch | 12.92 KB | nod_ |
#17 | core-js-update-modernizr-2568387-17.patch | 12.81 KB | nod_ |
#4 | core-js-update-modernizr-2568387-4.patch | 9.51 KB | nod_ |
Comments
Comment #2
nod_Comment #3
nod_Comment #4
nod_Seems to be working.
Comment #5
webchickI think it makes sense to try and get it in now. Thanks for flagging it.
What sort of manual testing do we need to do to verify this doesn't break all the things though?
Comment #6
dawehnerOH, do we really want to update to an alpha release? I guess we will have a stable release when core gets out?
I just compared to usages we have which are Modernizr.touchevents, .inputevents and .details and they at least appear all on https://modernizr.com/docs
I guess the various things where we use it: tabledrag, contextual links, details and the date field could be tested with mobile browsers and maybe some old browsers?
Comment #7
nod_Nothing much actually, the API is the same except for a slight rename for "touch".
What is impacted:
Comment #8
nod_Umm css classes are used and changed name, don't have .touch anymore.
Comment #9
webchickOh, an alpha release. :\ Hm. Not sure about that... At least PHP-wise we try and stick to stable releases.
I think the proper thing to do would be to tag this as a target issue to get in during RC. It should also be critical, but probably not now. I think. I dunno. Will ping the other maintainers. :D
Comment #10
andypostLooks there's only 3 issues left for v3
Also would be great to get their roadmap
IS needs steps for manual testing
Comment #11
dcrocks CreditAttribution: dcrocks as a volunteer commentedThe Modernizr web site didn't indicate this was an alpha release so I asked. Their response was:
The only other possible issue is they switched from a BSD license to a MIT license, but that shouldn't matter.
ps. I did file an issue on their github.
Comment #12
TJacksonVA CreditAttribution: TJacksonVA commented@dcrocks, thanks for following up with the Modernizr team. Their response is consistent with what I have seen on the Modernizr website over the last couple of months, as the alpha/beta versions have been available for at least a few months for testing. This release is the stable release.
Comment #13
dcrocks CreditAttribution: dcrocks as a volunteer commentedThey have updated their builds so that they show the correct version:
/*! modernizr 3.0.0 (Custom Build) | MIT *
Comment #14
TJacksonVA CreditAttribution: TJacksonVA commentedAre we going to try to get this in before RC1?
Comment #15
nod_yes
Comment #16
xjmThis one needs framework manager review, I think. Hesitant about committing this during RC and about the alpha, but we should evaluate the benefit vs. risk/disruption etc.
Comment #17
nod_Stuff still works as expected. Just a CSS classname change. Modernizr had to change "touch" in "touchevents" because touch was ambiguous and people assumed it was detecting if the current device was a touch device, which is something that is not possible to do: http://www.stucox.com/blog/you-cant-detect-a-touchscreen/
Config used to build the release (you'd get the same thing when visiting this URL http://modernizr.com/download/?-details-inputtypes-touchevents-addtest-p...).
Comment #18
TJacksonVA CreditAttribution: TJacksonVA commented@xjm, this is not an alpha, but is a stable production release. Given the approximately 100 new detects in this version, I think we should try to get it in before RC1 if at all possible.
Comment #19
alexpott3.1.0 is out now...
Comment #20
nod_No change in the code built with the new version. All changes between 3.0.0 and 3.1.0 were on things we're not using.
Comment #21
nod_Forgot to update version in libraries.yml file
Comment #23
cosmicdreams CreditAttribution: cosmicdreams as a volunteer commentedBeyond the replacement of the library this is shocking little we have to convert in our js to use the new major revision. I searched for other api conversations that could have happened (with fresh eyes) and couldn't find any.
I think this is RTBC
Comment #24
webchickCan we get a quick round of manual testing? (Presumably playing around on a mobile device or older browser or whatever?)
Comment #25
cosmicdreams CreditAttribution: cosmicdreams as a volunteer commentedI have a Nexus 6 with Chrome, which should work fine (not a real good test). Does anyone have an iPhone or OldAndroid browser?
Comment #26
cosmicdreams CreditAttribution: cosmicdreams as a volunteer commentedTested with my Nexus 6 and noticed that the edit icon doesn't work. But that doesn't work without the patch either
Comment #27
nod_Testing Android 4.4 on an old Nexus S, Details, tabledrag, datefield works. same as #26 on the contextual links. Tested on chrome and the stock browser.
Funny thing, the toolbar has huge, enormous impact on page load speed. Almost unbearable on a slow phone like that we'll have to put it on diet.
Comment #28
alexpottWell Modernizr 3 is no longer in alpha - so unless we want a jquery situation we should move forward. I think we should have a change record which highlights the changes core has had to make.
Settign back to needs work to get the CR done.
Comment #29
effulgentsia CreditAttribution: effulgentsia at Acquia commentedI discussed this with @alexpott and @catch and we decided to promote to Critical, per issue summary of #2203431: [meta] Various asset (JavaScript) libraries have to be updated to a (minified) stable release prior to 8.0.0, because Modernizr 3.0 (actually 3.1 even) is now fully released.
Comment #30
cosmicdreams CreditAttribution: cosmicdreams as a volunteer commentedstarted the change record.
Comment #31
nod_Will post patch shortly
Comment #32
nod_After making my patch, just realized the last patch in #21 was already ok…
Had a look at the CR, looks good to me. The important points that impact us are the last 2 points around touchevents, the first two points of the CR are a general Modernizr API comment since what we're using and shipping with is not impacted.
Comment #33
nod_You can ignore patch #32 it's useless.
Comment #34
catchCommitted/pushed #21 to 8.0.x, thanks!
Comment #37
quietone CreditAttribution: quietone at PreviousNext commentedpublish the change record