Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit e8af2ab

Browse files
ankur22inancgumusandrewslotin
authored
Release v0.7.0 (#676)
* 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>
1 parent 9884e91 commit e8af2ab

File tree

4 files changed

+77
-4
lines changed

4 files changed

+77
-4
lines changed

browser/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
k6modules "go.k6.io/k6/js/modules"
1414
)
1515

16-
const version = "0.6.0"
16+
const version = "0.7.0"
1717

1818
type (
1919
// RootModule is the global module instance that will create module

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c
1414
github.com/sirupsen/logrus v1.9.0
1515
github.com/stretchr/testify v1.8.0
16-
go.k6.io/k6 v0.41.1-0.20221206194017-a2ab89abfdc8
16+
go.k6.io/k6 v0.42.0
1717
golang.org/x/exp v0.0.0-20221106115401-f9659909a136
1818
golang.org/x/net v0.1.0
1919
gopkg.in/guregu/null.v3 v3.5.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
255255
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
256256
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
257257
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
258-
go.k6.io/k6 v0.41.1-0.20221206194017-a2ab89abfdc8 h1:f+N9YUGTs4iM0PcVwJSkvLX9gYsD7GK3wJyxDtzp4C4=
259-
go.k6.io/k6 v0.41.1-0.20221206194017-a2ab89abfdc8/go.mod h1:tox3idIlfur6nCoqZ6kruwisLIM8J/EEguuwVw/b/5c=
258+
go.k6.io/k6 v0.42.0 h1:TXYyaNPI5GuX2k+r0EDqawdAkdU2Kuxl68GpBbwSkUk=
259+
go.k6.io/k6 v0.42.0/go.mod h1:BY6vVmsNSaetHmPqQ8D6VMJJRptzwevdSpURQmSkrMQ=
260260
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
261261
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
262262
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=

release notes/v0.7.0.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
xk6-browser v0.7.0 is here! :tada:
2+
3+
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.
4+
5+
6+
## Experimental Module Merge into k6
7+
8+
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.
9+
10+
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.
11+
12+
13+
## Bugs fixed
14+
15+
- `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))
16+
17+
18+
## New features
19+
20+
- `xk6-browser` will now automatically dismiss dialog boxes (`alert`, `confirm`, `prompt`, and `beforeunload`). ([#663](https://github.com/grafana/xk6-browser/pull/663))
21+
22+
23+
## Improvements
24+
25+
- Improved launching of a browser without providing any options. ([#649](https://github.com/grafana/xk6-browser/pull/649))
26+
27+
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.
28+
29+
With the empty object:
30+
31+
```js
32+
const browser = chromium.launch({});
33+
```
34+
35+
Without the empty object:
36+
37+
```js
38+
const browser = chromium.launch();
39+
```
40+
41+
42+
### Documentation
43+
44+
- Updated the demo video on our README. ([#639](https://github.com/grafana/xk6-browser/pull/639))
45+
46+
Now it shows the usage for xk6-browser version v0.6.0 and above.
47+
48+
- Simplified the README. ([#656](https://github.com/grafana/xk6-browser/pull/656))
49+
50+
You can now find the documentation [here](https://k6.io/docs/javascript-api/xk6-browser/).
51+
52+
- Updated the project roadmap. ([#658](https://github.com/grafana/xk6-browser/pull/658))
53+
54+
55+
## Internals
56+
57+
- Upgraded `k6` dependency to `v0.42.0`. ([#?](https://github.com/grafana/xk6-browser/pull/?))
58+
59+
- Refactored the lifecycle events code. ([#647](https://github.com/grafana/xk6-browser/pull/647), [#644](https://github.com/grafana/xk6-browser/pull/644))
60+
61+
This shouldn't change any existing behavior, but if you notice anything that doesn't work as expected, please let us know.
62+
63+
- Cleanup unused dependencies. ([#674](https://github.com/grafana/xk6-browser/pull/674))
64+
65+
### Experimental Module Merge into k6
66+
67+
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):
68+
69+
- `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))
70+
71+
- `xk6-browser` can now be disabled via configuration, e.g. in restricted environments. ([#665](https://github.com/grafana/xk6-browser/pull/665))
72+
73+
- Fixed `k6` network `Hosts` incompatibility. ([#671](https://github.com/grafana/xk6-browser/pull/671))

0 commit comments

Comments
 (0)