Modernizr 3.8.0
The nights are getting longer, time to publish a new version of Modernizr to keep the community warm. Besides the usual new feature detects and fixes to existing ones some stuff happened under the hood too:
- First, the build process was converted over to gulp since grunt and especially the test plugins are more or less abandoned. This allows to run the tests under the latest version of node and with all the latest libraries like jquery v3.
- Secondly, for the first time we deprecated two tests:
Unicode
andTouchevents
. The former didnt provide a real value and was more like an educated guess. The touchevents-test is often misinterpreted to test if the device is capable of touch events. But Modernizr tests for browser capability and although it clearly states that even in the test, people opened bugreports once we fixed a test in v3.7.1 that corrected the behaviour in chrome (see #2408) So we decided to deprecate those tests. That means that they are not included in the default build config anymore and their source code will be removed once we have a v4 of Modernizr (whenever that is, no ETA yet)
New Feature Detect(s)
- @pascalim added support for ShadowRoot DOM api feature detect through
shadowroot
andshadowroot-legacy
#2475
- @BrockBeaudry added proxy detection
#2459
- @horprogs added feature detect native lazy loading img
#2453
Fixes
- @Minilfat fixed vh unit issue on ios safari / android chrome
#1805
- @theLine fixed viewport jumping when using CSS Hyphens
#1781
- @listton fixed check if userAgent is empty
#2471
- @mrcoles fixed emoji devicePixelRatio vs backingStorePixelRatio
#2419
- @foolip fixed testProps.js documentation to avoid misreading
#2426
- @DominikTrenz fixed the datachannel test on ios #2307
#2307
Miscellaneous
- Deprecate some tests
#2472
- Add new CodeOfConduct
#2427
- Use addTest for some tests like inputtypes
#2469
- Catch exception when running in headless chrome
#2436
- Issue 2343: Fix github.io page
#2443
- Issue 2406: Update jquery
#2448
- Use gulp for the dev pipeline
#2429
- Add domPrefixesAll helper method
#2442
- Use gulp for the dev pipeline (#2429)
#2332
- Add script for serving the gh-pages (and therefore the browser tests) locally
6daed0f
- Update main entry in package.json
377a630
- Cleanups after switch to gulp, move some legacy files into own directory for reference, store some test files in tmp directory
c47441b
- Fix typo in README, Update dependencies and gitignore
a335662
- Cleanup TODO tags, update dependencies
8c5b557
- Add npm shortcuts to some gulp tasks
332a68b
- Check for multi-spaces with eslint, fix those and cleanup some DOCs and notes
6a2f425
- Add npm badge to README
1b95490
- Fix double DOC entry
7599d26
- Exit with non-zero status if there were failures
1818d61
- Add coveralls badge
4ee23c7