Fantômas contre Scotland Yard
This release introduces phantomas as CommonJS module that can be used directly from your nodejs project. Read more in API docs and in #152.
Other improvements and new features:
- running
phantomas -h
will now print out nice usage help - phantomas supports "native" PhantomJS options to be passed when running a report. Setting HTTP proxy (
--proxy
) or providing JAR file for storing cookies (--cookies-file
) is now possible. - CSS analyzing script is now developed as a separate project (it's of course still used when
--analyze-css
option is passed) - phantomas can now wait for a given element being present on the page (via CSS selector) - #144
- when being run in Travis CI environment phantomas will fold the output - #141
- thanks to #167 more metrics emit its specific information as offenders instead of notices
Files layout has changed a bit. phantomas.js
"binary" is now located in bin/
directory. Please update your symlinks if you're pointing directly to git checkout. Users of npm package should not notice this change at all.
Grunt plugin
And last, but not least. @stefanjudis created phantomas plugin for Grunt that gathers and visualizes historical webperf data - an example. Definitely worth checking!
Changelog
New metrics
- #111 - Report outdated CSS prefixes
- #166 - Add "X-cache: PASS" support in cacheHits module (by @kennydee)
Improvements
- #139 - Allow specifying Http Proxy (reported by @heynemann)
- #141 - Add Travis folds to output (@LaurentGoderre)
- #144 - Wait for a given CSS selector before generating a report
- #163 - Passing through Phantomjs options (as suggested by @plasticine)
- #167 - Port modules to offenders framework
- #178 - Use PhantomJS native cookie JAR support
- #184 - Adding --film-strip-dir param to configure film strip output dir (by @iNem0o)
Bug fixes
- #160 - phantomas.getDOMPath throws 'null' is not an object (evaluating 'node.nodeName')
Internals
- #152 - node.js module for spawning phantomas process and getting results
- #161 - Use optimist npm module for handling phantomas options
- #169 - Integrate analyze-css npm module
- #185 - Structure cleanup
- #187 - Create async queue that will trigger reports generation