playwright/packages
Dmitry Gozman a1ba6757e0
feat(typescript): allow declare for class properties (#21281)
This enables `allowDeclareFields` flag that allows code like:

```ts
class Foo {
  declare prop: string;
}
```

Declaring is a workaround for inheritance vs property initialization
issues.
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#the-usedefineforclassfields-flag-and-the-declare-property-modifier

For `allowDeclareFields` to work, we have to run
plugin-transform-typescript before plugin-proposal-class-properties and
few others, so this change migrates from preset-typescript that always
runs last to individual plugin-transform-typescript, and reorders some
plugins.

References #21119.
2023-03-01 16:43:17 -08:00
..
html-reporter chore(trace): include expect steps in a trace (#21199) 2023-02-28 13:26:23 -08:00
playwright chore: mark 1.32.0-next (#20929) 2023-02-15 16:15:42 -08:00
playwright-chromium chore: mark 1.32.0-next (#20929) 2023-02-15 16:15:42 -08:00
playwright-core chore: ui mode first cut (#21291) 2023-03-01 15:27:23 -08:00
playwright-ct-react chore: point to pwt cli, a direct dependency (#21311) 2023-03-01 12:17:43 -08:00
playwright-ct-solid chore: point to pwt cli, a direct dependency (#21311) 2023-03-01 12:17:43 -08:00
playwright-ct-svelte chore: point to pwt cli, a direct dependency (#21311) 2023-03-01 12:17:43 -08:00
playwright-ct-vue chore: point to pwt cli, a direct dependency (#21311) 2023-03-01 12:17:43 -08:00
playwright-ct-vue2 chore: point to pwt cli, a direct dependency (#21311) 2023-03-01 12:17:43 -08:00
playwright-firefox chore: mark 1.32.0-next (#20929) 2023-02-15 16:15:42 -08:00
playwright-test feat(typescript): allow declare for class properties (#21281) 2023-03-01 16:43:17 -08:00
playwright-webkit chore: mark 1.32.0-next (#20929) 2023-02-15 16:15:42 -08:00
protocol/src chore: migrate to protocol's StackFrame type (#21198) 2023-02-24 18:36:15 -08:00
recorder chore: implement pick locator in trace viewer (#20965) 2023-02-17 11:19:53 -08:00
trace/src chore: flatten metadata in trace events (#21214) 2023-02-27 15:29:20 -08:00
trace-viewer fix(trace viewer): force https requests from https snapshots (#21317) 2023-03-01 15:32:39 -08:00
web chore: ui mode first cut (#21291) 2023-03-01 15:27:23 -08:00
.eslintrc.js chore: don't write into stdout from the test runner, use reporters instead (#11367) 2022-01-12 19:52:40 -08:00