Skip to content

Commit

Permalink
chore(compiler): remove references to deprecated decorators (#3685)
Browse files Browse the repository at this point in the history
We removed the decorators `@PropWillChange` and `@PropDidChange` quite a
while ago:

fa2b400

However, it looks like a few references to those decorators stuck around
in the `MEMBER_DECORATORS_TO_REMOVE` array in
src/compiler/transformers/decorators-to-static/decorators-constants.ts.

This just removes those! Given that the behavior for these was aleady
removed the impact should be minimal / nil.
  • Loading branch information
alicewriteswrongs committed Oct 6, 2022
1 parent bd340b8 commit ee1a295
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,7 @@ export const CLASS_DECORATORS_TO_REMOVE = ['Component'] as const;
* Decorators on class members that we remove as part of the compilation
* process
*/
export const MEMBER_DECORATORS_TO_REMOVE = [
'Element',
'Event',
'Listen',
'Method',
'Prop',
// TODO(STENCIL-591): Remove Deprecated Decorator Names
'PropDidChange',
// TODO(STENCIL-591): Remove Deprecated Decorator Names
'PropWillChange',
'State',
'Watch',
] as const;
export const MEMBER_DECORATORS_TO_REMOVE = ['Element', 'Event', 'Listen', 'Method', 'Prop', 'State', 'Watch'] as const;

/**
* Decorators whose 'decorees' we need to rewrite during compilation from
Expand Down

0 comments on commit ee1a295

Please sign in to comment.