Socket
Socket
Sign inDemoInstall

redux-fluent

Package Overview
Dependencies
0
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.23.1 to 0.24.0

docs/Action.MD

4

build/redux-fluent.development.js
/**!
* @build-info development - Thu Jan 25 2018 20:13:13 GMT+0000 (UTC)
* @build-info development - Fri Jan 26 2018 10:40:16 GMT+0000 (UTC)
* @name redux-fluent
* @version 0.23.1
* @version 0.24.0
* @author Code-Y (https://github.com/Code-Y)

@@ -7,0 +7,0 @@ * @description Tiny and eloquent way to manage a redux-like state manager

/**!
* @build-info production - Thu Jan 25 2018 20:13:13 GMT+0000 (UTC)
* @build-info production - Fri Jan 26 2018 10:40:16 GMT+0000 (UTC)
* @name redux-fluent
* @version 0.23.1
* @version 0.24.0
* @author Code-Y (https://github.com/Code-Y)

@@ -7,0 +7,0 @@ * @description Tiny and eloquent way to manage a redux-like state manager

@@ -5,2 +5,14 @@ # Change Log

<a name="0.24.0"></a>
# [0.24.0](https://github.com/Code-Y/redux-fluent/compare/v0.22.2...v0.24.0) (2018-01-26)
### Features
* **Action,CreateCombinableReducers:** check and throw if a reducer, action already exist only if NODE_ENV === production ([77caf8d](https://github.com/Code-Y/redux-fluent/commit/77caf8d))
* **docs:** add function signature to Action.MD ([e6be54b](https://github.com/Code-Y/redux-fluent/commit/e6be54b))
* **docs:** Detailed Documentation for Action ([#13](https://github.com/Code-Y/redux-fluent/issues/13)) ([55ba4ee](https://github.com/Code-Y/redux-fluent/commit/55ba4ee))
<a name="0.23.1"></a>

@@ -7,0 +19,0 @@ ## [0.23.1](https://github.com/Code-Y/redux-fluent/compare/v0.23.0...v0.23.1) (2018-01-25)

{
"name": "redux-fluent",
"license": "MIT",
"version": "0.23.1",
"version": "0.24.0",
"homepage": "https://github.com/Code-Y/redux-fluent#readme",

@@ -6,0 +6,0 @@ "description": "Tiny and eloquent way to manage a redux-like state manager",

@@ -7,20 +7,29 @@ # <a href='https://github.com/Code-Y/redux-fluent'><img src='https://raw.githubusercontent.com/Code-Y/redux-fluent/master/redux-fluent-logo.png' height='60' alt='Redux Fluent Logo' aria-label='https://github.com/Code-Y/redux-fluent' /></a> Redux Fluent

[![Test Coverage](https://api.codeclimate.com/v1/badges/02e8b0d9ba383c19ae50/test_coverage)](https://codeclimate.com/github/Code-Y/redux-fluent/test_coverage)
[![npm version](https://img.shields.io/npm/l/redux-fluent.svg)](https://github.com/Code-Y/redux-fluent/blob/master/LICENSE)
[![npm version](https://img.shields.io/npm/l/redux-fluent.svg)](https://github.com/Code-Y/redux-fluent/blob/master/LICENSE)
Tiny and eloquent way to manage a redux-like state manager (*3K*, dependencies free, definitions included).
[Try it out on RunKit](https://runkit.com/hitmands/5a6ae5fccfee52001263345f)
## Documentation
1. [Action](./docs/Action.MD)
2. [Reducer](./docs/Reducer.MD)
3. [CombinableReducers](./docs/CombinableReducers.MD)
## Motivation
[Redux](https://redux.js.org/) is great, *every recent web application was most likely been built on top of it*, however we really think we can simplify it further and after our investigation we came out with:
[Redux](https://redux.js.org/) is great, *every recent web application was most likely been built on top of it*, however we really think we can simplify it further and, after our investigation, we came out with:
- **Reducers** usually tend to grow and become hard to maintain, 'cause of the amount of switch-cases.
- **Reducers** tend to grow and become hard to maintain, 'cause of the amount of switch-cases.
- Concepts such as **Action**, **Action Type** and **Action Creator** could be squashed into only one.
- The push towards the standards should be stronger.
- [FSA action](https://github.com/acdlite/flux-standard-action#actions) may have `error = true` but this involves `IF Statements` inside reducers, so, developers tend to have separate `cases` via `ACTION_SUCCESS` and `ACTION_ERROR`.
- Uncontrolled scaffolding growth.
**Why not [redux-actions](https://github.com/reduxactions/redux-actions)?** It does merge the concepts of `Action` and `Reducer` while we think an action should only [describe the state changes](https://redux.js.org/docs/introduction/CoreConcepts.html) and not provide any implementation. Actions may be handled by multiple reducers or middlewares.
## Installation
To install the stable version:
```bash

@@ -30,3 +39,3 @@ npm install --save redux-fluent

## Usage
## Getting Started

@@ -39,4 +48,4 @@ ```javascript

const addTodo = createAction('@@todos | add');
const addTodoTask = (state, { payload }) => ({
...state,
const addTodoTask = (state, { payload }) => ({
...state,
list: state.list.concat(payload),

@@ -48,3 +57,3 @@ });

.then(addTodoTask)
.default()

@@ -51,0 +60,0 @@ ;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc