@@ -5,6 +5,8 @@ If you are using Cucumber Scala 4.7.x and want to upgrade to 5.x, please note th
55Starting from version 5.x, Cucumber Scala will try to be as close as possible to the Cucumber Java implementation while remaining Scala oriented.
66This means that package names, parameters order, internal code... will be more consistent with the Java implementation.
77
8+ See also the [ CHANGELOG] ( https://github.com/cucumber/cucumber-jvm/blob/master/CHANGELOG.md ) from Cucumber Core.
9+
810## Packages
911
1012All Cucumber Scala classes are now under ` io.cucumber.scala ` package instead of ` cucumber.api.scala ` .
@@ -14,7 +16,7 @@ All Cucumber Scala classes are now under `io.cucumber.scala` package instead of
1416The ` Before ` , ` BeforeStep ` , ` After ` and ` AfterStep ` definitions have slightly changed:
1517- to apply only to scenarios with some tags, the ` String* ` parameter is replaced by a single tag expression of type ` String ` .
1618This changes comes from Cucumber itself.
17- - if providing both an order and a tag expression , the order is now the second parameter instead of the first.
19+ - if providing both an _ order _ and a _ tag expression _ , the _ order _ is now the second parameter instead of the first.
1820This is more consistent with the Java implementation.
1921
2022For instance, the following code:
@@ -33,4 +35,19 @@ Before("@tag1 or @tag2", 1) { _ =>
3335}
3436```
3537
36- See also the [ Hooks documentation] ( hooks.md ) .
38+ ### Other changes
39+
40+ As a side effect the following usage no longer compiles:
41+ ``` scala
42+ Before () { _ =>
43+ // Do something
44+ }
45+ ```
46+ It can be replaced with:
47+ ``` scala
48+ Before { _ =>
49+ // Do something
50+ }
51+ ```
52+
53+ See also the [ Hooks documentation] ( hooks.md ) .
0 commit comments