{"_id":"combine-section-reducers","_rev":"10-b8c2f75a00d2643516c564f3ec02e3a1","name":"combine-section-reducers","description":"Combines section reducers","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"combine-section-reducers","version":"1.0.0","description":"Combines section reducers","main":"./lib/index.js","files":["lib","src"],"scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive ./test/*.spec.js","test:watch":"npm test -- --watch","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/ryo33/combine-section-reducer.git"},"keywords":["combine","redux","reducer"],"author":{"name":"Ryo33"},"license":"MIT","devDependencies":{"babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.1"},"bugs":{"url":"https://github.com/ryo33/combine-section-reducer/issues"},"homepage":"https://github.com/ryo33/combine-section-reducer#readme","dependencies":{"is-valid-redux-reducer":"^1.0.1"},"gitHead":"534e1b62aa5eb93d2ed6d19333c67ddac54fb4a6","_id":"combine-section-reducers@1.0.0","_shasum":"ab03b9b4e221446abe51cb2253215c9ec1e26cbc","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"ryo33","email":"ryo33@mail.com"},"dist":{"shasum":"ab03b9b4e221446abe51cb2253215c9ec1e26cbc","tarball":"https://registry.npmjs.org/combine-section-reducers/-/combine-section-reducers-1.0.0.tgz","integrity":"sha512-fcRgTHG8baXohUUUs02HxVOfXjZ4wpWIvEHNk6UMDeviDRBDmzmbwhscsBEy3Fbl9ENKflh8Qep7edcm0PZj7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDibkJybECbwKdyxASXfdVEJ+3U38y2VvDhq30S4mKp/QIgFL+RGQ6BUvVvWMOC1ZN/oreQxmKVvoFpremPGC4mKw0="}]},"maintainers":[{"name":"ryo33","email":"ryo33@mail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/combine-section-reducers-1.0.0.tgz_1464278740702_0.5007405714131892"},"directories":{}},"1.0.1":{"name":"combine-section-reducers","version":"1.0.1","description":"Combines section reducers","main":"./lib/index.js","files":["lib","src"],"scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive ./test/*.spec.js","test:watch":"npm test -- --watch","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/ryo33/combine-section-reducer.git"},"keywords":["combine","redux","reducer"],"author":{"name":"Ryo33"},"license":"MIT","devDependencies":{"babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.1"},"bugs":{"url":"https://github.com/ryo33/combine-section-reducer/issues"},"homepage":"https://github.com/ryo33/combine-section-reducer#readme","dependencies":{"is-valid-redux-reducer":"^1.0.1"},"gitHead":"651726681d5811dfa08e2c9bae4a317421eac534","_id":"combine-section-reducers@1.0.1","_shasum":"6b065e8f9468baff99320793422f970b3e91d120","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"ryo33","email":"ryo33@mail.com"},"dist":{"shasum":"6b065e8f9468baff99320793422f970b3e91d120","tarball":"https://registry.npmjs.org/combine-section-reducers/-/combine-section-reducers-1.0.1.tgz","integrity":"sha512-tob702GO8a0ZiSUzlML6/qBNpdT9QfXFDM+EqUJlOzk/bK40KVYbWm2rcfhu3/M+jAEbnHJEYK0U6nGg5F1SFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1RWNXd8u2O6eFYZEXhuZzEL9C5L5V0jxIdiLyTKK/wgIhAMjA7kAfPPJwwJn1CPgYAsIUqwQyrvqb5pM3iq/VWzGI"}]},"maintainers":[{"name":"ryo33","email":"ryo33@mail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/combine-section-reducers-1.0.1.tgz_1464345637081_0.8305564566981047"},"directories":{}},"1.0.2":{"name":"combine-section-reducers","version":"1.0.2","description":"Combines section reducers","main":"./lib/index.js","files":["lib","src"],"scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive ./test/*.spec.js","test:watch":"npm test -- --watch","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/ryo33/combine-section-reducers.git"},"keywords":["combine","redux","reducer"],"author":{"name":"Ryo33"},"license":"MIT","devDependencies":{"babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.1","redux":"^3.5.2"},"bugs":{"url":"https://github.com/ryo33/combine-section-reducers/issues"},"homepage":"https://github.com/ryo33/combine-section-reducers#readme","dependencies":{"is-valid-redux-reducer":"^1.0.1"},"gitHead":"5f53478088422224b1dd9749307b0756b4420e45","_id":"combine-section-reducers@1.0.2","_shasum":"7c9a06fbe8ccab5f5f406824ea6be3362320e0f8","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"ryo33","email":"ryo33@mail.com"},"dist":{"shasum":"7c9a06fbe8ccab5f5f406824ea6be3362320e0f8","tarball":"https://registry.npmjs.org/combine-section-reducers/-/combine-section-reducers-1.0.2.tgz","integrity":"sha512-90ICG/UR3GWsKU8JKu8FF594IVQbIDGZ2Q+9LnA2aJSH7GHNLpB9UevkIgZ7cymP3WhOMPCBLu8+srDNqUEZAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGMOTsuevyuCo0mG4V/6gArCJpo8vDCbkLA4o4Wj7VmzAiEArzX98pblbXiNktnERB51b/2UDuWZsEatyRi2bAHZNCM="}]},"maintainers":[{"name":"ryo33","email":"ryo33@mail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/combine-section-reducers-1.0.2.tgz_1465822399447_0.7809179374016821"},"directories":{}},"1.0.3":{"name":"combine-section-reducers","version":"1.0.3","description":"Combines section reducers","main":"./lib/index.js","files":["lib","src"],"scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive ./test/*.spec.js","test:watch":"npm test -- --watch","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/ryo33/combine-section-reducers.git"},"keywords":["combine","redux","reducer"],"author":{"name":"Ryo33"},"license":"MIT","devDependencies":{"babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.1","redux":"^3.5.2"},"bugs":{"url":"https://github.com/ryo33/combine-section-reducers/issues"},"homepage":"https://github.com/ryo33/combine-section-reducers#readme","dependencies":{"is-valid-redux-reducer":"^1.0.2"},"gitHead":"7848832c1b79ec6defd1e7f5b9bf639605cbd1d8","_id":"combine-section-reducers@1.0.3","_shasum":"3b12686478272ae67bb85f97db60f1391e7da0bf","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"ryo33","email":"ryo33@mail.com"},"dist":{"shasum":"3b12686478272ae67bb85f97db60f1391e7da0bf","tarball":"https://registry.npmjs.org/combine-section-reducers/-/combine-section-reducers-1.0.3.tgz","integrity":"sha512-4gSuV1COZIFbw5KXcTnGc2natXmzfMuunOaCoQXwQni7QYnmI4pyWoeW6a+maRdrMWIgi9KG5onoWfBB79DtdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHrOMXP8G0DDGgfJrP8evkQNy5b5VO+yEX9ZCfxEoeSsAiBi6jPsmBmw3oysLQABds0Qi84jxoHrBIZUMxSao3uEhQ=="}]},"maintainers":[{"name":"ryo33","email":"ryo33@mail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/combine-section-reducers-1.0.3.tgz_1465883080432_0.6473334482870996"},"directories":{}},"1.0.4":{"name":"combine-section-reducers","version":"1.0.4","description":"Combines section reducers","main":"./lib/index.js","files":["lib","src"],"scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive ./test/*.spec.js","test:watch":"npm test -- --watch","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/ryo33/combine-section-reducers.git"},"keywords":["combine","redux","reducer"],"author":{"name":"Ryo33"},"license":"MIT","devDependencies":{"babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.1","redux":"^3.5.2"},"bugs":{"url":"https://github.com/ryo33/combine-section-reducers/issues"},"homepage":"https://github.com/ryo33/combine-section-reducers#readme","dependencies":{"is-valid-redux-reducer":"^1.0.3"},"gitHead":"51d8c289d537db7b68b8791e66f101f1c73322b6","_id":"combine-section-reducers@1.0.4","_shasum":"2d5d35d38471afdf351307a83baf85f3b4253b3a","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"ryo33","email":"ryo33@mail.com"},"dist":{"shasum":"2d5d35d38471afdf351307a83baf85f3b4253b3a","tarball":"https://registry.npmjs.org/combine-section-reducers/-/combine-section-reducers-1.0.4.tgz","integrity":"sha512-cXLHJxTVXkqFkDoaimeVcNoRs36c2qnxOW4X57JFVxxBHyFvKQImnjGAVh1iNdhsgF7e15GnHF4JLt6veYbUWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTf8y1YEbeG9QdkVYk/1EW7D2ASZCWtwEfE6SfXTodrAiBDHL8YRybkqDjqzDkoKm4Bu1Se91S+1zO1YrLspjX6pA=="}]},"maintainers":[{"name":"ryo33","email":"ryo33@mail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/combine-section-reducers-1.0.4.tgz_1466495062506_0.4073518819641322"},"directories":{}},"1.0.5":{"name":"combine-section-reducers","version":"1.0.5","description":"Combines section reducers","main":"./lib/index.js","files":["lib","src"],"scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive ./test/*.spec.js","test:watch":"npm test -- --watch","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/ryo33/combine-section-reducers.git"},"keywords":["combine","redux","reducer"],"author":{"name":"Ryo33"},"license":"MIT","devDependencies":{"babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.1","redux":"^3.5.2"},"bugs":{"url":"https://github.com/ryo33/combine-section-reducers/issues"},"homepage":"https://github.com/ryo33/combine-section-reducers#readme","dependencies":{"is-valid-redux-reducer":"^1.0.3"},"gitHead":"b2c9b95affbdd8d09f6bcb4e176ec067780ee5e6","_id":"combine-section-reducers@1.0.5","_shasum":"c3aafbfb7af0918a87e25d9b11bf5d06ffe0adac","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"ryo33","email":"ryo33@mail.com"},"dist":{"shasum":"c3aafbfb7af0918a87e25d9b11bf5d06ffe0adac","tarball":"https://registry.npmjs.org/combine-section-reducers/-/combine-section-reducers-1.0.5.tgz","integrity":"sha512-Wayy/u3Y5T8DawWzIMV4RwJlJAPtwbSn8vjP27c3zUSRxS5MpN/zI/yOGmuYW1QtGqnPwsM67qFgoF39JXTUNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4BQ3lf3sbGzW31jLlfVPx8Wa4W1V6FYf9A5lW8+YFqAIhAKr59ajcB7pl/TQVtv645zjrtly4ZG1lwXOzzrUom9V+"}]},"maintainers":[{"name":"ryo33","email":"ryo33@mail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/combine-section-reducers-1.0.5.tgz_1504868911957_0.3661098771262914"},"directories":{}},"1.0.6":{"name":"combine-section-reducers","version":"1.0.6","description":"Combines section reducers","main":"./lib/index.js","files":["lib","src","index.d.ts"],"scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive ./test/*.spec.js","test:watch":"npm test -- --watch","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/ryo33/combine-section-reducers.git"},"keywords":["combine","redux","reducer"],"author":{"name":"Ryo33"},"license":"MIT","devDependencies":{"babel-cli":"^6.9.0","babel-preset-es2015":"^6.9.0","babel-register":"^6.9.0","chai":"^3.5.0","mocha":"^2.5.1","redux":"^4.0.0"},"bugs":{"url":"https://github.com/ryo33/combine-section-reducers/issues"},"homepage":"https://github.com/ryo33/combine-section-reducers#readme","dependencies":{"is-valid-redux-reducer":"^1.0.3"},"gitHead":"a18b250d9a46e2a5749e30eee0e29f13732012ee","_id":"combine-section-reducers@1.0.6","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"ryo33","email":"ryo33@mail.com"},"dist":{"integrity":"sha512-dDt9xRuMQVkbLQsMQoaYC0cBBYob2VoHDjqMM8JHFfS6kI+Utc7e10Pwvj9Vr6AvyYJC9tNd77pFU49FKuk9HA==","shasum":"b2a4561b56c7f63725a578acc35b8f73ee994b1d","tarball":"https://registry.npmjs.org/combine-section-reducers/-/combine-section-reducers-1.0.6.tgz","fileCount":6,"unpackedSize":7640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbOq1wCRA9TVsSAnZWagAAci8P/iycsqUeHEDw5KFbtow5\nWiBcfXsW9bpM/0PqU8Li5DD5SplfOJ9BjqLOJVGR9Bcldyfi1dxoye8KzO3A\n9+MLZ8gSRCaXQ8ASrW/jp1jMteUtzIgiqP6Ly/nyPILvuK+jCygwlaSJ+3ye\nOuOYOks5FmHALAqwe7lAYWiWZsv/rdUd4V9idB1c27hoFVm/ya6PkEwT5ZhG\nxSLKUuCg+pDRjK3KxXY1dkuJYtuebmUyPdPLhu5q3dZ0M5Agpelh7glGn76y\noTEvlhtCHrp5Q9XegisyGeSC+dg4FNOE9FDay/fZlkMi6LGXjinf6QmUVOW1\nJmvucAHMVy5iPR/NKQxeKquS4w657UbX5hxyMuI2WWGhA99W6VKsO8O6tEZp\ndZJ6WI5G69L3ZoymTrQccg6jRAW/OxJQNP3iX+7mxvo4EieTWnC4gLVRr0Wr\ndfBqxMpY4ld6KMne8Hd0ZSTtEWkR6RcRxJRYzkGsuBsOTrKfkd9NmflzctSa\nNNsByy6RjGclbotw0DIoaqvJ7G0qFpcgeHPuW61Gg/73DtEIWSCzn+sm18ud\nqalm2p7hVjzmNBhKQudXzx8UB3G0/tIui2Ueqd7eg7gTXmPZtGlqG9Q4YjJw\npd+Qw2yZtR964g2G+UkIkHMdQP0/Ur6SFuuE1SDY5ADZBp+UHE4ebmA2iMSv\nLZDU\r\n=4X0q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE53PlaKmpOz36e/eyoJBPEDS6NHXFug+t5d+aFTLqJwAiAKbmN6C1USa2Ftp3bPoIz2xI9oWNh11WKYxD7SnlP76A=="}]},"maintainers":[{"name":"ryo33","email":"ryo33@mail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/combine-section-reducers_1.0.6_1530572144282_0.5603377048027958"},"_hasShrinkwrap":false}},"readme":"combineSectionReducers\n====\nOne of the best ways to create a big reducer.  \n\n[![npm version](https://badge.fury.io/js/combine-section-reducers.svg)](https://badge.fury.io/js/combine-section-reducers)\n## Installation\n`npm install --save combine-section-reducers`\n\n## What's the section reducers?\n**Section** reducers is the same as reducers but it requires the third argument to get the entire state.  \n`(sectionState, action, state) => newSectionState`  \nIt's called a **section** reducer.  \nBut we had better write it as below not to be confused when we use `combineReducers` and `combineSectionReducers` together.  \n`(state, action, entireState) => newState`  \n\n## Usage\nThe usage of `combineSectionReducers` is the same as [Redux's combineReducers](http://redux.js.org/docs/api/combineReducers.html)'s one.  \nBut you can pass not only **normal** reducers but also **section** reducers to it.  \nAlso, the result of `combineSectionReducers` can be used as not only a **normal** reducer but also a **section** reducers.\n\n## Example\n```javascript\nimport { combineReducers } from 'redux'\nimport combineSectionReducers from 'combine-section-reducers'\n\n// Create a big reducer.\ncombineSectionReducers({\n  a: combineSectionReducers({\n    a: sectionReducerA,\n    b: sectionReducerB\n  }),\n  b: combineSectionReducers({\n    a: sectionReducerC,\n    b: reducerA\n  })\n})\n\n// Use combineReducers together.\ncombineReducers({\n  a: combineSectionReducers({\n    a: combineReducers({\n      a: sectionReducerA,\n      b: reducerA\n    },\n    b: combineSectionReducers({\n      a: sectionReducerB,\n      b: reducerB\n    },\n  }),\n  b: combineReducers({\n    a: combineReducers({\n      a: sectionReducerC,\n      b: reducerC\n    },\n    b: combineSectionReducers({\n      a: sectionReducerD,\n      b: reducerD\n    },\n  }),\n})\n```\n\n## License\nMIT\n","maintainers":[{"name":"ryo33","email":"ryo33@mail.com"}],"time":{"modified":"2022-06-13T06:33:54.230Z","created":"2016-05-26T16:05:43.777Z","1.0.0":"2016-05-26T16:05:43.777Z","1.0.1":"2016-05-27T10:40:40.299Z","1.0.2":"2016-06-13T12:53:19.935Z","1.0.3":"2016-06-14T05:44:44.683Z","1.0.4":"2016-06-21T07:44:22.991Z","1.0.5":"2017-09-08T11:08:32.063Z","1.0.6":"2018-07-02T22:55:44.351Z"},"homepage":"https://github.com/ryo33/combine-section-reducers#readme","keywords":["combine","redux","reducer"],"repository":{"type":"git","url":"git+https://github.com/ryo33/combine-section-reducers.git"},"author":{"name":"Ryo33"},"bugs":{"url":"https://github.com/ryo33/combine-section-reducers/issues"},"license":"MIT","readmeFilename":"README.md"}