From c4d61c0b61a29249bfab2c03bd9a6e84dab5c880 Mon Sep 17 00:00:00 2001 From: Nathanael Jones Date: Thu, 15 Jan 2015 22:30:14 -0500 Subject: [PATCH] Add release notes for 0.4.0, bump other versions. --- README.md | 5 +++-- bower.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f8b3844..0242c1f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Your wait for a sane, easily managed path to responsive images has now ended. Handles any viewport size and pixel density with ease. Yes, retina and retina-like displays are supported. -Our automated tests from the last API call - these may not even been a public commit - are below. Click to browse. +Our automated tests from the last API call - these may not even been a public commit - are below. Click to browse. IE6/7/8 *do* work, but not all features are supported. Please help us improve our automated tests and turn IE6/7/8 green! [![Selenium Test Status](https://saucelabs.com/browser-matrix/imazen.svg)](https://saucelabs.com/u/imazen) @@ -98,6 +98,7 @@ Quality adjustment is enabled by default if `&quality=` is in the query. * `widthStep` (160) - Caching is impossible unless we limit the number of image variations. The default, 160, gives us `160, 320, 480, 640, 800, 960, 1120, 1280, 1440, 1600, 1760, 1920, 2080(2048)` - 13 variants, and keeps bandwidth waste very low. * `jpegQuality` (90) - The jpeg compression quality to use on low-dpr displays ( < 1.5 dppx). * `jpegRetinaQuality` (80) - The jpeg compression quality to use on high-dpr displays, where artifacts are much less visible. +* `enforceCss` (false) **ALPHA** - Sets img.style.width to max the pixel value of the css `max-width` every time the img.src value is also updated. Only useful for emulating max-width on IE6/7/8, enable via conditional comments. ### Events and extensibility @@ -183,7 +184,7 @@ Feel free to fork and add links to your HTML filters/helpers here! Add window.slimmage.beforeAdjustSrc callback function - this allows users to inject behavior between noscript parsing and img.src edits. Replace adjustImageSrcWithWidth with getImageInfo, make adjustImageSrc responsible for more. Simplifies certain kinds of extension, such as background image support. * 0.2.6 - Fix typo causing ‘undefined’ is null error; affects 0.2.4+. -* 0.4.0 - Only fire `window.slimmage.readyCallback` on first `checkResponsiveImages()` and when there have been actual modifications to images. Add window.slimmage.webpTimeout to increase likelyhood of webp usage working. Disable verbose output by default. Apply `maxWidth` after `widthStep` instead of before (lowers upper bound from 2080 to 2048). Stop inverting jpeg and webp quality values. +* 0.4.0 - Only fire `window.slimmage.readyCallback` on first `checkResponsiveImages()` and when there have been actual modifications to images. Add window.slimmage.webpTimeout to increase likelyhood of webp usage working. Disable verbose output by default. Apply `maxWidth` after `widthStep` instead of before (lowers upper bound from 2080 to 2048). Stop inverting jpeg and webp quality values. Fix IE6/7 setAttribute bug; class value was not copied from noscript element. Add `window.slimmage.enforceCSS` setting; can emulate max-width on IE6/7/8, which lack an implementation. ### Contributor notes diff --git a/bower.json b/bower.json index 87cb4b7..a9a32d5 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "slimmage", "main": "slimmage.js", - "version": "0.3.0", + "version": "0.4.0", "homepage": "https://github.com/imazen/slimmage", "authors": [ "Nathanael Jones " diff --git a/package.json b/package.json index d9a069b..6875c00 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "slimmage", "description": "Sane responsive images in the browser", - "version": "0.3.0", + "version": "0.4.0", "homepage": "https://github.com/imazen/slimmage", "scripts": { "test": "grunt test",