Skip to content

Commit

Permalink
Release v0.7.0 (#676)
Browse files Browse the repository at this point in the history
* Update the version to v0.7.0 in browser/module
* Add the v0.7.0 release notes
* Update to the latest release version of k6

Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
Co-authored-by: Andrey Slotin <andrew.slotin@grafana.com>
  • Loading branch information
3 people committed Dec 21, 2022
1 parent 9884e91 commit e8af2ab
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 4 deletions.
2 changes: 1 addition & 1 deletion browser/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
k6modules "go.k6.io/k6/js/modules"
)

const version = "0.6.0"
const version = "0.7.0"

type (
// RootModule is the global module instance that will create module
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c
github.com/sirupsen/logrus v1.9.0
github.com/stretchr/testify v1.8.0
go.k6.io/k6 v0.41.1-0.20221206194017-a2ab89abfdc8
go.k6.io/k6 v0.42.0
golang.org/x/exp v0.0.0-20221106115401-f9659909a136
golang.org/x/net v0.1.0
gopkg.in/guregu/null.v3 v3.5.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
go.k6.io/k6 v0.41.1-0.20221206194017-a2ab89abfdc8 h1:f+N9YUGTs4iM0PcVwJSkvLX9gYsD7GK3wJyxDtzp4C4=
go.k6.io/k6 v0.41.1-0.20221206194017-a2ab89abfdc8/go.mod h1:tox3idIlfur6nCoqZ6kruwisLIM8J/EEguuwVw/b/5c=
go.k6.io/k6 v0.42.0 h1:TXYyaNPI5GuX2k+r0EDqawdAkdU2Kuxl68GpBbwSkUk=
go.k6.io/k6 v0.42.0/go.mod h1:BY6vVmsNSaetHmPqQ8D6VMJJRptzwevdSpURQmSkrMQ=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
Expand Down
73 changes: 73 additions & 0 deletions release notes/v0.7.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
xk6-browser v0.7.0 is here! :tada:

We've been busy preparing for big changes in the future, so this minor release is smaller than usual. It contains a new feature to unblock users using `dialog` boxes, a fix, and internal improvements.


## Experimental Module Merge into k6

We're excited to reveal that in an upcoming future release of `k6` you will be able to run browser tests -- we're merging `xk6-browser` into `k6`. The merge will expose the browser tests via an experimental module importable with `k6/experimental/browser`, so expect a small breaking change there. We now have a solid foundation, and to help us shape it into a better tool we need more people to use it; this is why we're doing the merge. It's worth noting that we're not merging the two code bases into a single one.

This might mean we will eventually stop releasing new versions of `xk6-browser` binaries, and instead point people to the latest release of `k6`. When it comes to building `xk6-browser` from source, that won't change, so you will still be able to build from source the same way you have been doing so already.


## Bugs fixed

- `xk6-browser` no longer panics when it navigates to a website that contains `iframes` which themselves navigate to a different origin to the main `frame` (e.g. a website containing an embedded Youtube video). ([#677](https://github.com/grafana/xk6-browser/pull/677))


## New features

- `xk6-browser` will now automatically dismiss dialog boxes (`alert`, `confirm`, `prompt`, and `beforeunload`). ([#663](https://github.com/grafana/xk6-browser/pull/663))


## Improvements

- Improved launching of a browser without providing any options. ([#649](https://github.com/grafana/xk6-browser/pull/649))

We couldn't launch a new browser without providing an empty object. We've fixed this, so now you can launch a new browser without an empty object.

With the empty object:

```js
const browser = chromium.launch({});
```

Without the empty object:

```js
const browser = chromium.launch();
```


### Documentation

- Updated the demo video on our README. ([#639](https://github.com/grafana/xk6-browser/pull/639))

Now it shows the usage for xk6-browser version v0.6.0 and above.

- Simplified the README. ([#656](https://github.com/grafana/xk6-browser/pull/656))

You can now find the documentation [here](https://k6.io/docs/javascript-api/xk6-browser/).

- Updated the project roadmap. ([#658](https://github.com/grafana/xk6-browser/pull/658))


## Internals

- Upgraded `k6` dependency to `v0.42.0`. ([#?](https://github.com/grafana/xk6-browser/pull/?))

- Refactored the lifecycle events code. ([#647](https://github.com/grafana/xk6-browser/pull/647), [#644](https://github.com/grafana/xk6-browser/pull/644))

This shouldn't change any existing behavior, but if you notice anything that doesn't work as expected, please let us know.

- Cleanup unused dependencies. ([#674](https://github.com/grafana/xk6-browser/pull/674))

### Experimental Module Merge into k6

Here are some internal changes that will help us achieve the merge goal in the near future (we still have some more work to do before we can do the merge):

- `xk6-browser` will not automatically be registered under `k6/x/browser`, and in the future it will be importable from `k6/experimental/browser`. ([#667](https://github.com/grafana/xk6-browser/pull/667))

- `xk6-browser` can now be disabled via configuration, e.g. in restricted environments. ([#665](https://github.com/grafana/xk6-browser/pull/665))

- Fixed `k6` network `Hosts` incompatibility. ([#671](https://github.com/grafana/xk6-browser/pull/671))

0 comments on commit e8af2ab

Please sign in to comment.