diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json new file mode 100644 index 00000000000..f86122cef48 --- /dev/null +++ b/.codesandbox/ci.json @@ -0,0 +1,7 @@ +{ + "sandboxes": [ + "vanilla", + "vanilla-ts" + ], + "node": "14" +} diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000000..ddfcd66c748 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: timdorr diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/Bug_report.md deleted file mode 100644 index a32167a58a7..00000000000 --- a/.github/ISSUE_TEMPLATE/Bug_report.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -name: "\U0001F41BBug report" -about: Something is wrong with Redux. ---- - -**Do you want to request a _feature_ or report a _bug_?** - -(If this is a _usage question_, please **do not post it here**—post it on [Stack Overflow](http://stackoverflow.com/questions/tagged/redux) instead. If this is not a “feature” or a “bug”, or the phrase “How do I...?” applies, then it's probably a usage question.) - -**What is the current behavior?** - -**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.** - -**What is the expected behavior?** - -**Which versions of Redux, and which browser and OS are affected by this issue? Did this work in previous versions of Redux?** diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md.REMOVED.git-id b/.github/ISSUE_TEMPLATE/Bug_report.md.REMOVED.git-id new file mode 100644 index 00000000000..b9ce00b28ba --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Bug_report.md.REMOVED.git-id @@ -0,0 +1 @@ +0af257525b41f26a90c844bcf0da117902f1e70a \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/Custom.md b/.github/ISSUE_TEMPLATE/Custom.md deleted file mode 100644 index 1af46015650..00000000000 --- a/.github/ISSUE_TEMPLATE/Custom.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -name: "\U0001F914Support/Usage Question" -about: For usage questions, please use Stack Overflow or Reactiflux! ---- - -This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks! - -https://stackoverflow.com/questions/tagged/redux -https://www.reactiflux.com/ diff --git a/.github/ISSUE_TEMPLATE/Feature_request.md.REMOVED.git-id b/.github/ISSUE_TEMPLATE/Feature_request.md.REMOVED.git-id new file mode 100644 index 00000000000..40bb9c0ad96 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Feature_request.md.REMOVED.git-id @@ -0,0 +1 @@ +ac4ce16fd614c255da122749bc972c90bfe40a28 \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000000..8cffa4e1cf7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: 🤔 Questions and Help + url: https://redux.js.org/introduction/getting-started#help-and-discussion + about: This is a bug tracker, not a support system. For usage questions, please use our support resources. diff --git a/.github/ISSUE_TEMPLATE/documentation-edit.md b/.github/ISSUE_TEMPLATE/documentation-edit.md new file mode 100644 index 00000000000..a091b43ae2e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation-edit.md @@ -0,0 +1,13 @@ +--- +name: "\U0001F4DD Documentation Fix" +about: Fixing a problem in an existing docs page +--- + +## What docs page needs to be fixed? + +- **Section**: +- **Page**: + +## What is the problem? + +## What should be changed to fix the problem? diff --git a/.github/ISSUE_TEMPLATE/documentation-new.md b/.github/ISSUE_TEMPLATE/documentation-new.md new file mode 100644 index 00000000000..07c357190e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation-new.md @@ -0,0 +1,27 @@ +--- +name: "\U0001F4D6 New/Updated Documentation Content" +about: Adding a new docs page, or updating content in an existing docs page +--- + +## What docs page is being added or updated? + +- **Section**: +- **Page**: + +## For Adding New Content + +### What kind of content category is this page (tutorial, how-to, explanation, reference)? + +### Who is the intended target audience? + +#### What knowledge are we assuming they have? + +### What are the intended results or takeaways from reading this page? + +### What is the most critical info they should learn? + +## For Updating Existing Content + +### What updates should be made to the page? + +### Do these updates change any of the assumptions or target audience? If so, how do they change? diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000000..3e716ba1fb1 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,9 @@ +Thanks for the PR! + +To better assist you, please select the type of PR you want to create. + +Click the "Preview" tab above, and click on the link for the PR type: + +- [:bug: Bug fix or new feature](?template=bugfix.md) +- [:memo: Documentation Fix](?template=documentation-edit.md) +- [:book: New/Updated Documentation Content](?template=documentation-new.md) diff --git a/.github/PULL_REQUEST_TEMPLATE/bugfix.md b/.github/PULL_REQUEST_TEMPLATE/bugfix.md new file mode 100644 index 00000000000..4c1126132c9 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/bugfix.md @@ -0,0 +1,34 @@ +--- +name: :bug: Bug fix or new feature +about: Fixing a problem with Redux +--- + +## PR Type + +### Does this PR add a new _feature_, or fix a _bug_? + +### Why should this PR be included? + +## Checklist + +- [ ] Have you added an explanation of what your changes do and why you'd like us to include them? +- [ ] Is there an existing issue for this PR? + - _link issue here_ +- [ ] Have the files been linted and formatted? +- [ ] Have the docs been updated to match the changes in the PR? +- [ ] Have the tests been updated to match the changes in the PR? +- [ ] Have you run the tests locally to confirm they pass? + +## New Features + +### What new capabilities does this PR add? + +### What docs changes are needed to explain this? + +## Bug Fixes + +### What is the current behavior, and the steps to reproduce the issue? + +### What is the expected behavior? + +### How does this PR fix the problem? diff --git a/.github/PULL_REQUEST_TEMPLATE/documentation-edit.md b/.github/PULL_REQUEST_TEMPLATE/documentation-edit.md new file mode 100644 index 00000000000..8dcb0ac1c26 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/documentation-edit.md @@ -0,0 +1,19 @@ +--- +name: :memo: Documentation Fix +about: Fixing a problem in an existing docs page +--- + +## Checklist + +- [ ] Is there an existing issue for this PR? + - _link issue here_ +- [ ] Have the files been linted and formatted? + +## What docs page needs to be fixed? + +- **Section**: +- **Page**: + +## What is the problem? + +## What changes does this PR make to fix the problem? diff --git a/.github/PULL_REQUEST_TEMPLATE/documentation-new.md b/.github/PULL_REQUEST_TEMPLATE/documentation-new.md new file mode 100644 index 00000000000..444bce15663 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/documentation-new.md @@ -0,0 +1,37 @@ +--- +name: :book: New/Updated Documentation Content +about: Adding a new docs page, or updating content in an existing docs page +--- + +## PR Type + +**Does this PR add a _new_ page, or update an _existing_ page?** + +## Checklist + +- [ ] Is there an existing issue for this PR? + - _link issue here_ +- [ ] Have the files been linted and formatted? + +## What docs page is being added or updated? + +- **Section**: +- **Page**: + +## For Adding New Content + +### What kind of content category is this page (tutorial, how-to, explanation, reference)? + +### Who is the intended target audience? + +#### What knowledge are we assuming they have? + +### What are the intended results or takeaways from reading this page? + +### What is the most critical info they should learn? + +## For Updating Existing Content + +### What updates should be made to the page? + +### Do these updates change any of the assumptions or target audience? If so, how do they change? diff --git a/.github/workflows/size.yaml b/.github/workflows/size.yaml new file mode 100644 index 00000000000..5c2d03985be --- /dev/null +++ b/.github/workflows/size.yaml @@ -0,0 +1,17 @@ +name: Bundle Size + +on: [pull_request] + +jobs: + build: + name: Check compressed size + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2-beta + with: + fetch-depth: 1 + - uses: preactjs/compressed-size-action@v1 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' + pattern: './{dist,es,lib}/*.js' diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000000..81eb91a374e --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,42 @@ +name: Tests + +on: + push: + branches: [4.x] + pull_request: + branches: [4.x] + +jobs: + build: + name: Test Suite + runs-on: ubuntu-latest + + steps: + - name: Set up Node + uses: actions/setup-node@v1 + with: + node-version: 14.x + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.OS }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-npm- + ${{ runner.OS }}- + + - name: Install dependencies + run: npm ci + + - name: Check formatting + run: npm run format:check + + - name: Lint code + run: npm run lint + + - name: Run test suite + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d85cbce942d..00000000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: node -cache: npm -script: - - npm run examples:lint - - npm run examples:test diff --git a/docs/Troubleshooting.md.REMOVED.git-id b/docs/Troubleshooting.md.REMOVED.git-id index 1e9aca6dd27..805e074589b 100644 --- a/docs/Troubleshooting.md.REMOVED.git-id +++ b/docs/Troubleshooting.md.REMOVED.git-id @@ -1 +1 @@ -3396f25b19f4d2e560ed90b0ed297fd99a7c35b7 \ No newline at end of file +c06ccbba45638215c49a3b7aebc99bf55167ce18 \ No newline at end of file diff --git a/docs/advanced/AsyncActions.md.REMOVED.git-id b/docs/advanced/AsyncActions.md.REMOVED.git-id index a76d468a1f7..06aec1b767c 100644 --- a/docs/advanced/AsyncActions.md.REMOVED.git-id +++ b/docs/advanced/AsyncActions.md.REMOVED.git-id @@ -1 +1 @@ -5e684f193c4f4266f940fc4a13ca258c785e65b1 \ No newline at end of file +2f81f76bc2af8a43c3cce5e45d39d60839d270af \ No newline at end of file diff --git a/docs/advanced/ExampleRedditAPI.md.REMOVED.git-id b/docs/advanced/ExampleRedditAPI.md.REMOVED.git-id index acb20114fe1..3d6562ec9ef 100644 --- a/docs/advanced/ExampleRedditAPI.md.REMOVED.git-id +++ b/docs/advanced/ExampleRedditAPI.md.REMOVED.git-id @@ -1 +1 @@ -49102d986df3bc216a45d7135a9b2512d7a495ce \ No newline at end of file +3ececd6913eabc9d8687e734f99c515713bb07dd \ No newline at end of file diff --git a/docs/advanced/Middleware.md.REMOVED.git-id b/docs/advanced/Middleware.md.REMOVED.git-id index e57b7fcc16b..a81a0fd3c40 100644 --- a/docs/advanced/Middleware.md.REMOVED.git-id +++ b/docs/advanced/Middleware.md.REMOVED.git-id @@ -1 +1 @@ -a573d2a32cfc6baaa712f47a489ba4db0ee50460 \ No newline at end of file +f8286779c4b42c238a5348f655b0d86b03d209a3 \ No newline at end of file diff --git a/docs/advanced/UsageWithReactRouter.md.REMOVED.git-id b/docs/advanced/UsageWithReactRouter.md.REMOVED.git-id index fedff7bb50a..574f84dc66f 100644 --- a/docs/advanced/UsageWithReactRouter.md.REMOVED.git-id +++ b/docs/advanced/UsageWithReactRouter.md.REMOVED.git-id @@ -1 +1 @@ -c41d02a13b6497029eaba6c07ff12cd5ff773af4 \ No newline at end of file +b6fb5d8f22cf43a990baee1bf0a18e052eefbd32 \ No newline at end of file diff --git a/docs/api/Store.md.REMOVED.git-id b/docs/api/Store.md.REMOVED.git-id index 910a1712999..cfb1c494447 100644 --- a/docs/api/Store.md.REMOVED.git-id +++ b/docs/api/Store.md.REMOVED.git-id @@ -1 +1 @@ -a1e3531009cbbed0d8e2b3bf76b2f96e0f6fe919 \ No newline at end of file +577bff063a66d635a83dedeb33ebf1d57bbc04e6 \ No newline at end of file diff --git a/docs/api/applyMiddleware.md.REMOVED.git-id b/docs/api/applyMiddleware.md.REMOVED.git-id index d6319e937a7..3e228a5de97 100644 --- a/docs/api/applyMiddleware.md.REMOVED.git-id +++ b/docs/api/applyMiddleware.md.REMOVED.git-id @@ -1 +1 @@ -39bb8971fca8a21d345eec00cebf9a7fc4830bbd \ No newline at end of file +d46240620d2877262ebbf93ab242de64442ef822 \ No newline at end of file diff --git a/docs/api/bindActionCreators.md.REMOVED.git-id b/docs/api/bindActionCreators.md.REMOVED.git-id index 867ae00bfca..7f1d3d502fd 100644 --- a/docs/api/bindActionCreators.md.REMOVED.git-id +++ b/docs/api/bindActionCreators.md.REMOVED.git-id @@ -1 +1 @@ -a0afb131b9f54bb72e9166cd3764199ca953e3ec \ No newline at end of file +9e26632212283ab51cf66735605cae0a94568ef7 \ No newline at end of file diff --git a/docs/api/combineReducers.md.REMOVED.git-id b/docs/api/combineReducers.md.REMOVED.git-id index b228106c48a..f559d06063b 100644 --- a/docs/api/combineReducers.md.REMOVED.git-id +++ b/docs/api/combineReducers.md.REMOVED.git-id @@ -1 +1 @@ -0a489a4c8f7cf620d54fdbf3a6d03cc78968e366 \ No newline at end of file +c332b93c5410c310e9aeedd24575c1db55e896bc \ No newline at end of file diff --git a/docs/api/compose.md.REMOVED.git-id b/docs/api/compose.md.REMOVED.git-id index f7805fdf662..ac153850925 100644 --- a/docs/api/compose.md.REMOVED.git-id +++ b/docs/api/compose.md.REMOVED.git-id @@ -1 +1 @@ -bb9b65f8ad56345cc5f376b4007920781b115d34 \ No newline at end of file +ce6d828ff4ca977cc3cfcaad3486e6bf5aeb5ea2 \ No newline at end of file diff --git a/docs/api/createStore.md.REMOVED.git-id b/docs/api/createStore.md.REMOVED.git-id index ab10ad07cbb..4844c489cee 100644 --- a/docs/api/createStore.md.REMOVED.git-id +++ b/docs/api/createStore.md.REMOVED.git-id @@ -1 +1 @@ -569776cfa19ed32d32df47effd9649bf22fa6bf9 \ No newline at end of file +52372db2c366ef04ee0ddc6457bbe5eaf59ecb9f \ No newline at end of file diff --git a/docs/basics/Actions.md.REMOVED.git-id b/docs/basics/Actions.md.REMOVED.git-id index a3d8ed327e6..cc09a348981 100644 --- a/docs/basics/Actions.md.REMOVED.git-id +++ b/docs/basics/Actions.md.REMOVED.git-id @@ -1 +1 @@ -01bc6b9cdb07f1895870c968552e4dcef421a3c5 \ No newline at end of file +abb23c5fa300d8d2b5bcb7612b8864a13e2ea8e6 \ No newline at end of file diff --git a/docs/basics/DataFlow.md.REMOVED.git-id b/docs/basics/DataFlow.md.REMOVED.git-id index 7976ec6387c..8efdfee83b0 100644 --- a/docs/basics/DataFlow.md.REMOVED.git-id +++ b/docs/basics/DataFlow.md.REMOVED.git-id @@ -1 +1 @@ -07f664685b81c001aa1239723f001dbe46e7994a \ No newline at end of file +1e512444e3842ab82a822085c81d6f54496dc075 \ No newline at end of file diff --git a/docs/basics/ExampleTodoList.md.REMOVED.git-id b/docs/basics/ExampleTodoList.md.REMOVED.git-id index 69c75ad0d7e..19007b6ed3e 100644 --- a/docs/basics/ExampleTodoList.md.REMOVED.git-id +++ b/docs/basics/ExampleTodoList.md.REMOVED.git-id @@ -1 +1 @@ -72c1202d23c35fbdce4718f4719247ea13f9c8d3 \ No newline at end of file +833f0c92fd5acb6e192e456b42b2388e0858d45d \ No newline at end of file diff --git a/docs/basics/Reducers.md.REMOVED.git-id b/docs/basics/Reducers.md.REMOVED.git-id index 495592b9591..346c67e4af3 100644 --- a/docs/basics/Reducers.md.REMOVED.git-id +++ b/docs/basics/Reducers.md.REMOVED.git-id @@ -1 +1 @@ -6574b0ff60a65f8cf4609edab3bb63b8f9d9a88d \ No newline at end of file +1f3af108ea006f99b121bc9b7ad3c1a65637d572 \ No newline at end of file diff --git a/docs/basics/Store.md.REMOVED.git-id b/docs/basics/Store.md.REMOVED.git-id index 5efcb9d6b37..37475c31f93 100644 --- a/docs/basics/Store.md.REMOVED.git-id +++ b/docs/basics/Store.md.REMOVED.git-id @@ -1 +1 @@ -2a642d4b11640d4761b44fd95fa22fc808647925 \ No newline at end of file +692ff0020c8239be97a07d841a1ccad325c0a674 \ No newline at end of file diff --git a/docs/basics/UsageWithReact.md.REMOVED.git-id b/docs/basics/UsageWithReact.md.REMOVED.git-id index 6bfc1977300..0aa6f374a03 100644 --- a/docs/basics/UsageWithReact.md.REMOVED.git-id +++ b/docs/basics/UsageWithReact.md.REMOVED.git-id @@ -1 +1 @@ -3bc00bb07f751419aeb4daf6e5806b0ba2d3c001 \ No newline at end of file +28e112ed93daf57e194277aef7a930644e19ed2b \ No newline at end of file diff --git a/docs/faq/ImmutableData.md.REMOVED.git-id b/docs/faq/ImmutableData.md.REMOVED.git-id index e3e291a69f2..d7486a41be6 100644 --- a/docs/faq/ImmutableData.md.REMOVED.git-id +++ b/docs/faq/ImmutableData.md.REMOVED.git-id @@ -1 +1 @@ -18878fbcf29891ec8666a7740ef4697375b9b0a7 \ No newline at end of file +002ff61fd3598fd3a419a1e8dfa4e8582645b9d3 \ No newline at end of file diff --git a/docs/faq/ReactRedux.md.REMOVED.git-id b/docs/faq/ReactRedux.md.REMOVED.git-id index 06dc88b5913..ad705a5170f 100644 --- a/docs/faq/ReactRedux.md.REMOVED.git-id +++ b/docs/faq/ReactRedux.md.REMOVED.git-id @@ -1 +1 @@ -db10cbc0164ada5be7c9ef99b84e058af88a1386 \ No newline at end of file +ef516d3a21db308c5c25ccd6d726fb12cff877cb \ No newline at end of file diff --git a/docs/introduction/CoreConcepts.md.REMOVED.git-id b/docs/introduction/CoreConcepts.md.REMOVED.git-id index 73d40e2ae6e..09a6097d8d6 100644 --- a/docs/introduction/CoreConcepts.md.REMOVED.git-id +++ b/docs/introduction/CoreConcepts.md.REMOVED.git-id @@ -1 +1 @@ -95d288c2e76efaac4f6763a921593fc75d615b71 \ No newline at end of file +979fd52114a4caa517566a583443151be1c6db46 \ No newline at end of file diff --git a/docs/introduction/Ecosystem.md.REMOVED.git-id b/docs/introduction/Ecosystem.md.REMOVED.git-id index 81582a1f14f..272894c92c0 100644 --- a/docs/introduction/Ecosystem.md.REMOVED.git-id +++ b/docs/introduction/Ecosystem.md.REMOVED.git-id @@ -1 +1 @@ -9d5eafa60099d158e4e33deb83f9274e335ce7d7 \ No newline at end of file +62c6ee0946f1ab13bd413e694d3a2abb4240de66 \ No newline at end of file diff --git a/docs/introduction/PriorArt.md.REMOVED.git-id b/docs/introduction/PriorArt.md.REMOVED.git-id index 2d5e70b6082..6e1986d3dc7 100644 --- a/docs/introduction/PriorArt.md.REMOVED.git-id +++ b/docs/introduction/PriorArt.md.REMOVED.git-id @@ -1 +1 @@ -7de044220b8cf735faa64ef8a67ff7fb6f53d088 \ No newline at end of file +416311eba37cc5c2b0207be06988f83ca960a85a \ No newline at end of file diff --git a/docs/introduction/ThreePrinciples.md.REMOVED.git-id b/docs/introduction/ThreePrinciples.md.REMOVED.git-id index 1ca1a742ea6..f169ef609c8 100644 --- a/docs/introduction/ThreePrinciples.md.REMOVED.git-id +++ b/docs/introduction/ThreePrinciples.md.REMOVED.git-id @@ -1 +1 @@ -92e7d2ddaabf1b250cf90631d5f522660120b361 \ No newline at end of file +bcf804e6f41e0a463c45c8b8b96a86fea0283d48 \ No newline at end of file diff --git a/docs/recipes/CodeSplitting.md.REMOVED.git-id b/docs/recipes/CodeSplitting.md.REMOVED.git-id index 72670ad94ce..2b199cbadfa 100644 --- a/docs/recipes/CodeSplitting.md.REMOVED.git-id +++ b/docs/recipes/CodeSplitting.md.REMOVED.git-id @@ -1 +1 @@ -337a733013a8045eff85ca2a79ba73fe76382fae \ No newline at end of file +26d26564b9246c06ee029d5ae3f38a1555e57a11 \ No newline at end of file diff --git a/docs/recipes/ComputingDerivedData.md.REMOVED.git-id b/docs/recipes/ComputingDerivedData.md.REMOVED.git-id index 504eaf47f4f..67e59e57ada 100644 --- a/docs/recipes/ComputingDerivedData.md.REMOVED.git-id +++ b/docs/recipes/ComputingDerivedData.md.REMOVED.git-id @@ -1 +1 @@ -f535a8a97619603b267c69839b8e986dea4e6b4a \ No newline at end of file +1f2020c9d7c1cd206ca0aa1cab468b4bbe91c720 \ No newline at end of file diff --git a/docs/recipes/ConfiguringYourStore.md.REMOVED.git-id b/docs/recipes/ConfiguringYourStore.md.REMOVED.git-id index da4a3a81bd7..6245dc4e731 100644 --- a/docs/recipes/ConfiguringYourStore.md.REMOVED.git-id +++ b/docs/recipes/ConfiguringYourStore.md.REMOVED.git-id @@ -1 +1 @@ -363746d5bf7b91f05eb6af714d3d078a6dd3fd53 \ No newline at end of file +6d6f549fd22ea703431d3dd51ce725e7ce679450 \ No newline at end of file diff --git a/docs/recipes/ImplementingUndoHistory.md.REMOVED.git-id b/docs/recipes/ImplementingUndoHistory.md.REMOVED.git-id index badfc5707d7..d62b7214284 100644 --- a/docs/recipes/ImplementingUndoHistory.md.REMOVED.git-id +++ b/docs/recipes/ImplementingUndoHistory.md.REMOVED.git-id @@ -1 +1 @@ -d33491ea0b2210de25f56100f1a2a5ae6ae44b96 \ No newline at end of file +c478feab512ca4c20be73d79d0a612500e11f0e6 \ No newline at end of file diff --git a/docs/recipes/ReducingBoilerplate.md.REMOVED.git-id b/docs/recipes/ReducingBoilerplate.md.REMOVED.git-id index 1ad7777099c..5cab5a3bf54 100644 --- a/docs/recipes/ReducingBoilerplate.md.REMOVED.git-id +++ b/docs/recipes/ReducingBoilerplate.md.REMOVED.git-id @@ -1 +1 @@ -a851d648a911d0f1478c7ff0055aaaaf78ed75bc \ No newline at end of file +e390f528a3c5ed2a46996984b3a4768a4665cd77 \ No newline at end of file diff --git a/docs/recipes/ServerRendering.md.REMOVED.git-id b/docs/recipes/ServerRendering.md.REMOVED.git-id index d1d399fe622..f522d6e25da 100644 --- a/docs/recipes/ServerRendering.md.REMOVED.git-id +++ b/docs/recipes/ServerRendering.md.REMOVED.git-id @@ -1 +1 @@ -1e4de19d290b11cf02ff290eb3c6242eea4486e3 \ No newline at end of file +e3d608a268b152ab756d49e00bab04914b9f2f75 \ No newline at end of file diff --git a/docs/recipes/UsageWithTypescript.md.REMOVED.git-id b/docs/recipes/UsageWithTypescript.md.REMOVED.git-id index 7b8e07ce047..8cdc5dbe3a6 100644 --- a/docs/recipes/UsageWithTypescript.md.REMOVED.git-id +++ b/docs/recipes/UsageWithTypescript.md.REMOVED.git-id @@ -1 +1 @@ -e1476285b5e3e037de7b254b5605f1d4008c167e \ No newline at end of file +aafef961d3cf4c1985c28785241842ded97b3f54 \ No newline at end of file diff --git a/docs/recipes/UsingImmutableJS.md.REMOVED.git-id b/docs/recipes/UsingImmutableJS.md.REMOVED.git-id index c8ddba8daad..8533c6ca4ef 100644 --- a/docs/recipes/UsingImmutableJS.md.REMOVED.git-id +++ b/docs/recipes/UsingImmutableJS.md.REMOVED.git-id @@ -1 +1 @@ -0f657dc8e65f71f06f3bd58fe96cf5ff3fc5b156 \ No newline at end of file +b5d9e44d300eb8b581e66cc5a0a5faa65898a1c8 \ No newline at end of file diff --git a/docs/recipes/UsingObjectSpreadOperator.md.REMOVED.git-id b/docs/recipes/UsingObjectSpreadOperator.md.REMOVED.git-id index 8670c83c2f0..8055516a9df 100644 --- a/docs/recipes/UsingObjectSpreadOperator.md.REMOVED.git-id +++ b/docs/recipes/UsingObjectSpreadOperator.md.REMOVED.git-id @@ -1 +1 @@ -fa860b867a287c5aa13c7bbec2eac51325c729fa \ No newline at end of file +eaa32db94650a87f21b894da6c14c5e9b4982d1e \ No newline at end of file diff --git a/docs/recipes/WritingTests.md.REMOVED.git-id b/docs/recipes/WritingTests.md.REMOVED.git-id index f528b4a3c3b..40eaebfc832 100644 --- a/docs/recipes/WritingTests.md.REMOVED.git-id +++ b/docs/recipes/WritingTests.md.REMOVED.git-id @@ -1 +1 @@ -4b87a534c878a43d94f2ba8834efa8e76fd7fd8b \ No newline at end of file +30c9120200f1f5102617f681822c8298f0a3a56f \ No newline at end of file diff --git a/docs/recipes/structuring-reducers/BeyondCombineReducers.md.REMOVED.git-id b/docs/recipes/structuring-reducers/BeyondCombineReducers.md.REMOVED.git-id index 04989b12f7b..d078460a31b 100644 --- a/docs/recipes/structuring-reducers/BeyondCombineReducers.md.REMOVED.git-id +++ b/docs/recipes/structuring-reducers/BeyondCombineReducers.md.REMOVED.git-id @@ -1 +1 @@ -2220bfe7f76445cb060903cc572ac6232bc55e05 \ No newline at end of file +2525a2394364d8450c652c99ce35d47e3d1e9eca \ No newline at end of file diff --git a/docs/recipes/structuring-reducers/ImmutableUpdatePatterns.md.REMOVED.git-id b/docs/recipes/structuring-reducers/ImmutableUpdatePatterns.md.REMOVED.git-id index 48b59545e24..b3c26431c03 100644 --- a/docs/recipes/structuring-reducers/ImmutableUpdatePatterns.md.REMOVED.git-id +++ b/docs/recipes/structuring-reducers/ImmutableUpdatePatterns.md.REMOVED.git-id @@ -1 +1 @@ -b6b4d0656ac2f9a1d3b2e6da4bcaec0404e61c63 \ No newline at end of file +88ab310ddd5498e645a58906bb6395ca93517f4d \ No newline at end of file diff --git a/docs/recipes/structuring-reducers/InitializingState.md.REMOVED.git-id b/docs/recipes/structuring-reducers/InitializingState.md.REMOVED.git-id index 66e30ea9c4c..700550dae88 100644 --- a/docs/recipes/structuring-reducers/InitializingState.md.REMOVED.git-id +++ b/docs/recipes/structuring-reducers/InitializingState.md.REMOVED.git-id @@ -1 +1 @@ -bd793942e4dfa4fd18aa7fad22a2fdd281e159c9 \ No newline at end of file +3388465d6514dcc68ce59e5d3d7d4fc452f3dde6 \ No newline at end of file diff --git a/docs/recipes/structuring-reducers/NormalizingStateShape.md.REMOVED.git-id b/docs/recipes/structuring-reducers/NormalizingStateShape.md.REMOVED.git-id index 0a83e9b49b5..99e06f05bdd 100644 --- a/docs/recipes/structuring-reducers/NormalizingStateShape.md.REMOVED.git-id +++ b/docs/recipes/structuring-reducers/NormalizingStateShape.md.REMOVED.git-id @@ -1 +1 @@ -5121ebb4571a3b743f5567b3edcd0d6fda261a81 \ No newline at end of file +eb9a26f8dfef517a6c1fc59bab5b6e7389656921 \ No newline at end of file diff --git a/docs/recipes/structuring-reducers/RefactoringReducersExample.md.REMOVED.git-id b/docs/recipes/structuring-reducers/RefactoringReducersExample.md.REMOVED.git-id index 735896208dd..941a5613f39 100644 --- a/docs/recipes/structuring-reducers/RefactoringReducersExample.md.REMOVED.git-id +++ b/docs/recipes/structuring-reducers/RefactoringReducersExample.md.REMOVED.git-id @@ -1 +1 @@ -7c6dd78179ccdf8ded37fc9f245a235bd2755d88 \ No newline at end of file +34da98e556350a097d73e1bbe89fc1039ac8660b \ No newline at end of file diff --git a/docs/recipes/structuring-reducers/ReusingReducerLogic.md.REMOVED.git-id b/docs/recipes/structuring-reducers/ReusingReducerLogic.md.REMOVED.git-id index 0fa2c6a6538..2c470b8af3d 100644 --- a/docs/recipes/structuring-reducers/ReusingReducerLogic.md.REMOVED.git-id +++ b/docs/recipes/structuring-reducers/ReusingReducerLogic.md.REMOVED.git-id @@ -1 +1 @@ -5c6f8127c858dfdf423eb7a9c73fa437273cdee9 \ No newline at end of file +586a6e7f0432d01756011add5709f11c9e98fcc7 \ No newline at end of file diff --git a/docs/recipes/structuring-reducers/UpdatingNormalizedData.md.REMOVED.git-id b/docs/recipes/structuring-reducers/UpdatingNormalizedData.md.REMOVED.git-id index 6593b99e063..df44fdd001c 100644 --- a/docs/recipes/structuring-reducers/UpdatingNormalizedData.md.REMOVED.git-id +++ b/docs/recipes/structuring-reducers/UpdatingNormalizedData.md.REMOVED.git-id @@ -1 +1 @@ -ceeff11d048c293bae946646831000b7d7cfdb7c \ No newline at end of file +f9b2f915a99f8a562620069b8dcc14e2a2e85430 \ No newline at end of file diff --git a/docs/recipes/structuring-reducers/UsingCombineReducers.md.REMOVED.git-id b/docs/recipes/structuring-reducers/UsingCombineReducers.md.REMOVED.git-id index ba553eb5c3f..ac7a35b7d56 100644 --- a/docs/recipes/structuring-reducers/UsingCombineReducers.md.REMOVED.git-id +++ b/docs/recipes/structuring-reducers/UsingCombineReducers.md.REMOVED.git-id @@ -1 +1 @@ -96f4d1e808f91e0b1e591566922739cadd962106 \ No newline at end of file +2aba579976b72410ce87d8ad379aa387ed7167c4 \ No newline at end of file diff --git a/index.d.ts.REMOVED.git-id b/index.d.ts.REMOVED.git-id index 2497d991db2..808591b4d0c 100644 --- a/index.d.ts.REMOVED.git-id +++ b/index.d.ts.REMOVED.git-id @@ -1 +1 @@ -1e3804ae97a94c7df4b0ef62d720b4a21a5d8409 \ No newline at end of file +b00c6f0885b9df7bf80500d9545dfb59f400a42c \ No newline at end of file diff --git a/package-lock.json.REMOVED.git-id b/package-lock.json.REMOVED.git-id index 988058e33f3..dae1457441f 100644 --- a/package-lock.json.REMOVED.git-id +++ b/package-lock.json.REMOVED.git-id @@ -1 +1 @@ -2618868ad656fc320d4bca9cd6089f561b87c35d \ No newline at end of file +e4462bfb499861758fc942df7c5557d153bf581d \ No newline at end of file diff --git a/package.json.REMOVED.git-id b/package.json.REMOVED.git-id index 813b634f057..326da3abb2e 100644 --- a/package.json.REMOVED.git-id +++ b/package.json.REMOVED.git-id @@ -1 +1 @@ -c16e8e4c71a5044a2d76868014298586e29072c7 \ No newline at end of file +a57914cae33a3f9e1ecd2615f109a6518f8dd023 \ No newline at end of file diff --git a/rollup.config.js.REMOVED.git-id b/rollup.config.js.REMOVED.git-id index 1425b498a43..f10856d70e5 100644 --- a/rollup.config.js.REMOVED.git-id +++ b/rollup.config.js.REMOVED.git-id @@ -1 +1 @@ -07297f2bc2205b6f21539ca6f1c50d96d4cb9096 \ No newline at end of file +9a32e5147923b5983dc0e24124a9d0ba9ebf126a \ No newline at end of file diff --git a/src/applyMiddleware.js.REMOVED.git-id b/src/applyMiddleware.js.REMOVED.git-id index 0c1cae652db..c5a10477478 100644 --- a/src/applyMiddleware.js.REMOVED.git-id +++ b/src/applyMiddleware.js.REMOVED.git-id @@ -1 +1 @@ -3bfc647b4551caa216022e7c3ede3a7153671f6d \ No newline at end of file +8810762619d76f31a60d971237b0abbc8cfa307e \ No newline at end of file diff --git a/src/bindActionCreators.js.REMOVED.git-id b/src/bindActionCreators.js.REMOVED.git-id index 2c37991f33e..5512f7b2ae9 100644 --- a/src/bindActionCreators.js.REMOVED.git-id +++ b/src/bindActionCreators.js.REMOVED.git-id @@ -1 +1 @@ -0e47477deffdd1cbd970afb39b3e27c2f4160116 \ No newline at end of file +dd78819e5615a221c5f5d6224b44cf72f4fd63f4 \ No newline at end of file diff --git a/src/combineReducers.js.REMOVED.git-id b/src/combineReducers.js.REMOVED.git-id index b5b77fdb7af..b64e3f74b26 100644 --- a/src/combineReducers.js.REMOVED.git-id +++ b/src/combineReducers.js.REMOVED.git-id @@ -1 +1 @@ -bdbcfb2291b2957ab51f50b7f2c7f2609a71db20 \ No newline at end of file +dcf06f2829ebc3ab3c0c9f85735e81e32b36eeb6 \ No newline at end of file diff --git a/src/compose.js b/src/compose.js index be6cc34ef16..f256bb77cd6 100644 --- a/src/compose.js +++ b/src/compose.js @@ -11,7 +11,7 @@ export default function compose(...funcs) { if (funcs.length === 0) { - return arg => arg + return (arg) => arg } if (funcs.length === 1) { diff --git a/src/createStore.js.REMOVED.git-id b/src/createStore.js.REMOVED.git-id index 7dc5ec95c4d..190a92a4a78 100644 --- a/src/createStore.js.REMOVED.git-id +++ b/src/createStore.js.REMOVED.git-id @@ -1 +1 @@ -cef9a2ecaeff319d4986af24babf1c79ec9912c6 \ No newline at end of file +45b09aca009a5a9a2298800982c77b87e45b47ab \ No newline at end of file diff --git a/src/index.js.REMOVED.git-id b/src/index.js.REMOVED.git-id index a3eb151ea19..166f544a7b8 100644 --- a/src/index.js.REMOVED.git-id +++ b/src/index.js.REMOVED.git-id @@ -1 +1 @@ -efedbc4fedefc9313e96e65112e2b2a910c155ef \ No newline at end of file +277e57b8dce4cb0dfbe3a80e931630caa58d4e17 \ No newline at end of file diff --git a/src/utils/actionTypes.js b/src/utils/actionTypes.js index 0d7d023de41..2c3788b6a5d 100644 --- a/src/utils/actionTypes.js +++ b/src/utils/actionTypes.js @@ -6,16 +6,12 @@ */ const randomString = () => - Math.random() - .toString(36) - .substring(7) - .split('') - .join('.') + Math.random().toString(36).substring(7).split('').join('.') const ActionTypes = { INIT: `@@redux/INIT${randomString()}`, REPLACE: `@@redux/REPLACE${randomString()}`, - PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}` + PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`, } export default ActionTypes diff --git a/test/applyMiddleware.spec.js.REMOVED.git-id b/test/applyMiddleware.spec.js.REMOVED.git-id index 8ef3d3367eb..a27c535daae 100644 --- a/test/applyMiddleware.spec.js.REMOVED.git-id +++ b/test/applyMiddleware.spec.js.REMOVED.git-id @@ -1 +1 @@ -2efdc9f83f119b0e3a042b05ba15fc1fad93db05 \ No newline at end of file +d67bb527b6becc917919a655b80dd8325a3c1b70 \ No newline at end of file diff --git a/test/bindActionCreators.spec.js.REMOVED.git-id b/test/bindActionCreators.spec.js.REMOVED.git-id index 867f9792203..26ecac38cbc 100644 --- a/test/bindActionCreators.spec.js.REMOVED.git-id +++ b/test/bindActionCreators.spec.js.REMOVED.git-id @@ -1 +1 @@ -a9e2f2a6eab0ba2a58043d0f82d03a7f72f4edac \ No newline at end of file +54031dbbeefcb2c2deb2507b29f3b4653b19c793 \ No newline at end of file diff --git a/test/combineReducers.spec.js.REMOVED.git-id b/test/combineReducers.spec.js.REMOVED.git-id index 48519dc230b..52d8d7ef331 100644 --- a/test/combineReducers.spec.js.REMOVED.git-id +++ b/test/combineReducers.spec.js.REMOVED.git-id @@ -1 +1 @@ -e0e69aa110989ea78538979bdb3a277b89208354 \ No newline at end of file +cfd712da380142f8aba47f37add1db132a57febf \ No newline at end of file diff --git a/test/compose.spec.js.REMOVED.git-id b/test/compose.spec.js.REMOVED.git-id index e956eed758f..48d116db458 100644 --- a/test/compose.spec.js.REMOVED.git-id +++ b/test/compose.spec.js.REMOVED.git-id @@ -1 +1 @@ -392b403f98058b0b80f7c86abffb1543e7e4c07a \ No newline at end of file +31003c1ff0f55c90a14976098e153dc3735bb0fe \ No newline at end of file diff --git a/test/createStore.spec.js.REMOVED.git-id b/test/createStore.spec.js.REMOVED.git-id index 407db9f3029..88a67193fa8 100644 --- a/test/createStore.spec.js.REMOVED.git-id +++ b/test/createStore.spec.js.REMOVED.git-id @@ -1 +1 @@ -6a837c0d1d9dcadcfbc483465a928cac701ff99d \ No newline at end of file +9bbac18428e62d57a68306a56c5e17ce6e55f13d \ No newline at end of file diff --git a/test/helpers/actionCreators.js.REMOVED.git-id b/test/helpers/actionCreators.js.REMOVED.git-id index 279b5ec24e0..22fc87e4d8a 100644 --- a/test/helpers/actionCreators.js.REMOVED.git-id +++ b/test/helpers/actionCreators.js.REMOVED.git-id @@ -1 +1 @@ -c75a7c30843ce127cda572785b6769228caae69e \ No newline at end of file +0954a756c3c0fe2a4099f42c38296569b200b4be \ No newline at end of file diff --git a/test/helpers/middleware.js b/test/helpers/middleware.js index 06f074fffaa..6666333236d 100644 --- a/test/helpers/middleware.js +++ b/test/helpers/middleware.js @@ -1,4 +1,4 @@ export function thunk({ dispatch, getState }) { - return next => action => + return (next) => (action) => typeof action === 'function' ? action(dispatch, getState) : next(action) } diff --git a/test/helpers/reducers.js.REMOVED.git-id b/test/helpers/reducers.js.REMOVED.git-id index 95930221c80..080f6c2bfee 100644 --- a/test/helpers/reducers.js.REMOVED.git-id +++ b/test/helpers/reducers.js.REMOVED.git-id @@ -1 +1 @@ -f0030fb2dd72560e211f8f5ecec0015614fc7ade \ No newline at end of file +51c833b1c4e102b276c58da8ecc239d0ab84d2fb \ No newline at end of file diff --git a/test/typescript.spec.js b/test/typescript.spec.js index e2f25f193e8..2b2c87d02a6 100644 --- a/test/typescript.spec.js +++ b/test/typescript.spec.js @@ -1,6 +1,6 @@ import { checkDirectory } from 'typings-tester' -describe('TypeScript definitions', function() { +describe('TypeScript definitions', function () { it('should compile against index.d.ts', () => { checkDirectory(__dirname + '/typescript') }) diff --git a/test/typescript/actionCreators.ts.REMOVED.git-id b/test/typescript/actionCreators.ts.REMOVED.git-id index 176a6450554..7d829175e76 100644 --- a/test/typescript/actionCreators.ts.REMOVED.git-id +++ b/test/typescript/actionCreators.ts.REMOVED.git-id @@ -1 +1 @@ -e3594a0712d844fe26a2d8836137624dd9e1e73c \ No newline at end of file +6746e3c7f3a8df3658b46fad7a1549b5e1edc696 \ No newline at end of file diff --git a/test/typescript/actions.ts b/test/typescript/actions.ts index 1b701ce77db..0fd75437893 100644 --- a/test/typescript/actions.ts +++ b/test/typescript/actions.ts @@ -7,7 +7,7 @@ namespace FSA { const action: Action = { type: 'ACTION_TYPE', - payload: 'test' + payload: 'test', } const payload: string = action.payload @@ -20,7 +20,7 @@ namespace FreeShapeAction { const action: Action = { type: 'ACTION_TYPE', - text: 'test' + text: 'test', } const text: string = action['text'] @@ -34,7 +34,7 @@ namespace StringLiteralTypeAction { } const action: Action = { - type: 'A' + type: 'A', } const type: ActionType = action.type @@ -44,7 +44,7 @@ namespace EnumTypeAction { enum ActionType { A, B, - C + C, } interface Action extends ReduxAction { @@ -52,7 +52,7 @@ namespace EnumTypeAction { } const action: Action = { - type: ActionType.A + type: ActionType.A, } const type: ActionType = action.type diff --git a/test/typescript/compose.ts.REMOVED.git-id b/test/typescript/compose.ts.REMOVED.git-id index ee85473865d..f73fa10323d 100644 --- a/test/typescript/compose.ts.REMOVED.git-id +++ b/test/typescript/compose.ts.REMOVED.git-id @@ -1 +1 @@ -ae2fc5b32dba9f6959659bfcfc901d366ce0217a \ No newline at end of file +c453b78f2177e3619c9e4dd767ad590691db29cb \ No newline at end of file diff --git a/test/typescript/enhancers.ts.REMOVED.git-id b/test/typescript/enhancers.ts.REMOVED.git-id index bbc9cb3efc9..6a5f232577c 100644 --- a/test/typescript/enhancers.ts.REMOVED.git-id +++ b/test/typescript/enhancers.ts.REMOVED.git-id @@ -1 +1 @@ -7259b4884bf70423a7abbd95ced2ef45a9a760c1 \ No newline at end of file +4f9b3b401e7fa692000401bb58cf42d30b61015e \ No newline at end of file diff --git a/test/typescript/injectedDispatch.ts.REMOVED.git-id b/test/typescript/injectedDispatch.ts.REMOVED.git-id index 160c9807fa8..9dbd2958c64 100644 --- a/test/typescript/injectedDispatch.ts.REMOVED.git-id +++ b/test/typescript/injectedDispatch.ts.REMOVED.git-id @@ -1 +1 @@ -f115b699fe3596e938591ff39767c65032362da0 \ No newline at end of file +76565681ea47bc958e3e1ec76cdfc1f1cf073f58 \ No newline at end of file diff --git a/test/typescript/middleware.ts.REMOVED.git-id b/test/typescript/middleware.ts.REMOVED.git-id index c25d1fd76fc..6ab40261a8b 100644 --- a/test/typescript/middleware.ts.REMOVED.git-id +++ b/test/typescript/middleware.ts.REMOVED.git-id @@ -1 +1 @@ -7b1c48443c1f0e03751a219d2a4f97258efabfd5 \ No newline at end of file +c7800c3cf4e4daf979c60c00e60632dbd47f08d0 \ No newline at end of file diff --git a/test/typescript/reducers.ts.REMOVED.git-id b/test/typescript/reducers.ts.REMOVED.git-id index 3f1ea857197..d4ce5183504 100644 --- a/test/typescript/reducers.ts.REMOVED.git-id +++ b/test/typescript/reducers.ts.REMOVED.git-id @@ -1 +1 @@ -5a109eeecee5610220b77259d3b0ee175d8dbd74 \ No newline at end of file +7533903180d1ea16452a93bc52bfb4f6fa07f59e \ No newline at end of file diff --git a/test/typescript/store.ts.REMOVED.git-id b/test/typescript/store.ts.REMOVED.git-id index 3bad046e3cd..5da42453bc9 100644 --- a/test/typescript/store.ts.REMOVED.git-id +++ b/test/typescript/store.ts.REMOVED.git-id @@ -1 +1 @@ -60c1ceaa28d8a07a94eed9c62a47b6db1bd0cd69 \ No newline at end of file +685bfbf1b6ace275cf63208160478150ec72db79 \ No newline at end of file