Skip to content

Commit 7738f54

Browse files
committed
Remove concatenation syntax in favor of interpolation/substitution
1 parent 71ee25f commit 7738f54

File tree

4 files changed

+982
-1051
lines changed

4 files changed

+982
-1051
lines changed

docs/11-advanced/08-string-interpolation.mdx

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
1313
It is often useful to reference provided properties, captured values, and string literals throughout your features. Gwen provides two interpolation mechanisms for doing this:
1414

1515
- [Substitution](#interpolation-by-substitution) (recommended approach)
16-
- [Concatenation](#interpolation-by-concatenation)
16+
- [Concatenation](#interpolation-by-concatenation) (deprecated since [Gwen 3](/docs/gwen3))
1717

1818
Interpolation occurs in the interpreter on every step in a feature before it is passed to Gwen for execution.
1919

@@ -56,6 +56,12 @@ Scenario: By Substitution
5656

5757
### Interpolation by Concatenation
5858

59+
:::caution Deprecated
60+
61+
The concatentation method has been deprecated in favor of substitition since [Gwen 3](/docs/gwen3) (dropped in <Link to="https://github.com/gwen-interpreter/gwen-web/releases/tag/v3.14.0">v3.14.0</Link>)
62+
63+
:::
64+
5965
Concatenation involves joining string literals and named values together.
6066

6167
```gherkin

docs/14-gwen3/01-gwen3.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ The embedded web engine now uses Selenium 4 and new DSLs have been added to sup
6969

7070
- Gwen workspaces have been deprecated in favor of JS projects
7171
- Applitools integration has been removed
72+
- [Interpolation](/docs/advanced/string-interpolation#interpolation-by-substitution) by concatenation deprecated in favor of substitation (dropped in <Link to="https://github.com/gwen-interpreter/gwen-web/releases/tag/v3.14.0">v3.14.0</Link>)
7273

7374
## Migration guide
7475

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"write-heading-ids": "docusaurus write-heading-ids"
1515
},
1616
"dependencies": {
17-
"@docusaurus/core": "^2.0.0-beta.20",
18-
"@docusaurus/preset-classic": "^2.0.0-beta.20",
17+
"@docusaurus/core": "^2.0.0-beta.21",
18+
"@docusaurus/preset-classic": "^2.0.0-beta.21",
1919
"@mdx-js/react": "^1.6.21",
2020
"@svgr/webpack": "^5.5.0",
2121
"clsx": "^1.1.1",

0 commit comments

Comments
 (0)