-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(api): Massive simplification to API, along with guards and 100% …
…test cov. The API has been refocused to allow for the injection of Components of any type (i.e. class/stateless/createClass). The Provider has been renamed to make it more explicit, and the Injector API has been greatly simplified. A lot more invariant based checks have been added to the project and we have achieved full test coverage. closes #2 closes #3 BREAKING CHANGE: Provider renamed to InjectableProvider. BREAKING CHANGE: The Injector helper has been greatly simplified. Instead of wrapping a component that will host the injection, it rather produces an injection component which you can render into any component that you would like to initiate an injection. This produces a much cleaner API and allows you to easily pass down specific props to the component that will be injected. Please look at the updated readme for example usage.
- Loading branch information
Showing
16 changed files
with
964 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.