viborm 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/{adapter-internals-Cy2QEBnH.mjs → adapter-internals-DULbfdmQ.mjs} +1 -1
- package/dist/{adapter-internals-Cy2QEBnH.mjs.map → adapter-internals-DULbfdmQ.mjs.map} +1 -1
- package/dist/{adapter-namespace-NnXlXR8c.mjs → adapter-namespace-CFtC8LbT.mjs} +2 -2
- package/dist/{adapter-namespace-NnXlXR8c.mjs.map → adapter-namespace-CFtC8LbT.mjs.map} +1 -1
- package/dist/{adapter-result-parser-D6lluSMi.mjs → adapter-result-parser-C0vW9am8.mjs} +1 -1
- package/dist/{adapter-result-parser-D6lluSMi.mjs.map → adapter-result-parser-C0vW9am8.mjs.map} +1 -1
- package/dist/adapters.d.mts +1 -1
- package/dist/adapters.mjs +1 -1
- package/dist/{array-literal-BsbbSLw3.mjs → array-literal-Dohoq5rT.mjs} +1 -1
- package/dist/{array-literal-BsbbSLw3.mjs.map → array-literal-Dohoq5rT.mjs.map} +1 -1
- package/dist/base-wlv81COV.mjs +2 -0
- package/dist/base-wlv81COV.mjs.map +1 -0
- package/dist/{batch-refs-BYCu1JnQ.mjs → batch-refs-cBYAKzaE.mjs} +2 -2
- package/dist/{batch-refs-BYCu1JnQ.mjs.map → batch-refs-cBYAKzaE.mjs.map} +1 -1
- package/dist/bind-parameter-capacity-4OU6feZG.mjs +2 -0
- package/dist/{bind-parameter-capacity-D6p9HrbB.mjs.map → bind-parameter-capacity-4OU6feZG.mjs.map} +1 -1
- package/dist/{builder-BxCr9ANq.mjs → builder-D0GQK-fA.mjs} +2 -2
- package/dist/{builder-BxCr9ANq.mjs.map → builder-D0GQK-fA.mjs.map} +1 -1
- package/dist/bun-sql.d.mts +1 -1
- package/dist/bun-sql.mjs +1 -1
- package/dist/bun-sqlite.d.mts +1 -1
- package/dist/bun-sqlite.mjs +1 -1
- package/dist/bun-sqlite.mjs.map +1 -1
- package/dist/cache/cloudflare-kv.d.mts +1 -1
- package/dist/cache/cloudflare-kv.mjs +1 -1
- package/dist/cache/memory.d.mts +1 -1
- package/dist/cache/memory.mjs +1 -1
- package/dist/cache/memory.mjs.map +1 -1
- package/dist/cache.d.mts +1 -1
- package/dist/cache.mjs +1 -1
- package/dist/cache.mjs.map +1 -1
- package/dist/{canonical-json-acY4dQNQ.mjs → canonical-json-D_FgOt4S.mjs} +2 -2
- package/dist/{canonical-json-acY4dQNQ.mjs.map → canonical-json-D_FgOt4S.mjs.map} +1 -1
- package/dist/chain-BQoDfo80.mjs +2 -0
- package/dist/{chain-C4EUyLzF.mjs.map → chain-BQoDfo80.mjs.map} +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/client-BCcIdDl8.mjs +49 -0
- package/dist/client-BCcIdDl8.mjs.map +1 -0
- package/dist/client-BqgVSbk0.mjs +2 -0
- package/dist/client-BqgVSbk0.mjs.map +1 -0
- package/dist/{client-D-XiaClb.d.mts → client-C5BGyg5n.d.mts} +3 -3
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +1 -1
- package/dist/{clock-CJotKAxc.mjs → clock-QtW83Dcm.mjs} +1 -1
- package/dist/{clock-CJotKAxc.mjs.map → clock-QtW83Dcm.mjs.map} +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/{current-C2fZL9Ln.mjs → current-CEWlNJcP.mjs} +1 -1
- package/dist/{current-C2fZL9Ln.mjs.map → current-CEWlNJcP.mjs.map} +1 -1
- package/dist/d1.d.mts +1 -1
- package/dist/d1.mjs +1 -1
- package/dist/d1.mjs.map +1 -1
- package/dist/{datetime-physical-codec-CFoeuitT.mjs → datetime-physical-codec-Bl6M6vF5.mjs} +2 -2
- package/dist/{datetime-physical-codec-CFoeuitT.mjs.map → datetime-physical-codec-Bl6M6vF5.mjs.map} +1 -1
- package/dist/driver-Dv2GJyGs.mjs +2 -0
- package/dist/{driver-BqD-3_jO.mjs.map → driver-Dv2GJyGs.mjs.map} +1 -1
- package/dist/driver-szWYBmjD.mjs +2 -0
- package/dist/{driver-DseQwbsu.mjs.map → driver-szWYBmjD.mjs.map} +1 -1
- package/dist/driver.d.mts +1 -1
- package/dist/driver.mjs +1 -1
- package/dist/error-mapping-DRY49A3C.mjs +2 -0
- package/dist/error-mapping-DRY49A3C.mjs.map +1 -0
- package/dist/every-DIG9CPly.mjs +2 -0
- package/dist/{every-CqR4_Xsx.mjs.map → every-DIG9CPly.mjs.map} +1 -1
- package/dist/execution-context-_oajgBi4.mjs +2 -0
- package/dist/execution-context-_oajgBi4.mjs.map +1 -0
- package/dist/{fs-estate-N_F2YqYa.mjs → fs-estate-DNCM7hYC.mjs} +2 -2
- package/dist/{fs-estate-N_F2YqYa.mjs.map → fs-estate-DNCM7hYC.mjs.map} +1 -1
- package/dist/{geo-area-codec-4W5b7whM.mjs → geo-area-codec-H50rrGiF.mjs} +2 -2
- package/dist/{geo-area-codec-4W5b7whM.mjs.map → geo-area-codec-H50rrGiF.mjs.map} +1 -1
- package/dist/geo-point-codec-mjROsQX-.mjs +2 -0
- package/dist/{geo-point-codec-pAWYj5ZZ.mjs.map → geo-point-codec-mjROsQX-.mjs.map} +1 -1
- package/dist/{hydration-Az2rjp5a.mjs → hydration-BQ7tYLtA.mjs} +2 -2
- package/dist/{hydration-Az2rjp5a.mjs.map → hydration-BQ7tYLtA.mjs.map} +1 -1
- package/dist/{identifier-conversion-ufaCNi9E.mjs → identifier-conversion-DV63mwKG.mjs} +2 -2
- package/dist/{identifier-conversion-ufaCNi9E.mjs.map → identifier-conversion-DV63mwKG.mjs.map} +1 -1
- package/dist/{identity-CmRos0Yf.mjs → identity-B75EaVTM.mjs} +2 -2
- package/dist/{identity-CmRos0Yf.mjs.map → identity-B75EaVTM.mjs.map} +1 -1
- package/dist/{index-Ci8b13Lm.d.mts → index-DRX_LLQM.d.mts} +47 -8
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/instrumentation.d.mts +1 -1
- package/dist/instrumentation.mjs +1 -1
- package/dist/{invariant-D_fIjY_z.mjs → invariant-B5znICP_.mjs} +1 -1
- package/dist/{invariant-D_fIjY_z.mjs.map → invariant-B5znICP_.mjs.map} +1 -1
- package/dist/{json-number-CGXpPu4D.mjs → json-number-DoseUwuo.mjs} +1 -1
- package/dist/{json-number-CGXpPu4D.mjs.map → json-number-DoseUwuo.mjs.map} +1 -1
- package/dist/key-rszcmZdB.mjs +2 -0
- package/dist/{key-CyLRw0ne.mjs.map → key-rszcmZdB.mjs.map} +1 -1
- package/dist/{libsql-DnbEwMY5.mjs → libsql-CAZVcr9G.mjs} +2 -2
- package/dist/{libsql-DnbEwMY5.mjs.map → libsql-CAZVcr9G.mjs.map} +1 -1
- package/dist/libsql.d.mts +1 -1
- package/dist/libsql.mjs +1 -1
- package/dist/{memory-CJ7m33Gi.mjs → memory-CqWRO6-3.mjs} +2 -2
- package/dist/{memory-CJ7m33Gi.mjs.map → memory-CqWRO6-3.mjs.map} +1 -1
- package/dist/migrations/mysql.d.mts +5 -5
- package/dist/migrations/mysql.mjs +1 -1
- package/dist/migrations/postgres.d.mts +5 -5
- package/dist/migrations/postgres.mjs +1 -1
- package/dist/migrations/sqlite.d.mts +5 -5
- package/dist/migrations/sqlite.mjs +1 -1
- package/dist/migrations/storage/durable-object.d.mts +1 -1
- package/dist/migrations/storage/durable-object.mjs +1 -1
- package/dist/migrations/storage/fs.d.mts +1 -1
- package/dist/migrations/storage/fs.mjs +1 -1
- package/dist/migrations/storage/r2.d.mts +1 -1
- package/dist/migrations/storage/r2.mjs +1 -1
- package/dist/migrations/tenant.d.mts +3 -3
- package/dist/migrations/tenant.mjs +1 -1
- package/dist/migrations-OE5D32qo.mjs +2 -0
- package/dist/migrations-OE5D32qo.mjs.map +1 -0
- package/dist/migrations.d.mts +5 -5
- package/dist/migrations.mjs +1 -1
- package/dist/{mysql-9C0lSVzX.mjs → mysql-BPPBSJzl.mjs} +2 -2
- package/dist/{mysql-9C0lSVzX.mjs.map → mysql-BPPBSJzl.mjs.map} +1 -1
- package/dist/mysql-adapter-Dbo7l0lI.mjs +2 -0
- package/dist/mysql-adapter-Dbo7l0lI.mjs.map +1 -0
- package/dist/mysql2.d.mts +1 -1
- package/dist/mysql2.mjs +1 -1
- package/dist/{native-types-asNCr26n.mjs → native-types-6wCGP1a1.mjs} +1 -1
- package/dist/{native-types-asNCr26n.mjs.map → native-types-6wCGP1a1.mjs.map} +1 -1
- package/dist/neon-http.d.mts +1 -1
- package/dist/neon-http.mjs +1 -1
- package/dist/neon-http.mjs.map +1 -1
- package/dist/normalized-result-23DWxZVY.mjs +2 -0
- package/dist/{normalized-result-BF7gr4_b.mjs.map → normalized-result-23DWxZVY.mjs.map} +1 -1
- package/dist/{object-store-H7fJwgPR.d.mts → object-store-Cs3AueG5.d.mts} +4 -4
- package/dist/{object-store-WjVilDvN.mjs → object-store-DmnlQy7V.mjs} +2 -2
- package/dist/{object-store-WjVilDvN.mjs.map → object-store-DmnlQy7V.mjs.map} +1 -1
- package/dist/observation-BcT8Cs3d.mjs +2 -0
- package/dist/observation-BcT8Cs3d.mjs.map +1 -0
- package/dist/on.d.mts +80 -0
- package/dist/on.mjs +2 -0
- package/dist/on.mjs.map +1 -0
- package/dist/permissions.d.mts +1 -1
- package/dist/permissions.mjs +1 -1
- package/dist/pg.d.mts +1 -1
- package/dist/pg.mjs +1 -1
- package/dist/pg.mjs.map +1 -1
- package/dist/pglite.d.mts +1 -1
- package/dist/pglite.mjs +1 -1
- package/dist/{physical-C4D-979R.mjs → physical-DT6C54w7.mjs} +2 -2
- package/dist/{physical-C4D-979R.mjs.map → physical-DT6C54w7.mjs.map} +1 -1
- package/dist/pinned-session-BdON2d0V.mjs +2 -0
- package/dist/{pinned-session-FYOFV_gB.mjs.map → pinned-session-BdON2d0V.mjs.map} +1 -1
- package/dist/planetscale.d.mts +1 -1
- package/dist/planetscale.mjs +1 -1
- package/dist/planetscale.mjs.map +1 -1
- package/dist/{planner-CUcPdJwD.d.mts → planner-BxCcoO8s.d.mts} +32 -2
- package/dist/{postgres-BPeNXAZR.mjs → postgres-BK_aOx_C.mjs} +44 -37
- package/dist/postgres-BK_aOx_C.mjs.map +1 -0
- package/dist/postgres-adapter-CVazEDVI.mjs +2 -0
- package/dist/postgres-adapter-CVazEDVI.mjs.map +1 -0
- package/dist/postgres-adapter-DxhZu7Qw.mjs +2 -0
- package/dist/{postgres-adapter-B7hzWhky.mjs.map → postgres-adapter-DxhZu7Qw.mjs.map} +1 -1
- package/dist/postgres-result-DYeVeHuT.mjs +2 -0
- package/dist/{postgres-result-BCUQf8b_.mjs.map → postgres-result-DYeVeHuT.mjs.map} +1 -1
- package/dist/postgres.d.mts +1 -1
- package/dist/postgres.mjs +1 -1
- package/dist/postgres.mjs.map +1 -1
- package/dist/{provider-limits-D0ECF7_Q.mjs → provider-limits-zLe7S_0W.mjs} +2 -2
- package/dist/{provider-limits-D0ECF7_Q.mjs.map → provider-limits-zLe7S_0W.mjs.map} +1 -1
- package/dist/{validation-gwZYm3Yn.mjs → query-CTna5P9o.mjs} +2 -2
- package/dist/query-CTna5P9o.mjs.map +1 -0
- package/dist/{relation-bound-BrZLsSke.mjs → relation-bound-Bj7X-EUE.mjs} +1 -1
- package/dist/{relation-bound-BrZLsSke.mjs.map → relation-bound-Bj7X-EUE.mjs.map} +1 -1
- package/dist/{result-parsing-CQf_eCl8.mjs → result-parsing-C2044903.mjs} +1 -1
- package/dist/{result-parsing-CQf_eCl8.mjs.map → result-parsing-C2044903.mjs.map} +1 -1
- package/dist/result-shape-C8QFUuIt.mjs +2 -0
- package/dist/{result-shape-ic2j3Tze.mjs.map → result-shape-C8QFUuIt.mjs.map} +1 -1
- package/dist/rows-D7ns2l0U.mjs +2 -0
- package/dist/{rows-YyvK9MDz.mjs.map → rows-D7ns2l0U.mjs.map} +1 -1
- package/dist/{scalar-Dyns7kc7.mjs → scalar-D6QmJ22_.mjs} +2 -2
- package/dist/{scalar-Dyns7kc7.mjs.map → scalar-D6QmJ22_.mjs.map} +1 -1
- package/dist/schema/json.d.mts +1 -1
- package/dist/schema/json.mjs +1 -1
- package/dist/{schema-CUm_yh6L.mjs → schema-CY9kOwJ-.mjs} +2 -2
- package/dist/{schema-CUm_yh6L.mjs.map → schema-CY9kOwJ-.mjs.map} +1 -1
- package/dist/{schema-introspection-LpRNeSG2.mjs → schema-introspection-CfqmM3Cz.mjs} +2 -2
- package/dist/{schema-introspection-LpRNeSG2.mjs.map → schema-introspection-CfqmM3Cz.mjs.map} +1 -1
- package/dist/schema.d.mts +1 -1
- package/dist/schema.mjs +1 -1
- package/dist/{select-assembly-BjT_fDbu.mjs → select-assembly-D7FEenz2.mjs} +2 -2
- package/dist/select-assembly-D7FEenz2.mjs.map +1 -0
- package/dist/{settle-C4w1GfTU.mjs → settle-CObilv26.mjs} +2 -2
- package/dist/{settle-C4w1GfTU.mjs.map → settle-CObilv26.mjs.map} +1 -1
- package/dist/{sha256-_Nu4s32f.mjs → sha256-Da07rzvR.mjs} +1 -1
- package/dist/{sha256-_Nu4s32f.mjs.map → sha256-Da07rzvR.mjs.map} +1 -1
- package/dist/soft-delete.d.mts +1 -1
- package/dist/{sql-BvHwL73I.mjs → sql-DGtEeP8z.mjs} +1 -1
- package/dist/{sql-BvHwL73I.mjs.map → sql-DGtEeP8z.mjs.map} +1 -1
- package/dist/{sql-statement-tokens-4J5l5Lyt.mjs → sql-statement-tokens-DL3ooNs7.mjs} +1 -1
- package/dist/{sql-statement-tokens-4J5l5Lyt.mjs.map → sql-statement-tokens-DL3ooNs7.mjs.map} +1 -1
- package/dist/sql.d.mts +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/sqlite-adapter-DqT6HeDs.mjs +2 -0
- package/dist/sqlite-adapter-DqT6HeDs.mjs.map +1 -0
- package/dist/{sqlite-utils-C5_KQPZn.mjs → sqlite-utils-DeDlMJKj.mjs} +2 -2
- package/dist/{sqlite-utils-C5_KQPZn.mjs.map → sqlite-utils-DeDlMJKj.mjs.map} +1 -1
- package/dist/sqlite3.d.mts +1 -1
- package/dist/sqlite3.mjs +1 -1
- package/dist/sqlite3.mjs.map +1 -1
- package/dist/{standard-sql-DmKF8msN.mjs → standard-sql-BErrm6AV.mjs} +2 -2
- package/dist/{standard-sql-DmKF8msN.mjs.map → standard-sql-BErrm6AV.mjs.map} +1 -1
- package/dist/{suppressed-failure-Bdo2aK81.mjs → suppressed-failure-3C4sFXvH.mjs} +1 -1
- package/dist/{suppressed-failure-Bdo2aK81.mjs.map → suppressed-failure-3C4sFXvH.mjs.map} +1 -1
- package/dist/{to-many-DxQuOBuq.mjs → to-many-DqYv9-vp.mjs} +2 -2
- package/dist/{to-many-DxQuOBuq.mjs.map → to-many-DqYv9-vp.mjs.map} +1 -1
- package/dist/{transaction-4dfqals6.mjs → transaction-D5LHYn-r.mjs} +2 -2
- package/dist/{transaction-4dfqals6.mjs.map → transaction-D5LHYn-r.mjs.map} +1 -1
- package/dist/{transaction-operation-CU1zlxiG.mjs → transaction-operation-Co3hw8yz.mjs} +2 -2
- package/dist/{transaction-operation-CU1zlxiG.mjs.map → transaction-operation-Co3hw8yz.mjs.map} +1 -1
- package/dist/{types-C5Oxz9yp.mjs → types-CJgtjXtu.mjs} +1 -1
- package/dist/{types-C5Oxz9yp.mjs.map → types-CJgtjXtu.mjs.map} +1 -1
- package/dist/{utils-CQ2nQwwO.mjs → utils-DooFtO1V.mjs} +3 -3
- package/dist/utils-DooFtO1V.mjs.map +1 -0
- package/dist/{v-BcroBusN.mjs → v-yKivkoka.mjs} +2 -2
- package/dist/{v-BcroBusN.mjs.map → v-yKivkoka.mjs.map} +1 -1
- package/dist/validation-pfpKPPZ_.mjs +2 -0
- package/dist/validation-pfpKPPZ_.mjs.map +1 -0
- package/dist/{validation-CjWRiLWU.mjs → validation-u-sZDdfD.mjs} +2 -2
- package/dist/{validation-CjWRiLWU.mjs.map → validation-u-sZDdfD.mjs.map} +1 -1
- package/dist/validation.d.mts +1 -1
- package/dist/validation.mjs +1 -1
- package/dist/{validator-yrGnrsAo.mjs → validator-XVm02V0K.mjs} +2 -2
- package/dist/{validator-yrGnrsAo.mjs.map → validator-XVm02V0K.mjs.map} +1 -1
- package/dist/version-WvqPqZJ4.mjs +2 -0
- package/dist/{version-Dt62tqkV.mjs.map → version-WvqPqZJ4.mjs.map} +1 -1
- package/dist/write-sinks-CoB5PPw9.mjs +2 -0
- package/dist/write-sinks-CoB5PPw9.mjs.map +1 -0
- package/dist/writes-CD0mNS5-.mjs +2 -0
- package/dist/writes-CD0mNS5-.mjs.map +1 -0
- package/package.json +36 -15
- package/dist/base-D3m1S7Uc.mjs +0 -2
- package/dist/base-D3m1S7Uc.mjs.map +0 -1
- package/dist/bind-parameter-capacity-D6p9HrbB.mjs +0 -2
- package/dist/cache-CIPRF-pz.mjs +0 -2
- package/dist/cache-CIPRF-pz.mjs.map +0 -1
- package/dist/chain-C4EUyLzF.mjs +0 -2
- package/dist/client-CnXO0M-E.mjs +0 -49
- package/dist/client-CnXO0M-E.mjs.map +0 -1
- package/dist/client-DACEO6tS.mjs +0 -2
- package/dist/client-DACEO6tS.mjs.map +0 -1
- package/dist/driver-BqD-3_jO.mjs +0 -2
- package/dist/driver-DseQwbsu.mjs +0 -2
- package/dist/error-mapping-6op318w6.mjs +0 -2
- package/dist/error-mapping-6op318w6.mjs.map +0 -1
- package/dist/every-CqR4_Xsx.mjs +0 -2
- package/dist/execution-context-asSCmyas.mjs +0 -2
- package/dist/execution-context-asSCmyas.mjs.map +0 -1
- package/dist/geo-point-codec-pAWYj5ZZ.mjs +0 -2
- package/dist/key-CyLRw0ne.mjs +0 -2
- package/dist/migrations-Bn1SatyB.mjs +0 -2
- package/dist/migrations-Bn1SatyB.mjs.map +0 -1
- package/dist/mysql-adapter-B1U35CJn.mjs +0 -2
- package/dist/mysql-adapter-B1U35CJn.mjs.map +0 -1
- package/dist/normalized-result-BF7gr4_b.mjs +0 -2
- package/dist/observation-Co72iCd1.mjs +0 -2
- package/dist/observation-Co72iCd1.mjs.map +0 -1
- package/dist/pinned-session-FYOFV_gB.mjs +0 -2
- package/dist/postgres-BPeNXAZR.mjs.map +0 -1
- package/dist/postgres-adapter-B7hzWhky.mjs +0 -2
- package/dist/postgres-adapter-CJmoxTW7.mjs +0 -2
- package/dist/postgres-adapter-CJmoxTW7.mjs.map +0 -1
- package/dist/postgres-result-BCUQf8b_.mjs +0 -2
- package/dist/result-shape-ic2j3Tze.mjs +0 -2
- package/dist/rows-YyvK9MDz.mjs +0 -2
- package/dist/select-assembly-BjT_fDbu.mjs.map +0 -1
- package/dist/sqlite-adapter-CLWY4B8w.mjs +0 -2
- package/dist/sqlite-adapter-CLWY4B8w.mjs.map +0 -1
- package/dist/utils-CQ2nQwwO.mjs.map +0 -1
- package/dist/validation-gwZYm3Yn.mjs.map +0 -1
- package/dist/version-Dt62tqkV.mjs +0 -2
- /package/dist/{contract-Dw0FR78e.d.mts → contract-H_WiAUaR.d.mts} +0 -0
- /package/dist/{sql-Q_twK-wW.d.mts → sql-CF5Xi6z-.d.mts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-
|
|
1
|
+
{"version":3,"file":"version-WvqPqZJ4.mjs","names":["packageMetadata.version"],"sources":["../package.json","../src/version.ts"],"sourcesContent":["","import packageMetadata from \"../package.json\";\n\n/** Package version shared by runtime surfaces and bundled from package.json. */\nexport const VIBORM_VERSION = packageMetadata.version;\n"],"mappings":"ACGA,MAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-sinks-CoB5PPw9.mjs","names":[],"sources":["../src/query-engine/write-sinks.ts"],"sourcesContent":["import type { QueryExecutionContext } from \"@drivers/types\";\n\n/**\n * What the write engine tells the official `on` extension while one\n * operation runs, keyed by that operation's attribution. Only an operation\n * a hook concerns has one, so every other write asks a WeakMap and moves on.\n */\nexport interface WriteSink {\n /** The arm a root `upsert` took: `true` when it created its row. */\n upserted(created: boolean): void;\n /** Does a hook want the rows a nested write `kind`s on `model`? */\n wants(model: string, kind: WriteKind): boolean;\n /**\n * Rows a nested write wrote to `model`, read in the operation's own unit:\n * as the write left them, as they were before a delete.\n */\n wrote(model: string, kind: WriteKind, rows: readonly object[]): void;\n}\n\nexport type WriteKind = \"create\" | \"update\" | \"delete\";\n\nexport const writeSinks = new WeakMap<QueryExecutionContext, WriteSink>();\n"],"mappings":"AAqBA,MAAa,EAAa,IAAI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writes-CD0mNS5-.mjs","names":[],"sources":["../src/extensions/writes.ts"],"sourcesContent":["// The part of the official `on` extension the core client reads: whether a\n// chain carries it, and the plan it makes for one write. The runtime (which\n// rows a write reports, how they are read, when hooks run) is installed by\n// `on()` from `viborm/on`, so an application that never creates the\n// extension loads none of it.\n\nimport type { QueryExecutionContext } from \"@drivers/types\";\nimport type { AnyModel } from \"@schema/model\";\nimport type { ResolvedExtensionChain } from \"./chain\";\nimport type { AdmittedControls } from \"./controls\";\nimport type { WriteOutcomeRegistration } from \"./query\";\n\n/** One write the extension reports: its arguments, value and delivery. */\nexport interface WritePlan {\n /** The arguments the engine runs: the caller's, widened to whole rows. */\n readonly args: Record<string, unknown>;\n /**\n * The engine's value, before any extension sees it: the hook's rows taken,\n * the value cut back to the call's own projection. `settle`: where the\n * write has already committed, run the hooks first (a promise then).\n */\n take(value: unknown, settle?: true): unknown;\n /**\n * The caller's last step: `then` (the chain's computed fields) over the\n * value, after the hooks when the commit came first (a promise then).\n */\n finish(value: unknown, then?: (value: unknown) => unknown): unknown;\n /**\n * The write's one registration on the outcome rail, after `cached`'s;\n * `controls` decide whether a managed delete leaves a tombstone.\n */\n register(\n context: QueryExecutionContext,\n controls: AdmittedControls | undefined,\n cached: WriteOutcomeRegistration | undefined\n ): WriteOutcomeRegistration;\n}\n\nexport interface WritesCapability {\n /** `undefined` when no hook concerns the write: it runs as written. */\n plan(\n model: AnyModel,\n operation: string,\n args: Record<string, unknown>,\n chain: ResolvedExtensionChain,\n /** The call's arguments before computed fields are planned. */\n callArgs: Record<string, unknown>\n ): WritePlan | undefined;\n}\n\n/** The fixed name admission reserves for the official `on` extension. */\nexport const OFFICIAL_ON_NAME = \"viborm.on\";\n\nconst capabilities = new WeakMap<object, WritesCapability>();\n\n/** Recognize `query` as the official `on` contribution. `on()` only. */\nexport function registerOfficialWrites(\n query: object,\n capability: WritesCapability\n): void {\n capabilities.set(query, capability);\n}\n\nexport const officialWritesOf = (query: unknown) =>\n capabilities.get(query as object);\n"],"mappings":"yCAmDA,MAAa,EAAmB,YAE1B,EAAe,IAAI,QAGzB,SAAgB,uBACd,EACA,EACM,CACN,EAAa,IAAI,EAAO,EAAW,CAGrC,MAAa,iBAAoB,GAC/B,EAAa,IAAI,EAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viborm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Type-safe ORM for PostgreSQL, MySQL, and SQLite with a Prisma-inspired API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -179,6 +179,11 @@
|
|
|
179
179
|
"import": "./dist/permissions.mjs",
|
|
180
180
|
"default": "./dist/permissions.mjs"
|
|
181
181
|
},
|
|
182
|
+
"./on": {
|
|
183
|
+
"types": "./dist/on.d.mts",
|
|
184
|
+
"import": "./dist/on.mjs",
|
|
185
|
+
"default": "./dist/on.mjs"
|
|
186
|
+
},
|
|
182
187
|
"./adapters": {
|
|
183
188
|
"types": "./dist/adapters.d.mts",
|
|
184
189
|
"import": "./dist/adapters.mjs",
|
|
@@ -216,7 +221,7 @@
|
|
|
216
221
|
"test:raptor3:seeds": "node scripts/run-raptor3.mjs g1-seeds",
|
|
217
222
|
"test:raptor3:transport": "node scripts/run-raptor3.mjs g1-transport",
|
|
218
223
|
"test:raptor3:transport:seeds": "node scripts/run-raptor3.mjs g1-transport-seeds",
|
|
219
|
-
"test:core": "node scripts/run-vitest-safe.mjs --sequential-shards=
|
|
224
|
+
"test:core": "node scripts/run-vitest-safe.mjs --sequential-shards=2 run --workspace vitest.workspace.ts --project='layer-*'",
|
|
220
225
|
"test:all": "node scripts/run-credential-free-tests.mjs",
|
|
221
226
|
"test:watch": "node scripts/run-vitest-safe.mjs --workspace vitest.workspace.ts --project='layer-*'",
|
|
222
227
|
"test:ui": "node scripts/run-vitest-safe.mjs --ui --workspace vitest.workspace.ts --project='layer-*'",
|
|
@@ -231,12 +236,13 @@
|
|
|
231
236
|
"test:coverage:errors": "node --max-old-space-size=768 scripts/run-coverage.mjs errors",
|
|
232
237
|
"test:coverage:adapters": "node --max-old-space-size=768 scripts/run-coverage.mjs adapters",
|
|
233
238
|
"test:coverage:cli": "node --max-old-space-size=768 scripts/run-coverage.mjs cli",
|
|
239
|
+
"test:coverage:studio": "node --max-old-space-size=768 scripts/run-coverage.mjs studio",
|
|
234
240
|
"test:coverage:query-engine-core": "node --max-old-space-size=768 scripts/run-coverage.mjs query-engine-core",
|
|
235
241
|
"test:coverage:drivers": "node --max-old-space-size=768 scripts/run-coverage.mjs drivers",
|
|
236
242
|
"test:coverage:client": "node --max-old-space-size=768 scripts/run-coverage.mjs client",
|
|
237
243
|
"test:coverage:cache": "node --max-old-space-size=768 scripts/run-coverage.mjs cache",
|
|
238
244
|
"test:coverage:migrations": "node --max-old-space-size=768 scripts/run-coverage.mjs migrations",
|
|
239
|
-
"test:coverage:policy": "node scripts/run-node-safe.mjs 512 60000 scripts/coverage-policy.test.mjs && node scripts/run-node-safe.mjs 512 60000 scripts/bounded-process.test.mjs && node scripts/run-node-safe.mjs 512 60000 scripts/test-run-lock.test.mjs && node scripts/run-node-safe.mjs 512 60000 scripts/raptor3-refusal-census.test.mjs",
|
|
245
|
+
"test:coverage:policy": "node scripts/run-node-safe.mjs 512 60000 scripts/coverage-policy.test.mjs && node scripts/run-node-safe.mjs 512 60000 scripts/bounded-process.test.mjs && node scripts/run-node-safe.mjs 512 60000 scripts/test-run-lock.test.mjs && node scripts/run-node-safe.mjs 512 60000 scripts/raptor3-refusal-census.test.mjs && node scripts/run-node-safe.mjs 512 60000 scripts/release-studio.test.mjs",
|
|
240
246
|
"test:package": "pnpm package:build && VIBORM_PACKAGE_PART=runtime node scripts/run-vitest-safe.mjs run --workspace vitest.workspace.ts --project=package && VIBORM_PACKAGE_PART=types node scripts/run-vitest-safe.mjs run --workspace vitest.workspace.ts --project=package",
|
|
241
247
|
"test:providers": "node scripts/run-vitest-safe.mjs run --workspace vitest.workspace.ts --project=provider-pg --project=provider-postgres --project=provider-mysql2 --project=provider-transaction-options --project=provider-pgbouncer --project=provider-neon-http --project=provider-planetscale --project=provider-neki",
|
|
242
248
|
"test:layer:validation": "node scripts/run-layer-core.mjs validation",
|
|
@@ -254,6 +260,7 @@
|
|
|
254
260
|
"test:layer:instrumentation": "node scripts/run-layer-core.mjs instrumentation",
|
|
255
261
|
"test:layer:migrations": "node scripts/run-layer-core.mjs migrations",
|
|
256
262
|
"test:layer:permissions": "node scripts/run-layer-core.mjs permissions",
|
|
263
|
+
"test:layer:studio": "node scripts/run-layer-core.mjs studio",
|
|
257
264
|
"bench": "node scripts/run-vitest-safe.mjs --heap-limit-mb=768 --rss-limit-mb=1536 --wall-limit-ms=1200000 bench --run",
|
|
258
265
|
"bench:baseline": "node scripts/run-vitest-safe.mjs --heap-limit-mb=768 --rss-limit-mb=1536 --wall-limit-ms=1200000 bench --run --outputJson benchmarks/baseline.json",
|
|
259
266
|
"bench:compare": "node scripts/run-vitest-safe.mjs --heap-limit-mb=768 --rss-limit-mb=1536 --wall-limit-ms=1200000 bench --run --compare benchmarks/baseline.json",
|
|
@@ -390,29 +397,29 @@
|
|
|
390
397
|
"name": "D1 Worker (viborm/d1)",
|
|
391
398
|
"path": "node_modules/.cache/viborm-size/d1-worker.mjs",
|
|
392
399
|
"gzip": true,
|
|
393
|
-
"limit": "
|
|
394
|
-
"message": "Raised 170 → 171.9 kB by the measured +1,868 B of RBAC M1 wave 1 (OD-17): rows predicates admitted, layered and parameterized, numbered binds, bound views. Raised 171.9 → 177.6 kB by the measured +5,630 B (177.29 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 177.6 → 179 kB by the measured +1,355 B (178.65 kB) of RBAC M2 wave 5 (E5: shared relation bodies, D1 balanced conjunctions, the judged write's own sentinel, the allocation fixes; the uncacheable control, OD-10; OD-17, measured + 0.3 kB headroom). Raised 179 → 179.7 kB by the measured 179.37 kB of the RBAC second review's fixes (2026-10-17): per-dialect produced rows for a judged createMany (ENG-3, setOperations.typedRows), caller SQL kept out of shared-body keys (ENG-4, Sql.peekRuns), isolated nesting levels where deepExpressions is false (ENG-6, subqueries.isolated) (OD-17, measured rounded up to 0.1 kB + 0.3 kB). Permissions application reuse (2026-10-18) measures 179,947 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 182,905 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 183,229 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 187,904 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 191,623 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 192,646 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 193,276 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 194,142 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 195.25 kB on CI's Node 22.12 build, so 194.5 kB → 195.6 kB under the same OD-17 rule."
|
|
400
|
+
"limit": "197.4 kB",
|
|
401
|
+
"message": "Raised 170 → 171.9 kB by the measured +1,868 B of RBAC M1 wave 1 (OD-17): rows predicates admitted, layered and parameterized, numbered binds, bound views. Raised 171.9 → 177.6 kB by the measured +5,630 B (177.29 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 177.6 → 179 kB by the measured +1,355 B (178.65 kB) of RBAC M2 wave 5 (E5: shared relation bodies, D1 balanced conjunctions, the judged write's own sentinel, the allocation fixes; the uncacheable control, OD-10; OD-17, measured + 0.3 kB headroom). Raised 179 → 179.7 kB by the measured 179.37 kB of the RBAC second review's fixes (2026-10-17): per-dialect produced rows for a judged createMany (ENG-3, setOperations.typedRows), caller SQL kept out of shared-body keys (ENG-4, Sql.peekRuns), isolated nesting levels where deepExpressions is false (ENG-6, subqueries.isolated) (OD-17, measured rounded up to 0.1 kB + 0.3 kB). Permissions application reuse (2026-10-18) measures 179,947 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 182,905 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 183,229 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 187,904 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 191,623 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 192,646 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 193,276 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 194,142 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 195.25 kB on CI's Node 22.12 build, so 194.5 kB → 195.6 kB under the same OD-17 rule. 1.5.1 (2026-10-26) measures 195,680 B: provider codes of any SQLSTATE-shaped class kept, a PostgreSQL connection lost under a statement mapped to a retryable ConnectionError, a migration failure keeping its cause's disclosure, and the client symbol migrations read diagnostics through; 195.6 kB → 196 kB under the same OD-17 rule. The statements a write hook costs, lowered (2026-10-29): a PostgreSQL upsert keeps its one INSERT … ON CONFLICT and reads its arm from RETURNING (adapter.mutations.upserted, xmax = 0), and without RETURNING a createMany whose rows carry their keys is one INSERT plus one read and a delete with a scalar select locks and reads its rows in one SELECT … FOR UPDATE: measures 196.25 kB; 196 kB → 196.6 kB under the same OD-17 rule. viborm/on nested writes and onError (2026-10-29: nested rows captured by key in the operation's own unit, nested updateMany/deleteMany from their own RETURNING, a failing hook reported to onError instead of failing its committed write) measures 197.07 kB; 196.6 kB → 197.4 kB under the same OD-17 rule."
|
|
395
402
|
},
|
|
396
403
|
{
|
|
397
404
|
"name": "pg + migrations Worker (viborm/pg + viborm/migrations/postgres)",
|
|
398
405
|
"path": "node_modules/.cache/viborm-size/pg-migrations-worker.mjs",
|
|
399
406
|
"gzip": true,
|
|
400
|
-
"limit": "
|
|
401
|
-
"message": "Raised 273 → 274.4 kB by the measured +1,392 B of RBAC M1 wave 2 (K3, OD-17): rows verbs, written fields, write judgements and the clear premise; it held wave 1's +1,819 B inside its headroom. Raised 274.4 → 279.5 kB by the measured +5,720 B (279.12 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 279.5 → 280.8 kB by the measured +1,340 B (280.46 kB) of RBAC M2 wave 5 (E5: shared relation bodies, D1 balanced conjunctions, the judged write's own sentinel, the allocation fixes; the uncacheable control, OD-10; OD-17, measured + 0.3 kB headroom). Raised 280.8 → 281.6 kB by the measured 281.27 kB of the RBAC second review's fixes (2026-10-17): per-dialect produced rows for a judged createMany (ENG-3, setOperations.typedRows), caller SQL kept out of shared-body keys (ENG-4, Sql.peekRuns), isolated nesting levels where deepExpressions is false (ENG-6, subqueries.isolated), and createClient forwarding sharedRelationBodies (ENG-5) (OD-17, measured rounded up to 0.1 kB + 0.3 kB). Permissions application reuse (2026-10-18) measures 281,876 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 284,679 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 286,646 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 291,400 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 295,514 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 296,563 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 297,199 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Incremental snapshot artifacts (2026-10-22) measure 298,985 B after two bundle-reduction reviews. Owner-approved limit follows rounding up to 0.1 kB plus 0.3 kB headroom; other resource and coverage limits are unchanged. Final prune-review fixes measure 299,039 B and remain within that approved limit. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 298,088 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Incremental snapshot artifacts merged with shared connect UPDATEs and batched planning reads (2026-10-23) measure 299,920 B together. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 301.01 kB on CI's Node 22.12 build, so 300.3 kB → 301.4 kB under the same OD-17 rule. Keyed snapshot deltas (1.5.0, 2026-10-25: snapshot-delta-2 reading, the named-element encoder and its positional fallback) measure 301,703 B on CI's Node 22.12 build, so 301.4 kB → 302.1 kB under the same OD-17 rule."
|
|
407
|
+
"limit": "305.3 kB",
|
|
408
|
+
"message": "Raised 273 → 274.4 kB by the measured +1,392 B of RBAC M1 wave 2 (K3, OD-17): rows verbs, written fields, write judgements and the clear premise; it held wave 1's +1,819 B inside its headroom. Raised 274.4 → 279.5 kB by the measured +5,720 B (279.12 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 279.5 → 280.8 kB by the measured +1,340 B (280.46 kB) of RBAC M2 wave 5 (E5: shared relation bodies, D1 balanced conjunctions, the judged write's own sentinel, the allocation fixes; the uncacheable control, OD-10; OD-17, measured + 0.3 kB headroom). Raised 280.8 → 281.6 kB by the measured 281.27 kB of the RBAC second review's fixes (2026-10-17): per-dialect produced rows for a judged createMany (ENG-3, setOperations.typedRows), caller SQL kept out of shared-body keys (ENG-4, Sql.peekRuns), isolated nesting levels where deepExpressions is false (ENG-6, subqueries.isolated), and createClient forwarding sharedRelationBodies (ENG-5) (OD-17, measured rounded up to 0.1 kB + 0.3 kB). Permissions application reuse (2026-10-18) measures 281,876 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 284,679 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 286,646 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 291,400 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 295,514 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 296,563 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 297,199 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Incremental snapshot artifacts (2026-10-22) measure 298,985 B after two bundle-reduction reviews. Owner-approved limit follows rounding up to 0.1 kB plus 0.3 kB headroom; other resource and coverage limits are unchanged. Final prune-review fixes measure 299,039 B and remain within that approved limit. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 298,088 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Incremental snapshot artifacts merged with shared connect UPDATEs and batched planning reads (2026-10-23) measure 299,920 B together. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 301.01 kB on CI's Node 22.12 build, so 300.3 kB → 301.4 kB under the same OD-17 rule. Keyed snapshot deltas (1.5.0, 2026-10-25: snapshot-delta-2 reading, the named-element encoder and its positional fallback) measure 301,703 B on CI's Node 22.12 build, so 301.4 kB → 302.1 kB under the same OD-17 rule. 1.5.1 (2026-10-26) measures 302,580 B: provider codes of any SQLSTATE-shaped class kept, a PostgreSQL connection lost under a statement mapped to a retryable ConnectionError, a migration failure keeping its cause's disclosure, and the client symbol migrations read diagnostics through (and, in this bundle, Neki's stepwise migrations, the disclosing migration session and located migration failures); 302.1 kB → 302.9 kB under the same OD-17 rule. viborm/on (2026-10-29) measures 303,060 B: the write-hooks seam core keeps for the official `on` extension and the MySQL createMany skipDuplicates fix; 302.9 kB → 303.4 kB under the same OD-17 rule. The statements a write hook costs, lowered (2026-10-29): a PostgreSQL upsert keeps its one INSERT … ON CONFLICT and reads its arm from RETURNING (adapter.mutations.upserted, xmax = 0), and without RETURNING a createMany whose rows carry their keys is one INSERT plus one read and a delete with a scalar select locks and reads its rows in one SELECT … FOR UPDATE: measures 303.39 kB; 303.4 kB → 303.7 kB under the same OD-17 rule. viborm/on nested writes and onError (2026-10-29: nested rows captured by key in the operation's own unit, nested updateMany/deleteMany from their own RETURNING, a failing hook reported to onError instead of failing its committed write) measures 304.11 kB; 303.7 kB → 304.5 kB under the same OD-17 rule. Raised 304.5 → 305.3 kB by the measured +527 B over the limit (305.03 kB) of #85 (1.6.0): PostgreSQL push reads the CHECK constraints on the columns an enum recreation converts, drops and re-adds them (measured + 0.3 kB headroom)."
|
|
402
409
|
},
|
|
403
410
|
{
|
|
404
411
|
"name": "pg application (viborm/pg)",
|
|
405
412
|
"path": "node_modules/.cache/viborm-size/pg-representative.mjs",
|
|
406
413
|
"gzip": true,
|
|
407
|
-
"limit": "
|
|
408
|
-
"message": "Raised 170 → 171.9 kB by the measured +1,900 B of RBAC M1 wave 1 (OD-17): rows predicates admitted, layered and parameterized, numbered binds, bound views. Raised 171.9 → 173.34 kB by the measured +1,440 B of RBAC M1 wave 2 (K3, OD-17): rows verbs, written fields, write judgements and the clear premise. Raised 173.34 → 178.2 kB by the measured +5,650 B (177.84 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 178.2 → 179.5 kB by the measured +1,278 B (179.12 kB) of RBAC M2 wave 5 (E5: shared relation bodies, D1 balanced conjunctions, the judged write's own sentinel, the allocation fixes; the uncacheable control, OD-10; OD-17, measured + 0.3 kB headroom). Raised 179.5 → 180.3 kB by the measured 179.99 kB of the RBAC second review's fixes (2026-10-17): per-dialect produced rows for a judged createMany (ENG-3, setOperations.typedRows), caller SQL kept out of shared-body keys (ENG-4, Sql.peekRuns), isolated nesting levels where deepExpressions is false (ENG-6, subqueries.isolated), and createClient forwarding sharedRelationBodies (ENG-5) (OD-17, measured rounded up to 0.1 kB + 0.3 kB). Permissions application reuse (2026-10-18) measures 180,567 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 183,392 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 183,719 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 188,385 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 192,547 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 193,572 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 194,198 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 195,084 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 196.22 kB on CI's Node 22.12 build, so 195.4 kB → 196.6 kB under the same OD-17 rule."
|
|
414
|
+
"limit": "198.5 kB",
|
|
415
|
+
"message": "Raised 170 → 171.9 kB by the measured +1,900 B of RBAC M1 wave 1 (OD-17): rows predicates admitted, layered and parameterized, numbered binds, bound views. Raised 171.9 → 173.34 kB by the measured +1,440 B of RBAC M1 wave 2 (K3, OD-17): rows verbs, written fields, write judgements and the clear premise. Raised 173.34 → 178.2 kB by the measured +5,650 B (177.84 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 178.2 → 179.5 kB by the measured +1,278 B (179.12 kB) of RBAC M2 wave 5 (E5: shared relation bodies, D1 balanced conjunctions, the judged write's own sentinel, the allocation fixes; the uncacheable control, OD-10; OD-17, measured + 0.3 kB headroom). Raised 179.5 → 180.3 kB by the measured 179.99 kB of the RBAC second review's fixes (2026-10-17): per-dialect produced rows for a judged createMany (ENG-3, setOperations.typedRows), caller SQL kept out of shared-body keys (ENG-4, Sql.peekRuns), isolated nesting levels where deepExpressions is false (ENG-6, subqueries.isolated), and createClient forwarding sharedRelationBodies (ENG-5) (OD-17, measured rounded up to 0.1 kB + 0.3 kB). Permissions application reuse (2026-10-18) measures 180,567 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 183,392 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 183,719 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 188,385 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 192,547 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 193,572 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 194,198 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 195,084 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 196.22 kB on CI's Node 22.12 build, so 195.4 kB → 196.6 kB under the same OD-17 rule. 1.5.1 (2026-10-26) measures 196,680 B: provider codes of any SQLSTATE-shaped class kept, a PostgreSQL connection lost under a statement mapped to a retryable ConnectionError, a migration failure keeping its cause's disclosure, and the client symbol migrations read diagnostics through; 196.6 kB → 197 kB under the same OD-17 rule. viborm/on (2026-10-29) measures 197,018 B (+221 B): the write-hooks seam core keeps for the official `on` extension (its identity in the chain, the client's write plan and its one outcome registration, the engine's upsert arm report) and the MySQL createMany skipDuplicates fix; 197 kB → 197.4 kB under the same OD-17 rule. The statements a write hook costs, lowered (2026-10-29): a PostgreSQL upsert keeps its one INSERT … ON CONFLICT and reads its arm from RETURNING (adapter.mutations.upserted, xmax = 0), and without RETURNING a createMany whose rows carry their keys is one INSERT plus one read and a delete with a scalar select locks and reads its rows in one SELECT … FOR UPDATE: measures 197.33 kB; 197.4 kB → 197.7 kB under the same OD-17 rule. viborm/on nested writes and onError (2026-10-29: nested rows captured by key in the operation's own unit, nested updateMany/deleteMany from their own RETURNING, a failing hook reported to onError instead of failing its committed write) measures 198.17 kB; 197.7 kB → 198.5 kB under the same OD-17 rule."
|
|
409
416
|
},
|
|
410
417
|
{
|
|
411
418
|
"name": "pg application + soft delete",
|
|
412
419
|
"path": "node_modules/.cache/viborm-size/pg-soft-delete.mjs",
|
|
413
420
|
"gzip": true,
|
|
414
|
-
"limit": "
|
|
415
|
-
"message": "Raised 173.5 → 178.6 kB by the measured +5,670 B (178.24 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 178.6 → 179.9 kB by the measured +1,270 B (179.51 kB) of RBAC M2 wave 5 (E5: shared relation bodies, D1 balanced conjunctions, the judged write's own sentinel, the allocation fixes; the uncacheable control, OD-10; OD-17, measured + 0.3 kB headroom). Raised 179.9 → 180.7 kB by the measured 180.39 kB of the RBAC second review's fixes (2026-10-17): per-dialect produced rows for a judged createMany (ENG-3, setOperations.typedRows), caller SQL kept out of shared-body keys (ENG-4, Sql.peekRuns), isolated nesting levels where deepExpressions is false (ENG-6, subqueries.isolated), createClient forwarding sharedRelationBodies (ENG-5), and soft delete's module-level steps (COST-1, COST-2) (OD-17, measured rounded up to 0.1 kB + 0.3 kB). Permissions application reuse (2026-10-18) measures 180,978 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 183,799 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 184,116 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 188,764 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 192,936 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 193,977 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 194,609 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 195,500 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 196.66 kB on CI's Node 22.12 build, so 195.8 kB → 197 kB under the same OD-17 rule."
|
|
421
|
+
"limit": "198.9 kB",
|
|
422
|
+
"message": "Raised 173.5 → 178.6 kB by the measured +5,670 B (178.24 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 178.6 → 179.9 kB by the measured +1,270 B (179.51 kB) of RBAC M2 wave 5 (E5: shared relation bodies, D1 balanced conjunctions, the judged write's own sentinel, the allocation fixes; the uncacheable control, OD-10; OD-17, measured + 0.3 kB headroom). Raised 179.9 → 180.7 kB by the measured 180.39 kB of the RBAC second review's fixes (2026-10-17): per-dialect produced rows for a judged createMany (ENG-3, setOperations.typedRows), caller SQL kept out of shared-body keys (ENG-4, Sql.peekRuns), isolated nesting levels where deepExpressions is false (ENG-6, subqueries.isolated), createClient forwarding sharedRelationBodies (ENG-5), and soft delete's module-level steps (COST-1, COST-2) (OD-17, measured rounded up to 0.1 kB + 0.3 kB). Permissions application reuse (2026-10-18) measures 180,978 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 183,799 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 184,116 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 188,764 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 192,936 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 193,977 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 194,609 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 195,500 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 196.66 kB on CI's Node 22.12 build, so 195.8 kB → 197 kB under the same OD-17 rule. 1.5.1 (2026-10-26) measures 197,060 B: provider codes of any SQLSTATE-shaped class kept, a PostgreSQL connection lost under a statement mapped to a retryable ConnectionError, a migration failure keeping its cause's disclosure, and the client symbol migrations read diagnostics through; 197 kB → 197.4 kB under the same OD-17 rule. viborm/on (2026-10-29) measures 197,461 B (+258 B): the write-hooks seam core keeps for the official `on` extension (its identity in the chain, the client's write plan and its one outcome registration, the engine's upsert arm report) and the MySQL createMany skipDuplicates fix; 197.4 kB → 197.8 kB under the same OD-17 rule. The statements a write hook costs, lowered (2026-10-29): a PostgreSQL upsert keeps its one INSERT … ON CONFLICT and reads its arm from RETURNING (adapter.mutations.upserted, xmax = 0), and without RETURNING a createMany whose rows carry their keys is one INSERT plus one read and a delete with a scalar select locks and reads its rows in one SELECT … FOR UPDATE: measures 197.76 kB; 197.8 kB → 198.1 kB under the same OD-17 rule. viborm/on nested writes and onError (2026-10-29: nested rows captured by key in the operation's own unit, nested updateMany/deleteMany from their own RETURNING, a failing hook reported to onError instead of failing its committed write) measures 198.54 kB; 198.1 kB → 198.9 kB under the same OD-17 rule."
|
|
416
423
|
},
|
|
417
424
|
{
|
|
418
425
|
"name": "soft-delete extension entry",
|
|
@@ -425,8 +432,8 @@
|
|
|
425
432
|
"name": "pg application + permissions",
|
|
426
433
|
"path": "node_modules/.cache/viborm-size/pg-permissions.mjs",
|
|
427
434
|
"gzip": true,
|
|
428
|
-
"limit": "
|
|
429
|
-
"message": "The pg application with viborm/permissions applied (the guide's blog policy: an actor schema, an explicit authorId predicate and an actor condition, $as per request, one read, one create, one can): measured 184,652 B at the M2 exit (wave 5), +5,534 B over the pg application row (the entry's compiler with placement, moves, acyclic relations and evidence, can/assert through $access). First measured 181,404 B at c7d1951cd (U10). Limit = measured rounded up to 0.1 kB + 0.3 kB (OD-17). Raised 185 → 185.8 kB by the measured +488 B (185.49 kB) of the independent review's fixes (2026-10-16): refusals of unknown policy, model and field-entry keys, mistyped declaration keys, keyLimit models and undeclared ceilings; can/assert over findUnique with one ask per level; the prover's structural equality and R6 safeguard (OD-17). Comma-separated action keys measure 185,861 B (2026-10-16): normalized bindings and rejection of empty, repeated, overlapping and reserved members. Limit 186.2 kB follows the same rounding plus 0.3 kB rule (OD-17). CRUD permissions and complementary credential scopes measure 186,347 B (2026-10-17); limit 186.7 kB follows the approved measured rounding plus 0.3 kB rule (OD-17). Conditional parameter-read preservation and the permissions rename measure 187,685 B (2026-10-17), +1,338 B from the last recorded application measurement; limit 188 kB follows OD-17 rounding plus 0.3 kB. The simplifier preserves missing/null and whole-list refusals while retaining compact inherited predicates. Raised by the second review's fixes (2026-10-17: typed VALUES rows for judged inserts, caller-text runs in shared-body keys, isolated nesting levels on D1), measured 188.19 kB after the permissions rename; limit = measured rounded up to 0.1 kB + 0.3 kB (OD-17). Actor admission and polymorphic projection consistency (2026-10-18) measure 189,787 B: required native actor validation, per-grant availability and variant projection admission. Limit follows OD-17 rounding to 0.1 kB plus 0.3 kB. Permissions application reuse (2026-10-18) measures 190,939 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Cold compilation sharing (2026-10-18) measures 191,498 B: compilation-local structural keys and shared guards in the policy simplifier, and admission that parses and walks each shared sub-predicate once. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 196,216 B: per-model compilation (the policy compiler, the declaration snapshot, frozen lazy entries), $exists and { $row, up } in rules, and the refusal of field references and empty actor conditions. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 196,634 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 201,329 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 205,450 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 206,535 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 207,162 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 208,063 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 209.17 kB on CI's Node 22.12 build, so 208.4 kB → 209.5 kB under the same OD-17 rule."
|
|
435
|
+
"limit": "211.2 kB",
|
|
436
|
+
"message": "The pg application with viborm/permissions applied (the guide's blog policy: an actor schema, an explicit authorId predicate and an actor condition, $as per request, one read, one create, one can): measured 184,652 B at the M2 exit (wave 5), +5,534 B over the pg application row (the entry's compiler with placement, moves, acyclic relations and evidence, can/assert through $access). First measured 181,404 B at c7d1951cd (U10). Limit = measured rounded up to 0.1 kB + 0.3 kB (OD-17). Raised 185 → 185.8 kB by the measured +488 B (185.49 kB) of the independent review's fixes (2026-10-16): refusals of unknown policy, model and field-entry keys, mistyped declaration keys, keyLimit models and undeclared ceilings; can/assert over findUnique with one ask per level; the prover's structural equality and R6 safeguard (OD-17). Comma-separated action keys measure 185,861 B (2026-10-16): normalized bindings and rejection of empty, repeated, overlapping and reserved members. Limit 186.2 kB follows the same rounding plus 0.3 kB rule (OD-17). CRUD permissions and complementary credential scopes measure 186,347 B (2026-10-17); limit 186.7 kB follows the approved measured rounding plus 0.3 kB rule (OD-17). Conditional parameter-read preservation and the permissions rename measure 187,685 B (2026-10-17), +1,338 B from the last recorded application measurement; limit 188 kB follows OD-17 rounding plus 0.3 kB. The simplifier preserves missing/null and whole-list refusals while retaining compact inherited predicates. Raised by the second review's fixes (2026-10-17: typed VALUES rows for judged inserts, caller-text runs in shared-body keys, isolated nesting levels on D1), measured 188.19 kB after the permissions rename; limit = measured rounded up to 0.1 kB + 0.3 kB (OD-17). Actor admission and polymorphic projection consistency (2026-10-18) measure 189,787 B: required native actor validation, per-grant availability and variant projection admission. Limit follows OD-17 rounding to 0.1 kB plus 0.3 kB. Permissions application reuse (2026-10-18) measures 190,939 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Cold compilation sharing (2026-10-18) measures 191,498 B: compilation-local structural keys and shared guards in the policy simplifier, and admission that parses and walks each shared sub-predicate once. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 196,216 B: per-model compilation (the policy compiler, the declaration snapshot, frozen lazy entries), $exists and { $row, up } in rules, and the refusal of field references and empty actor conditions. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 196,634 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 201,329 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 205,450 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 206,535 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 207,162 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 208,063 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 209.17 kB on CI's Node 22.12 build, so 208.4 kB → 209.5 kB under the same OD-17 rule. Native insensitive matching (2026-10-29: ILIKE/LOWER folds, a client-escaped PostgreSQL pattern, foldable JSON-path strings) measures 209.56 kB on CI, so 209.5 kB → 209.9 kB under the same OD-17 rule. The statements a write hook costs, lowered (2026-10-29): a PostgreSQL upsert keeps its one INSERT … ON CONFLICT and reads its arm from RETURNING (adapter.mutations.upserted, xmax = 0), and without RETURNING a createMany whose rows carry their keys is one INSERT plus one read and a delete with a scalar select locks and reads its rows in one SELECT … FOR UPDATE: measures 210.07 kB; 209.9 kB → 210.4 kB under the same OD-17 rule. viborm/on nested writes and onError (2026-10-29: nested rows captured by key in the operation's own unit, nested updateMany/deleteMany from their own RETURNING, a failing hook reported to onError instead of failing its committed write) measures 210.84 kB; 210.4 kB → 211.2 kB under the same OD-17 rule."
|
|
430
437
|
},
|
|
431
438
|
{
|
|
432
439
|
"name": "permissions extension entry",
|
|
@@ -435,6 +442,20 @@
|
|
|
435
442
|
"limit": "32.7 kB",
|
|
436
443
|
"message": "viborm/permissions alone: permissions(), its policy compiler (placement, moves, acyclic relations, evidence and the implication that drops what administering already says), $as, can/assert through $access with explicit application predicates, and the error classes it raises from the root's shared chunks (VibORMError and its code table, ClientInitializationError, ForbiddenError), which an application already holds. Measured 13,061 B at the M2 exit (wave 5); 11,188 B at c7d1951cd. Limit = measured rounded up to 0.1 kB + 0.3 kB (OD-17). Raised 13.4 → 14.3 kB by the measured +509 B (13.91 kB) of the independent review's fixes (2026-10-16), the same code as the pg + rbac row (OD-17). Actor admission (2026-10-18) measures 29,230 B. The isolated entry now includes the public native validation factories used to require actor fields while preserving defaults, transforms and sparse output; ordinary ORM applications already share those factories (the pg + permissions application measures 189,787 B). Per-grant availability is compiled through existing public conditions. Limit follows OD-17 rounding to 0.1 kB plus 0.3 kB. Permissions application reuse (2026-10-18) measures 30,020 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Cold compilation sharing (2026-10-18) measures 30,407 B: compilation-local structural keys and shared guards in the policy simplifier, and admission that parses and walks each shared sub-predicate once. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 32,160 B: per-model compilation (the policy compiler, the declaration snapshot, frozen lazy entries), $exists and { $row, up } in rules, and the refusal of field references and empty actor conditions. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 32.37 kB on CI's Node 22.12 build, so 32.3 kB → 32.7 kB under the same OD-17 rule."
|
|
437
444
|
},
|
|
445
|
+
{
|
|
446
|
+
"name": "pg application + on",
|
|
447
|
+
"path": "node_modules/.cache/viborm-size/pg-on.mjs",
|
|
448
|
+
"gzip": true,
|
|
449
|
+
"limit": "200 kB",
|
|
450
|
+
"message": "The pg application with viborm/on applied (one create hook): its difference from the pg application row is what installing write hooks costs, measured 198,157 B (+1,139 B) on 2026-10-29. Limit follows OD-17: measured rounded up to 0.1 kB plus 0.3 kB. The statements a write hook costs, lowered (2026-10-29): a PostgreSQL upsert keeps its one INSERT … ON CONFLICT and reads its arm from RETURNING (adapter.mutations.upserted, xmax = 0), and without RETURNING a createMany whose rows carry their keys is one INSERT plus one read and a delete with a scalar select locks and reads its rows in one SELECT … FOR UPDATE: measures 198.45 kB; 198.5 kB → 198.8 kB under the same OD-17 rule. The adversarial review's fixes (2026-10-29: the hooked value cut back before any extension sees it, the upsert arm reported before planning, a probe in the same unit where an adapter has no marker, one failing array hook no longer hiding the next, copied rows and arguments, declarations checked when applied) measure 198.91 kB; 198.8 kB → 199.3 kB under the same OD-17 rule. viborm/on nested writes and onError (2026-10-29: nested rows captured by key in the operation's own unit, nested updateMany/deleteMany from their own RETURNING, a failing hook reported to onError instead of failing its committed write) measures 199.68 kB; 199.3 kB → 200 kB under the same OD-17 rule."
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "on extension entry",
|
|
454
|
+
"path": "node_modules/.cache/viborm-size/on-entry.mjs",
|
|
455
|
+
"gzip": true,
|
|
456
|
+
"limit": "8.5 kB",
|
|
457
|
+
"message": "viborm/on alone: on(), its write plan and delivery, with what it imports from shared chunks (the QueryError class and the error diagnostics behind it, the identity registry, the engine's write sinks), measured 7,613 B on 2026-10-29. Limit follows OD-17: measured rounded up to 0.1 kB plus 0.3 kB. viborm/on nested writes and onError (2026-10-29: nested rows captured by key in the operation's own unit, nested updateMany/deleteMany from their own RETURNING, a failing hook reported to onError instead of failing its committed write) measures 8.18 kB; 8 kB → 8.5 kB under the same OD-17 rule."
|
|
458
|
+
},
|
|
438
459
|
{
|
|
439
460
|
"name": "identifier generators only",
|
|
440
461
|
"path": "node_modules/.cache/viborm-size/ids-only.mjs",
|
|
@@ -451,8 +472,8 @@
|
|
|
451
472
|
"name": "every public entry",
|
|
452
473
|
"path": "node_modules/.cache/viborm-size/full.mjs",
|
|
453
474
|
"gzip": true,
|
|
454
|
-
"limit": "
|
|
455
|
-
"message": "Raised 394 → 398.1 kB by the measured +5,700 B (397.74 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 398.1 → 405.9 kB by the measured +7,818 B (405.56 kB) of RBAC M2 wave 5: the fixture now exports viborm/rbac (U10), the entry's placement, moves and evidence (U9), and the core growth of E5 and OD-10 (OD-17, measured + 0.3 kB headroom). Raised 405.9 → 406.9 kB by the measured +692 B (406.59 kB) of the independent review's fixes (2026-10-16): the rbac entry's refusals and prover fixes, and the marker judgement in core (OD-17). The permissions rename and conditional-read simplification fixes measure 407,193 B (2026-10-17); limit 407.5 kB follows OD-17 rounding plus 0.3 kB. Raised by the second review's fixes (2026-10-17: typed VALUES rows for judged inserts, caller-text runs in shared-body keys, isolated nesting levels on D1), measured 407.81 kB after the permissions rename; limit = measured rounded up to 0.1 kB + 0.3 kB (OD-17). Actor admission and polymorphic projection consistency (2026-10-18) measure 409,474 B; limit follows OD-17 rounding to 0.1 kB plus 0.3 kB. Permissions application reuse (2026-10-18) measures 410,754 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Cold compilation sharing (2026-10-18) measures 411,254 B: compilation-local structural keys and shared guards in the policy simplifier, and admission that parses and walks each shared sub-predicate once. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 415,968 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 418,009 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 422,953 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 427,195 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 428,233 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 428,889 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Incremental snapshot artifacts (2026-10-22) measure 430,540 B after two bundle-reduction reviews. Owner-approved limit follows rounding up to 0.1 kB plus 0.3 kB headroom; other resource and coverage limits are unchanged. Final prune-review fixes measure 430,609 B and remain within that approved limit. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 429,766 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Incremental snapshot artifacts merged with shared connect UPDATEs and batched planning reads (2026-10-23) measure 431,468 B together. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 432.54 kB on CI's Node 22.12 build, so 431.8 kB → 432.9 kB under the same OD-17 rule. Keyed snapshot deltas (1.5.0, 2026-10-25: snapshot-delta-2 reading, the named-element encoder and its positional fallback) measure 433,314 B on CI's Node 22.12 and Node 24 builds, so 432.9 kB → 433.7 kB under the same OD-17 rule."
|
|
475
|
+
"limit": "438.6 kB",
|
|
476
|
+
"message": "Raised 394 → 398.1 kB by the measured +5,700 B (397.74 kB) of RBAC M2 wave 4 (K4 produced rows judged in the statement, K5 evidence and read-gated fields; OD-17, measured + 0.3 kB headroom). Raised 398.1 → 405.9 kB by the measured +7,818 B (405.56 kB) of RBAC M2 wave 5: the fixture now exports viborm/rbac (U10), the entry's placement, moves and evidence (U9), and the core growth of E5 and OD-10 (OD-17, measured + 0.3 kB headroom). Raised 405.9 → 406.9 kB by the measured +692 B (406.59 kB) of the independent review's fixes (2026-10-16): the rbac entry's refusals and prover fixes, and the marker judgement in core (OD-17). The permissions rename and conditional-read simplification fixes measure 407,193 B (2026-10-17); limit 407.5 kB follows OD-17 rounding plus 0.3 kB. Raised by the second review's fixes (2026-10-17: typed VALUES rows for judged inserts, caller-text runs in shared-body keys, isolated nesting levels on D1), measured 407.81 kB after the permissions rename; limit = measured rounded up to 0.1 kB + 0.3 kB (OD-17). Actor admission and polymorphic projection consistency (2026-10-18) measure 409,474 B; limit follows OD-17 rounding to 0.1 kB plus 0.3 kB. Permissions application reuse (2026-10-18) measures 410,754 B: private policy-definition caching, immutable row admission and control-reference reuse. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Cold compilation sharing (2026-10-18) measures 411,254 B: compilation-local structural keys and shared guards in the policy simplifier, and admission that parses and walks each shared sub-predicate once. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.2 (2026-10-19) measures 415,968 B: per-model policy compilation (lazy rows.verbs entries admitted on first use, lazy acyclic, per-chain reference checks), $exists and { $row, up } in row predicates (admission, preparation and lowering frames, shared or correlated bodies, the write re-judgement that reads them), and repeated bodies shared in UPDATE and DELETE statements. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.3.3 (2026-10-19) measures 418,009 B: to-one relation ordering through one LEFT JOIN, the mixed-direction cursor bound, outer-reference chains joined into one EXISTS, merged quantifiers, shared bodies in located lookups, the NOT MATERIALIZED spelling, the upsert refusal's cause; schema validation rules no longer kept (-1.65 kB). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. 1.4.0 (2026-10-20) measures 422,953 B: writes answering relation projections in their own statement, findUnique batching (+1.75 kB), the undefined bulk-where refusal and $extends result computed fields (+2.2 kB), SQLite AS MATERIALIZED nested bodies, single-window distinct, junction-joined many-to-many filters on SQLite. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Neki relation budget (2026-10-21) measures 427,195 B: recursive walks carrying the columns their next hop reads, and past 256 relations a statement's repeated walks as one reaching set and rows joined to the key sets they test, one-column sets held as PostgreSQL arrays (relationsPerStatement: stated, or 256 where a PostgreSQL driver reads Neki from its first connection's startup or first refusal; D1 256). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Nested-write round trips (2026-10-22) measures 428,233 B: a nested write answering its result out of its root statement, a nested root update locating its row in its own UPDATE, and an upsert probe holding the row it finds on PostgreSQL (locksMissingKeys). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. To-many targets read together (2026-10-22) measures 428,889 B: a to-many connect or set reading its targets in one statement and linking them in one INSERT (Selection.rows, linkMany). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Incremental snapshot artifacts (2026-10-22) measure 430,540 B after two bundle-reduction reviews. Owner-approved limit follows rounding up to 0.1 kB plus 0.3 kB headroom; other resource and coverage limits are unchanged. Final prune-review fixes measure 430,609 B and remain within that approved limit. Shared connect UPDATEs and batched planning reads (2026-10-23) measure 429,766 B: reference-side connect and set targets moved by one UPDATE (updateRows), and on D1 and Neon HTTP a nested write’s planning lookups read in one read-only batch (readTogether). Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. Incremental snapshot artifacts merged with shared connect UPDATEs and batched planning reads (2026-10-23) measure 431,468 B together. Limit follows the approved OD-17 measured rounding to 0.1 kB plus 0.3 kB; resource and coverage limits are unchanged. The 1.4.1 fixes (opt-in findUnique batching in its leader's context, non-null unique selectors, grouped batch-route reads, indexed target matching; 2026-10-24) measure 432.54 kB on CI's Node 22.12 build, so 431.8 kB → 432.9 kB under the same OD-17 rule. Keyed snapshot deltas (1.5.0, 2026-10-25: snapshot-delta-2 reading, the named-element encoder and its positional fallback) measure 433,314 B on CI's Node 22.12 and Node 24 builds, so 432.9 kB → 433.7 kB under the same OD-17 rule. 1.5.1 (2026-10-26) measures 434,030 B: provider codes of any SQLSTATE-shaped class kept, a PostgreSQL connection lost under a statement mapped to a retryable ConnectionError, a migration failure keeping its cause's disclosure, and the client symbol migrations read diagnostics through (and, in this bundle, Neki's stepwise migrations, the disclosing migration session and located migration failures); 433.7 kB → 434.4 kB under the same OD-17 rule. viborm/on (2026-10-29) measures 435,652 B: the fixture now exports viborm/on (its entry, its plan and delivery) and core's write-hooks seam; 434.4 kB → 436 kB under the same OD-17 rule. The statements a write hook costs, lowered (2026-10-29): a PostgreSQL upsert keeps its one INSERT … ON CONFLICT and reads its arm from RETURNING (adapter.mutations.upserted, xmax = 0), and without RETURNING a createMany whose rows carry their keys is one INSERT plus one read and a delete with a scalar select locks and reads its rows in one SELECT … FOR UPDATE: measures 435.94 kB; 436 kB → 436.3 kB under the same OD-17 rule. The adversarial review's fixes (2026-10-29: the hooked value cut back before any extension sees it, the upsert arm reported before planning, a probe in the same unit where an adapter has no marker, one failing array hook no longer hiding the next, copied rows and arguments, declarations checked when applied) measure 436.49 kB; 436.3 kB → 436.8 kB under the same OD-17 rule. viborm/on nested writes and onError (2026-10-29: nested rows captured by key in the operation's own unit, nested updateMany/deleteMany from their own RETURNING, a failing hook reported to onError instead of failing its committed write) measures 437.29 kB; 436.8 kB → 437.6 kB under the same OD-17 rule. Raised 437.6 → 438.6 kB by the measured +719 B over the limit (438.32 kB) of #85 (1.6.0) and on()'s reachability gate (measured + 0.3 kB headroom)."
|
|
456
477
|
}
|
|
457
478
|
]
|
|
458
479
|
}
|
package/dist/base-D3m1S7Uc.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-BuuaeEvq.mjs";const t=`[Truncated]`,n=`[Unreadable]`,r=[`code`,`errno`,`sqlState`,`sqlstate`,`status`,`statusCode`],i=4096,a=/^\d{3}$/,o=/^[0-9A-Z]{5}$/,s=/^V\d{4,5}$/,c=/^P\d{4}$/,l=new Set(`00.01.02.03.08.09.0A.0B.0F.0L.0P.0Z.20.21.22.23.24.25.26.27.28.2B.2D.2F.34.38.39.3B.3D.3F.40.42.44.53.54.55.57.58.72.F0.HV.HY.IM.P0.S0.XA.XX`.split(`.`)),u=new Set(`CONNECTION_CLOSED.ABORTED.ALREADY_EXISTS.CANCELLED.DATA_LOSS.DEADLINE_EXCEEDED.EACCES.EADDRINUSE.EADDRNOTAVAIL.EAFNOSUPPORT.EAI_AGAIN.EALREADY.EBADF.EBUSY.ECONNABORTED.ECONNREFUSED.ECONNRESET.EEXIST.EHOSTUNREACH.EINTR.EINVAL.EISCONN.EMFILE.ENETUNREACH.ENFILE.ENOENT.ENOSPC.ENOTCONN.ENOTFOUND.EPERM.EPIPE.ER_BAD_FIELD_ERROR.ER_BAD_NULL_ERROR.ER_CON_COUNT_ERROR.ER_DATA_OUT_OF_RANGE.ER_NO_SUCH_TABLE.ER_TOO_MANY_USER_CONNECTIONS.ER_WARN_DATA_OUT_OF_RANGE.ER_CHECK_CONSTRAINT_VIOLATED.ER_DUP_ENTRY.ER_INVALID_JSON_TEXT_IN_PARAM.ER_LOCK_DEADLOCK.ER_LOCK_WAIT_TIMEOUT.ER_NO_REFERENCED_ROW_2.ER_ROW_IS_REFERENCED_2.EROFS.ETIMEDOUT.FAILED_PRECONDITION.INTERNAL.INVALID_ARGUMENT.NOT_FOUND.OUT_OF_RANGE.PERMISSION_DENIED.RESOURCE_EXHAUSTED.SQLITE_BUSY.SQLITE_BUSY_RECOVERY.SQLITE_BUSY_SNAPSHOT.SQLITE_BUSY_TIMEOUT.SQLITE_CONSTRAINT.SQLITE_CONSTRAINT_CHECK.SQLITE_CONSTRAINT_FOREIGNKEY.SQLITE_CONSTRAINT_NOTNULL.SQLITE_CONSTRAINT_UNIQUE.SQLITE_ERROR.SQLITE_LOCKED.SQLITE_LOCKED_SHAREDCACHE.SQLITE_LOCKED_VTAB.UNAUTHENTICATED.UNAVAILABLE.UNIMPLEMENTED.UNKNOWN`.split(`.`));function sanitizeBytes(e,t){let n=Math.min(e.byteLength,128,Math.max(0,256-t.entries)),r=[];for(let t=0;t<n;t+=1)r.push(e[t]);let i=createSafeRecord();return defineSafe(i,`type`,`binary`),defineSafe(i,`byteLength`,e.byteLength),defineSafe(i,`bytes`,r),e.byteLength>n&&defineSafe(i,`truncated`,!0),t.entries+=n,i}function sanitizeString(e,n){let r=Math.max(0,32768-n.characters),a=Math.min(e.length,i,r);return n.characters+=a,a===e.length?e:`${e.slice(0,a)}${t}`}function safeErrorString(e,t,n){let r=safeRead(e,t);return sanitizeString(typeof r==`string`?r:`Error`,n)}function getNestedCause(e){let t=safeRead(e,`originalCause`);if(isError(t))return t;let n=safeRead(e,`cause`);return isError(n)?n:void 0}function safeRead(e,t){try{return Reflect.get(e,t)}catch{return n}}function safeHasOwn(e,t){try{return Object.hasOwn(e,t)}catch{return!1}}function safeOwnPropertyDescriptor(e,t){try{return Reflect.getOwnPropertyDescriptor(e,t)}catch{return}}function isArrayValue(e){try{return Array.isArray(e)}catch{return!1}}function safeArrayLength(e){let t=safeRead(e,`length`);return typeof t==`number`&&Number.isSafeInteger(t)&&t>=0?t:0}function createSafeRecord(){return Object.create(null)}function defineSafe(e,t,n){try{Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0})}catch{}}function defineHidden(e,t,n){try{Object.defineProperty(e,t,{configurable:!1,enumerable:!1,value:n,writable:!1})}catch{}}function filterSafeErrorProperty(e,t){return e===`errno`?sanitizeProviderErrno(t):e===`sqlState`||e===`sqlstate`?sanitizeSqlState(t):e===`status`||e===`statusCode`?sanitizeProviderStatus(t):sanitizeProviderCode(t)}function sanitizeProviderCode(e){if(typeof e==`number`)return sanitizeProviderErrno(e);if(!(typeof e!=`string`||e.length>64))return s.test(e)||sanitizeSqlState(e)!==void 0||u.has(e)?e:void 0}function sanitizeProviderErrno(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0&&e<=2147483647?e:void 0}function sanitizeSqlState(e){return typeof e==`string`&&o.test(e)&&l.has(e.slice(0,2))?e:void 0}function sanitizeProviderStatus(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=100&&e<=999||typeof e==`string`&&a.test(e)?e:void 0}function isTrustedCode(e){return typeof e==`string`&&s.test(e)}function sanitizeTrustedCode(e){return isTrustedCode(e)?e:`V9001`}function sanitizeTrustedPrismaCode(e){return typeof e==`string`&&c.test(e)?e:void 0}function boundTrustedString(e){return e.length<=i?e:`${e.slice(0,i)}${t}`}function safeDateString(e){try{let t=Date.prototype.getTime.call(e);return Number.isFinite(t)?Date.prototype.toISOString.call(e):`Invalid Date`}catch{return`Invalid Date`}}function freezeDiagnosticValue(e){if(typeof e!=`object`||!e)return e;try{for(let t of Reflect.ownKeys(e)){let n=safeOwnPropertyDescriptor(e,t);n&&`value`in n&&freezeDiagnosticValue(n.value)}return Object.freeze(e)}catch{return e}}function isRecord(e){try{return typeof e==`object`&&!!e&&!Array.isArray(e)}catch{return!1}}function isError(e){try{return e instanceof Error}catch{return!1}}function errorCause(e){return isError(e)?e:Error(`A non-Error value was thrown.`,{cause:e})}function toError(e){return isError(e)?e:Error(describeThrown(e),{cause:e})}function describeThrown(e){try{return String(e)}catch{return`a thrown ${typeof e} whose own string conversion threw`}}const d=Object.freeze({includeParams:!1,includeSql:!1}),f=new Set([`query`,`querytext`,`sql`,`statement`]),p=new Set([`arguments`,`bindings`,`parameters`,`params`,`values`]),m=new Set([`cause`,`originalcause`]),text=e=>typeof e==`string`?e:void 0,flag=e=>typeof e==`boolean`?e:void 0,count=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0&&e<=2**53-1?e:void 0,h=new Set([`none`,`committed`,`partial`,`may-have-committed`]),commitCertainty=e=>e===`committed`||e===`may-have-committed`?e:void 0,effectState=e=>typeof e==`string`&&h.has(e)?e:void 0,g=new Map([[`actualChecksum`,text],[`actualResultCount`,count],[`actualRowCount`,count],[`autoIncrement`,flag],[`callsite`,text],[`candidates`,sanitizeStringArray],[`clientTarget`,text],[`column`,text],[`columns`,sanitizeStringArray],[`command`,text],[`commitCertainty`,commitCertainty],[`conflictsWith`,text],[`constraint`,text],[`context`,text],[`correlationId`,text],[`deprecation`,text],[`dialect`,text],[`dispatchId`,text],[`driver`,text],[`effectState`,effectState],[`estateHash`,text],[`expectedChecksum`,text],[`expectedResultCount`,count],[`expectedRowCount`,count],[`expectedStatementCount`,count],[`feature`,text],[`field`,text],[`fromState`,text],[`hint`,text],[`indexName`,text],[`indexType`,text],[`journalTarget`,text],[`lastConfirmedStep`,text],[`method`,text],[`migrationIndex`,count],[`migrationName`,text],[`migrationsDir`,text],[`model`,text],[`namespace`,text],[`notice`,text],[`operation`,text],[`operationId`,text],[`parameterIndex`,count],[`params`,e=>isArrayValue(e)?e:void 0],[`partial`,flag],[`planHash`,text],[`providerCode`,sanitizeProviderCode],[`providerErrno`,sanitizeProviderErrno],[`providerSqlState`,sanitizeSqlState],[`providerStatus`,sanitizeProviderStatus],[`query`,text],[`recordSeriesProgress`,sanitizeRecordSeriesProgress],[`referencedTable`,text],[`relation`,text],[`relations`,sanitizeStringArray],[`representation`,text],[`resultIndex`,count],[`scalarType`,text],[`reason`,text],[`stateId`,text],[`statementIndex`,count],[`step`,text],[`strategy`,text],[`table`,text],[`target`,text],[`timeout`,count],[`toState`,text],[`type`,text]]),_=new Set([...g.keys()].filter(e=>e!==`deprecation`&&e!==`notice`)),v=`Underlying error details redacted`,y=`[Circular]`,b=t,x=n,S=Symbol(`viborm.trustedErrorSnapshot`),C=Symbol(`viborm.trustedRecordSeriesProgress`);function resolveDiagnosticDisclosure(e){return{includeSql:ownValue(e,`includeSql`)===!0,includeParams:ownValue(e,`includeParams`)===!0,includeProviderDetails:ownValue(e,`includeProviderDetails`)===!0,includeCallsite:ownValue(e,`includeCallsite`)===!0}}function sanitizeErrorMetadata(e,t){return sanitizeAllowedRecord(e,_,t,!1)}function sanitizeDiagnosticParameters(e,t){return sanitizeArray(e,createState(t),0,!1,!0)}function sanitizeErrorForLogging(e,t){let n=getTrustedErrorDisclosure(e);return sanitizeError(e,createState({...t,includeProviderDetails:n?.includeProviderDetails===!0||t?.includeProviderDetails===!0,includeCallsite:n?.includeCallsite===!0||t?.includeCallsite===!0}),0,!1)}function sanitizeErrorCause(e,t){return sanitizeError(e,createState(t),0,!0)}function serializeSanitizedError(e,t){if(e)return serializeError(e,createState(t),0)}function registerTrustedError(e,t){let n=resolveDiagnosticDisclosure(t.disclosure);defineHidden(e,S,Object.freeze({cause:t.cause?freezeDiagnosticValue(sanitizeError(t.cause,createState(n),0,!0)):void 0,code:sanitizeTrustedCode(t.code),disclosure:n,message:boundTrustedString(t.message),meta:freezeDiagnosticValue(sanitizeErrorMetadata(t.meta,n)),name:boundTrustedString(t.name),prismaCode:sanitizeTrustedPrismaCode(t.prismaCode),timestamp:safeDateString(t.timestamp),...t.validation?{validation:freezeDiagnosticValue(sanitizeValidationDetails(t.validation))}:{}}))}function serializeTrustedError(e){let t=getTrustedErrorSnapshot(e);if(!t)return;let n=createSafeRecord();return defineSafe(n,`name`,t.name),defineSafe(n,`message`,t.message),defineSafe(n,`code`,t.code),t.prismaCode!==void 0&&defineSafe(n,`prismaCode`,t.prismaCode),defineSafe(n,`meta`,trustedMetaWithRecordSeriesProgress(e,t)),t.validation&&(defineSafe(n,`source`,t.validation.source),defineSafe(n,`issues`,t.validation.issues)),defineSafe(n,`timestamp`,t.timestamp),defineSafe(n,`cause`,serializeSanitizedError(t.cause,t.disclosure)),n}function registerTrustedRecordSeriesProgress(e,t){defineHidden(e,C,freezeDiagnosticValue(t))}function getTrustedRecordSeriesProgress(e){return sanitizeRecordSeriesProgress(safeRead(e,C))}function sanitizeRecordSeriesProgress(e){if(!isRecord(e))return;let t=safeRead(e,`atomicity`),n=safeRead(e,`phase`),r=safeProgressInteger(safeRead(e,`committedSegments`)),i=safeProgressInteger(safeRead(e,`completedMembers`)),a=safeProgressInteger(safeRead(e,`committedWriteMembers`)),o=safeRead(e,`mayHaveCommittedSegment`),s=safeRead(e,`totalMembers`),c=s===void 0?void 0:safeProgressInteger(s),l=safeRead(e,`memberPath`),u=l===void 0?void 0:sanitizeProgressMemberPath(l);if(!(t!==`segment`||!isRecordSeriesProgressPhase(n)||r===void 0||i===void 0||a===void 0||o!==void 0&&o!==!0||s!==void 0&&c===void 0||l!==void 0&&u===void 0))return Object.freeze({atomicity:t,phase:n,committedSegments:r,completedMembers:i,committedWriteMembers:a,...o===!0?{mayHaveCommittedSegment:!0}:{},...u?{memberPath:Object.freeze(u)}:{},...c===void 0?{}:{totalMembers:c}})}function isRecordSeriesProgressPhase(e){return e===`capture`||e===`planning`||e===`prefix`||e===`member`||e===`suffix`||e===`result`||e===`invalidation`}function getTrustedErrorCause(e){return getTrustedErrorSnapshot(e)?.cause}const w=/([a-z][a-z0-9+.-]*:\/\/)[^/\s]*@/gi,T=/([a-z][a-z0-9+.-]*:\/\/)[^/\s]*:[^/\s]*$/gi,E=/\bBearer\s+[^\s,;]+/gi,D=/((?:password|passwd|pwd|token|auth[_-]?token|api[_-]?key|secret)["']?\s*[=:]\s*)(?:"[^"\n]*"|'[^'\n]*'|[^\s&,;]+)/gi;function ownValue(e,t){if(typeof e!=`object`||!e)return;let n=safeOwnPropertyDescriptor(e,t);return n&&`value`in n?n.value:void 0}function sanitizeDiagnosticText(e,t){return sanitizeString(e,t).replace(w,`$1[REDACTED]@`).replace(T,`$1[REDACTED]`).replace(D,`$1[REDACTED]`).replace(E,`Bearer [REDACTED]`)}function getTrustedErrorDisclosure(e){return getTrustedErrorSnapshot(e)?.disclosure}function sanitizeValidationDetails(e){let t=createState(),n=createSafeRecord();for(let r of[`kind`,`operation`,`model`,`property`,`builder`,`path`,`target`,`schemaType`]){let i=ownValue(e.source,r);typeof i==`string`&&defineSafe(n,r,sanitizeDiagnosticText(i,t))}let r=[];if(isArrayValue(e.issues))for(let n=0;n<Math.min(safeArrayLength(e.issues),128);n+=1){let i=ownValue(e.issues,String(n)),a=ownValue(i,`path`),o=ownValue(i,`message`);typeof a==`string`&&typeof o==`string`&&r.push({path:sanitizeDiagnosticText(a,t),message:sanitizeDiagnosticText(o,t)})}return{source:n,issues:r}}function createState(e){return{disclosure:resolveDiagnosticDisclosure(e),seen:new WeakSet,entries:0,characters:0}}function sanitizeUnknown(e,t,n,r,i){try{if(n>8||t.entries>=256)return b;if(typeof e==`string`)return r?v:sanitizeString(e,t);if(e===null||typeof e==`number`||typeof e==`boolean`)return e;if(typeof e==`bigint`)return sanitizeString(e.toString(),t);if(e===void 0)return`[Undefined]`;if(typeof e==`symbol`)return sanitizeString(String(e),t);if(typeof e==`function`)return`[Function]`;if(e instanceof Error)return sanitizeError(e,t,n,!0);if(e instanceof Date){let n=Date.prototype.getTime.call(e);return Number.isFinite(n)?sanitizeString(Date.prototype.toISOString.call(e),t):`[Invalid Date]`}return e instanceof ArrayBuffer?sanitizeBytes(new Uint8Array(e),t):ArrayBuffer.isView(e)?sanitizeBytes(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t):t.seen.has(e)?y:(t.seen.add(e),isArrayValue(e)?sanitizeArray(e,t,n,r,i):sanitizeObject(e,t,n,r,i))}catch{return x}}function sanitizeArray(e,t,n,r,i){let a=Math.min(safeArrayLength(e),128),o=[];for(let s=0;s<a;s+=1){if(t.entries>=256){o.push(b);break}t.entries+=1;let a=safeOwnPropertyDescriptor(e,String(s)),c=a&&`value`in a?a.value:x;o.push(sanitizeUnknown(c,t,n+1,r,i))}return safeArrayLength(e)>a&&o.push(b),o}function sanitizeObject(e,t,n,r,i){let a=createSafeRecord();try{for(let o in e){if(!safeHasOwn(e,o))continue;if(t.entries>=256){defineSafe(a,`truncated`,b);break}let s=o.length<=64?o.toLowerCase():``;if(!i&&f.has(s)&&!t.disclosure.includeSql||!i&&p.has(s)&&!t.disclosure.includeParams||r&&(s===`stack`||!t.disclosure.includeProviderDetails&&(s===`message`||s===`detail`||s===`hint`))||s===`callsite`&&!t.disclosure.includeCallsite)continue;t.entries+=1;let c=safeOwnPropertyDescriptor(e,o),l=c&&`value`in c?c.value:x;defineSafe(a,sanitizeString(o,t),sanitizeUnknown(l,t,n+1,r||!i&&m.has(s),i||p.has(s)))}}catch{defineSafe(a,`unreadable`,x)}return a}function sanitizeError(e,t,n,i){if(n>8)return Error(b);if(t.seen.has(e))return Error(y);t.seen.add(e);let a=i?void 0:getTrustedErrorSnapshot(e),o=t.disclosure.includeProviderDetails?ownValue(e,`message`):void 0,s=Error(!a&&typeof o==`string`?sanitizeDiagnosticText(o,t):i?v:a?sanitizeString(a.message,t):`Error details redacted`);if(s.name=a?sanitizeString(a.name,t):`Error`,s.stack=void 0,t.disclosure.includeProviderDetails&&!a)for(let n of[`detail`,`hint`]){let r=ownValue(e,n);typeof r==`string`&&defineSafe(s,n,sanitizeDiagnosticText(r,t))}if(a)defineSafe(s,`code`,a.code),a.prismaCode!==void 0&&defineSafe(s,`prismaCode`,a.prismaCode);else for(let t of r){let n=filterSafeErrorProperty(t,ownValue(e,t));n!==void 0&&defineSafe(s,t,n)}let c=a?trustedMetaWithRecordSeriesProgress(e,a):void 0;if(!i&&c&&defineSafe(s,`meta`,sanitizeErrorMetadata(c,t.disclosure)),a){defineSafe(s,`timestamp`,a.timestamp),registerTrustedError(s,{cause:a.cause,code:a.code,disclosure:t.disclosure,message:a.message,meta:a.meta,name:a.name,prismaCode:a.prismaCode,timestamp:new Date(a.timestamp),...a.validation?{validation:{source:a.validation.source,issues:a.validation.issues}}:{}}),Object.defineProperty(s,`toJSON`,{value:()=>serializeTrustedError(s)});let n=sanitizeRecordSeriesProgress(safeRead(e,C));n&®isterTrustedRecordSeriesProgress(s,n)}let l=a?.cause??getNestedCause(e);if(l){let e=sanitizeError(l,t,n+1,!0);defineSafe(s,`cause`,e),defineSafe(s,`originalCause`,e)}return s}function sanitizeAllowedRecord(e,t,n,r){let i=createSafeRecord(),a=createState(n);for(let n of t){let t=safeOwnPropertyDescriptor(e,n);if(!(t&&`value`in t))continue;let o=filterAllowedDiagnosticValue(n,n===`callsite`&&typeof t.value==`string`?sanitizeDiagnosticText(t.value,a):t.value,r);o!==void 0&&defineSafe(i,n,o)}return sanitizeObject(i,a,0,!1,!1)}function filterAllowedDiagnosticValue(e,t,n){return e===`event`&&n?typeof t==`string`&&[`bypass`,`hit`,`miss`,`revalidate`].includes(t)?t:void 0:e===`status`&&n?typeof t==`string`&&[`cache-set-failed`,`error`,`fresh`,`stale`,`start`,`success`].includes(t)?t:void 0:g.get(e)?.(t)}function safeProgressInteger(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:void 0}function sanitizeProgressMemberPath(e){if(!isArrayValue(e))return;let t=safeArrayLength(e);if(t>32)return;let n=[];for(let r=0;r<t;r+=1){let t=safeOwnPropertyDescriptor(e,String(r));if(!(t&&`value`in t))return;let i=safeProgressInteger(t.value);if(i===void 0)return;n.push(i)}return n}function trustedMetaWithRecordSeriesProgress(e,t){let n=sanitizeErrorMetadata(t.meta,t.disclosure),r=sanitizeRecordSeriesProgress(safeRead(e,C));return r&&defineSafe(n,`recordSeriesProgress`,r),n}function sanitizeStringArray(e){if(!isArrayValue(e))return;let t=Math.min(safeArrayLength(e),128),n=[];for(let r=0;r<t;r+=1){let t=safeOwnPropertyDescriptor(e,String(r));if(!(t&&`value`in t)||typeof t.value!=`string`)return;n.push(t.value)}return n}function getTrustedErrorSnapshot(e){let t=safeRead(e,S);if(!isRecord(t))return;let n=safeRead(t,`cause`),r=safeRead(t,`code`),i=safeRead(t,`disclosure`),a=safeRead(t,`message`),o=safeRead(t,`meta`),s=safeRead(t,`name`),c=sanitizeTrustedPrismaCode(safeRead(t,`prismaCode`)),l=safeRead(t,`timestamp`),u=ownValue(t,`validation`);if(!(n!==void 0&&!isError(n)||typeof r!=`string`||!isResolvedDisclosure(i)||typeof a!=`string`||!isRecord(o)||typeof s!=`string`||typeof l!=`string`))return{cause:n,code:r,disclosure:i,message:a,meta:o,name:s,prismaCode:c,timestamp:l,...isRecord(u)?{validation:u}:{}}}function isResolvedDisclosure(e){return isRecord(e)&&typeof e.includeSql==`boolean`&&typeof e.includeParams==`boolean`&&typeof e.includeProviderDetails==`boolean`&&typeof e.includeCallsite==`boolean`}function serializeError(e,t,n){let i=createSafeRecord();if(t.seen.has(e))return defineSafe(i,`name`,`Error`),defineSafe(i,`message`,y),i;t.seen.add(e),defineSafe(i,`name`,safeErrorString(e,`name`,t)),defineSafe(i,`message`,safeErrorString(e,`message`,t));for(let t of r){let n=filterSafeErrorProperty(t,ownValue(e,t));n!==void 0&&defineSafe(i,t,n)}if(t.disclosure.includeProviderDetails)for(let n of[`detail`,`hint`]){let r=ownValue(e,n);typeof r==`string`&&defineSafe(i,n,sanitizeDiagnosticText(r,t))}let a=safeRead(e,`meta`);isRecord(a)&&defineSafe(i,`meta`,sanitizeUnknown(a,t,n+1,!0,!1));let o=getNestedCause(e);return o&&n<8&&defineSafe(i,`cause`,serializeError(o,t,n+1)),i}let O=function(e){return e.CONNECTION_FAILED=`V1001`,e.CONNECTION_TIMEOUT=`V1002`,e.CONNECTION_CLOSED=`V1003`,e.CLIENT_INITIALIZATION=`V1004`,e.CONNECTION_CAPACITY=`V1005`,e.QUERY_FAILED=`V2001`,e.QUERY_TIMEOUT=`V2002`,e.QUERY_SYNTAX=`V2003`,e.QUERY_SCHEMA_MISMATCH=`V2004`,e.QUERY_OUT_OF_RANGE=`V2005`,e.QUERY_RESULT_INVALID=`V2006`,e.UNIQUE_CONSTRAINT=`V3001`,e.FOREIGN_KEY_CONSTRAINT=`V3002`,e.NOT_NULL_CONSTRAINT=`V3003`,e.CHECK_CONSTRAINT=`V3004`,e.VALUE_TOO_LONG=`V3005`,e.VALIDATION_FAILED=`V4001`,e.INVALID_INPUT=`V4002`,e.MISSING_REQUIRED=`V4003`,e.TRANSACTION_FAILED=`V5001`,e.TRANSACTION_TIMEOUT=`V5002`,e.DEADLOCK=`V5003`,e.SERIALIZATION_FAILURE=`V5004`,e.INVALID_TRANSACTION_INPUT=`V5005`,e.TRANSACTION_CONTENTION=`V5006`,e.RECORD_NOT_FOUND=`V6001`,e.MODEL_NOT_FOUND=`V6002`,e.RELATION_NOT_FOUND=`V6003`,e.NESTED_WRITE_FAILED=`V7001`,e.NESTED_CREATE_FAILED=`V7002`,e.NESTED_UPDATE_FAILED=`V7003`,e.NESTED_DELETE_FAILED=`V7004`,e.NESTED_CONNECT_FAILED=`V7005`,e.NESTED_WRITE_ASSERTION_FAILED=`V7006`,e.FEATURE_NOT_SUPPORTED=`V8001`,e.DRIVER_NOT_SUPPORTED=`V8002`,e.UNSUPPORTED_OPERATION=`V8003`,e.CACHE_INVALID_TTL=`V10001`,e.CACHE_INVALID_KEY=`V10002`,e.CACHE_OPERATION_NOT_CACHEABLE=`V10003`,e.CACHE_CONFIGURATION=`V10004`,e.MIGRATION_FAILED=`V11001`,e.MIGRATION_NOT_FOUND=`V11002`,e.MIGRATION_CHECKSUM_MISMATCH=`V11003`,e.MIGRATION_DIALECT_MISMATCH=`V11004`,e.MIGRATION_LOCK_FAILED=`V11005`,e.MIGRATION_ALREADY_APPLIED=`V11006`,e.MIGRATION_OUT_OF_ORDER=`V11007`,e.MIGRATION_FILE_NOT_FOUND=`V11008`,e.MIGRATION_INVALID_STATE=`V11009`,e.MIGRATION_DESTRUCTIVE_REJECTED=`V11010`,e.MIGRATION_STORAGE_REQUIRED=`V11011`,e.MIGRATION_INVALID_ESTATE=`V11012`,e.MIGRATION_PATH_REQUIRED=`V11013`,e.MIGRATION_DRIFT=`V11014`,e.MIGRATION_MARKER_CONFLICT=`V11015`,e.MIGRATION_UNFINISHED_ATTEMPT=`V11016`,e.MIGRATION_CONSENT_REQUIRED=`V11017`,e.MIGRATION_CONSENT_MISMATCH=`V11018`,e.MIGRATION_PARTIAL_EFFECT=`V11019`,e.MIGRATION_AMBIGUOUS_COMMIT=`V11020`,e.MIGRATION_UNSUPPORTED_PROVIDER=`V11021`,e.MIGRATION_CORRUPTION=`V11022`,e.MIGRATION_INVALID_INDEX=`V11023`,e.OPERATION_ALREADY_EXECUTED=`V12001`,e.OPERATION_EXECUTION_CONFLICT=`V12002`,e.OPERATION_CLIENT_MISMATCH=`V12003`,e.OPERATION_SCOPE_MISMATCH=`V12004`,e.FORBIDDEN=`V13001`,e.INTERNAL_ERROR=`V9001`,e.SCHEMA_ERROR=`V9002`,e}({});const k=new Map([[O.CONNECTION_FAILED,`P1001`],[O.CONNECTION_TIMEOUT,`P1002`],[O.CONNECTION_CLOSED,`P1017`],[O.CLIENT_INITIALIZATION,`P1012`],[O.UNIQUE_CONSTRAINT,`P2002`],[O.FOREIGN_KEY_CONSTRAINT,`P2003`],[O.NOT_NULL_CONSTRAINT,`P2011`],[O.CHECK_CONSTRAINT,`P2004`],[O.VALUE_TOO_LONG,`P2000`],[O.VALIDATION_FAILED,`P2009`],[O.RECORD_NOT_FOUND,`P2025`]]);function toPrismaErrorCode(e){return k.get(e)}var VibORMError=class extends Error{static diagnosticName=`VibORMError`;code;originalCause;meta;timestamp;constructor(e,t,n){super(e);let r=readDiagnosticName(new.target);this.name=r,this.code=t,this.originalCause=n?.cause?sanitizeErrorCause(n.cause,n?.diagnostics):void 0,this.originalCause&&Object.defineProperty(this,`cause`,{value:this.originalCause,configurable:!0,writable:!0}),this.meta=sanitizeErrorMetadata(n?.meta??{},n?.diagnostics),this.timestamp=new Date,registerTrustedError(this,{cause:this.originalCause,code:t,disclosure:n?.diagnostics,message:e,meta:this.meta,name:r,prismaCode:toPrismaErrorCode(t),timestamp:this.timestamp,validation:n?.validation}),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}get prismaCode(){return toPrismaErrorCode(this.code)}isRetryable(){return verdictFor(this.code).retryable}toJSON(){return serializeTrustedError(this)??{name:`VibORMError`,message:`VibORM operation failed`,code:O.INTERNAL_ERROR,meta:{},timestamp:`Invalid Date`}}};function readDiagnosticName(e){let t=e;for(let e=0;e<16&&typeof t==`function`;e+=1){let e=safeOwnPropertyDescriptor(t,`diagnosticName`);if(e&&`value`in e&&typeof e.value==`string`&&e.value.length>0)return e.value;try{t=Object.getPrototypeOf(t)}catch{return`VibORMError`}}return`VibORMError`}function isVibORMError(e){return e instanceof VibORMError}const A={expected:!0,retryable:!1},j={expected:!0,retryable:!0},M={expected:!1,retryable:!1},N={[O.INTERNAL_ERROR]:!0,[O.SCHEMA_ERROR]:!0},P={[O.CONNECTION_FAILED]:!0,[O.CONNECTION_CAPACITY]:!0,[O.CONNECTION_TIMEOUT]:!0,[O.QUERY_TIMEOUT]:!0,[O.DEADLOCK]:!0,[O.SERIALIZATION_FAILURE]:!0,[O.TRANSACTION_CONTENTION]:!0};function verdictFor(e){return N[e]===!0?M:P[e]===!0?j:A}function isRetryableError(e){if(isVibORMError(e))return e.isRetryable();if(e instanceof Error&&`code`in e){let t=[`40001`,`40P01`,`SQLITE_BUSY`],n=e.code;return typeof n==`string`&&t.includes(n)}return!1}function wrapError(e,t=O.INTERNAL_ERROR,n,r){return isVibORMError(e)?e:new VibORMError(`VibORM operation failed`,t,{cause:e instanceof Error?e:Error(String(e)),meta:n,diagnostics:r})}export{isRecord as C,safeRead as D,safeOwnPropertyDescriptor as E,sanitizeSqlState as O,isError as S,safeArrayLength as T,sanitizeErrorMetadata as _,toPrismaErrorCode as a,errorCause as b,getTrustedErrorCause as c,registerTrustedRecordSeriesProgress as d,resolveDiagnosticDisclosure as f,sanitizeErrorForLogging as g,sanitizeErrorCause as h,isVibORMError as i,toError as k,getTrustedErrorDisclosure as l,sanitizeDiagnosticParameters as m,O as n,wrapError as o,sanitizeAllowedRecord as p,isRetryableError as r,d as s,VibORMError as t,getTrustedRecordSeriesProgress as u,sanitizeRecordSeriesProgress as v,isTrustedCode as w,isArrayValue as x,serializeTrustedError as y};
|
|
2
|
-
//# sourceMappingURL=base-D3m1S7Uc.mjs.map
|