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

v1.3.0 Integration #374

Merged
merged 29 commits into from Mar 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
219be24
Port ngrx/entity and add createAsyncThunk (#352)
markerikson Feb 19, 2020
191e22e
1.3.0-alpha.8
markerikson Feb 19, 2020
1314ba4
remove `any` where applicable (#377)
Feb 21, 2020
3bb7d8c
Fork redux-devtools-extension (#384)
markerikson Feb 21, 2020
6b83a39
Feature/immutable invariant (#381)
msutkowski Feb 21, 2020
a1d5e84
Immutable middleware cleanup (#385)
markerikson Feb 21, 2020
75ad35f
TS dep updates (#386)
markerikson Feb 21, 2020
663fb05
1.3.0-alpha.9
markerikson Feb 21, 2020
a38b3b7
update TS docs, add new 1.3.0 APIs (#388)
phryneas Feb 23, 2020
a6e5e5f
Clarify createAsyncThunk type handling
markerikson Feb 23, 2020
7699b02
Use Immer 6 alpha (#396)
markerikson Feb 27, 2020
76858f0
1.3.0-alpha.10
markerikson Feb 27, 2020
dd8e44a
Merge branch 'master' into v1.3.0-integration
markerikson Feb 29, 2020
507f41c
Merge branch 'master' into v1.3.0-integration
markerikson Feb 29, 2020
4417317
Formatting
markerikson Feb 29, 2020
9e29ccc
RFC createAsyncThunk: reject with typed value (#393)
markerikson Mar 4, 2020
d3522f5
remove createSerializableStateInvariantMiddleware and createImmutable…
markerikson Mar 4, 2020
af6a2c1
bump immer to v6 (#407)
markerikson Mar 4, 2020
1279c3f
Immer 6 final (#409)
markerikson Mar 5, 2020
1d350ce
Ignore serializability of `meta.args` by default (#410)
markerikson Mar 5, 2020
36b25fc
1.3.0-beta.0
markerikson Mar 5, 2020
5929c30
display a warning if `immutableStateInvariantMiddleware` or `ser… (#427)
phryneas Mar 12, 2020
980dcbe
simplify signatures of `ActionCreatorWithOptionalPayload` and `A… (#428)
phryneas Mar 12, 2020
35a3cc1
prevent any-casting of S generic on entityAdapter reducer-like f… (#436)
phryneas Mar 21, 2020
f64f750
Fix bug in docs for createAsyncThunk example (#417)
dlwalsh Mar 21, 2020
3025d77
Feature/entity selectors (#440)
markerikson Mar 21, 2020
5fea69c
Merge branch 'master' into v1.3.0-integration
markerikson Mar 21, 2020
105acb9
1.3.0-beta.1
markerikson Mar 21, 2020
d1e6c8c
Update list of APIs and README
markerikson Mar 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@ node_modules
dist
lib
es
yarn.lock


.idea/
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -2,11 +2,10 @@ language: node_js
node_js: node
env:
- TYPESCRIPT_VERSION=rc
- TYPESCRIPT_VERSION=3.8
- TYPESCRIPT_VERSION=3.7
- TYPESCRIPT_VERSION=3.6
- TYPESCRIPT_VERSION=3.5
- TYPESCRIPT_VERSION=3.4
- TYPESCRIPT_VERSION=3.3
install:
- npm ci --ignore-scripts
- npm install typescript@$TYPESCRIPT_VERSION
Expand Down
15 changes: 8 additions & 7 deletions README.md
Expand Up @@ -3,7 +3,6 @@
[![build status](https://img.shields.io/travis/reduxjs/redux-toolkit/master.svg?style=flat-square)](https://travis-ci.org/reduxjs/redux-toolkit)
[![npm version](https://img.shields.io/npm/v/@reduxjs/toolkit.svg?style=flat-square)](https://www.npmjs.com/package/@reduxjs/toolkit)
[![npm downloads](https://img.shields.io/npm/dm/@reduxjs/toolkit.svg?style=flat-square&label=RTK+downloads)](https://www.npmjs.com/package/@reduxjs/toolkit)
[![npm downloads](https://img.shields.io/npm/dm/redux-starter-kit.svg?style=flat-square&label=RSK+downloads)](https://www.npmjs.com/package/redux-starter-kit)

**The official, opinionated, batteries-included toolset for efficient Redux development**

Expand Down Expand Up @@ -44,16 +43,18 @@ The **Redux Toolkit** package is intended to be the standard way to write Redux

We can't solve every use case, but in the spirit of [`create-react-app`](https://github.com/facebook/create-react-app) and [`apollo-boost`](https://dev-blog.apollodata.com/zero-config-graphql-state-management-27b1f1b3c2c3), we can try to provide some tools that abstract over the setup process and handle the most common use cases, as well as include some useful utilities that will let the user simplify their application code.

This package is _not_ intended to solve every possible use case for Redux, and is deliberately limited in scope. It does _not_ address concepts like "reusable encapsulated Redux modules", data fetching, folder or file structures, managing entity relationships in the store, and so on.
Because of that, this package is deliberately limited in scope. It does _not_ address concepts like "reusable encapsulated Redux modules", data caching, folder or file structures, managing entity relationships in the store, and so on.

## What's Included

Redux Toolkit includes:
Redux Toolkit includes these APIs:

- A `configureStore()` function with simplified configuration options. It can automatically combine your slice reducers, adds whatever Redux middleware you supply, includes `redux-thunk` by default, and enables use of the Redux DevTools Extension.
- A `createReducer()` utility that lets you supply a lookup table of action types to case reducer functions, rather than writing switch statements. In addition, it automatically uses the [`immer` library](https://github.com/mweststrate/immer) to let you write simpler immutable updates with normal mutative code, like `state.todos[3].completed = true`.
- A `createAction()` utility that returns an action creator function for the given action type string. The function itself has `toString()` defined, so that it can be used in place of the type constant.
- A `createSlice()` function that accepts a set of reducer functions, a slice name, and an initial state value, and automatically generates a slice reducer with corresponding action creators and action types.
- `configureStore()`: wraps `createStore` to provide simplified configuration options and good defaults. It can automatically combine your slice reducers, adds whatever Redux middleware you supply, includes `redux-thunk` by default, and enables use of the Redux DevTools Extension.
- `createReducer()`: that lets you supply a lookup table of action types to case reducer functions, rather than writing switch statements. In addition, it automatically uses the [`immer` library](https://github.com/mweststrate/immer) to let you write simpler immutable updates with normal mutative code, like `state.todos[3].completed = true`.
- `createAction()`: generates an action creator function for the given action type string. The function itself has `toString()` defined, so that it can be used in place of the type constant.
- `createSlice()`: accepts an object of reducer functions, a slice name, and an initial state value, and automatically generates a slice reducer with corresponding action creators and action types.
- `createAsyncThunk`: accepts an action type string and a function that returns a promise, and generates a thunk that dispatches `pending/resolved/rejected` action types based on that promise
- `createEntityAdapter`: generates a set of reusable reducers and selectors to manage normalized data in the store
- The `createSelector` utility from the [Reselect](https://github.com/reduxjs/reselect) library, re-exported for ease of use.

## Documentation
Expand Down