Skip to content

Commit

Permalink
Docs for 0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidmt committed Jan 2, 2019
1 parent cdf3226 commit 0495287
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.16.1] - 2 January 2019

### Change

- [`head`](src/head/head.js) returns `undefined` if source is empty or not array

## [0.16.0] - 1 January 2019

### Change
Expand Down Expand Up @@ -153,8 +159,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- Removed `flow` support

[Unreleased]: https://github.com/asd14/m/compare/v0.16.0...HEAD
[Unreleased]: https://github.com/asd14/m/compare/v0.16.1...HEAD

[0.16.1]: https://github.com/asd14/m/compare/v0.16.0...v0.16.1
[0.16.0]: https://github.com/asd14/m/compare/v0.15.3...v0.16.0
[0.15.3]: https://github.com/asd14/m/compare/v0.15.2...v0.15.3
[0.15.2]: https://github.com/asd14/m/compare/v0.15.1...v0.15.2
Expand Down
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Changes a lot and not yet complete. Use [Ramda](https://github.com/ramda/ramda)
- [Develop](#develop)
- [Use](#use)
- [Changelog](#changelog)
- [0.16.0 - 1 January 2019](#0160---1-january-2019)
- [0.16.1 - 2 January 2019](#0161---2-january-2019)

<!-- /MarkdownTOC -->

Expand All @@ -40,21 +40,18 @@ const { sep } = require("path")
const { pipe, compose, join, push, dropLast, split } = require("@asd14/m")

// Compose - g(f(x))
//
const renameFile = newName => filePath =>
compose(
join(sep), push(newName), dropLast, split(sep)
)(filePath)

// Pipe - x -> f -> g
//
const renameFile = newName => filePath =>
pipe(
split(sep), dropLast, push(newName), join(sep)
)(filePath)

// When using the new pipeline operator, things are even more expressive
//
// Using the pipeline operator, things are more expressive
const renameFile = newName => filePath =>
filePath |> split(sep) |> dropLast |> push(newName) |> join(sep)
```
Expand Down Expand Up @@ -100,8 +97,8 @@ const renameFile = newName => pipe(

History of all changes in [CHANGELOG.md](CHANGELOG.md)

### 0.16.0 - 1 January 2019
### 0.16.1 - 2 January 2019

#### Change

- Allow [`replaceBy`](src/replace-by/replace-by.js#L45) to accept an update function
- [`head`](src/head/head.js) returns `undefined` if source is empty or not array

0 comments on commit 0495287

Please sign in to comment.