diff --git a/.changeset/pre.json b/.changeset/pre.json index 7a34af7..2570351 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -8,9 +8,12 @@ "chilled-baboons-battle", "cool-dingos-provide", "dull-candles-exercise", + "eight-fishes-enjoy", "many-spies-fix", "rude-berries-rescue", "shy-turkeys-count", - "silly-seas-impress" + "silly-seas-impress", + "tasty-radios-rhyme", + "two-pets-rescue" ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index d77de21..12061c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,42 @@ # @heymp/scratchpad +## 1.0.0-next.7 + +### Minor Changes + +- c31a8f9: Expose Playwright runtime context to scratchpad.config.js [#40](https://github.com/heyMP/scratchpad/issues/40) + + `scratchpad.config.js` + + ```js + export default /** @type {import('@heymp/scratchpad/config').Config} */ ({ + devtools: true, + playwright: async (args) => { + const { context, page } = args; + // block esmodule shims + await context.route(/es-module-shims\.js/, async (route) => { + await route.abort(); + }); + await page.goto("https://ux.redhat.com"); + }, + }); + ``` + +- f6fb1f2: Add option for writing the js output to a file based on the compiled + ts target. Use `--ts-write` as a boolean flag in the cli. + +### Patch Changes + +- c31a8f9: Add typings for scratchpad.config.js [#37](https://github.com/heyMP/scratchpad/issues/37) + + ```js + export default /** @type {import('@heymp/scratchpad/config').Config} */ ({ + devtools: true, + headless: true, + url: "https://google.com", + }); + ``` + ## 1.0.0-next.6 ### Minor Changes diff --git a/package.json b/package.json index 71acff2..6011655 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@heymp/scratchpad", - "version": "1.0.0-next.6", + "version": "1.0.0-next.7", "main": "bin/cli.js", "type": "module", "bin": {