utilities icon indicating copy to clipboard operation
utilities copied to clipboard

feat(decorators): update decorators to new ECMAScript proposal

Open favna opened this issue 2 years ago • 0 comments

Warning Blocked by a more stable implementation of decorators in V8 / Node / TypeScript

  • TypeScript types do not represent the ECMAScript spec
  • TypeScript types do not match the runtime right now
  • V8 doesn't have decorators support, TS outputs code with tslib
  • Unit tests don't work at all because those use esbuild which also doesn't have ES decorators yet.

Warning Targets the feat/typescript-v5 branch but separate for easier reviewing

BREAKING CHANGE: DO NOT attempt to use this version with TypeScript 4.x, it will not work! BREAKING CHANGE: EnumerableMethod is gone, it never really worked anyway BREAKING CHANGE: Enumerable now has to be applied to both fields and classes for it to work BREAKING CHANGE: Typings have generally overall changed

favna avatar Mar 28 '23 22:03 favna