{"_id":"@shutterstock/p-map-iterable","_rev":"11-9802a3aebbce9f74d494e83666e33d68","name":"@shutterstock/p-map-iterable","dist-tags":{"latest":"1.2.0","next-1.2":"1.2.0-prerelease.1"},"versions":{"0.0.1":{"name":"@shutterstock/p-map-iterable","version":"0.0.1","license":"MIT","_id":"@shutterstock/p-map-iterable@0.0.1","maintainers":[{"name":"msmolash","email":"mitch@smolash.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"}],"homepage":"https://github.com/shutterstock/p-map-iterable#readme","bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"dist":{"shasum":"13a0e57ce85488b415ed3fec3d929acfe02c3dd1","tarball":"https://registry.npmjs.org/@shutterstock/p-map-iterable/-/p-map-iterable-0.0.1.tgz","fileCount":55,"integrity":"sha512-hXvcWQeW30GUhyQA2xtA9Bzr3vbz4hI9r+AQ6gwCf9r33W5t0tHzlo4zfIkvAA8jEdUN1FL8La8CU8YGFD88YA==","signatures":[{"sig":"MEUCIE1pXZ8bE1OzPydRw9xmaA/dj22QZEe1JXY0dJPwZ3BdAiEAsHAm09EKMgoGoItemE1OUYXg+LhJOmcMxDHt5hPGJ4Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":236187},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"356bee8f44b4a8726df3176c0d8c059ef6543d71","scripts":{"lint":"eslint ./ --ext .ts --ext .tsx","test":"jest","build":"tsc --build tsconfig.json","lint-and-fix":"eslint ./ --ext .ts --ext .tsx --fix"},"_npmUser":{"name":"huntharo","email":"harold@pwrdrvr.com"},"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"_npmVersion":"8.19.4","description":"Async iterable that maps an async iterable input with backpressure.","directories":{},"_nodeVersion":"16.20.0","dependencies":{"aggregate-error":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.0","eslint":"^7.15.0","ts-jest":"^27.0.0","ts-node":"^9.0.0","prettier":"^2.2.1","typescript":"^4.6.0","@types/jest":"^27.0.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.2.0","@typescript-eslint/parser":"^5.13.0","@typescript-eslint/eslint-plugin":"^5.13.0"},"peerDependencies":{"aggregate-error":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-map-iterable_0.0.1_1686610687244_0.4886176017807895","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@shutterstock/p-map-iterable","version":"0.1.0","keywords":["p-map","p-map-iterable","iterable","async","promise","backpressure","AsyncIterable","AsyncIterator"],"license":"MIT","_id":"@shutterstock/p-map-iterable@0.1.0","maintainers":[{"name":"msmolash","email":"mitch@smolash.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"}],"homepage":"https://tech.shutterstock.com/p-map-iterable/","bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"dist":{"shasum":"f7a41a29626228f12508353cb2f45db3873a44cd","tarball":"https://registry.npmjs.org/@shutterstock/p-map-iterable/-/p-map-iterable-0.1.0.tgz","fileCount":56,"integrity":"sha512-nsqQVutkACQaEDuuE8iVASzLJcdz5CjzG5V7I6UKxhViNOH0gDHXUlps6GibzJ2kKmbHpioeUpvzfub4p31KEw==","signatures":[{"sig":"MEYCIQD2S5awCb5HG9a6GNPEYFUP73Bspkztnv0ud6XgsO7GFQIhANU7nas7+sM7WOAP0ID0ySHKviGKV/rmKKOv1oe4IIRH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":263658},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a442cab9f2ae06b784b2b9b3621ca00f0400a462","scripts":{"lint":"eslint ./ --ext .ts --ext .tsx","test":"jest","build":"tsc --build tsconfig.json && echo 'examples/' > dist/.npmignore","build:docs":"typedoc src/index.ts","lint-and-fix":"eslint ./ --ext .ts --ext .tsx --fix","example:iterable-mapper":"ts-node -r tsconfig-paths/register examples/iterable-mapper.ts","example:iterable-queue-mapper":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper.ts","example:iterable-queue-mapper-simple":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper-simple.ts"},"_npmUser":{"name":"huntharo","email":"harold@pwrdrvr.com"},"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"_npmVersion":"8.19.4","description":"Async iterable that maps an async iterable input with backpressure.","directories":{},"_nodeVersion":"16.20.0","dependencies":{"aggregate-error":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.5.0","eslint":"^7.15.0","ts-jest":"29.1.0","ts-node":"10.9.1","typedoc":"^0.24.8","prettier":"^2.2.1","typescript":"5.1.3","@types/jest":"29.5.2","tsconfig-paths":"4.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.2.0","@typescript-eslint/parser":"^5.13.0","@typescript-eslint/eslint-plugin":"^5.13.0"},"peerDependencies":{"aggregate-error":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-map-iterable_0.1.0_1686891507652_0.49830247795687965","host":"s3://npm-registry-packages"}},"1.0.10":{"name":"@shutterstock/p-map-iterable","version":"1.0.10","keywords":["p-map","p-map-iterable","iterable","async","promise","backpressure","AsyncIterable","AsyncIterator"],"license":"MIT","_id":"@shutterstock/p-map-iterable@1.0.10","maintainers":[{"name":"msmolash","email":"mitch@smolash.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"}],"homepage":"https://tech.shutterstock.com/p-map-iterable/","bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"dist":{"shasum":"bf26340d6876ebb733e55ad7e9e8fe0a1ea29a1c","tarball":"https://registry.npmjs.org/@shutterstock/p-map-iterable/-/p-map-iterable-1.0.10.tgz","fileCount":56,"integrity":"sha512-ffnD7pJuAUD8Ahbj7XkpXe1MUaagKe+O+zN2WRiV2lDtSlqhg5Xbh/pUvwdK9kuT3Pr1zSf+GMVNkxdBZ6SjNw==","signatures":[{"sig":"MEQCIEZ9JokwgYc0d4D6velwQoWsYBnGc702MWFKopZFJb95AiBrKYkGeW+3f26tOUtGxLT2mRpwWeTynMy2RrEeRT+pVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":271672},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7b3c80f8d459b03903c8b6f7b3a612546eee67b5","scripts":{"lint":"eslint ./ --ext .ts --ext .tsx","test":"jest","build":"tsc --build tsconfig.json && echo 'examples/' > dist/.npmignore","build:docs":"typedoc src/index.ts","lint-and-fix":"eslint ./ --ext .ts --ext .tsx --fix","example:iterable-mapper":"ts-node -r tsconfig-paths/register examples/iterable-mapper.ts","example:iterable-queue-mapper":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper.ts","example:iterable-queue-mapper-simple":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper-simple.ts"},"_npmUser":{"name":"huntharo","email":"harold@pwrdrvr.com"},"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"_npmVersion":"8.19.4","description":"Async iterable that maps an async iterable input with backpressure.","directories":{},"_nodeVersion":"16.20.0","dependencies":{"aggregate-error":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.5.0","eslint":"^7.15.0","ts-jest":"29.1.0","ts-node":"10.9.1","typedoc":"^0.24.8","prettier":"^2.2.1","typescript":"5.1.3","@types/jest":"29.5.2","tsconfig-paths":"4.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.2.0","@typescript-eslint/parser":"^5.13.0","@typescript-eslint/eslint-plugin":"^5.13.0"},"peerDependencies":{"aggregate-error":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-map-iterable_1.0.10_1686921794416_0.013198463119720394","host":"s3://npm-registry-packages"}},"1.0.11":{"name":"@shutterstock/p-map-iterable","version":"1.0.11","keywords":["p-map","p-map-iterable","iterable","async","promise","backpressure","AsyncIterable","AsyncIterator"],"license":"MIT","_id":"@shutterstock/p-map-iterable@1.0.11","maintainers":[{"name":"msmolash","email":"mitch@smolash.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"}],"homepage":"https://tech.shutterstock.com/p-map-iterable/","bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"dist":{"shasum":"8805ea5101ebb641d36f2473bc61df357eea41e8","tarball":"https://registry.npmjs.org/@shutterstock/p-map-iterable/-/p-map-iterable-1.0.11.tgz","fileCount":55,"integrity":"sha512-SiTKiCol8bFCZaHZUYV7lWZLEUYeaO0OdyandyAw1vCvsKJtbJ3jPcDgcpqkK1SfgA/3cNrPnp6d5kk4EacZkQ==","signatures":[{"sig":"MEYCIQC8RoOeDMMxS4WT0qlKh1KfK7d3jUh3X1pcSvQsdvCWHAIhAK1zoCuqGgDs4VpDIOUWEnycCnfYwkbbWwQM6LMO0gpb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":241246},"main":"dist/src/index.js","types":"dist/src/index.d.ts","gitHead":"0f33deb8883f566e6a496381d5f015294ba60d68","scripts":{"lint":"eslint ./ --ext .ts --ext .tsx","test":"jest","build":"tsc --build tsconfig.json && echo 'examples/\n*.tsbuildinfo' > dist/.npmignore","build:docs":"typedoc src/index.ts","lint-and-fix":"eslint ./ --ext .ts --ext .tsx --fix","example:iterable-mapper":"ts-node -r tsconfig-paths/register examples/iterable-mapper.ts","example:iterable-queue-mapper":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper.ts","example:iterable-queue-mapper-simple":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper-simple.ts"},"_npmUser":{"name":"huntharo","email":"harold@pwrdrvr.com"},"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"_npmVersion":"8.19.4","description":"Async iterable that maps an async iterable input with backpressure.","directories":{},"_nodeVersion":"16.20.0","dependencies":{"aggregate-error":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.5.0","eslint":"^7.15.0","ts-jest":"29.1.0","ts-node":"10.9.1","typedoc":"^0.24.8","prettier":"^2.2.1","typescript":"5.1.3","@types/jest":"29.5.2","tsconfig-paths":"4.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.2.0","@typescript-eslint/parser":"^5.13.0","@typescript-eslint/eslint-plugin":"^5.13.0"},"peerDependencies":{"aggregate-error":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-map-iterable_1.0.11_1686923203139_0.19213588563236472","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@shutterstock/p-map-iterable","version":"1.1.0","keywords":["p-map","p-map-iterable","blocking-queue","iterable-queue","mapping","iterable","queue","async","promise","back-pressure","flow-control","AsyncIterable","AsyncIterator"],"license":"MIT","_id":"@shutterstock/p-map-iterable@1.1.0","maintainers":[{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"msmolash","email":"mitch@smolash.com"},{"name":"cphillip","email":"cphillip@shutterstock.com"}],"homepage":"https://tech.shutterstock.com/p-map-iterable/","bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"dist":{"shasum":"d2c2f1de3ffe8e90ec1ee36d48dcfe8f3f9aa21e","tarball":"https://registry.npmjs.org/@shutterstock/p-map-iterable/-/p-map-iterable-1.1.0.tgz","fileCount":55,"integrity":"sha512-tjCAxHoyzoA2jQzQ00uorsDVxzRUACP+MUpRDYZ0of9ZCqygskliH1NxOQBCIlKjHY602+4u/HyBc5SHlYwGtQ==","signatures":[{"sig":"MEUCIEQBuBtYwcZKu+juPWY4dD2yQNLsxBBPiVSO4H/EGL+NAiEAvm4J+i2Xxj4M2Xt2+NqOVlj8CgHja0DdivnJXjvsR/Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":204896},"main":"dist/src/index.js","types":"dist/src/index.d.ts","gitHead":"3e3c7e62f00bfe222701ba60370fa2205665f226","scripts":{"lint":"eslint ./ --ext .ts --ext .tsx","test":"jest","build":"tsc --build tsconfig.json && echo 'examples/\n*.tsbuildinfo' > dist/.npmignore","build:docs":"typedoc src/index.ts","lint-and-fix":"eslint ./ --ext .ts --ext .tsx --fix","example:iterable-mapper":"ts-node -r tsconfig-paths/register examples/iterable-mapper.ts","example:iterable-queue-mapper":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper.ts","example:iterable-queue-mapper-simple":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper-simple.ts"},"_npmUser":{"name":"huntharo","email":"harold@pwrdrvr.com"},"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"_npmVersion":"8.19.4","description":"Set of classes that allow you to call mappers with controlled concurrency on iterables or on queues","directories":{},"_nodeVersion":"16.20.2","dependencies":{"aggregate-error":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.5.0","eslint":"^7.15.0","ts-jest":"29.1.0","ts-node":"10.9.1","typedoc":"^0.24.8","prettier":"^2.2.1","typescript":"5.1.3","@types/jest":"29.5.2","tsconfig-paths":"4.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.2.0","@typescript-eslint/parser":"^5.13.0","@typescript-eslint/eslint-plugin":"^5.13.0"},"peerDependencies":{"aggregate-error":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-map-iterable_1.1.0_1739290458706_0.8316610336559163","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@shutterstock/p-map-iterable","version":"1.1.1","keywords":["p-map","p-map-iterable","blocking-queue","iterable-queue","mapping","iterable","queue","async","promise","back-pressure","flow-control","AsyncIterable","AsyncIterator"],"license":"MIT","_id":"@shutterstock/p-map-iterable@1.1.1","maintainers":[{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"msmolash","email":"mitch@smolash.com"},{"name":"cphillip","email":"cphillip@shutterstock.com"}],"homepage":"https://tech.shutterstock.com/p-map-iterable/","bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"dist":{"shasum":"1255ea8e0eee710e38453bc38646fc5dbbb24704","tarball":"https://registry.npmjs.org/@shutterstock/p-map-iterable/-/p-map-iterable-1.1.1.tgz","fileCount":55,"integrity":"sha512-db3QF6bkGNRE/l5a2zbBVvNM6d3grKTaQnT9pLKRnnSSUn/QIGMOf+SYXkTaUNO7GYn1vpBKEKUsrxL9aazXJA==","signatures":[{"sig":"MEYCIQDcpvDqlbQQwo61UOZW2nkFFfYaXXep2Cc3MeEm+kmEgwIhAMvN9X2pRz2MJ1NhxF+TaIg+IkxUT+g0jKhmMe0zUfqi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":224702},"main":"dist/src/index.js","types":"dist/src/index.d.ts","gitHead":"3b0ea7b70aec305de876d8c4bab973e5eb089c51","scripts":{"lint":"eslint ./ --ext .ts --ext .tsx","test":"jest","build":"tsc --build tsconfig.json && echo 'examples/\n*.tsbuildinfo' > dist/.npmignore","build:docs":"typedoc src/index.ts","lint-and-fix":"eslint ./ --ext .ts --ext .tsx --fix","example:iterable-mapper":"ts-node -r tsconfig-paths/register examples/iterable-mapper.ts","example:iterable-queue-mapper":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper.ts","example:iterable-queue-mapper-simple":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper-simple.ts"},"_npmUser":{"name":"huntharo","email":"harold@pwrdrvr.com"},"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"_npmVersion":"8.19.4","description":"Set of classes used for async prefetching with backpressure (IterableMapper) and async flushing with backpressure (IterableQueueMapper, IterableQueueMapperSimple)","directories":{},"_nodeVersion":"16.20.2","dependencies":{"aggregate-error":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.5.0","eslint":"^7.15.0","ts-jest":"29.1.0","ts-node":"10.9.1","typedoc":"^0.24.8","prettier":"^2.2.1","typescript":"5.1.3","@types/jest":"29.5.2","tsconfig-paths":"4.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.2.0","@typescript-eslint/parser":"^5.13.0","@typescript-eslint/eslint-plugin":"^5.13.0"},"peerDependencies":{"aggregate-error":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-map-iterable_1.1.1_1739475815787_0.1744244876047687","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@shutterstock/p-map-iterable","version":"1.1.2","keywords":["p-map","p-map-iterable","blocking-queue","iterable-queue","mapping","iterable","queue","async","promise","back-pressure","flow-control","AsyncIterable","AsyncIterator"],"license":"MIT","_id":"@shutterstock/p-map-iterable@1.1.2","maintainers":[{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"msmolash","email":"mitch@smolash.com"},{"name":"cphillip","email":"cphillip@shutterstock.com"}],"homepage":"https://tech.shutterstock.com/p-map-iterable/","bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"dist":{"shasum":"bae2604d8daa9fdb59fca5f8e08571273da19441","tarball":"https://registry.npmjs.org/@shutterstock/p-map-iterable/-/p-map-iterable-1.1.2.tgz","fileCount":24,"integrity":"sha512-zNPPB2cro7fr+gPsNPoEir6pzYfJngkik7EnsSD5uMqwzGB8qtMmausS5XO10KM5c1Hfw/hpe1oXf/UoHNZFlg==","signatures":[{"sig":"MEUCIBns1LoL5XGu6WRmnQJYXNCHUut6mcV63AIMSIuOc1g/AiEAtOV+lVOsxG+5z6+1WQ8HzhI6qajGOTY+QvLezuf5GHU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92361},"main":"dist/src/index.js","types":"dist/src/index.d.ts","gitHead":"603abe49200f871052e8cb8b61e3a7b1e39fe2e9","scripts":{"lint":"eslint ./ --ext .ts --ext .tsx","test":"jest","build":"tsc --build tsconfig.json && echo 'examples/\n*.tsbuildinfo\n*.test.*\n*.d.ts.map' > dist/.npmignore","build:docs":"typedoc src/index.ts","lint-and-fix":"eslint ./ --ext .ts --ext .tsx --fix","example:iterable-mapper":"ts-node -r tsconfig-paths/register examples/iterable-mapper.ts","example:iterable-queue-mapper":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper.ts","example:iterable-queue-mapper-simple":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper-simple.ts"},"_npmUser":{"name":"huntharo","email":"harold@pwrdrvr.com"},"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"_npmVersion":"8.19.4","description":"Set of classes used for async prefetching with backpressure (IterableMapper) and async flushing with backpressure (IterableQueueMapper, IterableQueueMapperSimple)","directories":{},"_nodeVersion":"16.20.2","dependencies":{"aggregate-error":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.5.0","eslint":"^7.15.0","ts-jest":"29.1.0","ts-node":"10.9.1","typedoc":"^0.24.8","prettier":"^2.2.1","typescript":"5.1.3","@types/jest":"29.5.2","tsconfig-paths":"4.2.0","eslint-config-prettier":"^7.0.0","eslint-plugin-prettier":"^3.2.0","@typescript-eslint/parser":"^5.13.0","@typescript-eslint/eslint-plugin":"^5.13.0"},"peerDependencies":{"aggregate-error":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/p-map-iterable_1.1.2_1739566066278_0.7458478919598805","host":"s3://npm-registry-packages-npm-production"}},"1.2.0-prerelease.1":{"name":"@shutterstock/p-map-iterable","version":"1.2.0-prerelease.1","keywords":["p-map","p-map-iterable","blocking-queue","iterable-queue","mapping","iterable","queue","async","promise","back-pressure","flow-control","AsyncIterable","AsyncIterator"],"license":"MIT","_id":"@shutterstock/p-map-iterable@1.2.0-prerelease.1","maintainers":[{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"cphillip","email":"cphillip@shutterstock.com"}],"homepage":"https://tech.shutterstock.com/p-map-iterable/","bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"dist":{"shasum":"f81dfe83ec9919ff8a5eb84d8691b2da8b12e54c","tarball":"https://registry.npmjs.org/@shutterstock/p-map-iterable/-/p-map-iterable-1.2.0-prerelease.1.tgz","fileCount":24,"integrity":"sha512-KCe++Fx3VgkdWz8ForiImzlWQ6b5+A/ep66tLf/oFqMGIxzyXsaQt/YuOw6O//8TMSFpgy4Xy8fqPDwD68WUXA==","signatures":[{"sig":"MEUCIFrfusfNIPz7tTTCcrAgSWOpw9y/X3G3765WGINHfbzCAiEAuJpE2NPxGvAJcXRRIbqvKyGdo/l8NgDEY3rMbFNrDtg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDptKSfq1xy0Ige75zrvZwdM3edMrZo+JOsVB5IelLRWAIgM8+j5lpoxbvZNJ94oy8sBsT/jFAhuVhlMv3JWNvlF0s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@shutterstock%2fp-map-iterable@1.2.0-prerelease.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":99900},"main":"dist/src/index.js","types":"dist/src/index.d.ts","gitHead":"ca03115181dc71407d592fb903700e25847c66ed","scripts":{"lint":"eslint .","test":"jest","build":"tsc --build tsconfig.json && echo 'examples/\n*.tsbuildinfo\n*.test.*\n*.d.ts.map' > dist/.npmignore","build:docs":"typedoc src/index.ts","lint-and-fix":"eslint . --fix","example:iterable-mapper":"ts-node -r tsconfig-paths/register examples/iterable-mapper.ts","example:semantic-aliases":"ts-node -r tsconfig-paths/register examples/semantic-aliases.ts","example:iterable-queue-mapper":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper.ts","example:iterable-queue-mapper-simple":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper-simple.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c3832411-5773-4b9b-853e-30ddabebe052"}},"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"_npmVersion":"11.19.0","description":"Concurrent mapping and queued background work with backpressure, streaming results, and collected errors","directories":{},"_nodeVersion":"24.21.0","dependencies":{"aggregate-error":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@12.7.0","readmeFilename":"README.md","devDependencies":{"jest":"30.5.2","eslint":"^10.11.0","globals":"^17.12.0","ts-jest":"29.4.14","ts-node":"10.9.2","typedoc":"^0.28.20","prettier":"^3.9.9","@eslint/js":"^10.0.1","lcov-parse":"1.0.0","typescript":"6.0.3","@types/jest":"30.0.0","@types/node":"^26.6.3","tsconfig-paths":"4.2.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.6","@typescript-eslint/parser":"^8.70.1","@typescript-eslint/eslint-plugin":"^8.70.1"},"peerDependencies":{"aggregate-error":"^3.1.0"},"_npmOperationalInternal":{"tmp":"tmp/p-map-iterable_1.2.0-prerelease.1_1791212594051_0.16270936757594856","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"_id":"@shutterstock/p-map-iterable@1.2.0","bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"dist":{"shasum":"b14f3e91d702a6b9a4975f042eb33f12cfb03965","tarball":"https://registry.npmjs.org/@shutterstock/p-map-iterable/-/p-map-iterable-1.2.0.tgz","fileCount":24,"integrity":"sha512-waqNJVOz35MaGZgxNl+kxDCxeBLOOVHL/XvgcZDAy9gazjRRkt9ZmUz48S3AoejC3EUJKjEYgjQW1UtRKJLb0g==","signatures":[{"sig":"MEUCIQDwDrKkLA7wJ37E0bSJk53GK1DEuAoD6mU0d9IshDBttgIgHI2CHa1zEXEd2hZctUgUZRyNkRuG0EUcSApaBGAz/Vw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDawr8XL+vrXGnhvSwipnU7VJuHoaxLt87a5zki8f2THAiBWHdanU8Kl6F5Xeb32wNQJ1hsraA4/LetJqdEeEhwZGQ=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@shutterstock%2fp-map-iterable@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":99887},"main":"dist/src/index.js","name":"@shutterstock/p-map-iterable","types":"dist/src/index.d.ts","gitHead":"ca03115181dc71407d592fb903700e25847c66ed","license":"MIT","scripts":{"lint":"eslint .","test":"jest","build":"tsc --build tsconfig.json && echo 'examples/\n*.tsbuildinfo\n*.test.*\n*.d.ts.map' > dist/.npmignore","build:docs":"typedoc src/index.ts","lint-and-fix":"eslint . --fix","example:iterable-mapper":"ts-node -r tsconfig-paths/register examples/iterable-mapper.ts","example:semantic-aliases":"ts-node -r tsconfig-paths/register examples/semantic-aliases.ts","example:iterable-queue-mapper":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper.ts","example:iterable-queue-mapper-simple":"ts-node -r tsconfig-paths/register examples/iterable-queue-mapper-simple.ts"},"version":"1.2.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c3832411-5773-4b9b-853e-30ddabebe052"}},"homepage":"https://tech.shutterstock.com/p-map-iterable/","keywords":["p-map","p-map-iterable","blocking-queue","iterable-queue","mapping","iterable","queue","async","promise","back-pressure","flow-control","AsyncIterable","AsyncIterator"],"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"_npmVersion":"11.19.0","description":"Concurrent mapping and queued background work with backpressure, streaming results, and collected errors","directories":{},"maintainers":[{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"cphillip","email":"cphillip@shutterstock.com"}],"_nodeVersion":"24.21.0","dependencies":{"aggregate-error":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@12.7.0","devDependencies":{"jest":"30.5.2","eslint":"^10.11.0","globals":"^17.12.0","ts-jest":"29.4.14","ts-node":"10.9.2","typedoc":"^0.28.20","prettier":"^3.9.9","@eslint/js":"^10.0.1","lcov-parse":"1.0.0","typescript":"6.0.3","@types/jest":"30.0.0","@types/node":"^26.6.3","tsconfig-paths":"4.2.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.6","@typescript-eslint/parser":"^8.70.1","@typescript-eslint/eslint-plugin":"^8.70.1"},"peerDependencies":{"aggregate-error":"^3.1.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-map-iterable_1.2.0_1791226820373_0.2771007859008403"}}},"time":{"created":"2023-06-12T22:58:07.171Z","modified":"2026-10-05T19:00:20.797Z","0.0.1":"2023-06-12T22:58:07.526Z","0.1.0":"2023-06-16T04:58:27.875Z","1.0.10":"2023-06-16T13:23:14.576Z","1.0.11":"2023-06-16T13:46:43.346Z","1.1.0":"2025-02-11T16:14:18.883Z","1.1.1":"2025-02-13T19:43:36.000Z","1.1.2":"2025-02-14T20:47:46.443Z","1.2.0-prerelease.1":"2026-10-05T15:03:14.151Z","1.2.0":"2026-10-05T19:00:20.473Z"},"bugs":{"url":"https://github.com/shutterstock/p-map-iterable/issues"},"license":"MIT","homepage":"https://tech.shutterstock.com/p-map-iterable/","keywords":["p-map","p-map-iterable","blocking-queue","iterable-queue","mapping","iterable","queue","async","promise","back-pressure","flow-control","AsyncIterable","AsyncIterator"],"repository":{"url":"git+https://github.com/shutterstock/p-map-iterable.git","type":"git"},"description":"Concurrent mapping and queued background work with backpressure, streaming results, and collected errors","maintainers":[{"name":"sstk-admin","email":"opensource@shutterstock.com"},{"name":"patch","email":"patch.nova@gmail.com"},{"name":"huntharo","email":"harold@pwrdrvr.com"},{"name":"cphillip","email":"cphillip@shutterstock.com"}],"readme":"[![npm (scoped)](https://img.shields.io/npm/v/%40shutterstock/p-map-iterable)](https://www.npmjs.com/package/@shutterstock/p-map-iterable) [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![API Docs](https://img.shields.io/badge/API%20Docs-View%20Here-blue)](https://tech.shutterstock.com/p-map-iterable/) [![Build - CI](https://github.com/shutterstock/p-map-iterable/actions/workflows/ci.yml/badge.svg)](https://github.com/shutterstock/p-map-iterable/actions/workflows/ci.yml) [![Package and Publish](https://github.com/shutterstock/p-map-iterable/actions/workflows/publish.yml/badge.svg)](https://github.com/shutterstock/p-map-iterable/actions/workflows/publish.yml) [![Publish Docs](https://github.com/shutterstock/p-map-iterable/actions/workflows/docs.yml/badge.svg)](https://github.com/shutterstock/p-map-iterable/actions/workflows/docs.yml)\n\n# Overview\n\n`@shutterstock/p-map-iterable` provides several classes that allow processing results of `p-map`-style mapper functions by iterating the results as they are completed, with backpressure to limit the number of items that are processed ahead of the consumer.\n\nUse these classes for concurrent metadata lookups, capability probes, background status checks, or read/write pipelines. The [optional aliases](#optional-names-for-concurrent-work) `ConcurrentMapper`, `MappingQueue`, and `WorkerQueue` describe the input and result contracts without tying the work to a particular I/O operation.\n\nA common use case for `@shutterstock/p-map-iterable` is as a \"prefetcher\" that will fetch, for example, AWS S3 files in an AWS Lambda function. By prefetching large files the consumer is able to use 100% of the paid-for Lambda CPU time for the JS thread, rather than waiting idle while the next file is fetched. The backpressure (set by `maxUnread`) prevents the prefetcher from consuming unlimited memory or disk space by racing ahead of the consumer.\n\nThe caller supplies the operation to run for each input. Concurrency overlaps asynchronous work in the current JavaScript process; synchronous CPU work still uses the JavaScript event loop.\n\n# Example Usage Scenarios\n\n## Typical Processing Loop without `IterableMapper`\n\n```typescript\nconst source = new SomeSource();\nconst sourceIds = [1, 2,... 1000];\nconst sink = new SomeSink();\nfor (const sourceId of sourceIds) {\n  const item = await source.read(sourceId);     // takes 300 ms of I/O wait, no CPU\n  const outputItem = doSomeOperation(item);     // takes 20 ms of CPU\n  await sink.write(outputItem);                 // takes 500 ms of I/O wait, no CPU\n}\n```\n\nEach iteration takes 820ms total, but we waste time waiting for I/O. We could prefetch the next read (300ms) while processing (20ms) and writing (500ms), without changing the order of reads or writes.\n\n## Prefetching with `IterableMapper` and Blocking Sequential Writes\n\n`concurrency: 1` on the prefetcher preserves the order of the reads, and writes remain sequential and blocking.\n\n```typescript\nconst source = new SomeSource();\nconst sourceIds = [1, 2,... 1000];\n// Prefetches serially within maxUnread and releases results in sequential order\nconst sourcePrefetcher = new IterableMapper(sourceIds,\n  async (sourceId) => source.read(sourceId),\n  { concurrency: 1, maxUnread: 10 }\n);\nconst sink = new SomeSink();\nfor await (const item of sourcePrefetcher) {    // may not block for fast sources\n  const outputItem = doSomeOperation(item);     // takes 20 ms of CPU\n  await sink.write(outputItem);                 // takes 500 ms of I/O wait, no CPU\n}\n```\n\nThis reduces iteration time to 520ms by overlapping reads with processing/writing.\n\n## Prefetching with `IterableMapper` and Background Sequential Writes with `IterableQueueMapperSimple`\n\n`concurrency: 1` on the prefetcher preserves the order of the reads.\n`concurrency: 1` on the flusher preserves the order of the writes, but allows the loop to iterate while last write is completing.\n\n```typescript\nconst source = new SomeSource();\nconst sourceIds = [1, 2,... 1000];\nconst sourcePrefetcher = new IterableMapper(sourceIds,\n  async (sourceId) => source.read(sourceId),\n  { concurrency: 1, maxUnread: 10 }\n);\nconst sink = new SomeSink();\nconst flusher = new IterableQueueMapperSimple(\n  async (outputItem) => sink.write(outputItem),\n  { concurrency: 1 }\n);\nfor await (const item of sourcePrefetcher) {    // may not block for fast sources\n  const outputItem = doSomeOperation(item);     // takes 20 ms of CPU\n  await flusher.enqueue(outputItem);            // will periodically block for portion of write time\n}\n// Close input permanently after the last enqueue and wait for all writes\nawait flusher.onIdle();\n// Check for errors\nif (flusher.errors.length > 0) {\n// ...\n}\n```\n\nThis reduces iteration time to about `max((max(readTime, writeTime) - cpuOpTime, cpuOpTime))`\nby overlapping reads and writes with the CPU processing step.\nIn this contrived example, the loop time is reduced to 500ms - 20ms = 480ms.\nIn cases where the CPU usage time is higher, the impact can be greater.\n\n## Prefetching with `IterableMapper` and Out of Order Background Writes with `IterableQueueMapperSimple`\n\nFor maximum throughput, allow out of order reads and writes with\n`IterableQueueMapper` (to iterate results with backpressure when too many unread items) or\n`IterableQueueMapperSimple` (to handle errors at end without custom iteration and applying backpressure to block further enqueues when `concurrency` items are in process):\n\n```typescript\nconst source = new SomeSource();\nconst sourceIds = [1, 2,... 1000];\nconst sourcePrefetcher = new IterableMapper(sourceIds,\n  async (sourceId) => source.read(sourceId),\n  { concurrency: 10, maxUnread: 20 }\n);\nconst sink = new SomeSink();\nconst flusher = new IterableQueueMapperSimple(\n  async (outputItem) => sink.write(outputItem),\n  { concurrency: 10 }\n);\nfor await (const item of sourcePrefetcher) {    // typically will not block\n  const outputItem = doSomeOperation(item);     // takes 20 ms of CPU\n  await flusher.enqueue(outputItem);            // typically will not block\n}\n// Close input permanently after the last enqueue and wait for all writes\nawait flusher.onIdle();\n// Check for errors\nif (flusher.errors.length > 0) {\n // ...\n}\n```\n\nThis reduces iteration time to about 20ms by overlapping reads and writes with the CPU processing step. In this contrived (but common) example we would get a 41x improvement in throughput, removing 97.5% of the time to process each item and fully utilizing the CPU time available in the JS event loop.\n\n# Getting Started\n\n## Installation\n\nThe package is available on npm as [@shutterstock/p-map-iterable](https://www.npmjs.com/package/@shutterstock/p-map-iterable)\n\n`npm i @shutterstock/p-map-iterable`\n\n## Importing\n\n```typescript\nimport {\n  IterableMapper,\n  IterableQueueMapper,\n  IterableQueueMapperSimple } from '@shutterstock/p-map-iterable';\n```\n\n## API Documentation\n\nAfter installing the package, you might want to look at our [API Documentation](https://tech.shutterstock.com/p-map-iterable/) to learn about all the features available.\n\n# `p-map-iterable` vs `p-map` vs `p-queue`\n\nThese diagrams illustrate the differences in operation betweeen `p-map`, `p-queue`, and `p-map-iterable`.\n\n## `p-map-iterable`\n\n![p-map-iterable operations overview](https://github.com/shutterstock/p-map-iterable/assets/5617868/abdc7079-8c12-4518-8135-867fc5085e60)\n\n## `p-map`\n\n![p-map operations overview](https://github.com/shutterstock/p-map-iterable/assets/5617868/2fd88213-3135-4de8-8ec2-224555c08d65)\n\n## `p-queue`\n\n![p-queue operations overview](https://github.com/shutterstock/p-map-iterable/assets/5617868/88300edb-7bfe-41f0-ae5b-1cd5723bc255)\n\n# Features\n\n- [IterableMapper](https://tech.shutterstock.com/p-map-iterable/classes/IterableMapper.html)\n  - Also exported as `ConcurrentMapper`\n  - Interface and concept based on: [p-map](https://github.com/sindresorhus/p-map)\n  - Allows a sync or async iterable input\n  - User supplied sync or async mapper function\n  - Exposes an async iterable interface for consuming mapped items\n  - Allows a maximum queue depth of mapped items - if the consumer stops consuming, the queue will fill up, at which point the mapper will stop being invoked until an item is consumed from the queue\n  - This allows mapping with backpressure so that the mapper does not consume unlimited resources (e.g. memory, disk, network, event loop time) by racing ahead of the consumer\n- [IterableQueueMapper](https://tech.shutterstock.com/p-map-iterable/classes/IterableQueueMapper.html)\n  - Also exported as `MappingQueue`\n  - Wraps `IterableMapper`\n  - Adds items to the queue via the `enqueue` method\n- [IterableQueueMapperSimple](https://tech.shutterstock.com/p-map-iterable/classes/IterableQueueMapperSimple.html)\n  - Also exported as `WorkerQueue`\n  - Wraps `IterableQueueMapper`\n  - Discards results as they become available\n  - Exposes any accumulated errors through the `errors` property instead of throwing an `AggregateError`\n  - Consumes results internally and exposes no result iterator\n\n## Lower Level Utilities\n- [IterableQueue](https://tech.shutterstock.com/p-map-iterable/classes/IterableQueue.html)\n  - Lower level utility class\n  - Wraps `BlockingQueue`\n  - Exposes an async iterable interface for consuming items in the queue\n- [BlockingQueue](https://tech.shutterstock.com/p-map-iterable/classes/BlockingQueue.html)\n  - Lower level utility class\n  - `dequeue` blocks until an item is available or until all items have been removed, then returns `undefined`\n  - `enqueue` blocks if the queue is full\n  - `done` signals that no more items will be added to the queue\n\n# `IterableMapper`\n\nSee [p-map](https://github.com/sindresorhus/p-map) docs for a good start in understanding what this does.\n\nThe key difference between `IterableMapper` and `pMap` are that `IterableMapper` does not return when the entire mapping is done, rather it exposes an iterable that the caller loops through. This enables results to be processed while the mapping is still happening, while optionally allowing for backpressure to slow or stop the mapping if the caller is not consuming items fast enough. Common use cases include `prefetching` items from a remote service - the next set of requests are dispatched asyncronously while the current responses are processed and the prefetch requests will pause when the unread queue fills up.\n\n`ConcurrentMapper` is an alias for this class. It also fits general mapping work such as enriching project metadata or probing a list of services. Consume results with `for await`; with `concurrency` greater than one, results can arrive out of input order.\n\nSee [examples/iterable-mapper.ts](./examples/iterable-mapper.ts) for an example.\n\nRun the example with `pnpm run example:iterable-mapper`\n\n# `IterableQueueMapper`\n\n`IterableQueueMapper` is similar to `IterableMapper` but instead of taking an iterable input it instead adds data via the `enqueue` method which will block if `maxUnread` will be reached by the current number of `mapper`'s running in parallel.\n\n`MappingQueue` is an alias for this class. Produce inputs and consume mapped results concurrently so the result buffer can drain. After the last awaited enqueue, call `done()` and finish consuming the iterator; `done()` closes input and does not wait for work to complete.\n\nSee [examples/iterable-queue-mapper.ts](./examples/iterable-queue-mapper.ts) for an example.\n\nRun the example with `pnpm run example:iterable-queue-mapper`\n\n# `IterableQueueMapperSimple`\n\n`IterableQueueMapperSimple` is similar to `IterableQueueMapper` but instead exposing the results as an iterable it discards the results as soon as they are ready and exposes any errors through the `errors` property.\n\n`WorkerQueue` is an alias for this class. Supply one worker callback to process every enqueued input, such as a background Git status check. Await each enqueue for producer backpressure. After the last enqueue, await `onIdle()` to permanently close input and finish the accepted work, then inspect `errors`. An enqueue resolves when the input is accepted, rather than when its work completes.\n\nSee [examples/iterable-queue-mapper-simple.ts](./examples/iterable-queue-mapper-simple.ts) for an example.\n\nRun the example with `pnpm run example:iterable-queue-mapper-simple`\n\n## Optional names for concurrent work\n\nThe package exports three optional class aliases. Choose the name that makes the input and result contracts clearest in your application:\n\n| Alias | Original class | Input | Results and completion |\n| --- | --- | --- | --- |\n| `ConcurrentMapper` | `IterableMapper` | Sync or async iterable | Consume mapped results with `for await`. Mapping pauses when the unread result buffer fills. |\n| `MappingQueue` | `IterableQueueMapper` | Awaited `enqueue(item)` calls | Consume results concurrently with production. Call `done()` after the last enqueue, then finish consuming the iterator. |\n| `WorkerQueue` | `IterableQueueMapperSimple` | Awaited `enqueue(item)` calls | Results are consumed internally. After the last enqueue, await `onIdle()` and check `errors`. |\n\n```typescript\nimport {\n  ConcurrentMapper,\n  MappingQueue,\n  WorkerQueue,\n} from '@shutterstock/p-map-iterable';\n```\n\nThe aliases are the original classes, with the same constructor identity, generic instance types, and subclassing behavior. Existing imports continue to work. Defaults, result ordering, backpressure, and error handling are identical through either name.\n\nMatching option types are available from the package root using `import type`:\n\n| Option alias | Original option type | Configuration |\n| --- | --- | --- |\n| `ConcurrentMapperOptions` | `IterableMapperOptions` | `concurrency`, `maxUnread`, `stopOnMapperError` |\n| `MappingQueueOptions` | `IterableQueueMapperOptions` | `concurrency`, `maxUnread`, `stopOnMapperError` |\n| `WorkerQueueOptions` | `IterableQueueMapperSimpleOptions` | `concurrency` |\n\n`MappingQueue` must have a result consumer even when you do not need the results. Awaiting every enqueue before starting iteration can block once the result buffer fills. Use `WorkerQueue` when results can be discarded. Its `onIdle()` permanently ends input; subsequent enqueues reject. Worker failures are collected in `errors` while other inputs continue to run, so check that property after shutdown.\n\nEach queue uses one fixed callback supplied at construction. Awaiting `enqueue()` provides producer backpressure and confirms acceptance of an input. Calling it without awaiting can accumulate pending inputs. For ongoing event-driven work, the application supplies any admission limits, cancellation, deduplication, or per-item completion handles. `WorkerQueue.onIdle()` is a final shutdown operation, so an application that needs reusable idle waits must manage that separately.\n\nSee [examples/semantic-aliases.ts](./examples/semantic-aliases.ts) for metadata enrichment, queued capability probes with a concurrent result consumer, and background status checks with collected errors. Run it with `pnpm run example:semantic-aliases`.\n\n# Contributing - Setting up Build Environment\n\nUse Node.js 24 and the pnpm version pinned in `package.json`:\n\n```sh\nnvm use\ncorepack enable pnpm\ncorepack prepare pnpm@12.7.0 --activate\npnpm install --frozen-lockfile\npnpm run build\npnpm run build:docs\npnpm run lint\npnpm run test\npnpm run example:semantic-aliases\n```\n\nCorepack enforces the pnpm version in `package.json`. pnpm's additional package\nmanager switching is disabled to keep the single-document lockfile readable by\nGitHub's dependency graph and Dependabot. The pnpm configuration requires package\nreleases to be at least seven days old.\nOn macOS, `packageImportMethod: auto` prefers APFS copy-on-write clones from the\nshared pnpm store, so worktrees share package data until a file changes. Keep the\nstore on the same APFS volume as the checkout. Other supported filesystems use\npnpm's available import method.\n","readmeFilename":"README.md"}