Releases: projectwallace/extract-css-core
Releases · projectwallace/extract-css-core
v3.0.0
Breaking
- This package now requires Node >= 12
- When using
origins: 'include'
,link-or-import
is now eitherlink
orimport
Improvements
- Add option to exclude inline styles by @bartveneman in #51
- More bulletproof extracting by droppping the CSSCoverage API (Replace coverage API with recursive document.stylesheets by @bartveneman in #57)
- BREAKING: Replace ava with uvu by @bartveneman in #49
- handle server timeouts by @bartveneman in #52
What's Changed
- Upgrade deps by @bartveneman in #44
- Bump normalize-url from 5.3.0 to 5.3.1 by @dependabot in #46
- Update dependencies by @bartveneman in #48
- adds regression test by @bartveneman in #50
- Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #54
- Bump trim-off-newlines from 1.0.2 to 1.0.3 by @dependabot in #55
- Bump node-fetch from 2.6.1 to 2.6.7 by @dependabot in #56
Full Changelog: v2.3.1...v3.0.0
Custom Puppeteer User-Agent
This release sets a custom User-Agent
string for Puppeteer, as a workaround for websites that block Puppeteer when the default User-Agent string contains HeadlessChrome
.
add option to include css origins
When passing origins: 'include'
, extractCss will give you an array of all the entries of CSS it found, including where and how, like link tags, style tags, CSS @imports or inline styles.
Update dependencies, replace CI
Inline styles + @import support
Commits:
- fix error when referencing a css file directly (#27) 5562fcb
- Improve tests and coverage of extracting (#25) 776e315
- add another note about inline styles 796c88a
- Add note about inline styling 4763493
- add support for fetching inline styles (#23) c46a9df
- add support for fetching @import rules (#22) 86dcd8c
- improve test file structure (#21) 8d70f62
- fixes incorrect explanation in readme 8daed2f
- Fix unit test for CSS-in-JS (#19) 04758f1
Commit Range:
v2.0.0...master
v2.0.0-beta.1
v2.0.0-beta.1
CSS-in-JS support 👩🎤
- Adds support for CSS that is added to the DOM via
CSSStyleSheet.insertRule()
API, used by many commonly used CSS-in-JS solutions like Emotion or Styled Components. - Update dependencies
v1
v1.0.0 1.0.0
initial release
v0.1.0 0.1.0