Skip to content

Commit f1af949

Browse files
authored
pipe operator: Change topic examples back to %
See tc39/proposal-pipeline-operator#250.
1 parent 6b143a5 commit f1af949

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

docs/plugin-proposal-pipeline-operator.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Configure which proposal to use with the required `"proposal"` option.
2222
| `"hack"` | [Hack-style pipes](https://github.com/js-choi/proposal-hack-pipes) | `v7.15.0`
2323
| ~~`"smart"`~~ | [Smart-mix pipes](https://github.com/js-choi/proposal-smart-pipelines) (deprecated) | `v7.3.0`
2424

25-
If `"proposal": "hack"` is used, then a `"topicToken": "^"`, `"topicToken": "%"`, or `"topicToken": "#"` option must also be included.
25+
If `"proposal": "hack"` is used, then a `"topicToken": "%"`, `"topicToken": "^"`, or `"topicToken": "#"` option must also be included.
2626

2727
The `"proposal": "smart"` option is deprecated and subject to removal in a future major version.
2828

@@ -46,7 +46,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
4646
</th>
4747
<th>
4848

49-
[Hack pipes](https://github.com/js-choi/proposal-hack-pipes/)<br>`{proposal: "hack",`<br>`topicToken: "^"}`
49+
[Hack pipes](https://github.com/js-choi/proposal-hack-pipes/)<br>`{proposal: "hack",`<br>`topicToken: "%"}`
5050

5151
</th>
5252
</tr>
@@ -70,7 +70,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
7070
</td>
7171
<td>
7272

73-
`x |> o.m(^)`
73+
`x |> o.m(%)`
7474

7575
</td>
7676
</tr>
@@ -92,7 +92,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
9292
</td>
9393
<td>
9494

95-
`x |> o.m(0, ^)`
95+
`x |> o.m(0, %)`
9696

9797
</td>
9898
</tr>
@@ -114,7 +114,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
114114
</td>
115115
<td>
116116

117-
`x |> new o.m(^)`
117+
`x |> new o.m(%)`
118118

119119
</td>
120120
</tr>
@@ -136,7 +136,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
136136
</td>
137137
<td>
138138

139-
`x |> o[^]`
139+
`x |> o[%]`
140140

141141
</td>
142142
</tr>
@@ -158,7 +158,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
158158
</td>
159159
<td>
160160

161-
`x |> ^[i]`
161+
`x |> %[i]`
162162

163163
</td>
164164
</tr>
@@ -180,7 +180,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
180180
</td>
181181
<td>
182182

183-
`x |> ^ + 1`
183+
`x |> % + 1`
184184

185185
</td>
186186
</tr>
@@ -202,7 +202,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
202202
</td>
203203
<td>
204204

205-
`x |> [0, ^]`
205+
`x |> [0, %]`
206206

207207
</td>
208208
</tr>
@@ -224,7 +224,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
224224
</td>
225225
<td>
226226

227-
`x |> { key: ^ }`
227+
`x |> { key: % }`
228228

229229
</td>
230230
</tr>
@@ -242,7 +242,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
242242
</td>
243243
<td>
244244

245-
`x |> await o.m(^)`
245+
`x |> await o.m(%)`
246246

247247
</td>
248248
</tr>
@@ -256,7 +256,7 @@ When TC39 accepts one of the proposals, that proposal will become the default an
256256
<td>Not supported</td>
257257
<td>
258258

259-
`x |> (yield o.m(^))`
259+
`x |> (yield o.m(%))`
260260

261261
</td>
262262
</tr>
@@ -284,22 +284,22 @@ For [F# pipes with `await`](https://github.com/valtech-nyc/proposal-fsharp-pipel
284284
]
285285
}
286286
```
287-
For [Hack pipes](https://github.com/js-choi/proposal-hack-pipes/) with `^` topic token:
287+
For [Hack pipes](https://github.com/js-choi/proposal-hack-pipes/) with `%` topic token:
288288

289289
```json
290290
{
291291
"plugins": [
292-
["@babel/plugin-proposal-pipeline-operator", { "proposal": "hack", "topicToken": "^" }]
292+
["@babel/plugin-proposal-pipeline-operator", { "proposal": "hack", "topicToken": "%" }]
293293
]
294294
}
295295
```
296296

297-
For [Hack pipes](https://github.com/js-choi/proposal-hack-pipes/) with `%` topic token:
297+
For [Hack pipes](https://github.com/js-choi/proposal-hack-pipes/) with `^` topic token:
298298

299299
```json
300300
{
301301
"plugins": [
302-
["@babel/plugin-proposal-pipeline-operator", { "proposal": "hack", "topicToken": "%" }]
302+
["@babel/plugin-proposal-pipeline-operator", { "proposal": "hack", "topicToken": "^" }]
303303
]
304304
}
305305
```
@@ -340,22 +340,22 @@ require("@babel/core").transformSync("code", {
340340
});
341341
```
342342

343-
For [Hack pipes](https://github.com/js-choi/proposal-hack-pipes/) with `^` topic token:
343+
For [Hack pipes](https://github.com/js-choi/proposal-hack-pipes/) with `%` topic token:
344344

345345
```javascript
346346
require("@babel/core").transformSync("code", {
347347
plugins: [
348-
[ "@babel/plugin-proposal-pipeline-operator", { proposal: "hack", topicToken: "^" } ],
348+
[ "@babel/plugin-proposal-pipeline-operator", { proposal: "hack", topicToken: "%" } ],
349349
],
350350
});
351351
```
352352

353-
For [Hack pipes](https://github.com/js-choi/proposal-hack-pipes/) with `%` topic token:
353+
For [Hack pipes](https://github.com/js-choi/proposal-hack-pipes/) with `^` topic token:
354354

355355
```javascript
356356
require("@babel/core").transformSync("code", {
357357
plugins: [
358-
[ "@babel/plugin-proposal-pipeline-operator", { proposal: "hack", topicToken: "%" } ],
358+
[ "@babel/plugin-proposal-pipeline-operator", { proposal: "hack", topicToken: "^" } ],
359359
],
360360
});
361361
```

0 commit comments

Comments
 (0)