Skip to content

Commit 41365b8

Browse files
Version Packages (next) (#42)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c31a8f9 commit 41365b8

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

.changeset/pre.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
"chilled-baboons-battle",
99
"cool-dingos-provide",
1010
"dull-candles-exercise",
11+
"eight-fishes-enjoy",
1112
"many-spies-fix",
1213
"rude-berries-rescue",
1314
"shy-turkeys-count",
14-
"silly-seas-impress"
15+
"silly-seas-impress",
16+
"tasty-radios-rhyme",
17+
"two-pets-rescue"
1518
]
1619
}

CHANGELOG.md

+37
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# @heymp/scratchpad
22

3+
## 1.0.0-next.7
4+
5+
### Minor Changes
6+
7+
- c31a8f9: Expose Playwright runtime context to scratchpad.config.js [#40](https://github.com/heyMP/scratchpad/issues/40)
8+
9+
`scratchpad.config.js`
10+
11+
```js
12+
export default /** @type {import('@heymp/scratchpad/config').Config} */ ({
13+
devtools: true,
14+
playwright: async (args) => {
15+
const { context, page } = args;
16+
// block esmodule shims
17+
await context.route(/es-module-shims\.js/, async (route) => {
18+
await route.abort();
19+
});
20+
await page.goto("https://ux.redhat.com");
21+
},
22+
});
23+
```
24+
25+
- f6fb1f2: Add option for writing the js output to a file based on the compiled
26+
ts target. Use `--ts-write` as a boolean flag in the cli.
27+
28+
### Patch Changes
29+
30+
- c31a8f9: Add typings for scratchpad.config.js [#37](https://github.com/heyMP/scratchpad/issues/37)
31+
32+
```js
33+
export default /** @type {import('@heymp/scratchpad/config').Config} */ ({
34+
devtools: true,
35+
headless: true,
36+
url: "https://google.com",
37+
});
38+
```
39+
340
## 1.0.0-next.6
441

542
### Minor Changes

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@heymp/scratchpad",
3-
"version": "1.0.0-next.6",
3+
"version": "1.0.0-next.7",
44
"main": "bin/cli.js",
55
"type": "module",
66
"bin": {

0 commit comments

Comments
 (0)