Releases: happo/happo.io
v8.3.2
v8.3.1
- Upgrade node dependencies to their latest patch versions.
- Upgrade jsonwebtoken to 9.0.0 to fix vulnerability GHSA-qwph-4952-7xr6
v8.3.0
v8.2.0
v8.1.1
v8.1.0
This minor release adds support for a new afterSyncComparison
function that you can define in .happo.js
. It gets called when a comparison has been made (but only when HAPPO_IS_ASYNC=false
). It gets called with an object having this format: https://happo.io/docs/api#Comparison
Thanks to @wokayme for the contribution!
v8.0.0
v7.3.0
v7.2.1
v7.2.0
This version allows targets
in .happo.js
to be plain objects as opposed to instances of RemoteBrowserTarget
. This will allow users to run happo using npx -p happo.io happo run
without having happo.io
installed locally.
Here's an example of what .happo.js
can look like when it has no dependency on RemoteBrowserTarget
:
module.exports = {
apiKey: process.env.HAPPO_API_KEY,
apiSecret: process.env.HAPPO_API_SECRET,
pages: [{ url: 'https://beteendelabbet.se/', title: 'Beteendelabbet' }],
targets: {
'chrome-large': {
browserType: 'chrome',
viewport: '800x600',
},
},
};
This is equivalent to the regular way of using targets
:
const { RemoteBrowserTarget } = require('happo.io');
module.exports = {
apiKey: process.env.HAPPO_API_KEY,
apiSecret: process.env.HAPPO_API_SECRET,
pages: [{ url: 'https://beteendelabbet.se/', title: 'Beteendelabbet' }],
targets: {
'chrome-large': new RemoteBrowserTarget('chrome', {
viewport: '800x600',
}),
},
};
If you are using npx
to run happo in CI, you might have to set the HAPPO_COMMAND
environment variable as well to get things to work.
HAPPO_COMMAND="happo" npx -p happo.io happo-ci-circleci