Skip to content

Commit

Permalink
chore(main): release 2.4.0 (#388)
Browse files Browse the repository at this point in the history
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
  • Loading branch information
release-please[bot] authored Nov 18, 2022
1 parent 4eedb00 commit 818cc58
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.3.0"
".": "2.4.0"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

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.

## [2.4.0](https://github.com/puppeteer/replay/compare/v2.3.0...v2.4.0) (2022-11-18)


### Features

* generate recorder sourcemaps ([#384](https://github.com/puppeteer/replay/issues/384)) ([ac253a4](https://github.com/puppeteer/replay/commit/ac253a4984586d5e532d8b5bce552816c41bd6e5))
* parse source map ([#386](https://github.com/puppeteer/replay/issues/386)) ([78c4b98](https://github.com/puppeteer/replay/commit/78c4b98ffab0915f8d457572509de3ea465a0269))

## [2.3.0](https://github.com/puppeteer/replay/compare/v2.2.0...v2.3.0) (2022-11-16)


Expand Down
40 changes: 38 additions & 2 deletions docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
- [ScrollElementStep](README.md#scrollelementstep)
- [ScrollStep](README.md#scrollstep)
- [Selector](README.md#selector)
- [SourceMap](README.md#sourcemap)
- [Step](README.md#step)
- [Target](README.md#target)
- [UserStep](README.md#userstep)
Expand All @@ -82,6 +83,7 @@
- [createRunner](README.md#createrunner)
- [getSelectorType](README.md#getselectortype)
- [parse](README.md#parse)
- [parseSourceMap](README.md#parsesourcemap)
- [parseStep](README.md#parsestep)
- [stringify](README.md#stringify)
- [stringifyStep](README.md#stringifystep)
Expand Down Expand Up @@ -199,6 +201,18 @@

---

### SourceMap

Ƭ **SourceMap**: `number`[]

The format is [version, [lineNo, length], [lineNo, length] ... [lineNo, length]].

#### Defined in

[stringify.ts:35](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L35)

---

### Step

Ƭ **Step**: [`UserStep`](modules/Schema.md#userstep) \| [`AssertionStep`](modules/Schema.md#assertionstep)
Expand Down Expand Up @@ -422,6 +436,28 @@ therefore, SelectorType.CSS is the default type if other types didn't match.

---

### parseSourceMap

**parseSourceMap**(`text`): [`SourceMap`](README.md#sourcemap) \| `undefined`

Extracts a source map from a text.

#### Parameters

| Name | Type |
| :----- | :------- |
| `text` | `string` |

#### Returns

[`SourceMap`](README.md#sourcemap) \| `undefined`

#### Defined in

[stringify.ts:105](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L105)

---

### parseStep

**parseStep**(`step`, `idx?`): [`Step`](modules/Schema.md#step)
Expand Down Expand Up @@ -468,7 +504,7 @@ Stringifes an entire recording. The following hooks are invoked with the `flow`

#### Defined in

[stringify.ts:37](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L37)
[stringify.ts:45](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L45)

---

Expand All @@ -495,7 +531,7 @@ Stringifes a single step. Only the following hooks are invoked with the `flow` p

#### Defined in

[stringify.ts:64](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L64)
[stringify.ts:79](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L79)

---

Expand Down
15 changes: 15 additions & 0 deletions docs/api/interfaces/LineWriter.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ limitations under the License.
- [appendLine](LineWriter.md#appendline)
- [endBlock](LineWriter.md#endblock)
- [getIndent](LineWriter.md#getindent)
- [getSize](LineWriter.md#getsize)
- [startBlock](LineWriter.md#startblock)

## Methods
Expand Down Expand Up @@ -75,6 +76,20 @@ limitations under the License.

---

### getSize

**getSize**(): `number`

#### Returns

`number`

#### Defined in

[LineWriter.ts:22](https://github.com/puppeteer/replay/blob/main/src/LineWriter.ts#L22)

---

### startBlock

**startBlock**(): [`LineWriter`](LineWriter.md)
Expand Down
6 changes: 3 additions & 3 deletions docs/api/interfaces/StringifyOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#### Defined in

[stringify.ts:24](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L24)
[stringify.ts:25](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L25)

---

Expand All @@ -28,7 +28,7 @@

#### Defined in

[stringify.ts:26](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L26)
[stringify.ts:27](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L27)

---

Expand All @@ -38,4 +38,4 @@

#### Defined in

[stringify.ts:25](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L25)
[stringify.ts:26](https://github.com/puppeteer/replay/blob/main/src/stringify.ts#L26)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@puppeteer/replay",
"version": "2.3.0",
"version": "2.4.0",
"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/)",
"main": "lib/cjs/main.cjs",
"types": "lib/main.d.ts",
Expand Down

0 comments on commit 818cc58

Please sign in to comment.