Skip to content

Commit

Permalink
Remove experimental reflect decorator
Browse files Browse the repository at this point in the history
The @reflect() decorator, along with all related components are now no longer needed. The idea was "good", but very cumbersome and possible too performance demanding. The new @targetMeta() decorator has taken the best out of this experiment and can now be used to associate metadata directly with class methods, which is good enough for now. Developers can use it to store their own "reflection-like" data as metadata, if needed.
  • Loading branch information
aedart committed Jan 31, 2024
1 parent 4ffe8b2 commit c87993c
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 1,132 deletions.
65 changes: 0 additions & 65 deletions packages/contracts/src/support/reflections/Reflection.ts

This file was deleted.

15 changes: 0 additions & 15 deletions packages/contracts/src/support/reflections/index.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
import Reflection from "./Reflection";

/**
* Support Reflections identifier
*
* @type {Symbol}
*/
export const SUPPORT_REFLECTIONS: unique symbol = Symbol('@aedart/contracts/support/reflections');

/**
* @deprecated TODO: This component must be redesigned or removed entirely...
*
* Reflections identifier in metadata
*
* @type {symbol}
*/
export const META_REFLECTIONS: unique symbol = Symbol('reflections');

export {
type Reflection
}
159 changes: 0 additions & 159 deletions packages/support/src/reflections/Encoder.ts

This file was deleted.

Loading

0 comments on commit c87993c

Please sign in to comment.