rrweb-browser-test 2.1.4 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +131 -30
- package/dist/index.cjs +1110 -361
- package/dist/index.d.cts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +1119 -375
- package/package.json +61 -36
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -11
- package/.github/workflows/ci.yml +0 -29
- package/.prettierrc +0 -7
- package/CHANGELOG.md +0 -49
- package/events.json +0 -31924
- package/example/index.js +0 -18
- package/src/core.ts +0 -31
- package/src/cypress/index.ts +0 -126
- package/src/index.ts +0 -2
- package/src/playwright/index.ts +0 -130
- package/src/puppeteer/index.ts +0 -139
- package/src/selenium/index.ts +0 -135
- package/src/types.ts +0 -17
- package/src/utils.test.ts +0 -6
- package/src/utils.ts +0 -36
- package/tsconfig.json +0 -20
- package/tsup.config.ts +0 -9
package/package.json
CHANGED
|
@@ -1,54 +1,79 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rrweb-browser-test",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "2.3.0",
|
|
4
|
+
"description": "Generate Playwright, Cypress, Puppeteer, Selenium and mobile (Appium, Espresso, XCUITest, Detox) tests from rrweb session recordings",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rrweb",
|
|
7
|
+
"session-replay",
|
|
8
|
+
"session-recording",
|
|
9
|
+
"test-generation",
|
|
10
|
+
"e2e",
|
|
11
|
+
"playwright",
|
|
12
|
+
"cypress",
|
|
13
|
+
"puppeteer",
|
|
14
|
+
"selenium",
|
|
15
|
+
"appium",
|
|
16
|
+
"espresso",
|
|
17
|
+
"xcuitest",
|
|
18
|
+
"detox"
|
|
19
|
+
],
|
|
20
|
+
"homepage": "https://github.com/Archish27/rrweb-browser-test#readme",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/Archish27/rrweb-browser-test/issues"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/Archish27/rrweb-browser-test.git"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"author": "Archish Thakkar",
|
|
6
30
|
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
31
|
+
"main": "./dist/index.cjs",
|
|
32
|
+
"module": "./dist/index.js",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"exports": {
|
|
35
|
+
"./package.json": "./package.json",
|
|
36
|
+
".": {
|
|
37
|
+
"import": "./dist/index.js",
|
|
38
|
+
"default": "./dist/index.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist"
|
|
43
|
+
],
|
|
44
|
+
"sideEffects": false,
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=18"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public",
|
|
50
|
+
"provenance": true
|
|
14
51
|
},
|
|
15
52
|
"scripts": {
|
|
16
53
|
"dev": "vitest",
|
|
17
54
|
"build": "tsup",
|
|
55
|
+
"prepare": "tsup",
|
|
18
56
|
"ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test",
|
|
19
57
|
"format": "prettier --write .",
|
|
20
58
|
"lint": "tsc",
|
|
21
59
|
"test": "vitest run",
|
|
22
60
|
"check-format": "prettier --check .",
|
|
23
61
|
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
62
|
+
"prepublishOnly": "npm run ci",
|
|
63
|
+
"test:coverage": "vitest run --coverage",
|
|
64
|
+
"changeset": "changeset",
|
|
65
|
+
"release": "npm run build && changeset publish"
|
|
26
66
|
},
|
|
27
|
-
"exports": {
|
|
28
|
-
"./package.json": "./package.json",
|
|
29
|
-
".": {
|
|
30
|
-
"import": "./dist/index.js",
|
|
31
|
-
"default": "./dist/index.cjs"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"repository": {
|
|
35
|
-
"type": "git",
|
|
36
|
-
"url": "git+https://github.com/Archish27/rrweb-browser-test.git"
|
|
37
|
-
},
|
|
38
|
-
"keywords": [
|
|
39
|
-
"rrweb",
|
|
40
|
-
"playwright",
|
|
41
|
-
"puppeteer",
|
|
42
|
-
"cypress",
|
|
43
|
-
"selenium"
|
|
44
|
-
],
|
|
45
|
-
"author": "",
|
|
46
|
-
"license": "MIT",
|
|
47
|
-
"bugs": {
|
|
48
|
-
"url": "https://github.com/Archish27/rrweb-browser-test/issues"
|
|
49
|
-
},
|
|
50
|
-
"homepage": "https://github.com/Archish27/rrweb-browser-test#readme",
|
|
51
67
|
"dependencies": {
|
|
52
68
|
"@rrweb/types": "^2.0.0-alpha.17"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@arethetypeswrong/cli": "^0.17.0",
|
|
72
|
+
"@changesets/cli": "^2.27.10",
|
|
73
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
74
|
+
"prettier": "^3.3.3",
|
|
75
|
+
"tsup": "^8.3.5",
|
|
76
|
+
"typescript": "^5.6.3",
|
|
77
|
+
"vitest": "^2.1.5"
|
|
53
78
|
}
|
|
54
79
|
}
|
package/.changeset/README.md
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Changesets
|
|
2
|
-
|
|
3
|
-
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
-
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
-
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
6
|
-
|
|
7
|
-
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
-
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
|
package/.changeset/config.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
|
|
3
|
-
"changelog": "@changesets/cli/changelog",
|
|
4
|
-
"commit": true,
|
|
5
|
-
"fixed": [],
|
|
6
|
-
"linked": [],
|
|
7
|
-
"access": "public",
|
|
8
|
-
"baseBranch": "main",
|
|
9
|
-
"updateInternalDependencies": "patch",
|
|
10
|
-
"ignore": []
|
|
11
|
-
}
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
push:
|
|
6
|
-
branches:
|
|
7
|
-
- main
|
|
8
|
-
|
|
9
|
-
concurrency:
|
|
10
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
-
cancel-in-progress: true
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
ci:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v4
|
|
19
|
-
|
|
20
|
-
- name: Use Node.js
|
|
21
|
-
uses: actions/setup-node@v4
|
|
22
|
-
with:
|
|
23
|
-
node-version: '20'
|
|
24
|
-
|
|
25
|
-
- name: Install dependencies
|
|
26
|
-
run: npm install
|
|
27
|
-
|
|
28
|
-
- name: Run CI
|
|
29
|
-
run: npm run ci
|
package/.prettierrc
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# rrweb-browser-test
|
|
2
|
-
|
|
3
|
-
## 2.1.4
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 25667dc: :art: Removed console log line
|
|
8
|
-
|
|
9
|
-
## 2.1.3
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- ab9f474: indent fixes
|
|
14
|
-
|
|
15
|
-
## 2.1.2
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- 105d878: :bug: fix in generating click tests
|
|
20
|
-
|
|
21
|
-
## 2.1.1
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- 39e5ed9: Bug fix for generating tests
|
|
26
|
-
|
|
27
|
-
## 2.1.0
|
|
28
|
-
|
|
29
|
-
### Minor Changes
|
|
30
|
-
|
|
31
|
-
- 5ecdf00: :sparle: Support for puppeteer, cypress and selenium
|
|
32
|
-
|
|
33
|
-
## 2.0.1
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- 76f7ce2: Exporting browser test function
|
|
38
|
-
|
|
39
|
-
## 2.0.0
|
|
40
|
-
|
|
41
|
-
### Major Changes
|
|
42
|
-
|
|
43
|
-
- e5ae4fa: :sparkle: Playwright auto-generation script code from rrweb events"
|
|
44
|
-
|
|
45
|
-
## 1.0.1
|
|
46
|
-
|
|
47
|
-
### Patch Changes
|
|
48
|
-
|
|
49
|
-
- 39106c0: Initial release
|