Skip to content

Commit

Permalink
removed full currying of methods (breaking change)
Browse files Browse the repository at this point in the history
removed flow from codebase
deprecated courier
  • Loading branch information
Jack Ellis committed Oct 23, 2017
1 parent e3b1674 commit ec91d6b
Show file tree
Hide file tree
Showing 27 changed files with 323 additions and 2,776 deletions.
1 change: 0 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"presets" : [
"flow",
["env", {
"targets" : {
"browsers" : ["last 2 versions"],
Expand Down
4 changes: 1 addition & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module.exports = {
"parser": "babel-eslint",
"plugins": [
"flowtype",
],
"plugins": [],
"env": {
"browser": true,
"es6": true
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Unlike the previous variants, this will *not* automatically merge with the exist

### createHOCc
```js
(options: Object, renderWith: Object, Component: Object | Function) => Object;
(options: Object, renderWith?: Object) => (Component: Object | Function) => Object;
```
This is a curried variation of the `createHOC` method. This allows you to build a HOC creator and pass in a component at the end.

Expand All @@ -198,7 +198,7 @@ See [renderWith](#renderwith).

### createRenderFnc
```js
(options: Object, Component: Object)=> Function;
(options: Object) => (Component: Object)=> Function;
```
A curried version of `createRenderFn`.

Expand Down
11 changes: 11 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# Change Log

## 0.2.0
- `createHOCc` and `createRenderFnc` are now not *fully* curried methods, each takes configuration arguments and returns a function that accepts a component.
```js
// 0.1:
createHOCc(options)(renderWith)(Component)
// or
createHOCc(options, renderWith, Component)
// must now be written as
createHOCc(options, renderWith)(Component)
```

## 0.1.6
- Correctly handle scoped (template) slots [10](https://github.com/jackmellis/vue-hoc/pull/10)
108 changes: 0 additions & 108 deletions flow-typed/npm/babel-cli_vx.x.x.js

This file was deleted.

227 changes: 0 additions & 227 deletions flow-typed/npm/babel-core_vx.x.x.js

This file was deleted.

Loading

0 comments on commit ec91d6b

Please sign in to comment.