Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch the entire library to a functional-first approach #326

Merged
merged 5 commits into from
May 7, 2019
Merged

Conversation

Avaq
Copy link
Member

@Avaq Avaq commented Apr 9, 2019

TODO

  • Finish redoing unit tests
  • Pass context through _interpret and wire it up for debug mode
  • Update debugging mode to show more relevant information
  • Undo removal of encase functions?
  • Update the TypeScript typings
  • Update the docs
  • Update the benchmarks
  • Expose the fluent API in some way

Changes

See the migration guide for a description of breaking changes.

See this gist for a preview of the changes to stack traces. The goal is to limit the captured stack frames to those most relevant to the situation.

@Avaq Avaq force-pushed the avaq/fp-first branch 3 times, most recently from 575a452 to dbec3bc Compare April 10, 2019 22:23
@codecov

This comment has been minimized.

@fluture-js fluture-js deleted a comment from codecov bot Apr 11, 2019
@Avaq Avaq force-pushed the avaq/fp-first branch 10 times, most recently from 19552e1 to 4c8586a Compare April 13, 2019 10:22
breaking-changes.md Outdated Show resolved Hide resolved
breaking-changes.md Outdated Show resolved Hide resolved
breaking-changes.md Outdated Show resolved Hide resolved
breaking-changes.md Outdated Show resolved Hide resolved
@Avaq Avaq force-pushed the avaq/fp-first branch 7 times, most recently from a95c2e1 to f37ca0e Compare April 16, 2019 12:36
@Avaq Avaq force-pushed the avaq/fp-first branch 3 times, most recently from b529665 to d4d2ada Compare April 20, 2019 22:23
@Avaq Avaq force-pushed the avaq/fp-first branch 5 times, most recently from e710503 to 84116b6 Compare April 21, 2019 14:34
@Avaq Avaq requested review from davidchambers and dicearr April 21, 2019 14:37
@Avaq Avaq marked this pull request as ready for review April 21, 2019 14:37
Avaq added 2 commits April 21, 2019 16:40
The prior two commits have greatly reduced performance. A few basic
tweaks brings performance back to a similar level to what it was.
@Avaq

This comment has been minimized.

README.md Outdated Show resolved Hide resolved
@codecov

This comment has been minimized.

Copy link
Contributor

@dicearr dicearr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@Avaq

This comment has been minimized.

@Avaq Avaq force-pushed the avaq/fp-first branch from 6bf5666 to 62c5873 Compare May 7, 2019 10:16
@Avaq Avaq merged commit 979650c into master May 7, 2019
@Avaq Avaq deleted the avaq/fp-first branch May 7, 2019 11:26
Avaq added a commit that referenced this pull request May 7, 2019
Breaking changes

- #326 The internal structure of Fluture has changed
- #326 All functions now use simple currying
- #326 All function aliases have been removed
- #326 `tryP` was renamed to `encaseP`
- #326 Properties on the `Future` function have been removed
- #326 Various functions have had their arguments flipped
- #326 Fantasy Land 0.x is no longer supported
- #326 `encaseN` and friends have been removed
- #326 `encase2` and up have been removed
- #326 `encaseP2` and up have been removed
- #326 The entire fluent method API has been removed

New features

- #326 "Asynchronous stack traces" have been reworked to show more
       relevant stacks and fewer irrelevant stacks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants