Releases: harlan-zw/unlighthouse
v0.10.1
v0.10.0
Bug Fixes
- deprecate integrations (d9c5c06)
Features
New authenticate
hook (c7afd0c)
Works the same as the previous puppeteer:before-go-to
hook but this will only be called a single time before any routes are scanned. It will automatically collect any set cookies and local storage items during the hook.
// unlighthouse.config.ts
export default {
hooks: {
async authenticate (page) {
// login to the page
await page.goto('https://example.com/login')
const emailInput = await page.$('input[type="email"]')
await emailInput.type('[email protected]')
const passwordInput = await page.$('input[type="password"]')
await passwordInput.type('password')
await Promise.all([
page.$eval('.login-form', form => form.submit()),
page.waitForNavigation(),
])
},
},
}
v0.9.0
Features 🚀
default-query-params
(ecb6120) (#133)
Provide query params to all of your requests. Useful for skipping cookie banners, authentication, etc.
export default {
// ?foo=bar added to all requests
defaultQueryParams: {
foo: 'bar',
}
}
You can read more on the authentication page.
New reporters: csv
, csvExpanded
(61b8962) (#63)
When using the CI mode you can now generate CSV reports, in the following formats:
csv
- path, score, category scorescsvExpanded
- path, score, category scores, column output
For example
unlighthouse-ci --site <site> --reporter csv
The json
report will now output the category scores as well.
You can read more on the reporting page.
Bug Fixes
v0.8.7
v0.8.6
v0.8.5
--build-static
option with any sensitive cookies or headers. Please use npx [email protected] --site <site> --build-static
to regenerate.