Skip to content

Releases: harlan-zw/unlighthouse

v0.10.0

21 Jul 10:55
Compare
Choose a tag to compare

Bug Fixes

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

16 Jun 07:37
Compare
Choose a tag to compare

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 scores
  • csvExpanded - 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

  • client: drop vue-router (6c1b931), closes #118
  • increase dynamicSampling default to 8 (779c7f5)

v0.8.7

30 May 16:40
Compare
Choose a tag to compare

Bug Fixes

  • core: delete artifacts recursively, allowing route requeuing (#127) (5bfdbef)

v0.8.6

24 May 03:03
Compare
Choose a tag to compare

Bug Fixes

  • avoid disabling crawler from different origin sitemap entries (83896af)

v0.8.5

24 May 02:45
Compare
Choose a tag to compare

⚠️ This release includes an important security fix if you're using the --build-static option with any sensitive cookies or headers. Please use npx [email protected] --site <site> --build-static to regenerate.

Bug Fixes

  • client: avoid exposing sensitive config when using --build-static (6f2cb0d), closes #119

v0.8.4

22 May 10:13
Compare
Choose a tag to compare

Bug Fixes

  • ci: decrease verbosity of reporter expandedJson with new metadata by @mastoj in #117

v0.8.3

22 May 07:22
Compare
Choose a tag to compare

Bug Fixes

  • avoid disabling the crawler if we're scanning localhost (9c31ead)

v0.8.2

22 May 05:03
Compare
Choose a tag to compare

Bug Fixes

v0.8.1

21 May 15:11
Compare
Choose a tag to compare

Bug Fixes

  • ci: expandedJson summary should only have avg (#114) (37d5c86)

v0.8.0

20 May 09:10
Compare
Choose a tag to compare

Features 🚀

CI: New JSON Reporting Format #111

When running the CI a simple JSON report is generated at ./.unlighthouse/ci-options.json. This report can be consumed by other tools for your own purposes but it's very limited in terms of data.

With this release we introduce new infrastructure to support other reporters and the first new reporter: jsonExpanded.

This new format includes a lot more detail and can be used to generate more creative integrations.

You can opt into this new report using the command line with --reporter jsonExpanded, or the config using ci.reporter: 'jsonExpanded'. With the v1 release, this will become the new default.

Big thanks to @mastoj for his initiative and work on this.