jayphelps/core-decorators

The Road to 1.0

Open

#15 opened on Aug 1, 2015

View on GitHub
 (10 comments) (0 reactions) (0 assignees)JavaScript (282 forks)batch import
help wantedrequest for comments

Repository metrics

Stars
 (4,500 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide