{"_id":"@castore/event-storage-adapter-redux","_rev":"8-bfc4b7ccbb21d7d4cdaad0e1c847872a","name":"@castore/event-storage-adapter-redux","dist-tags":{"latest":"2.4.2"},"versions":{"2.0.0":{"name":"@castore/event-storage-adapter-redux","version":"2.0.0","keywords":["event","redux","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-redux@2.0.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-redux/dist"]}}},"dist":{"shasum":"1490854d6ff45e59dcc41ad3d31ef0e55794bd61","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-redux/-/event-storage-adapter-redux-2.0.0.tgz","fileCount":99,"integrity":"sha512-pA7sHGfquIIBkUztzsSrdrOJ2pf1a+bbPSaKaOvEvCmSiRq8g4I/Gspii609/nw1Y1LPO/zfrm024B8s0YZS4A==","signatures":[{"sig":"MEYCIQCz+++qiwUY/iPWLb/IDsW4GVy7SO55FP33/zT4aGcy8gIhAODXykNVckS1edcYd5fJe2Owqit5H5Cb8wrVIxpC0ZHd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":282691},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"a00ddf6ae99fbe78737f648da21dc7aad4883733","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"9.8.1","description":"DRY Castore EventStorageAdapter implementation using a Redux store","directories":{},"sideEffects":false,"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","react-redux":"^8.0.5","concurrently":"^7.1.0","@castore/core":"workspace:","@reduxjs/toolkit":"^1.9.1","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"react-redux":"^8.0.0","@castore/core":"^2.0.0","@reduxjs/toolkit":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-redux_2.0.0_1698427502734_0.7038507919030932","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@castore/event-storage-adapter-redux","version":"2.1.0","keywords":["event","redux","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-redux@2.1.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-redux/dist"]}}},"dist":{"shasum":"7f1fa9f2690921a7f9280aeb18a4c5b35bf8cca2","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-redux/-/event-storage-adapter-redux-2.1.0.tgz","fileCount":99,"integrity":"sha512-8jlWFBddb4g2DgByrLxSV4zWjzRhKv49sq7HnIyJ3wNIQ+aOVU7qyAnWtOa9dgjx6r28Vu8KlZN11uqtF9CTLg==","signatures":[{"sig":"MEUCIQDEPRO1FObyjDkYW0XSydk5Ir2EF5PLOL0N4sxIB1BgawIgKdWOoTfEa3HfU8jnYJJsYyv+f22O/EDOgWA3KlwqCZY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":282691},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"80c3a1f242e1f30f789312fc5a421789f189beb5","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"9.8.1","description":"DRY Castore EventStorageAdapter implementation using a Redux store","directories":{},"sideEffects":false,"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","react-redux":"^8.0.5","concurrently":"^7.1.0","@castore/core":"workspace:","@reduxjs/toolkit":"^1.9.1","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"react-redux":"^8.0.0","@castore/core":"^2.0.0","@reduxjs/toolkit":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-redux_2.1.0_1699022238057_0.10135039953508862","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@castore/event-storage-adapter-redux","version":"2.2.0","keywords":["event","redux","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-redux@2.2.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-redux/dist"]}}},"dist":{"shasum":"a1e5834afff515c576012e1a8427fa021fca20cc","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-redux/-/event-storage-adapter-redux-2.2.0.tgz","fileCount":99,"integrity":"sha512-uRk/y7qflWxN+X+5gLlrc09wtVz483Q+ft0y5lzKw/iN+IjaVbuJKGGxyemw1GQKR0PrrGU82nBjD1csyfLEOg==","signatures":[{"sig":"MEYCIQCaIvQeIo4G2DaD0opLRyDzxuLv3jnOaN4Br/REUmkFxwIhAL9flxGS3JGgaty/v6ZkoEdci97FdmpBs7PEL2usf8C4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":282508},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"3cedccd6195f6afd90b6dcb30fd3511bacb4b5e7","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.2.3","description":"DRY Castore EventStorageAdapter implementation using a Redux store","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","react-redux":"^8.0.5","concurrently":"^7.1.0","@castore/core":"workspace:","@reduxjs/toolkit":"^1.9.1","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"react-redux":"^8.0.0","@castore/core":"^2.0.0","@reduxjs/toolkit":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-redux_2.2.0_1705427176875_0.4511906999247697","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@castore/event-storage-adapter-redux","version":"2.3.0","keywords":["event","redux","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-redux@2.3.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-redux/dist"]}}},"dist":{"shasum":"6927473404de2aceef51b396a57c0d1389a7a551","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-redux/-/event-storage-adapter-redux-2.3.0.tgz","fileCount":99,"integrity":"sha512-Fwyg0U81wtHDwicpeC7pPIzUG7BxfnWLP0Oam9gqSnwBcMsuD+H+NcQCIcnLE+S5IjwSnPnXxSQqbWyolaPkwg==","signatures":[{"sig":"MEQCID5WAO6EZZeUVlvTAuFJAsM74qB7y4iWP9OS9Js9Cc9zAiAPdOQ9r+kWfEgJVpccoDyi2VIfUFOW0a7mhGd9wsk8wg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":282521},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"aa8c8f824db8f4e38afd58f7b9f389c7211acd26","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.2.4","description":"DRY Castore EventStorageAdapter implementation using a Redux store","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","react-redux":"^8.0.5","concurrently":"^7.1.0","@castore/core":"workspace:","@reduxjs/toolkit":"^1.9.1","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"react-redux":"^8.0.0","@castore/core":"^2.0.0","@reduxjs/toolkit":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-redux_2.3.0_1710957078552_0.7028218139846165","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"@castore/event-storage-adapter-redux","version":"2.3.1","keywords":["event","redux","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-redux@2.3.1","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-redux/dist"]}}},"dist":{"shasum":"e02ea4915c33b128fa759df79b12baef58642abe","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-redux/-/event-storage-adapter-redux-2.3.1.tgz","fileCount":99,"integrity":"sha512-a09VW4UC7/hicidzddnE+nAuSt9iORNC764xaIQ+4D/Vq2tVwhZPPzaLiSAONWYq7yKdpD9oNTDPcR/bFDpzfQ==","signatures":[{"sig":"MEYCIQDBfn/5WTeJOovqRZnNTG55uuW0E/fQFQ3cciDYCh1YlQIhAPn6gNyZieuGWVOmT3pcqdEBf8aybRqJz1H24hjFe+HT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":282521},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"ec117c540dcadb351b35e349f04dc9f4d7937a38","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.5.0","description":"DRY Castore EventStorageAdapter implementation using a Redux store","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","react-redux":"^8.0.5","concurrently":"^7.1.0","@castore/core":"workspace:","@reduxjs/toolkit":"^1.9.1","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"react-redux":"^8.0.0","@castore/core":"^2.0.0","@reduxjs/toolkit":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-redux_2.3.1_1714035423294_0.10975799002354147","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"@castore/event-storage-adapter-redux","version":"2.4.0","keywords":["event","redux","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-redux@2.4.0","maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-redux/dist"]}}},"dist":{"shasum":"1706d2940f896816fa59c455a42827072d429050","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-redux/-/event-storage-adapter-redux-2.4.0.tgz","fileCount":99,"integrity":"sha512-WAlcZ0VxkHdjrakczAmPkSD0EDoSuIZxIvIMtUEEKtHfp7u9F1h0bkzQEQnfilyTDecswsZx3+Wb2RCwjpBY1w==","signatures":[{"sig":"MEUCIQCE7O4SZEDLP6LlaJn9RO7XHBKEDh5yiRyjzELWDuuF7AIgWUAh7MjcN6NNXWIxBVaLsLb1jvNadgUFkS79L8Dzl8E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":282521},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"313e001988903763e7eb169751114c5f71cc3efe","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.8.2","description":"DRY Castore EventStorageAdapter implementation using a Redux store","directories":{},"sideEffects":false,"_nodeVersion":"20.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","react-redux":"^8.0.5","concurrently":"^7.1.0","@castore/core":"workspace:","@reduxjs/toolkit":"^1.9.1","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"react-redux":"^8.0.0","@castore/core":"^2.0.0","@reduxjs/toolkit":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-redux_2.4.0_1739877933917_0.3207177994106729","host":"s3://npm-registry-packages-npm-production"}},"2.4.1":{"name":"@castore/event-storage-adapter-redux","version":"2.4.1","keywords":["event","redux","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-redux@2.4.1","maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-redux/dist"]}}},"dist":{"shasum":"4efdeaca148d27f42d27a72868b59fea544ac780","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-redux/-/event-storage-adapter-redux-2.4.1.tgz","fileCount":99,"integrity":"sha512-MCZKhmcWashA0ZMODY2cYGAuLtUx3T8QocUEeP1Ev7KuXGd5ObVsvsR8OpD1KXpA6FNs87DBirBIc2zWg01jrA==","signatures":[{"sig":"MEUCIFBcxaikueCLbWFTTgzMwhfbeZTOYkw1nNPC1sGzeXxWAiEAjNItQZmHJw3KvXg4GVQHzt5hGsv+u/ZE/EUsngVElb8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":282521},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"28c9f4e5c7c7527b6d3b5e5d9834789c2e64fd5e","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.8.2","description":"DRY Castore EventStorageAdapter implementation using a Redux store","directories":{},"sideEffects":false,"_nodeVersion":"20.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","react-redux":"^8.0.5","concurrently":"^7.1.0","@castore/core":"workspace:","@reduxjs/toolkit":"^1.9.1","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"react-redux":"^8.0.0","@castore/core":"^2.0.0","@reduxjs/toolkit":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-redux_2.4.1_1740488534736_0.5703468718678466","host":"s3://npm-registry-packages-npm-production"}},"2.4.2":{"name":"@castore/event-storage-adapter-redux","description":"DRY Castore EventStorageAdapter implementation using a Redux store","license":"MIT","homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"repository":{"type":"git","url":"git+https://github.com/castore-dev/castore.git"},"keywords":["event","redux","source","store","typescript"],"publishConfig":{"access":"public"},"sideEffects":false,"main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","scripts":{"lint-fix":"yarn linter-base-config --fix","lint-fix-all":"yarn lint-fix .","linter-base-config":"eslint --ext=js,ts","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","test-circular":"yarn depcruise --validate dependency-cruiser.js .","test-linter":"yarn linter-base-config .","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'"},"devDependencies":{"@babel/cli":"^7.17.6","@babel/core":"^7.17.9","@babel/plugin-transform-runtime":"^7.17.0","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@castore/core":"workspace:","@reduxjs/toolkit":"^1.9.1","@types/node":"^17.0.29","babel-plugin-module-resolver":"^4.1.0","concurrently":"^7.1.0","dependency-cruiser":"^11.7.0","eslint":"^8.14.0","prettier":"^2.6.2","react-redux":"^8.0.5","ts-node":"^10.7.0","tsc-alias":"^1.8.7","typescript":"^4.6.3","vitest":"^0.26.2"},"maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-redux/dist"]}}},"peerDependencies":{"@castore/core":"^2.0.0","@reduxjs/toolkit":"^1.9.0","react-redux":"^8.0.0"},"version":"2.4.2","_id":"@castore/event-storage-adapter-redux@2.4.2","gitHead":"fd79dfcc42ef28d216b08007edacd21208ba1876","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-0L9KGdc1WG1RU8BOxKaUfv0V8uSSYFQoVQskk08e4GgXaSs2UmP7hMtrb6A/wPfMJVCoazKBMQ2J3QvUZdX3mg==","shasum":"c800bd0a24d068257045afdd9d92607669f8da7c","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-redux/-/event-storage-adapter-redux-2.4.2.tgz","fileCount":99,"unpackedSize":282521,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCHgtefv6z+1RO1JOXMM3ExZ1o5ZmVnQG4ZowiEwcgRUgIgb1IaXtyle6VL7sx6iTthboQYJG/oI06CHxwfYYze2t4="}]},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/event-storage-adapter-redux_2.4.2_1744991098413_0.8450878019523405"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-27T17:25:02.487Z","modified":"2025-04-18T15:44:58.757Z","2.0.0":"2023-10-27T17:25:03.005Z","2.1.0":"2023-11-03T14:37:18.263Z","2.2.0":"2024-01-16T17:46:17.031Z","2.3.0":"2024-03-20T17:51:18.741Z","2.3.1":"2024-04-25T08:57:03.459Z","2.4.0":"2025-02-18T11:25:34.115Z","2.4.1":"2025-02-25T13:02:14.981Z","2.4.2":"2025-04-18T15:44:58.563Z"},"bugs":{"url":"https://github.com/castore-dev/castore/issues"},"license":"MIT","homepage":"https://github.com/castore-dev/castore#readme","keywords":["event","redux","source","store","typescript"],"repository":{"type":"git","url":"git+https://github.com/castore-dev/castore.git"},"description":"DRY Castore EventStorageAdapter implementation using a Redux store","maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"readme":"# Redux Event Storage Adapter\n\nDRY Castore [`EventStorageAdapter`](https://castore-dev.github.io/castore/docs/event-sourcing/fetching-events/) implementation using a Redux store.\n\n## 📥 Installation\n\n```bash\n# npm\nnpm install @castore/event-storage-adapter-redux\n\n# yarn\nyarn add @castore/event-storage-adapter-redux\n```\n\nThis package has `@castore/core`, `@reduxjs/toolkit` (above v1.9) and `react-redux` (above v8) as peer dependencies, so you will have to install them as well:\n\n```bash\n# npm\nnpm install @castore/core @reduxjs/toolkit react-redux\n\n# yarn\nyarn add @castore/core @reduxjs/toolkit react-redux\n```\n\n## 👩‍💻 Usage\n\n### Direct usage\n\nIf you do not already use Redux in your app, you can simply use the `configureCastore` util:\n\n```tsx\nimport { Provider } from 'react-redux';\n\nimport { configureCastore } from '@castore/event-storage-adapter-redux';\n\nconst store = configureCastore({\n  eventStores: [pokemonsEventStore, trainersEventStore],\n});\n\nconst MyReactApp = () => (\n  <Provider store={store}>\n    <App />\n  </Provider>\n);\n```\n\nAnd that's it 🙌 `configureCastore` not only configures the Redux store but also connects it to the event stores by replacing their `eventStorageAdapter`.\n\nYou can use the `pushEvent` method as usual:\n\n```tsx\nconst CatchPokemonButton = ({ pokemonId }) => (\n  <Button\n    onClick={async () => {\n      await pokemonsEventStore.pushEvent({\n        aggregateId: pokemonId,\n        type: 'POKEMON_CAUGHT',\n        version: currentPokemonVersion + 1,\n      });\n    }}\n  />\n);\n```\n\nYou can also use the other methods, but it's simpler to use the following built-in hooks.\n\n### Hooks\n\nYou can use the `useAggregateEvents`, `useAggregate`, `useExistingAggregate` and `useAggregateIds` hooks to read data from the store. Their interface is the same as the event store methods, but synchronous.\n\n```tsx\nimport { useAggregateIds } from '@castore/event-storage-adapter-redux';\n\nconst AggregateIdsList = () => {\n  // 🙌 Will synchronously return the store data, as well as hook the component to it\n  const { aggregateIds } = useAggregateIds(pokemonsEventStore, { limit: 20 });\n\n  return aggregateIds.map(aggregateId => (\n    <Aggregate key={aggregateId} aggregateId={aggregateId} />\n  ));\n};\n\nconst Aggregate = ({ aggregateId }) => {\n  const { aggregate } = useExistingAggregate(pokemonsEventStore, aggregateId);\n\n  // 🙌 aggregate is correctly typed\n  return <p>{aggregate.name}</p>;\n};\n```\n\nThanks to the magic of Redux, pushing a new event to an aggregate will only trigger re-renders of components hooked to the said aggregate. The same goes when listing aggregate ids: Only creating a new aggregate will trigger a re-render.\n\n### Configure with another store\n\nIf you already use Redux, you can merge the Castore Redux store with your own.\n\nFirst, know that event stores events are stored as Redux \"slices\". Their name is their `eventStoreId`, prefixed by a customizable string (`@castore` by default).\n\nYou can use the `getCastoreReducers` util to generate the Castore Redux reducers, and merge them with your own:\n\n```tsx\nimport { Provider } from 'react-redux';\n\nimport {\n  ReduxEventStorageAdapter,\n  getCastoreReducers,\n} from '@castore/event-storage-adapter-redux';\n\nconst castoreReducers = getCastoreReducers({\n  eventStores: [pokemonsEventStore, trainersEventStore],\n  // 👇 Optional\n  prefix: 'customPrefix',\n});\n\nconst store = configureStore({\n  reducer: {\n    ...castoreReducers,\n    customReducer,\n  },\n});\n\n// 👇 Connect the event stores to the store\neventStores.forEach(eventStore => {\n  eventStore.eventStorageAdapter = new ReduxEventStorageAdapter({\n    store,\n    eventStoreId: eventStore.eventStoreId,\n    // 👇 Don't forget the prefix if one has been provided\n    prefix: 'customPrefix',\n  });\n});\n\nconst MyReactApp = () => (\n  <Provider store={store}>\n    <App />\n  </Provider>\n);\n```\n","readmeFilename":"README.md"}