{"_id":"@humanspeak/svelte-subscribe","_rev":"5-03daa8153d3501333c6379d8e828f18f","name":"@humanspeak/svelte-subscribe","dist-tags":{"latest":"5.0.0"},"versions":{"3.0.0":{"name":"@humanspeak/svelte-subscribe","version":"3.0.0","keywords":["svelte","sveltejs","stores","subscribe","subscription"],"author":{"name":"Humanspeak, Inc."},"license":"MIT","_id":"@humanspeak/svelte-subscribe@3.0.0","maintainers":[{"name":"humanspeakadmin","email":"admin@humanspeak.com"}],"homepage":"https://github.com/humanspeak/svelte-subscribe#readme","bugs":{"url":"https://github.com/humanspeak/svelte-subscribe/issues"},"dist":{"shasum":"76914472e9e09049e9df9d58f5b3e09c0bf43926","tarball":"https://registry.npmjs.org/@humanspeak/svelte-subscribe/-/svelte-subscribe-3.0.0.tgz","fileCount":9,"integrity":"sha512-SRGDBPE5+aB+m16smVLEwXft9pnPSM9DKmcmnsoRe6ttmZWXZZxeA1PEFU1eV7ZZj9Gy6Ryqqk+9S7Be0boFdA==","signatures":[{"sig":"MEYCIQCwpWiABE7lfemyEen7OCWNMZzZtwXw/DHvfCLXr/fiigIhAL+fRGmZxECClAW3jrXTF8Y3snEbB2OrImyKxJMUn6Sb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7296},"type":"module","types":"./dist/index.d.ts","svelte":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"94a4d1e93b5539aa75f3c5785c58b7d47b45e624","scripts":{"dev":"vite dev","lint":"prettier --check . && eslint .","test":"vitest run --coverage","build":"vite build && npm run package","check":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","format":"prettier --write .","package":"svelte-kit sync && svelte-package && publint","preview":"vite preview","lint:fix":"npm run format && eslint . --fix","test:only":"vitest run","test:watch":"vitest","check:watch":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","prepublishOnly":"npm run package"},"_npmUser":{"name":"humanspeakadmin","email":"admin@humanspeak.com"},"repository":{"url":"git+ssh://git@github.com/humanspeak/svelte-subscribe.git","type":"git"},"_npmVersion":"10.9.0","description":"Subscribe to non top-level stores in your Svelte templates","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.10","tslib":"^2.8.1","eslint":"^9.14.0","svelte":"^5.1.13","vitest":"^2.1.4","globals":"^15.12.0","publint":"^0.2.12","prettier":"^3.3.3","@eslint/js":"^9.14.0","typescript":"^5.6.3","svelte-check":"^4.0.6","@sveltejs/kit":"^2.8.0","@eslint/eslintrc":"^3.1.0","@sveltejs/package":"^2.3.7","@vitest/coverage-v8":"^2.1.4","eslint-plugin-svelte":"^2.46.0","@sveltejs/adapter-auto":"^3.3.1","eslint-config-prettier":"^9.1.0","prettier-plugin-svelte":"^3.2.7","@typescript-eslint/parser":"^8.13.0","@sveltejs/vite-plugin-svelte":"^4.0.0","@typescript-eslint/eslint-plugin":"^8.13.0"},"peerDependencies":{"svelte":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte-subscribe_3.0.0_1731269530764_0.3655025100874518","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"@humanspeak/svelte-subscribe","version":"3.0.1","keywords":["svelte","sveltejs","stores","subscribe","subscription"],"author":{"name":"Humanspeak, Inc."},"license":"MIT","_id":"@humanspeak/svelte-subscribe@3.0.1","maintainers":[{"name":"humanspeakadmin","email":"admin@humanspeak.com"}],"homepage":"https://github.com/humanspeak/svelte-subscribe#readme","bugs":{"url":"https://github.com/humanspeak/svelte-subscribe/issues"},"dist":{"shasum":"bc8f3e6862a44768c6b80caa62cf6157c48354da","tarball":"https://registry.npmjs.org/@humanspeak/svelte-subscribe/-/svelte-subscribe-3.0.1.tgz","fileCount":9,"integrity":"sha512-q2pprsZ5kKnTBbnt5RAKow39B6ApkNErhjIgSkPk+RRJW+KddG6bSbjGXN6pCig7nWyaMP0F4NDqsUZEwegDkA==","signatures":[{"sig":"MEUCICBeA3bEK55OI5WzPohgS0obaxJ+UdWLzRMlyqRWM6z0AiEA2a41XB/4ljBUfdiw+JAPz8BC74dIt7UXYx2cxWtMFXM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7315},"type":"module","types":"./dist/index.d.ts","svelte":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"94a4d1e93b5539aa75f3c5785c58b7d47b45e624","scripts":{"dev":"vite dev","lint":"prettier --check . && eslint .","test":"vitest run --coverage","build":"vite build && npm run package","check":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","format":"prettier --write .","package":"svelte-kit sync && svelte-package && publint","preview":"vite preview","lint:fix":"npm run format && eslint . --fix","test:only":"vitest run","test:watch":"vitest","check:watch":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","prepublishOnly":"npm run package"},"_npmUser":{"name":"humanspeakadmin","email":"admin@humanspeak.com"},"repository":{"url":"git+ssh://git@github.com/humanspeak/svelte-subscribe.git","type":"git"},"_npmVersion":"10.9.0","description":"Subscribe to non top-level stores in your Svelte templates","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.3","tslib":"^2.8.1","eslint":"^9.16.0","svelte":"^5.8.0","vitest":"^2.1.8","globals":"^15.13.0","publint":"^0.2.12","prettier":"^3.4.2","@eslint/js":"^9.16.0","typescript":"^5.7.2","svelte-check":"^4.1.1","@sveltejs/kit":"^2.9.0","@eslint/eslintrc":"^3.2.0","@sveltejs/package":"^2.3.7","@vitest/coverage-v8":"^2.1.8","eslint-plugin-svelte":"^2.46.1","@sveltejs/adapter-auto":"^3.3.1","eslint-config-prettier":"^9.1.0","prettier-plugin-svelte":"^3.3.2","@typescript-eslint/parser":"^8.17.0","@sveltejs/vite-plugin-svelte":"^5.0.1","@typescript-eslint/eslint-plugin":"^8.17.0"},"peerDependencies":{"svelte":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte-subscribe_3.0.1_1733501473438_0.6871278607517344","host":"s3://npm-registry-packages"}},"3.9.10":{"name":"@humanspeak/svelte-subscribe","version":"3.9.10","keywords":["svelte","sveltejs","stores","subscribe","subscription"],"author":{"name":"Bryan Lee"},"license":"MIT","_id":"@humanspeak/svelte-subscribe@3.9.10","maintainers":[{"name":"humanspeakadmin","email":"admin@humanspeak.com"}],"homepage":"https://github.com/humanspeak/svelte-subscribe#readme","bugs":{"url":"https://github.com/humanspeak/svelte-subscribe/issues"},"dist":{"shasum":"40fd6c898db2ddfb82d3b15815242402b56af14a","tarball":"https://registry.npmjs.org/@humanspeak/svelte-subscribe/-/svelte-subscribe-3.9.10.tgz","fileCount":9,"integrity":"sha512-rU7JODIk7G9rNwUoked+UmPcb0bkN0is7rXQLF0wVpxNg52MZ8n0rIiX/GPAsqhFt4BDhGArPHU4BWB19KpAiQ==","signatures":[{"sig":"MEUCIG+j3DbjO7rT0u1EzLYixx/PLOy3GX7YA1CKpr1KuLHbAiEA9tiGErksQFxyRH3/PFzsuy8XcGl+i/pCsaGdooU4jEQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@humanspeak%2fsvelte-subscribe@3.9.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7728},"type":"module","types":"./dist/index.d.ts","svelte":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"40b126aa12de5b9a67e812de6952282d61b0a5b6","scripts":{"dev":"vite dev","lint":"prettier --check . && eslint .","test":"vitest run --coverage","build":"vite build && npm run package","check":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","format":"prettier --write .","package":"svelte-kit sync && svelte-package && publint","preview":"vite preview","lint:fix":"npm run format && eslint . --fix","test:only":"vitest run","test:watch":"vitest","check:watch":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","prepublishOnly":"npm run package"},"_npmUser":{"name":"humanspeakadmin","email":"admin@humanspeak.com"},"repository":{"url":"git+ssh://git@github.com/humanspeak/svelte-subscribe.git","type":"git"},"_npmVersion":"10.9.0","description":"Subscribe to non top-level stores in your Svelte templates","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.3","tslib":"^2.4.1","eslint":"^8.56.0","svelte":"^4.2.7","vitest":"^1.0.0","publint":"^0.1.9","prettier":"^3.1.1","type-fest":"^4.9.0","typescript":"^5.0.0","svelte-check":"^3.6.0","@sveltejs/kit":"^2.0.0","@types/eslint":"8.56.0","@sveltejs/package":"^2.0.0","@vitest/coverage-v8":"^1.1.1","eslint-plugin-svelte":"^2.35.1","@sveltejs/adapter-auto":"^3.0.0","eslint-config-prettier":"^9.1.0","prettier-plugin-svelte":"^3.1.2","@typescript-eslint/parser":"^6.0.0","@sveltejs/vite-plugin-svelte":"^3.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"svelte":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte-subscribe_3.9.10_1737562373702_0.4278243420792194","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"@humanspeak/svelte-subscribe","version":"4.0.0","keywords":["svelte","sveltejs","stores","subscribe","subscription"],"author":{"name":"Bryan Lee"},"license":"MIT","_id":"@humanspeak/svelte-subscribe@4.0.0","maintainers":[{"name":"humanspeakadmin","email":"admin@humanspeak.com"}],"homepage":"https://github.com/humanspeak/svelte-subscribe#readme","bugs":{"url":"https://github.com/humanspeak/svelte-subscribe/issues"},"dist":{"shasum":"946ba147a01a5efa3398565272f56b3474385ce3","tarball":"https://registry.npmjs.org/@humanspeak/svelte-subscribe/-/svelte-subscribe-4.0.0.tgz","fileCount":9,"integrity":"sha512-VI5mLIFFndORuM0M+esKMYtEcGFTsT8S0BY9Bg2D+lbw/FP/jYmXuTSib0htXxQNlgGjjvEKcXJNHTk6+bwFpg==","signatures":[{"sig":"MEQCIEQBdyyjCbR6JBGcJa+s7Jtusu8D5seXMC6heb6jbCkTAiBV24V13Yl+K8hR7+5O/8UrfTsYwUEMoqOv5Su8ExJcnA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@humanspeak%2fsvelte-subscribe@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7727},"type":"module","types":"./dist/index.d.ts","svelte":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"8198c35c5a75efcb004bbd4d5b841133ec4b865f","scripts":{"dev":"vite dev","lint":"prettier --check . && eslint .","test":"vitest run --coverage","build":"vite build && npm run package","check":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","format":"prettier --write .","package":"svelte-kit sync && svelte-package && publint","preview":"vite preview","lint:fix":"npm run format && eslint . --fix","test:only":"vitest run","test:watch":"vitest","check:watch":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","prepublishOnly":"npm run package"},"_npmUser":{"name":"humanspeakadmin","email":"admin@humanspeak.com"},"repository":{"url":"git+ssh://git@github.com/humanspeak/svelte-subscribe.git","type":"git"},"_npmVersion":"10.9.2","description":"Subscribe to non top-level stores in your Svelte templates","directories":{},"_nodeVersion":"22.13.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.3","tslib":"^2.4.1","eslint":"^8.56.0","svelte":"^4.2.7","vitest":"^1.0.0","publint":"^0.1.9","prettier":"^3.1.1","type-fest":"^4.9.0","typescript":"^5.0.0","svelte-check":"^3.6.0","@sveltejs/kit":"^2.0.0","@types/eslint":"8.56.0","@sveltejs/package":"^2.0.0","@vitest/coverage-v8":"^1.1.1","eslint-plugin-svelte":"^2.35.1","@sveltejs/adapter-auto":"^3.0.0","eslint-config-prettier":"^9.1.0","prettier-plugin-svelte":"^3.1.2","@typescript-eslint/parser":"^6.0.0","@sveltejs/vite-plugin-svelte":"^3.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"svelte":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte-subscribe_4.0.0_1737563017054_0.4344012672741906","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"name":"@humanspeak/svelte-subscribe","version":"5.0.0","description":"Subscribe to non top-level stores in your Svelte templates","keywords":["svelte","sveltejs","stores","subscribe","subscription"],"homepage":"https://github.com/humanspeak/svelte-subscribe#readme","bugs":{"url":"https://github.com/humanspeak/svelte-subscribe/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/humanspeak/svelte-subscribe.git"},"license":"MIT","author":{"name":"Humanspeak, Inc."},"type":"module","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js","default":"./dist/index.js"}},"svelte":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"vite build && npm run package","check":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","dev":"vite dev","format":"prettier --write .","lint":"prettier --check . && eslint .","lint:fix":"npm run format && eslint . --fix","package":"svelte-kit sync && svelte-package && publint","prepublishOnly":"npm run package","preview":"vite preview","test":"vitest run --coverage","test:only":"vitest run","test:watch":"vitest"},"devDependencies":{"@sveltejs/adapter-auto":"^3.0.0","@sveltejs/kit":"^2.0.0","@sveltejs/package":"^2.0.0","@sveltejs/vite-plugin-svelte":"^3.0.0","@types/eslint":"8.56.0","@typescript-eslint/eslint-plugin":"^6.0.0","@typescript-eslint/parser":"^6.0.0","@vitest/coverage-v8":"^1.1.1","eslint":"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-svelte":"^2.35.1","prettier":"^3.1.1","prettier-plugin-svelte":"^3.1.2","publint":"^0.1.9","svelte":"^4.2.7","svelte-check":"^3.6.0","tslib":"^2.4.1","type-fest":"^4.9.0","typescript":"^5.0.0","vite":"^5.0.3","vitest":"^1.0.0"},"_id":"@humanspeak/svelte-subscribe@5.0.0","gitHead":"7da58e7166f057c0c693351820161f19100bff7d","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-rQEcFFk77ZzYXFPHWf3K8TmjP/97NwNbf6qBE0s5XYB2eqdDNvxa8fKHVPDBukTmBCX53O20FJjXvmlN5yXzjw==","shasum":"b80e4a60787804a13685eca63c503d4a8b8c0fa2","tarball":"https://registry.npmjs.org/@humanspeak/svelte-subscribe/-/svelte-subscribe-5.0.0.tgz","fileCount":9,"unpackedSize":7696,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@humanspeak%2fsvelte-subscribe@5.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHgWL/Qk2wPKghJD0ht8uHQrBH0wVlnYb12SaujDMDbtAiEA+I+309zbzJLMZ93MpcgxDV2cUWJ3agZKeXhWEsoiLFQ="}]},"_npmUser":{"name":"humanspeakadmin","email":"admin@humanspeak.com"},"directories":{},"maintainers":[{"name":"humanspeakadmin","email":"admin@humanspeak.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svelte-subscribe_5.0.0_1737582609695_0.23721659551366536"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-10T20:12:10.763Z","modified":"2025-01-22T21:50:10.325Z","3.0.0":"2024-11-10T20:12:10.932Z","3.0.1":"2024-12-06T16:11:13.624Z","3.9.10":"2025-01-22T16:12:53.871Z","4.0.0":"2025-01-22T16:23:37.314Z","5.0.0":"2025-01-22T21:50:09.906Z"},"bugs":{"url":"https://github.com/humanspeak/svelte-subscribe/issues"},"author":{"name":"Humanspeak, Inc."},"license":"MIT","homepage":"https://github.com/humanspeak/svelte-subscribe#readme","keywords":["svelte","sveltejs","stores","subscribe","subscription"],"repository":{"type":"git","url":"git+ssh://git@github.com/humanspeak/svelte-subscribe.git"},"description":"Subscribe to non top-level stores in your Svelte templates","maintainers":[{"name":"humanspeakadmin","email":"admin@humanspeak.com"}],"readme":"# svelte-subscribe\n\n[![npm version](http://img.shields.io/npm/v/@humanspeak/svelte-subscribe.svg)](https://www.npmjs.com/package/svelte-subscribe)\n[![npm downloads](https://img.shields.io/npm/dm/@humanspeak/svelte-subscribe.svg)](https://www.npmjs.com/package/svelte-subscribe)\n![license](https://img.shields.io/npm/l/svelte-subscribe)\n![build](https://img.shields.io/github/actions/workflow/status/humanspeak/svelte-subscribe/publish.yml)\n[![coverage](https://coveralls.io/repos/github/humanspeak/svelte-subscribe/badge.svg?branch=main)](https://coveralls.io/github/humanspeak/svelte-subscribe?branch=main)\n[![size](https://img.shields.io/bundlephobia/min/@humanspeak/svelte-subscribe)](https://bundlephobia.com/result?p=@humanspeak/svelte-subscribe)\n\nSubscribe to non top-level stores in your Svelte templates.\n\nVisit the [REPL](https://svelte.dev/repl/d1bb4f2249f54790934066edf63cb5cc?version=3.48.0) for an example.\n\n```svelte\n<script>\n    import { writable } from 'svelte/store'\n    import { Subscribe } from '@humanspeak/svelte-subscribe'\n\n    const users = [{ friend: writable('John') }]\n</script>\n\n{#each users as { friend }}\n    {$friend}\n    <!-- ⛔ Stores must be declared at the top level of the component -->\n    <Subscribe {friend} let:friend>\n        {friend}\n    </Subscribe>\n{/each}\n```\n\n## Installation\n\n```bash\n$ npm i -D svelte-subscribe\n```\n\n## Usage\n\n`Subscribe` receives multiple stores as props and exposes multiple [slot props](https://svelte.dev/tutorial/slot-props) that are subscribed to each prop with the same name.\n\n```svelte\n<Subscribe a={writable(123)} let:a b={readable('abc')} let:b>\n    {a}\n    {b}\n    <!-- 123 abc -->\n</Subscribe>\n```\n\nAll slot props are strongly typed for a pleasant TypeScript experience.\n","readmeFilename":"README.md"}