Skip to content

Commit c81846d

Browse files
chore(main): release 2.12.0 (#589)
🤖 I have created a release *beep* *boop* --- ## [2.12.0](v2.11.2...v2.12.0) (2023-07-04) ### Features * use locators in Puppeteer extensions ([#569](#569)) ([92d7666](92d7666)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
1 parent 6a7a1ed commit c81846d

8 files changed

+54
-20
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.11.2"
2+
".": "2.12.0"
33
}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.12.0](https://github.com/puppeteer/replay/compare/v2.11.2...v2.12.0) (2023-07-04)
6+
7+
8+
### Features
9+
10+
* use locators in Puppeteer extensions ([#569](https://github.com/puppeteer/replay/issues/569)) ([92d7666](https://github.com/puppeteer/replay/commit/92d76666abf73de3cb3d1bc0ffc3b7276f4ed376))
11+
512
## [2.11.2](https://github.com/puppeteer/replay/compare/v2.11.1...v2.11.2) (2023-06-12)
613

714

docs/api/README.md

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
- [parse](README.md#parse)
9090
- [parseSourceMap](README.md#parsesourcemap)
9191
- [parseStep](README.md#parsestep)
92+
- [selectorToPElementSelector](README.md#selectortopelementselector)
9293
- [stringify](README.md#stringify)
9394
- [stringifyStep](README.md#stringifystep)
9495
- [stripSourceMap](README.md#stripsourcemap)
@@ -254,7 +255,7 @@ The format is [version, [lineNo, length], [lineNo, length] ... [lineNo, length]]
254255

255256
#### Defined in
256257

257-
[SchemaUtils.ts:563](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L563)
258+
[SchemaUtils.ts:564](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L564)
258259

259260
---
260261

@@ -264,7 +265,7 @@ The format is [version, [lineNo, length], [lineNo, length] ... [lineNo, length]]
264265

265266
#### Defined in
266267

267-
[SchemaUtils.ts:562](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L562)
268+
[SchemaUtils.ts:563](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L563)
268269

269270
---
270271

@@ -274,7 +275,7 @@ The format is [version, [lineNo, length], [lineNo, length] ... [lineNo, length]]
274275

275276
#### Defined in
276277

277-
[SchemaUtils.ts:70](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L70)
278+
[SchemaUtils.ts:71](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L71)
278279

279280
---
280281

@@ -284,7 +285,7 @@ The format is [version, [lineNo, length], [lineNo, length] ... [lineNo, length]]
284285

285286
#### Defined in
286287

287-
[SchemaUtils.ts:64](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L64)
288+
[SchemaUtils.ts:65](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L65)
288289

289290
---
290291

@@ -294,7 +295,7 @@ The format is [version, [lineNo, length], [lineNo, length] ... [lineNo, length]]
294295

295296
#### Defined in
296297

297-
[SchemaUtils.ts:53](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L53)
298+
[SchemaUtils.ts:54](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L54)
298299

299300
## Functions
300301

@@ -314,7 +315,7 @@ The format is [version, [lineNo, length], [lineNo, length] ... [lineNo, length]]
314315

315316
#### Defined in
316317

317-
[SchemaUtils.ts:48](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L48)
318+
[SchemaUtils.ts:49](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L49)
318319

319320
---
320321

@@ -448,7 +449,7 @@ therefore, SelectorType.CSS is the default type if other types didn't match.
448449

449450
#### Defined in
450451

451-
[SchemaUtils.ts:615](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L615)
452+
[SchemaUtils.ts:616](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L616)
452453

453454
---
454455

@@ -468,7 +469,7 @@ therefore, SelectorType.CSS is the default type if other types didn't match.
468469

469470
#### Defined in
470471

471-
[SchemaUtils.ts:571](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L571)
472+
[SchemaUtils.ts:572](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L572)
472473

473474
---
474475

@@ -511,7 +512,33 @@ Extracts a source map from a text.
511512

512513
#### Defined in
513514

514-
[SchemaUtils.ts:495](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L495)
515+
[SchemaUtils.ts:496](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L496)
516+
517+
---
518+
519+
### selectorToPElementSelector
520+
521+
**selectorToPElementSelector**(`selector`): `string`
522+
523+
Converts a selector or an array of selector parts into a Puppeteer selector.
524+
525+
**`See`**
526+
527+
https://pptr.dev/guides/query-selectors#p-elements
528+
529+
#### Parameters
530+
531+
| Name | Type |
532+
| :--------- | :--------------------- |
533+
| `selector` | `string` \| `string`[] |
534+
535+
#### Returns
536+
537+
`string`
538+
539+
#### Defined in
540+
541+
[SchemaUtils.ts:630](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L630)
515542

516543
---
517544

@@ -607,4 +634,4 @@ Stringifes a single step. Only the following hooks are invoked with the `flow` p
607634

608635
#### Defined in
609636

610-
[SchemaUtils.ts:567](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L567)
637+
[SchemaUtils.ts:568](https://github.com/puppeteer/replay/blob/main/src/SchemaUtils.ts#L568)

docs/api/classes/LighthouseRunnerExtension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
#### Defined in
4646

47-
[PuppeteerRunnerExtension.ts:47](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L47)
47+
[PuppeteerRunnerExtension.ts:52](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L52)
4848

4949
## Methods
5050

@@ -181,4 +181,4 @@
181181

182182
#### Defined in
183183

184-
[PuppeteerRunnerExtension.ts:68](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L68)
184+
[PuppeteerRunnerExtension.ts:73](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L73)

docs/api/classes/PuppeteerRunnerExtension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
#### Defined in
4949

50-
[PuppeteerRunnerExtension.ts:47](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L47)
50+
[PuppeteerRunnerExtension.ts:52](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L52)
5151

5252
## Methods
5353

@@ -170,4 +170,4 @@
170170

171171
#### Defined in
172172

173-
[PuppeteerRunnerExtension.ts:68](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L68)
173+
[PuppeteerRunnerExtension.ts:73](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L73)

docs/api/classes/PuppeteerRunnerOwningBrowserExtension.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
#### Defined in
4545

46-
[PuppeteerRunnerExtension.ts:47](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L47)
46+
[PuppeteerRunnerExtension.ts:52](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L52)
4747

4848
## Methods
4949

@@ -61,7 +61,7 @@
6161

6262
#### Defined in
6363

64-
[PuppeteerRunnerExtension.ts:373](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L373)
64+
[PuppeteerRunnerExtension.ts:291](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L291)
6565

6666
---
6767

@@ -160,4 +160,4 @@
160160

161161
#### Defined in
162162

163-
[PuppeteerRunnerExtension.ts:68](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L68)
163+
[PuppeteerRunnerExtension.ts:73](https://github.com/puppeteer/replay/blob/main/src/PuppeteerRunnerExtension.ts#L73)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@puppeteer/replay",
3-
"version": "2.11.2",
3+
"version": "2.12.0",
44
"description": "Replay is a library which provides an API to replay and stringify recordings created using Chrome DevTools Recorder](https://developer.chrome.com/docs/devtools/recorder/)",
55
"main": "lib/cjs/main.cjs",
66
"types": "lib/main.d.ts",

0 commit comments

Comments
 (0)