jayphelps/core-decorators

The Road to 1.0

Open

#15 aperta il 1 ago 2015

Vedi su GitHub
 (10 commenti) (0 reazioni) (0 assegnatari)JavaScript (282 fork)batch import
help wantedrequest for comments

Metriche repository

Star
 (4500 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Spec compliancy

  • Update to support both the old and new spec (coming in Babel 6)
  • Implement backward compatibility, if possible ???

Add the remaining tests

decorators

  • autobind
  • debounce
  • deprecate
  • nonconfigurable
  • nonenumerable
  • override
  • readonly
  • suppress-warnings

(private/utils)

  • decorate
  • isDescriptor
  • metaFor

Decide if aliases will continue?

I generally do not like aliases. I'd prefer to have all decorators named as a verb and remove the aliases.

  • @​deprecate (alias: @​deprecated)
  • @​mixin (alias: @​mixins)

Slim builds

  • Support rollup via jsnext:main
  • Allow imports of each decorator to not pull in entire library for browserify/webpack users. Most likely via postinstall or similar, aliasing files into the package root so they can import autobind from 'core-decorators/autobind.

Guida contributor