penthouse

Generate critical css for your web pages

MIT License

Downloads
138.5K
Stars
2.6K
Committers
34

Bot releases are visible (Hide)

penthouse - 2.3.3 Latest Release

Published by pocketjoso over 2 years ago

#320 - check if viewport is defined (thanks simllll)
#343 - fix crashes when element doesn't have style attribute (thanks lucasrla)

#344 - add page goto option for puppeteer (thanks bv-sumit)

And dependabot upgrades. See all changes:
https://github.com/pocketjoso/penthouse/compare/v2.3.2...v.2.3.3

penthouse - 2.3.2 bugfix: font-name case sensitivity in filtering

Published by pocketjoso about 4 years ago

#310 - fixes incorrect case sensitivity for font-family declarations, which could cause @font-face declarations to be incorrectly filtered out from the critical css, when usage had non-matching case.

penthouse - 2.3.1 - bugfixes

Published by pocketjoso about 4 years ago

#305 - interceptedRequest.url should be a function call
#303 - fix(browser): call getBrowser each time

penthouse - 2.3.0 - bump puppeteer to v2

Published by pocketjoso over 4 years ago

#302 - bump puppeteer. (to 2.1.1)

Note: Advised minimum node version (package.json.engines) was increased from 8 to 8.16.

penthouse - 2.2.4 - negative media query prune fix

Published by pocketjoso over 4 years ago

see #300 for details.

Also included dependency security fix: #297

penthouse - 2.2.2 - media query prune fix & dep upgrades

Published by pocketjoso about 5 years ago

#291 - Properly test min-max media queries for critical CSS inclusion

(dev) dependency upgrades.

penthouse - 2.2.0

Published by pocketjoso over 5 years ago

Released as [email protected].

Minor Changes

  • #284: allowedResponseCode option implemented
  • #289: added forceExclude option
  • #290: package upgrades, including [email protected]
penthouse - 2.0.0 - drop node 6 support

Published by pocketjoso over 5 years ago

End of life for Node 6 is coming soon, bumping minimum required node version to 8.
To keep using penthouse on Node 6, stay on an 1.x version.

penthouse - 1.11.1 - dependency upgrades

Published by pocketjoso over 5 years ago

most notably [email protected].

penthouse - 1.11.0 - catch errors starting browser

Published by pocketjoso over 5 years ago

de57e060737681e7b8e50d12f658cee9a402e25e - handle uncaught exceptions from launching puppeteer browser

penthouse - 1.10.2 - dependency updates

Published by pocketjoso almost 6 years ago

penthouse - 1.10.1

Published by pocketjoso almost 6 years ago

Fixes a race condition issue where the browser instance penthouse re-uses between parallel executions could be closed unexpectedly. See https://github.com/pocketjoso/penthouse/pull/279 for more details.

Patches

  • Internal job counter determining if should close browser: 8dbfb39fac199974d21b20f20a39374ae7276ff2
  • Fix: rm unused argument: 88ee53d6c1fc630ebf0f72e2725ff835440837aa
penthouse - 1.10.0 - cookies support

Published by pocketjoso almost 6 years ago

Minor Changes

  • Add support for cookies: 7b88f33af8f4b99c8649c4cfc4736471476d60ab

Patches

  • Bugfix: ensure rejecting if puppeteer page crashes: cb51e9edc543baf819a8ea2261229b46e2a1d4c8
penthouse - 1.9.1 - renderWait fix for screenshots

Published by pocketjoso about 6 years ago

One of the things the renderWait prop can be useful for is to wait extra for things to load before taking the first screenshot. For no particular reason this was not possible before (the screenshot was taken before renderWait - now this was changed.

Patches

  • Update deps: 6bfdb8367c940bd524ac3731de195a5a74c73208
  • Wait for renderWait before taking before screenshot: b66924fd26d7e99af5fb439321accdaca72d764b
penthouse - 1.9.0 - bug fixes

Published by pocketjoso about 6 years ago

Bumping minor because of 28f39f15315950e1c8f6eebed09fdc81446aafee:
Penthouse used to override and set exit code 0 via exit listeners, even if parent process was killed with another exit code. Someone could have relied on this, although I would argue it's a bug. Now Penthouse no longer overrides the exit code.

Minor Changes

  • Exit handler, re-use exit code: 28f39f15315950e1c8f6eebed09fdc81446aafee

Patches

  • Ensure process listeners are removed: 635f45c4a3ef1dd9c91d003a4a2aeb0c1b4e2929
  • Bug: puppeteer timeout was not muted in some cases: a7356eac87663e840facaf6bcc835b8a1a4ddc18
penthouse - 1.8.2

Published by pocketjoso about 6 years ago

Primarily a puppeteer upgrade to 1.8.0.

Patches

  • Update dev deps: 422c6cdb347dc1eb8361255c151cffb3c403bc4b
  • [email protected]: 9ca14ddf80b3776f772c2ae192cfabf1b1bdb900
  • Remove previous puppeteer workaround, no longer needed: 0ef8eced5940aa65480cccc45869be7bdacf9f62
penthouse - 1.8.1 - minor fixes and https error workarounds

Published by pocketjoso about 6 years ago

Patches

6c8a5ab workarkound for https errors and setRequestInterception problems (origin/timeout-fixes)
fe64f9b core: avoid further execution when process has timed out
27a3db4 core: align promise.resolve usage
cf00864 reset reused pages after errors
8359510 core: fully disable puppeteer navigation timeouts

penthouse - 1.8.0

Published by pocketjoso about 6 years ago

Had to downgrade puppeteer, and re-wrote puppeteer browser handling. Penthouse now re-uses the page puppeteer launches with, and is capable of re-using pages between penthouse calls (only used in unstableKeepAlive mode, for now).

Minor Changes

  • Downgrade to [email protected]; 1.7 causes new timeouts for some sites: 99f1a038a2560d15e4bb701a4a5909b4608c036f

Raised an issue for this here:
GoogleChrome/puppeteer#3118

  • In unstableKeepBrowserAlive mode, re-use prev opened browser page: 086a1b5b530ca7b7ca01fd8f0d7eba7edc7ec377

Patches

  • Mv browser page open calls: c3f1ffa2cdd09e30f79067f05bf41d2ce1258c1e
  • Mv page.close calls: 7363632ce829f3182b8704dbe878d3f2b9442416
  • Separate code managing browser, including browser pages: 8268eeffdb56b0e7a05079dc9a24ba7e3da3b300
  • Browser: use Puppeteer for counting browser pages: c2c4faa97f0d4a8148afcceeea1fec9170964cd4
  • Tests: rm case no longer applicable: 065753e0fc41f2ca8d6b3488b6566f9ca66a530a
penthouse - 1.7.1 - 1.7.3

Published by pocketjoso about 6 years ago

Primarily dependency upgrades. Patched twice as I tagged the wrong branch and this was the easiest solution. 🙃

Patches

  • Merge pull request #269 from pocketjoso/puppeteer-1.7-default-viewport: 8a8eb0df1d68914cbf6021d9c30c4052588c9831
  • Take puppeteer bug fix: 0881697aff6d600ba95da19a1dc2450b84637024
penthouse - 1.7.0

Published by pocketjoso about 6 years ago

#267 -package upgrades, including [email protected]. Also bumped minimum Node requirement to 6.14, and fix a babel warning (regarding specifying node format as a float, instead of string).

Package Rankings
Top 1.1% on Npmjs.org
Top 6.75% on Proxy.golang.org
Badges
Extracted from project README
NPM version Build Status Downloads
Related Projects