{"_id":"@aws-blocks/bb-distributed-data","_rev":"9-a4b9d461ad7d85c59afa7ced895945e5","name":"@aws-blocks/bb-distributed-data","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@aws-blocks/bb-distributed-data","version":"0.1.0","author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"@aws-blocks/bb-distributed-data@0.1.0","maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"dist":{"shasum":"8ff7e712a533f57d489bfa6dee1a041225826660","tarball":"https://registry.npmjs.org/@aws-blocks/bb-distributed-data/-/bb-distributed-data-0.1.0.tgz","fileCount":57,"integrity":"sha512-bdE2zec0YdKXRc0Omm5nZmpJFR/7luDv+go5H//lgF67JdZqNWbqvpknPwSdpMq1w4IAb0+twyQMXv9+o2yd+Q==","signatures":[{"sig":"MEUCIQCGbe5vCNjH7tM8qQkKfSAfYY8uMOmTMwE1tR3T6SXTWwIgRiH24o2jGlYxCMoC5k7h0p1MjqgwuAlZc3mzL8EHzD4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":147373},"type":"module","exports":{".":{"cdk":{"types":"./dist/index.cdk.d.ts","default":"./dist/index.cdk.js"},"types":"./dist/index.mock.d.ts","browser":"./dist/index.browser.js","default":"./dist/index.mock.js","aws-runtime":"./dist/index.aws.js"}},"gitHead":"639f6fad510d473abd72286351b3294a646d9895","scripts":{"test":"node --test 'dist/**/*.test.js'","build":"tsc --build"},"_npmUser":{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"},"_npmVersion":"10.9.8","description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","directories":{},"_nodeVersion":"22.22.3","dependencies":{"pg":"^8.13.0","@aws-blocks/core":"^0.1.0","@aws-sdk/dsql-signer":"^3.700.0","@electric-sql/pglite":"^0.2.0","@aws-blocks/bb-logger":"^0.1.0","@aws-blocks/data-common":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.0","typescript":"^5.3.0","@types/node":"^20.0.0","@types/aws-lambda":"^8.10.161"},"peerDependencies":{"kysely":">=0.28.12 <0.30.0","constructs":"^10.6.0","aws-cdk-lib":">=2.100.0"},"_npmOperationalInternal":{"tmp":"tmp/bb-distributed-data_0.1.0_1781566766809_0.4278789578895654","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aws-blocks/bb-distributed-data","version":"0.1.1","author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"@aws-blocks/bb-distributed-data@0.1.1","maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"dist":{"shasum":"10e0cd0e1ffa53bf4ca797fc10b2bc7160fe915b","tarball":"https://registry.npmjs.org/@aws-blocks/bb-distributed-data/-/bb-distributed-data-0.1.1.tgz","fileCount":57,"integrity":"sha512-7qEfXHXdWvd7negRrFitmsvD51NUrfcem3Gu3GcpmuOVvV4WxiSJoq0a56W7qBDdFSv0zmkrHeLiOAfAUniM6Q==","signatures":[{"sig":"MEYCIQCgOzRPttUourOK6SBjX2cu7scSueYSq0jKBrZqscqvEAIhAKIQA/s66PPHp0HTbobrLv5q00SIFyTsGN5RorM0gnwy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":147672},"type":"module","exports":{".":{"cdk":{"types":"./dist/index.cdk.d.ts","default":"./dist/index.cdk.js"},"types":"./dist/index.mock.d.ts","browser":"./dist/index.browser.js","default":"./dist/index.mock.js","aws-runtime":"./dist/index.aws.js"}},"gitHead":"ed3e0ad5724d28c2a2fb0ea9207dfc9e941257f9","scripts":{"test":"node --test 'dist/**/*.test.js'","build":"tsc --build"},"_npmUser":{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"},"_npmVersion":"10.9.8","description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","directories":{},"_nodeVersion":"22.22.3","dependencies":{"pg":"^8.13.0","@aws-blocks/core":"^0.1.1","@aws-sdk/dsql-signer":"^3.700.0","@electric-sql/pglite":"^0.2.0","@aws-blocks/bb-logger":"^0.1.1","@aws-blocks/data-common":"^0.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.0","typescript":"^5.3.0","@types/node":"^20.0.0","@types/aws-lambda":"^8.10.161"},"peerDependencies":{"kysely":">=0.28.12 <0.30.0","constructs":"^10.6.0","aws-cdk-lib":">=2.100.0"},"_npmOperationalInternal":{"tmp":"tmp/bb-distributed-data_0.1.1_1781633772754_0.3462935324365257","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@aws-blocks/bb-distributed-data","version":"0.1.2","author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"@aws-blocks/bb-distributed-data@0.1.2","maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"dist":{"shasum":"6caf668adf0b635dccd40d12e7044bbad49b37d0","tarball":"https://registry.npmjs.org/@aws-blocks/bb-distributed-data/-/bb-distributed-data-0.1.2.tgz","fileCount":58,"integrity":"sha512-7XdGM1LYRP3jlZG+iq1RORCzuyBL6Hio8SkWpHFFgRArzX/BlKPNeHgY05jA1vg880TmVNS74ciIh4oy88FD+Q==","signatures":[{"sig":"MEUCIQDBADVi7kAGAQ6aN/5K3c8uINXEaDgVA+8QH7KchaK7swIgKoZZl4ilIPUg2EGrU69+5rwW9ECO/vaRnMr1j2FufZs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":155923},"type":"module","exports":{".":{"cdk":{"types":"./dist/index.cdk.d.ts","default":"./dist/index.cdk.js"},"types":"./dist/index.mock.d.ts","browser":"./dist/index.browser.js","default":"./dist/index.mock.js","aws-runtime":"./dist/index.aws.js"}},"gitHead":"3328f36992d39dc20b0c0d760e4a38c866ddfbbd","scripts":{"test":"node --test 'dist/**/*.test.js'","build":"tsc --build"},"_npmUser":{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"},"_npmVersion":"10.9.8","description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","directories":{},"_nodeVersion":"22.22.3","dependencies":{"pg":"^8.13.0","@aws-blocks/core":"^0.1.1","@aws-sdk/dsql-signer":"^3.700.0","@electric-sql/pglite":"^0.2.0","@aws-blocks/bb-logger":"^0.1.2","@aws-blocks/data-common":"^0.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.0","typescript":"^5.3.0","@types/node":"^20.0.0","@types/aws-lambda":"^8.10.161"},"peerDependencies":{"kysely":">=0.28.12 <0.30.0","constructs":"^10.6.0","aws-cdk-lib":">=2.100.0"},"_npmOperationalInternal":{"tmp":"tmp/bb-distributed-data_0.1.2_1782192246181_0.7659544305163295","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@aws-blocks/bb-distributed-data","version":"0.1.3","author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"@aws-blocks/bb-distributed-data@0.1.3","maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"dist":{"shasum":"b1b5325543034c2e49f202da0722a6ee13f5a53e","tarball":"https://registry.npmjs.org/@aws-blocks/bb-distributed-data/-/bb-distributed-data-0.1.3.tgz","fileCount":58,"integrity":"sha512-heCvK1FveQw9M01kntgPwzrgWaqzs/i3g2yHBd4lDeCgJEWhpNy4UeiItnQhL3/dcfDu8FCUCqQGVvHrIDUptw==","signatures":[{"sig":"MEUCIBJYOI/CISRtai2+dXxurZhtP0KWCDh9MfhbX4YQl5nOAiEAtF0pbpBklRr7nnlelPDeIDWyJrr939RzVowH4IWZv8g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":158927},"type":"module","exports":{".":{"cdk":{"types":"./dist/index.cdk.d.ts","default":"./dist/index.cdk.js"},"types":"./dist/index.mock.d.ts","browser":"./dist/index.browser.js","default":"./dist/index.mock.js","aws-runtime":"./dist/index.aws.js"}},"gitHead":"84bbf38cf9732f71bea4272a9cd9a9f504ede79c","scripts":{"test":"node --test 'dist/**/*.test.js'","build":"tsc --build"},"_npmUser":{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"},"_npmVersion":"10.9.8","description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"pg":"^8.13.0","@aws-blocks/core":"^0.1.1","@aws-sdk/dsql-signer":"^3.700.0","@electric-sql/pglite":"^0.2.0","@aws-blocks/bb-logger":"^0.1.2","@aws-blocks/data-common":"^0.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.0","typescript":"^5.3.0","@types/node":"^20.0.0","@types/aws-lambda":"^8.10.161"},"peerDependencies":{"kysely":">=0.28.12 <0.30.0","constructs":"^10.6.0","aws-cdk-lib":">=2.100.0"},"_npmOperationalInternal":{"tmp":"tmp/bb-distributed-data_0.1.3_1783722108482_0.08079363208609314","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@aws-blocks/bb-distributed-data","version":"0.1.5","author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"@aws-blocks/bb-distributed-data@0.1.5","maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"homepage":"https://github.com/aws-devtools-labs/aws-blocks/tree/main/packages/bb-distributed-data#readme","bugs":{"url":"https://github.com/aws-devtools-labs/aws-blocks/issues"},"dist":{"shasum":"454f623a17746bd8db9e2830c06e3aaefcffa554","tarball":"https://registry.npmjs.org/@aws-blocks/bb-distributed-data/-/bb-distributed-data-0.1.5.tgz","fileCount":64,"integrity":"sha512-MbjIHAzjxpVKohudW7ZTwQxqrbxe/DOOtD/1llg5ms6lM0BJ7kervRpjIABtalNl/DTYvoTDByvnPHPk4vNvKw==","signatures":[{"sig":"MEQCICRxpXKMe6KrGKNtYTd+AI5NWHT+JhbVbNwBYMHXZtasAiBuaGVMflJr8PCi5DxrAFBAUuNwwCOL/SpKYo+pf3QfvQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aws-blocks%2fbb-distributed-data@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":166837},"type":"module","exports":{".":{"cdk":{"types":"./dist/index.cdk.d.ts","default":"./dist/index.cdk.js"},"types":"./dist/index.mock.d.ts","browser":"./dist/index.browser.js","default":"./dist/index.mock.js","aws-runtime":"./dist/index.aws.js"}},"gitHead":"f6b9cad7b543663cc9ea73a4476ca5511255d779","scripts":{"test":"node --test 'dist/**/*.test.js'","build":"tsc --build","prebuild":"node ../../scripts/generate-version.mjs DistributedDatabase"},"_npmUser":{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"},"repository":{"url":"git+https://github.com/aws-devtools-labs/aws-blocks.git","type":"git","directory":"packages/bb-distributed-data"},"_npmVersion":"10.9.8","description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"pg":"^8.13.0","@aws-blocks/core":"^0.1.17","@aws-sdk/dsql-signer":"^3.700.0","@electric-sql/pglite":"^0.2.0","@aws-blocks/bb-logger":"^0.1.3","@aws-blocks/data-common":"^0.1.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.0","typescript":"^5.3.0","@types/node":"^20.0.0","@types/aws-lambda":"^8.10.161"},"peerDependencies":{"kysely":">=0.28.12 <0.30.0","constructs":"^10.6.0","aws-cdk-lib":">=2.100.0"},"_npmOperationalInternal":{"tmp":"tmp/bb-distributed-data_0.1.5_1786135406701_0.26584619616076166","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@aws-blocks/bb-distributed-data","version":"0.1.6","author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"@aws-blocks/bb-distributed-data@0.1.6","maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"homepage":"https://github.com/aws-devtools-labs/aws-blocks/tree/main/packages/bb-distributed-data#readme","bugs":{"url":"https://github.com/aws-devtools-labs/aws-blocks/issues"},"dist":{"shasum":"ac021d97c8a2a70c30d2475b129d5b306f4b5b30","tarball":"https://registry.npmjs.org/@aws-blocks/bb-distributed-data/-/bb-distributed-data-0.1.6.tgz","fileCount":67,"integrity":"sha512-yBO0mKjm0NDhQdsj7cxKJyAXl02m0Kimh3bDrmNopk2f1ADq85ZVz9jZIWRYhGm/IH2FLLwFhfI3WFV101Lijg==","signatures":[{"sig":"MEQCIHNe3AIdlRBP7XoRT+oAf3vtdULJ34cC30nBqw7wVdjXAiAbb6bSDi76hAIja+MsrkRun1I9qou1VcpK7m8ejDTAQQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aws-blocks%2fbb-distributed-data@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":178300},"type":"module","exports":{".":{"cdk":{"types":"./dist/index.cdk.d.ts","default":"./dist/index.cdk.js"},"types":"./dist/index.mock.d.ts","browser":"./dist/index.browser.js","default":"./dist/index.mock.js","aws-runtime":"./dist/index.aws.js"}},"gitHead":"164b106810e2b4f7801426158feae82a4ccbe3d4","scripts":{"test":"node --test 'dist/**/*.test.js'","build":"tsc --build","prebuild":"node ../../scripts/generate-version.mjs DistributedDatabase"},"_npmUser":{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"},"repository":{"url":"git+https://github.com/aws-devtools-labs/aws-blocks.git","type":"git","directory":"packages/bb-distributed-data"},"_npmVersion":"10.9.8","description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"pg":"^8.13.0","@aws-blocks/core":"^0.2.0","@aws-sdk/dsql-signer":"^3.700.0","@electric-sql/pglite":"^0.2.0","@aws-blocks/bb-logger":"^0.1.4","@aws-blocks/data-common":"^0.1.4"},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.0","typescript":"^5.3.0","@types/node":"^20.0.0","@types/aws-lambda":"^8.10.161"},"peerDependencies":{"kysely":">=0.28.12 <0.30.0","constructs":"^10.6.0","aws-cdk-lib":">=2.100.0"},"_npmOperationalInternal":{"tmp":"tmp/bb-distributed-data_0.1.6_1787230469923_0.8661272242361391","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@aws-blocks/bb-distributed-data","version":"0.1.7","author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"@aws-blocks/bb-distributed-data@0.1.7","maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"homepage":"https://github.com/aws-devtools-labs/aws-blocks/tree/main/packages/bb-distributed-data#readme","bugs":{"url":"https://github.com/aws-devtools-labs/aws-blocks/issues"},"dist":{"shasum":"be21ebf1c33a38337447cb710e383c59ba0dbdee","tarball":"https://registry.npmjs.org/@aws-blocks/bb-distributed-data/-/bb-distributed-data-0.1.7.tgz","fileCount":67,"integrity":"sha512-wULcrF22XpKMbD1OMd5qWLVHZgLWaXm2hVoIc7+LTWPcZtIMUAy8+x1ICKi6HytdIia5C0UshCvPngqb4++OqA==","signatures":[{"sig":"MEYCIQCWejc7CTHNoINDzZcVH9EJhdezD8ooKJmOq5la/lo1TwIhAK25UUujfwGBQKHVPsqXy7yIuyd4jKfOYU6z+pD6OP9Z","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aws-blocks%2fbb-distributed-data@0.1.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":179896},"type":"module","exports":{".":{"cdk":{"types":"./dist/index.cdk.d.ts","default":"./dist/index.cdk.js"},"types":"./dist/index.mock.d.ts","browser":"./dist/index.browser.js","default":"./dist/index.mock.js","aws-runtime":"./dist/index.aws.js"}},"gitHead":"04d4b21b1cae9600c44a2fc63c0020ca21894316","scripts":{"test":"node --test 'dist/**/*.test.js'","build":"tsc --build","prebuild":"node ../../scripts/generate-version.mjs DistributedDatabase"},"_npmUser":{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"},"repository":{"url":"git+https://github.com/aws-devtools-labs/aws-blocks.git","type":"git","directory":"packages/bb-distributed-data"},"_npmVersion":"10.9.8","description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"pg":"^8.13.0","@aws-blocks/core":"^0.3.0","@aws-sdk/dsql-signer":"^3.700.0","@electric-sql/pglite":"^0.2.0","@aws-blocks/bb-logger":"^0.1.5","@aws-blocks/data-common":"^0.1.4"},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.0","typescript":"^5.3.0","@types/node":"^20.0.0","@types/aws-lambda":"^8.10.161"},"peerDependencies":{"kysely":">=0.28.12 <0.30.0","constructs":"^10.6.0","aws-cdk-lib":">=2.100.0"},"_npmOperationalInternal":{"tmp":"tmp/bb-distributed-data_0.1.7_1788264347336_0.777173400905159","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@aws-blocks/bb-distributed-data","version":"0.1.8","author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"@aws-blocks/bb-distributed-data@0.1.8","maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"homepage":"https://github.com/aws-devtools-labs/aws-blocks/tree/main/packages/bb-distributed-data#readme","bugs":{"url":"https://github.com/aws-devtools-labs/aws-blocks/issues"},"dist":{"shasum":"961af7da99d0b03d53e555768e88c10c7fe11b1a","tarball":"https://registry.npmjs.org/@aws-blocks/bb-distributed-data/-/bb-distributed-data-0.1.8.tgz","fileCount":67,"integrity":"sha512-ASXO37DCzH0BDkCj06Agoe9Nc319T/uaVTV5yhqMUYyryf8UEHJvX7cH5gq/CQKYDYJ3n3t515/n4sXzvw3nNQ==","signatures":[{"sig":"MEUCIEupBl3o2bJKBdzYA3eMJ7YElN5eoTqq+AOTohiFxaCbAiEAi37fEa7rbJMl3mEuWVRuvDWule+1aXtor5rVX/z0l6U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aws-blocks%2fbb-distributed-data@0.1.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":181490},"type":"module","exports":{".":{"cdk":{"types":"./dist/index.cdk.d.ts","default":"./dist/index.cdk.js"},"types":"./dist/index.mock.d.ts","browser":"./dist/index.browser.js","default":"./dist/index.mock.js","aws-runtime":"./dist/index.aws.js"}},"gitHead":"ce01923c591828486e07d3d3f2b6b9d585e39057","scripts":{"test":"node --test 'dist/**/*.test.js'","build":"tsc --build","prebuild":"node ../../scripts/generate-version.mjs DistributedDatabase"},"_npmUser":{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"},"repository":{"url":"git+https://github.com/aws-devtools-labs/aws-blocks.git","type":"git","directory":"packages/bb-distributed-data"},"_npmVersion":"10.9.8","description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"pg":"^8.13.0","@aws-blocks/core":"^0.4.0","@aws-sdk/dsql-signer":"^3.700.0","@electric-sql/pglite":"^0.2.0","@aws-blocks/bb-logger":"^0.1.6","@aws-blocks/data-common":"^0.1.4"},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.0","typescript":"^5.3.0","@types/node":"^20.0.0","@types/aws-lambda":"^8.10.161"},"peerDependencies":{"kysely":">=0.28.12 <0.30.0","constructs":"^10.6.0","aws-cdk-lib":">=2.100.0"},"_npmOperationalInternal":{"tmp":"tmp/bb-distributed-data_0.1.8_1788867486775_0.5300887808342087","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"_id":"@aws-blocks/bb-distributed-data@0.2.0","bugs":{"url":"https://github.com/aws-devtools-labs/aws-blocks/issues"},"dist":{"shasum":"4607ab35bcab167be798756a1c7c2257974fc34d","tarball":"https://registry.npmjs.org/@aws-blocks/bb-distributed-data/-/bb-distributed-data-0.2.0.tgz","fileCount":67,"integrity":"sha512-wGJPXg8u+5juZPioWFFTHImsqlpu3eAG/yAr/cyxUpVbxnGTS1AxU/VSzKMAhPW+/V8GFgddcw01d9kk5xpTOA==","signatures":[{"sig":"MEUCIQCQpFGhQRZsBaTFKvGdVokDAsfgJn3Gdej4JpDM0ScnTwIge0vHiOiXJdJwJAu5SoEAORsgGAcnO/UyKL7hQlyJNCo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEvD88nBotay+qjkEhYIIJ0plYQ0Vw8uaYw6O0+7q+cUAiAHnSRDgIdUXBNBCVGg+OPxJQPLqTyboDV6QghoiYwmdg=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aws-blocks%2fbb-distributed-data@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":193027},"name":"@aws-blocks/bb-distributed-data","type":"module","author":{"name":"Amazon Web Services"},"exports":{".":{"cdk":{"types":"./dist/index.cdk.d.ts","default":"./dist/index.cdk.js"},"types":"./dist/index.mock.d.ts","browser":"./dist/index.browser.js","default":"./dist/index.mock.js","aws-runtime":"./dist/index.aws.js"}},"gitHead":"51eeb265ab5efdbd853e989cf8bd6d30951c29c7","license":"Apache-2.0","scripts":{"test":"node --test 'dist/**/*.test.js'","build":"tsc --build","prebuild":"node ../../scripts/generate-version.mjs DistributedDatabase"},"version":"0.2.0","_npmUser":{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"},"homepage":"https://github.com/aws-devtools-labs/aws-blocks/tree/main/packages/bb-distributed-data#readme","keywords":["aws-blocks","database","sql","dsql","serverless","aurora-dsql"],"repository":{"url":"git+https://github.com/aws-devtools-labs/aws-blocks.git","type":"git","directory":"packages/bb-distributed-data"},"_npmVersion":"10.9.8","description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","directories":{},"maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"_nodeVersion":"22.23.2","dependencies":{"pg":"^8.13.0","@aws-blocks/core":"^0.5.0","@aws-sdk/dsql-signer":"^3.700.0","@electric-sql/pglite":"^0.2.0","@aws-blocks/bb-logger":"^0.2.0","@aws-blocks/data-common":"^0.1.5"},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.0","typescript":"^5.3.0","@types/node":"^20.0.0","@types/aws-lambda":"^8.10.161"},"peerDependencies":{"kysely":">=0.28.12 <0.30.0","constructs":"^10.6.0","aws-cdk-lib":">=2.100.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bb-distributed-data_0.2.0_1789678943401_0.9539467624403082"}}},"time":{"created":"2026-06-15T23:39:26.677Z","modified":"2026-09-17T21:02:23.867Z","0.1.0":"2026-06-15T23:39:27.031Z","0.1.1":"2026-06-16T18:16:12.902Z","0.1.2":"2026-06-23T05:24:06.324Z","0.1.3":"2026-07-10T22:21:48.643Z","0.1.5":"2026-08-07T20:43:26.863Z","0.1.6":"2026-08-20T12:54:30.086Z","0.1.7":"2026-09-01T12:05:47.472Z","0.1.8":"2026-09-08T11:38:06.900Z","0.2.0":"2026-09-17T21:02:23.483Z"},"bugs":{"url":"https://github.com/aws-devtools-labs/aws-blocks/issues"},"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","homepage":"https://github.com/aws-devtools-labs/aws-blocks/tree/main/packages/bb-distributed-data#readme","repository":{"url":"git+https://github.com/aws-devtools-labs/aws-blocks.git","type":"git","directory":"packages/bb-distributed-data"},"description":"Serverless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.","maintainers":[{"name":"aws-blocks-npm-ops","email":"aws-blocks@amazon.com"}],"readme":"# @aws-blocks/bb-distributed-data\n\nServerless SQL database backed by Amazon Aurora DSQL. Zero-ops, instant provisioning, scale-to-zero, and optionally multi-region active-active writes.\n\n**When to use:** Serverless apps that need to scale without ops overhead, workloads with zero idle cost requirements, multi-region active-active writes, or any SQL app where you don't need FK/RLS/triggers.\n\n**When NOT to use:** If you need foreign keys, Row Level Security, triggers, views, or stored procedures — use `Database` (Aurora). If you need transactions that must not fail at commit under contention — use `Database`. If you're connecting to Supabase — use `Database` with `fromExisting()`.\n\n> Design & mock parity details: [DESIGN.md](./DESIGN.md)\n\n## Quick Start\n\n```typescript\nimport { DistributedDatabase, sql } from '@aws-blocks/bb-distributed-data';\n\nconst db = new DistributedDatabase(scope, 'main', {\n  migrationsPath: './aws-blocks/dsql-migrations',\n});\n\n// Same query API as Database — parameterized via sql tagged template\nconst users = await db.query<{ id: string; name: string }>(\n  sql`SELECT * FROM users WHERE active = ${true}`\n);\n\nconst user = await db.queryOne<{ id: string; name: string }>(\n  sql`SELECT * FROM users WHERE id = ${userId}`\n);\n\nconst { rowCount } = await db.execute(\n  sql`INSERT INTO users (id, name, email) VALUES (${id}, ${name}, ${email})`\n);\n```\n\n## Transactions (Optimistic Concurrency Control)\n\nDSQL uses OCC — transactions may fail at commit if another transaction modified the same rows. The callback executes exactly once unless you opt into retry.\n\n```typescript\n// Default: no retry. Throws SerializationFailureException (HTTP 409 Conflict, retriable) on conflict.\nawait db.transaction(async (tx) => {\n  await tx.execute(sql`UPDATE accounts SET balance = balance - ${100} WHERE id = ${fromId}`);\n  await tx.execute(sql`UPDATE accounts SET balance = balance + ${100} WHERE id = ${toId}`);\n});\n\n// Opt-in retry: callback may execute multiple times.\n// ⚠️ Do NOT include external side effects (HTTP calls, emails) inside.\nawait db.transaction(async (tx) => {\n  await tx.execute(sql`UPDATE accounts SET balance = balance - ${100} WHERE id = ${fromId}`);\n  await tx.execute(sql`UPDATE accounts SET balance = balance + ${100} WHERE id = ${toId}`);\n}, { retryOnConflict: true, maxRetries: 3 });\n```\n\nThe second argument to `transaction()` accepts:\n\n```typescript\ninterface TransactionOptions {\n  /** Retry on OCC conflict. Callback may execute multiple times. @default false */\n  retryOnConflict?: boolean;\n  /** Max retry attempts. Only applies when retryOnConflict is true. @default 3 */\n  maxRetries?: number;\n}\n```\n\n## Migrations\n\nOne DDL statement per file. DML in separate files. This matches DSQL's transaction constraints.\n\n```\naws-blocks/dsql-migrations/\n  001_create_users.sql       ← single DDL\n  002_create_posts.sql       ← single DDL\n  003_create_index.sql       ← single DDL (CREATE INDEX ASYNC)\n  004_seed_admin.sql         ← DML only\n```\n\n```sql\n-- 001_create_users.sql\nCREATE TABLE users (\n  id TEXT PRIMARY KEY DEFAULT gen_random_uuid(),\n  email TEXT UNIQUE NOT NULL,\n  name TEXT NOT NULL,\n  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n```\n\n```sql\n-- 003_create_index.sql\nCREATE INDEX ASYNC idx_users_email ON users(email);\n```\n\nMigrations are validated at dev time — unsupported features (FK, SERIAL, TRUNCATE, etc.) are caught before deploy.\n\n> **Set `migrationsPath` to a path relative to your project root** (e.g. `'./aws-blocks/dsql-migrations'`); it's resolved at synth from the directory you run `cdk` / `npm run deploy` in. That's the simplest reliable pattern.\n>\n> You don't need `fileURLToPath(import.meta.url)` for this. Your backend module runs as ESM locally but is bundled to **CommonJS** in Lambda, where `import.meta` is empty. AWS Blocks shims `import.meta.url` / `import.meta.dirname` in the bundle so it won't crash at load — but at runtime those resolve to the **bundled output** location, not your source tree. So don't use `import.meta.url` to read a file relative to your source at request time; inline the data or ship it as a Lambda asset instead.\n\n## DSQL Limitations\n\nDSQL is a subset of PostgreSQL. The local mock enforces these restrictions so code that works locally also works in production.\n\n| Not Supported | Alternative |\n|---------------|-------------|\n| Foreign keys (`REFERENCES`) | Application-layer validation |\n| JSONB columns | `JSON` type (JSONB available as `::jsonb` runtime cast) |\n| Row Level Security | WHERE clause filtering in app code |\n| Triggers | Event-driven logic (EventBridge, Lambda) |\n| Views | CTEs or application-layer query composition |\n| PL/pgSQL functions | `LANGUAGE SQL` functions or app logic |\n| SERIAL / BIGSERIAL | UUIDs (`gen_random_uuid()`) |\n| TRUNCATE | `DELETE FROM` |\n| Temporary tables | CTEs or subqueries |\n| LISTEN / NOTIFY | AppSync Events, EventBridge, or polling |\n| Extensions | Not available |\n| ADD COLUMN with DEFAULT | Add column without default, handle nulls in app |\n| Index key sort direction (`ASC`/`DESC`) | Omit it; enforce ordering with `ORDER BY` in queries (`NULLS FIRST/LAST` is supported) |\n| `ALTER TABLE DROP [COLUMN]` | Leave the column in place and stop referencing it; or rebuild the table (create new → `INSERT INTO ... SELECT` → `DROP` → `RENAME TO`, one migration file per step) |\n\n### Transaction Constraints\n\n| Constraint | Limit |\n|-----------|-------|\n| Concurrency model | OCC (may conflict at commit) |\n| Isolation level | Fixed: Repeatable Read |\n| Max rows mutated per transaction | 3,000 |\n| Max data per transaction | 10 MiB |\n| Max transaction duration | 5 minutes |\n| DDL per transaction | 1 statement max |\n| DDL + DML mixing | Not allowed |\n\n## Kysely Query Builder\n\n```typescript\nimport { createKyselyAdapter } from '@aws-blocks/bb-distributed-data';\n\ninterface Schema {\n  users: { id: string; email: string; name: string };\n}\n\nconst kysely = createKyselyAdapter<Schema>(db);\n\nconst users = await kysely\n  .selectFrom('users')\n  .where('email', '=', 'user@example.com')\n  .selectAll()\n  .execute();\n```\n\nDo not use Kysely's `.addForeignKeyConstraint()` — it will fail on DSQL.\n\n## Error Handling\n\n```typescript\nimport { DistributedDatabaseErrors } from '@aws-blocks/bb-distributed-data';\nimport { isBlocksError } from '@aws-blocks/core';\n\ntry {\n  await db.transaction(async (tx) => { /* ... */ });\n} catch (e: unknown) {\n  if (isBlocksError(e, DistributedDatabaseErrors.SerializationFailure)) {\n    // OCC conflict — transaction was NOT committed. Serialized as HTTP 409\n    // (Conflict), retriable — safe to retry.\n  }\n  if (isBlocksError(e, DistributedDatabaseErrors.UniqueConstraintViolation)) {\n    // Duplicate key — serialized as HTTP 409 (Conflict), not retriable\n    // (a blind retry of the same insert fails identically).\n  }\n  if (isBlocksError(e, DistributedDatabaseErrors.QueryFailed)) {\n    // General query failure\n  }\n  if (isBlocksError(e, DistributedDatabaseErrors.TransactionRowLimitExceeded)) {\n    // More than 3,000 rows mutated in one transaction\n  }\n  if (isBlocksError(e, DistributedDatabaseErrors.ConnectionFailed)) {\n    // Cannot reach the DSQL cluster\n  }\n  if (isBlocksError(e, DistributedDatabaseErrors.TransactionFailed)) {\n    // Transaction could not commit (general failure distinct from serialization/row-limit)\n  }\n}\n```\n\n## Testing OCC Conflicts\n\nThe mock provides a `simulateConflict()` helper for unit testing:\n\n```typescript\ndb.simulateConflict(); // next commit will fail with SerializationFailureException\n\nawait expect(db.transaction(fn)).rejects.toThrow('SerializationFailureException');\n```\n\n```typescript\ndb.simulateConflict(); // first attempt fails, second succeeds\nconst result = await db.transaction(fn, { retryOnConflict: true });\n```\n\n## What It Provisions (AWS)\n\n- **Aurora DSQL Cluster** — Serverless, no VPC required, public endpoint\n- **Migration Lambda** — Runs `.sql` files on deploy via CustomResource with retry\n- **IAM** — `dsql:DbConnect` (app Lambda, DML only), `dsql:DbConnectAdmin` (migration Lambda, DDL)\n- **Environment variables** — `BLOCKS_{name}_ENDPOINT`, `BLOCKS_{name}_REGION`\n\nNo VPC, no secrets, no security groups, no proxy. DSQL uses IAM token authentication.\n\n## Local Development\n\n- **Engine:** PGlite (WASM PostgreSQL) wrapped with a DSQL validation layer\n- **Storage:** `.bb-data/{fullId}/` — persists across restarts\n- **Validation:** Unsupported features (FK, triggers, SERIAL, etc.) are rejected at query time\n- **Transaction tracking:** DDL/DML mixing and 3,000-row limit enforced locally\n\nThe validation layer ensures code that works locally also works against a real DSQL cluster.\n\n## Configuration\n\n```typescript\ninterface DistributedDatabaseOptions {\n  /** Path to directory containing numbered .sql migration files. */\n  migrationsPath?: string;\n  /** Removal policy. @default 'retain' */\n  removalPolicy?: 'destroy' | 'retain';\n  /** Optional logger for internal operations. When omitted, a default Logger at error level is created. */\n  logger?: ChildLogger;\n}\n```\n\n## Package Export Conditions\n\n```json\n{\n  \"exports\": {\n    \".\": {\n      \"cdk\": \"./dist/index.cdk.js\",\n      \"aws-runtime\": \"./dist/index.aws.js\",\n      \"default\": \"./dist/index.mock.js\"\n    }\n  }\n}\n```\n\n## Differences from Database (Aurora)\n\n| Aspect | `Database` (bb-data) | `DistributedDatabase` (bb-distributed-data) |\n|--------|---------------------|--------------------------|\n| Engine | Aurora Serverless v2 (Data API) | Aurora DSQL (pg + IAM) |\n| PostgreSQL compat | Full | Subset (no FK, RLS, triggers) |\n| Transactions | Pessimistic (exactly-once) | OCC (may conflict at commit) |\n| `withRLS()` | ✅ | ❌ |\n| `fromExisting()` | ✅ | ❌ |\n| `crud()` | ✅ | ❌ |\n| Foreign keys | ✅ | ❌ |\n| Multi-region | ❌ | ✅ Active-active |\n| VPC required | Yes | No |\n| Deploy time | ~10 min | Seconds |\n| Idle cost | $0 (0 ACU) | $0 |\n\n\n","readmeFilename":"README.md","keywords":["aws-blocks","database","sql","dsql","serverless","aurora-dsql"]}