@inlang/sdk 2.0.0-prerelease.0 → 2.0.1
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/LICENSE +21 -201
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/json-schema/settings.d.ts +8 -10
- package/dist/json-schema/settings.d.ts.map +1 -1
- package/dist/json-schema/settings.js +4 -27
- package/dist/json-schema/settings.js.map +1 -1
- package/dist/json-schema/settings.test.d.ts +2 -0
- package/dist/json-schema/settings.test.d.ts.map +1 -0
- package/dist/json-schema/settings.test.js +26 -0
- package/dist/json-schema/settings.test.js.map +1 -0
- package/dist/lix/index.d.ts +2 -0
- package/dist/lix/index.d.ts.map +1 -0
- package/dist/lix/index.js +5 -0
- package/dist/lix/index.js.map +1 -0
- package/dist/plugin/importPlugins.test.js +2 -3
- package/dist/plugin/importPlugins.test.js.map +1 -1
- package/dist/project/api.d.ts +0 -4
- package/dist/project/api.d.ts.map +1 -1
- package/dist/project/api.js +2 -2
- package/dist/project/api.js.map +1 -1
- package/dist/project/initHandleSaveToLixOnChange.d.ts.map +1 -1
- package/dist/project/initHandleSaveToLixOnChange.js +16 -10
- package/dist/project/initHandleSaveToLixOnChange.js.map +1 -1
- package/dist/project/loadProject.d.ts +11 -1
- package/dist/project/loadProject.d.ts.map +1 -1
- package/dist/project/loadProject.js +79 -16
- package/dist/project/loadProject.js.map +1 -1
- package/dist/project/loadProject.test.js +45 -22
- package/dist/project/loadProject.test.js.map +1 -1
- package/dist/project/loadProjectFromDirectory.d.ts +2 -11
- package/dist/project/loadProjectFromDirectory.d.ts.map +1 -1
- package/dist/project/loadProjectFromDirectory.js +68 -89
- package/dist/project/loadProjectFromDirectory.js.map +1 -1
- package/dist/project/loadProjectFromDirectory.test.js +89 -12
- package/dist/project/loadProjectFromDirectory.test.js.map +1 -1
- package/dist/project/loadProjectInMemory.d.ts.map +1 -1
- package/dist/project/loadProjectInMemory.js +3 -2
- package/dist/project/loadProjectInMemory.js.map +1 -1
- package/dist/project/maybeCaptureTelemetry.d.ts +8 -2
- package/dist/project/maybeCaptureTelemetry.d.ts.map +1 -1
- package/dist/project/maybeCaptureTelemetry.js +49 -37
- package/dist/project/maybeCaptureTelemetry.js.map +1 -1
- package/dist/project/maybeCaptureTelemetry.test.js +14 -3
- package/dist/project/maybeCaptureTelemetry.test.js.map +1 -1
- package/dist/project/newProject.d.ts.map +1 -1
- package/dist/project/newProject.js +6 -5
- package/dist/project/newProject.js.map +1 -1
- package/dist/project/saveProjectToDirectory.test.js +3 -3
- package/dist/project/saveProjectToDirectory.test.js.map +1 -1
- package/dist/query-utilities/index.d.ts +0 -1
- package/dist/query-utilities/index.d.ts.map +1 -1
- package/dist/query-utilities/index.js +2 -3
- package/dist/query-utilities/index.js.map +1 -1
- package/dist/services/env-variables/index.js +3 -3
- package/dist/services/env-variables/index.js.map +1 -1
- package/dist/services/telemetry/capture.d.ts +1 -0
- package/dist/services/telemetry/capture.d.ts.map +1 -1
- package/dist/services/telemetry/capture.js +5 -6
- package/dist/services/telemetry/capture.js.map +1 -1
- package/dist/services/telemetry/capture.test.js +4 -2
- package/dist/services/telemetry/capture.test.js.map +1 -1
- package/package.json +4 -10
- package/src/index.ts +0 -2
- package/src/json-schema/settings.test.ts +26 -0
- package/src/json-schema/settings.ts +3 -36
- package/src/lix/index.ts +1 -0
- package/src/plugin/importPlugins.test.ts +0 -1
- package/src/project/api.ts +0 -4
- package/src/project/initHandleSaveToLixOnChange.ts +13 -8
- package/src/project/loadProject.test.ts +51 -23
- package/src/project/loadProject.ts +108 -15
- package/src/project/loadProjectFromDirectory.test.ts +113 -10
- package/src/project/loadProjectFromDirectory.ts +79 -143
- package/src/project/loadProjectInMemory.ts +1 -0
- package/src/project/maybeCaptureTelemetry.test.ts +16 -2
- package/src/project/maybeCaptureTelemetry.ts +55 -37
- package/src/project/newProject.ts +4 -3
- package/src/project/saveProjectToDirectory.test.ts +1 -1
- package/src/query-utilities/index.ts +0 -1
- package/src/services/telemetry/capture.test.ts +2 -0
- package/src/services/telemetry/capture.ts +5 -4
- package/dist/project/state/id$.d.ts +0 -6
- package/dist/project/state/id$.d.ts.map +0 -1
- package/dist/project/state/id$.js +0 -19
- package/dist/project/state/id$.js.map +0 -1
- package/dist/project/state/id$.test.d.ts +0 -2
- package/dist/project/state/id$.test.d.ts.map +0 -1
- package/dist/project/state/id$.test.js +0 -36
- package/dist/project/state/id$.test.js.map +0 -1
- package/dist/project/state/setSettings.d.ts +0 -7
- package/dist/project/state/setSettings.d.ts.map +0 -1
- package/dist/project/state/setSettings.js +0 -16
- package/dist/project/state/setSettings.js.map +0 -1
- package/dist/project/state/setSettings.test.d.ts +0 -2
- package/dist/project/state/setSettings.test.d.ts.map +0 -1
- package/dist/project/state/setSettings.test.js +0 -58
- package/dist/project/state/setSettings.test.js.map +0 -1
- package/dist/project/state/settings$.d.ts +0 -7
- package/dist/project/state/settings$.d.ts.map +0 -1
- package/dist/project/state/settings$.js +0 -21
- package/dist/project/state/settings$.js.map +0 -1
- package/dist/project/state/settings$.test.d.ts +0 -2
- package/dist/project/state/settings$.test.d.ts.map +0 -1
- package/dist/project/state/settings$.test.js +0 -51
- package/dist/project/state/settings$.test.js.map +0 -1
- package/dist/project/state/state.d.ts +0 -58
- package/dist/project/state/state.d.ts.map +0 -1
- package/dist/project/state/state.js +0 -67
- package/dist/project/state/state.js.map +0 -1
- package/dist/project/state/state.test.d.ts +0 -2
- package/dist/project/state/state.test.d.ts.map +0 -1
- package/dist/project/state/state.test.js +0 -103
- package/dist/project/state/state.test.js.map +0 -1
- package/dist/query-utilities/pollQuery.d.ts +0 -14
- package/dist/query-utilities/pollQuery.d.ts.map +0 -1
- package/dist/query-utilities/pollQuery.js +0 -22
- package/dist/query-utilities/pollQuery.js.map +0 -1
- package/dist/query-utilities/pollQuery.test.d.ts +0 -2
- package/dist/query-utilities/pollQuery.test.d.ts.map +0 -1
- package/dist/query-utilities/pollQuery.test.js +0 -67
- package/dist/query-utilities/pollQuery.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/LICENSE +0 -21
- package/node_modules/@lix-js/sdk/README.md +0 -68
- package/node_modules/@lix-js/sdk/dist/account/create-account.d.ts +0 -7
- package/node_modules/@lix-js/sdk/dist/account/create-account.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/create-account.js +0 -20
- package/node_modules/@lix-js/sdk/dist/account/create-account.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/create-account.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/account/create-account.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/create-account.test.js +0 -22
- package/node_modules/@lix-js/sdk/dist/account/create-account.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/database-schema.d.ts +0 -18
- package/node_modules/@lix-js/sdk/dist/account/database-schema.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/database-schema.js +0 -36
- package/node_modules/@lix-js/sdk/dist/account/database-schema.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/database-schema.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/account/database-schema.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/database-schema.test.js +0 -139
- package/node_modules/@lix-js/sdk/dist/account/database-schema.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/index.d.ts +0 -4
- package/node_modules/@lix-js/sdk/dist/account/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/index.js +0 -4
- package/node_modules/@lix-js/sdk/dist/account/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/switch-account.d.ts +0 -26
- package/node_modules/@lix-js/sdk/dist/account/switch-account.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/switch-account.js +0 -34
- package/node_modules/@lix-js/sdk/dist/account/switch-account.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/switch-account.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/account/switch-account.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/account/switch-account.test.js +0 -48
- package/node_modules/@lix-js/sdk/dist/account/switch-account.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.d.ts +0 -25
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.js +0 -98
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.js +0 -222
- package/node_modules/@lix-js/sdk/dist/change/apply-changes.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/create-change.d.ts +0 -27
- package/node_modules/@lix-js/sdk/dist/change/create-change.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/create-change.js +0 -97
- package/node_modules/@lix-js/sdk/dist/change/create-change.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/create-change.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change/create-change.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/create-change.test.js +0 -235
- package/node_modules/@lix-js/sdk/dist/change/create-change.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/index.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/change/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/index.js +0 -3
- package/node_modules/@lix-js/sdk/dist/change/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/mock-change.d.ts +0 -10
- package/node_modules/@lix-js/sdk/dist/change/mock-change.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change/mock-change.js +0 -20
- package/node_modules/@lix-js/sdk/dist/change/mock-change.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.d.ts +0 -15
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.js +0 -67
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.js +0 -145
- package/node_modules/@lix-js/sdk/dist/change-conflict/create-change-conflict.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.d.ts +0 -23
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.js +0 -50
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.js +0 -182
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-change-conflicts.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.d.ts +0 -32
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.js +0 -66
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.js +0 -201
- package/node_modules/@lix-js/sdk/dist/change-conflict/detect-diverging-entity-conflict.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.d.ts +0 -14
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.js +0 -67
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.js +0 -182
- package/node_modules/@lix-js/sdk/dist/change-conflict/garbage-collect-change-conflicts.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/index.d.ts +0 -4
- package/node_modules/@lix-js/sdk/dist/change-conflict/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/index.js +0 -4
- package/node_modules/@lix-js/sdk/dist/change-conflict/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.d.ts +0 -12
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.js +0 -48
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.js +0 -95
- package/node_modules/@lix-js/sdk/dist/change-conflict/resolve-conflict-by-selecting.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.js +0 -72
- package/node_modules/@lix-js/sdk/dist/change-conflict/update-change-conflicts.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.d.ts +0 -13
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.js +0 -25
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.js +0 -47
- package/node_modules/@lix-js/sdk/dist/change-queue/change-queue-settled.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.d.ts +0 -24
- package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.js +0 -209
- package/node_modules/@lix-js/sdk/dist/change-queue/file-handlers.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/index.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-queue/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/index.js +0 -2
- package/node_modules/@lix-js/sdk/dist/change-queue/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.d.ts +0 -7
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.js +0 -80
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.js +0 -373
- package/node_modules/@lix-js/sdk/dist/change-queue/init-change-queue.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.js +0 -26
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.js +0 -138
- package/node_modules/@lix-js/sdk/dist/change-queue/with-skip-change-queue.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-schema/index.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-schema/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-schema/index.js +0 -2
- package/node_modules/@lix-js/sdk/dist/change-schema/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-schema/types.d.ts +0 -40
- package/node_modules/@lix-js/sdk/dist/change-schema/types.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-schema/types.js +0 -2
- package/node_modules/@lix-js/sdk/dist/change-schema/types.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.js +0 -34
- package/node_modules/@lix-js/sdk/dist/change-schema/types.test-d.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.d.ts +0 -19
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.js +0 -36
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.js +0 -106
- package/node_modules/@lix-js/sdk/dist/change-set/change-set-element-in-symmetric-difference.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.d.ts +0 -16
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.js +0 -33
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.js +0 -37
- package/node_modules/@lix-js/sdk/dist/change-set/create-change-set.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/index.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/change-set/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/change-set/index.js +0 -3
- package/node_modules/@lix-js/sdk/dist/change-set/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/apply-schema.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/database/apply-schema.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/apply-schema.js +0 -266
- package/node_modules/@lix-js/sdk/dist/database/apply-schema.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.d.ts +0 -18
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.js +0 -36
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.js +0 -118
- package/node_modules/@lix-js/sdk/dist/database/execute-sync.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/index.d.ts +0 -5
- package/node_modules/@lix-js/sdk/dist/database/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/index.js +0 -5
- package/node_modules/@lix-js/sdk/dist/database/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/init-db.d.ts +0 -7
- package/node_modules/@lix-js/sdk/dist/database/init-db.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/init-db.js +0 -95
- package/node_modules/@lix-js/sdk/dist/database/init-db.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/init-db.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/database/init-db.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/init-db.test.js +0 -497
- package/node_modules/@lix-js/sdk/dist/database/init-db.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.js +0 -44
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.js +0 -162
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v1.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.d.ts +0 -12
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.js +0 -149
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.js +0 -162
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.js +0 -100
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.js +0 -107
- package/node_modules/@lix-js/sdk/dist/database/kysely-plugin/serialize-jsonb-plugin.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.d.ts +0 -16
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.js +0 -101
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/database-schema.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.js +0 -18
- package/node_modules/@lix-js/sdk/dist/database/mutation-log/lix-session.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/nano-id.d.ts +0 -21
- package/node_modules/@lix-js/sdk/dist/database/nano-id.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/nano-id.js +0 -58
- package/node_modules/@lix-js/sdk/dist/database/nano-id.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/nano-id.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/database/nano-id.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/nano-id.test.js +0 -13
- package/node_modules/@lix-js/sdk/dist/database/nano-id.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/schema.d.ts +0 -212
- package/node_modules/@lix-js/sdk/dist/database/schema.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/database/schema.js +0 -2
- package/node_modules/@lix-js/sdk/dist/database/schema.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/discussion/create-comment.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/discussion/create-comment.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/discussion/create-comment.js +0 -12
- package/node_modules/@lix-js/sdk/dist/discussion/create-comment.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.d.ts +0 -21
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.js +0 -40
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.js +0 -38
- package/node_modules/@lix-js/sdk/dist/discussion/create-discussion.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/discussion/index.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/discussion/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/discussion/index.js +0 -3
- package/node_modules/@lix-js/sdk/dist/discussion/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file/index.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/file/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file/index.js +0 -2
- package/node_modules/@lix-js/sdk/dist/file/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.d.ts +0 -16
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.js +0 -44
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.js +0 -36
- package/node_modules/@lix-js/sdk/dist/file/validate-file-path.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.d.ts +0 -24
- package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.js +0 -209
- package/node_modules/@lix-js/sdk/dist/file-queue/file-handlers.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.d.ts +0 -5
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.js +0 -85
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.js +0 -373
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-process.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.d.ts +0 -13
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.js +0 -25
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.js +0 -47
- package/node_modules/@lix-js/sdk/dist/file-queue/file-queue-settled.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/index.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/file-queue/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/index.js +0 -2
- package/node_modules/@lix-js/sdk/dist/file-queue/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.js +0 -26
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.js +0 -138
- package/node_modules/@lix-js/sdk/dist/file-queue/with-skip-file-queue.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/index.d.ts +0 -17
- package/node_modules/@lix-js/sdk/dist/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/index.js +0 -17
- package/node_modules/@lix-js/sdk/dist/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.d.ts +0 -42
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.js +0 -21
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.js +0 -114
- package/node_modules/@lix-js/sdk/dist/key-value/database-schema.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/close-lix.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/lix/close-lix.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/close-lix.js +0 -7
- package/node_modules/@lix-js/sdk/dist/lix/close-lix.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/index.d.ts +0 -5
- package/node_modules/@lix-js/sdk/dist/lix/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/index.js +0 -8
- package/node_modules/@lix-js/sdk/dist/lix/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/merge.d.ts +0 -9
- package/node_modules/@lix-js/sdk/dist/lix/merge.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.d.ts +0 -15
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.js +0 -34
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.js +0 -121
- package/node_modules/@lix-js/sdk/dist/lix/merge.get-leaf-changes-only-in-source.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/merge.js +0 -195
- package/node_modules/@lix-js/sdk/dist/lix/merge.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/merge.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/lix/merge.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/merge.test.js +0 -689
- package/node_modules/@lix-js/sdk/dist/lix/merge.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.js +0 -26
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.js +0 -21
- package/node_modules/@lix-js/sdk/dist/lix/new-lix.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.d.ts +0 -12
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.js +0 -19
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.js +0 -30
- package/node_modules/@lix-js/sdk/dist/lix/open-lix-in-memory.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.d.ts +0 -50
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.js +0 -33
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.js +0 -38
- package/node_modules/@lix-js/sdk/dist/lix/open-lix.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/to-blob.d.ts +0 -11
- package/node_modules/@lix-js/sdk/dist/lix/to-blob.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/lix/to-blob.js +0 -11
- package/node_modules/@lix-js/sdk/dist/lix/to-blob.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.d.ts +0 -10
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.js +0 -69
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.js +0 -297
- package/node_modules/@lix-js/sdk/dist/own-change-control/apply-own-change.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.d.ts +0 -60
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.js +0 -70
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.js +0 -48
- package/node_modules/@lix-js/sdk/dist/own-change-control/change-controlled-tables.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.d.ts +0 -5
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.js +0 -135
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.js +0 -214
- package/node_modules/@lix-js/sdk/dist/own-change-control/database-triggers.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/index.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-change-control/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/index.js +0 -2
- package/node_modules/@lix-js/sdk/dist/own-change-control/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.js +0 -28
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.js +0 -49
- package/node_modules/@lix-js/sdk/dist/own-change-control/with-skip-own-change-control.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.d.ts +0 -10
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.js +0 -69
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.js +0 -297
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/apply-own-entity-change.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.d.ts +0 -61
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.js +0 -71
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.js +0 -48
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/change-controlled-tables.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.d.ts +0 -5
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.js +0 -135
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.js +0 -214
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/database-triggers.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.js +0 -2
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.js +0 -24
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.js +0 -49
- package/node_modules/@lix-js/sdk/dist/own-entity-change-control/with-skip-own-change-control.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/index.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/plugin/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/index.js +0 -2
- package/node_modules/@lix-js/sdk/dist/plugin/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.d.ts +0 -114
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.js +0 -2
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.js +0 -40
- package/node_modules/@lix-js/sdk/dist/plugin/lix-plugin.test-d.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.d.ts +0 -5
- package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.js +0 -20
- package/node_modules/@lix-js/sdk/dist/plugin/load-plugin.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.d.ts +0 -11
- package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.js +0 -15
- package/node_modules/@lix-js/sdk/dist/plugin/with-transaction.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.d.ts +0 -15
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.js +0 -18
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.js +0 -55
- package/node_modules/@lix-js/sdk/dist/query-filter/change-conflict-in-version.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.d.ts +0 -25
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.js +0 -30
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.js +0 -46
- package/node_modules/@lix-js/sdk/dist/query-filter/change-has-label.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.d.ts +0 -16
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.js +0 -29
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.js +0 -75
- package/node_modules/@lix-js/sdk/dist/query-filter/change-in-version.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.d.ts +0 -16
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.js +0 -35
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.js +0 -70
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-in-version.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.js +0 -132
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.bench.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.d.ts +0 -29
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.js +0 -44
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.js +0 -71
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf-of.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.d.ts +0 -18
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.js +0 -18
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.js +0 -122
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-leaf.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.d.ts +0 -16
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.js +0 -55
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.js +0 -155
- package/node_modules/@lix-js/sdk/dist/query-filter/change-is-lowest-common-ancestor-of.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.d.ts +0 -25
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.js +0 -29
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.js +0 -43
- package/node_modules/@lix-js/sdk/dist/query-filter/change-set-has-label.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/index.d.ts +0 -9
- package/node_modules/@lix-js/sdk/dist/query-filter/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/index.js +0 -9
- package/node_modules/@lix-js/sdk/dist/query-filter/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.d.ts +0 -18
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.js +0 -25
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.js +0 -85
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-difference.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.d.ts +0 -19
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.js +0 -36
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.js +0 -84
- package/node_modules/@lix-js/sdk/dist/query-filter/version-change-in-symmetric-difference.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.d.ts +0 -48
- package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.js +0 -68
- package/node_modules/@lix-js/sdk/dist/server-api-handler/create-server-api-handler.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.js +0 -97
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.js +0 -103
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/create-in-memory-environment.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.d.ts +0 -53
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.js +0 -2
- package/node_modules/@lix-js/sdk/dist/server-api-handler/environment/environment.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/index.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/server-api-handler/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/index.js +0 -3
- package/node_modules/@lix-js/sdk/dist/server-api-handler/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.js +0 -44
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.js +0 -108
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/get-v1.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.js +0 -38
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.js +0 -72
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/new-v1.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.js +0 -41
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.js +0 -146
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/pull-v1.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.js +0 -142
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.js +0 -231
- package/node_modules/@lix-js/sdk/dist/server-api-handler/routes/push-v1.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.d.ts +0 -18
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.js +0 -33
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.js +0 -54
- package/node_modules/@lix-js/sdk/dist/snapshot/create-snapshot.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/index.d.ts +0 -3
- package/node_modules/@lix-js/sdk/dist/snapshot/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/index.js +0 -3
- package/node_modules/@lix-js/sdk/dist/snapshot/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.js +0 -29
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.js +0 -10
- package/node_modules/@lix-js/sdk/dist/snapshot/json-sha-256.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.js +0 -13
- package/node_modules/@lix-js/sdk/dist/snapshot/mock-json-snapshot.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.d.ts +0 -16
- package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.js +0 -62
- package/node_modules/@lix-js/sdk/dist/sync/get-diffing-rows.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/merge-state.d.ts +0 -20
- package/node_modules/@lix-js/sdk/dist/sync/merge-state.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/merge-state.js +0 -237
- package/node_modules/@lix-js/sdk/dist/sync/merge-state.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.js +0 -113
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.js +0 -340
- package/node_modules/@lix-js/sdk/dist/sync/pull-from-server.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.d.ts +0 -12
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.js +0 -35
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.js +0 -308
- package/node_modules/@lix-js/sdk/dist/sync/push-to-server.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.d.ts +0 -5
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.js +0 -74
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.js +0 -243
- package/node_modules/@lix-js/sdk/dist/sync/sync-process.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/create-version.d.ts +0 -27
- package/node_modules/@lix-js/sdk/dist/version/create-version.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/create-version.js +0 -74
- package/node_modules/@lix-js/sdk/dist/version/create-version.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/create-version.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/version/create-version.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/create-version.test.js +0 -126
- package/node_modules/@lix-js/sdk/dist/version/create-version.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/index.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/version/index.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/index.js +0 -8
- package/node_modules/@lix-js/sdk/dist/version/index.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/merge-version.d.ts +0 -8
- package/node_modules/@lix-js/sdk/dist/version/merge-version.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/merge-version.js +0 -67
- package/node_modules/@lix-js/sdk/dist/version/merge-version.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/merge-version.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/version/merge-version.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/merge-version.test.js +0 -434
- package/node_modules/@lix-js/sdk/dist/version/merge-version.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/switch-version.d.ts +0 -27
- package/node_modules/@lix-js/sdk/dist/version/switch-version.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/switch-version.js +0 -91
- package/node_modules/@lix-js/sdk/dist/version/switch-version.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/switch-version.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/version/switch-version.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/switch-version.test.js +0 -227
- package/node_modules/@lix-js/sdk/dist/version/switch-version.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.d.ts +0 -13
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.js +0 -36
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.js.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.d.ts +0 -2
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.d.ts.map +0 -1
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.js +0 -323
- package/node_modules/@lix-js/sdk/dist/version/update-changes-in-version.test.js.map +0 -1
- package/node_modules/@lix-js/sdk/package.json +0 -52
- package/node_modules/@lix-js/sdk/src/account/create-account.test.ts +0 -26
- package/node_modules/@lix-js/sdk/src/account/create-account.ts +0 -26
- package/node_modules/@lix-js/sdk/src/account/database-schema.test.ts +0 -187
- package/node_modules/@lix-js/sdk/src/account/database-schema.ts +0 -58
- package/node_modules/@lix-js/sdk/src/account/index.ts +0 -3
- package/node_modules/@lix-js/sdk/src/account/switch-account.test.ts +0 -63
- package/node_modules/@lix-js/sdk/src/account/switch-account.ts +0 -39
- package/node_modules/@lix-js/sdk/src/change/apply-changes.test.ts +0 -268
- package/node_modules/@lix-js/sdk/src/change/apply-changes.ts +0 -114
- package/node_modules/@lix-js/sdk/src/change/create-change.test.ts +0 -296
- package/node_modules/@lix-js/sdk/src/change/create-change.ts +0 -129
- package/node_modules/@lix-js/sdk/src/change/index.ts +0 -2
- package/node_modules/@lix-js/sdk/src/change/mock-change.ts +0 -21
- package/node_modules/@lix-js/sdk/src/change-conflict/create-change-conflict.test.ts +0 -173
- package/node_modules/@lix-js/sdk/src/change-conflict/create-change-conflict.ts +0 -105
- package/node_modules/@lix-js/sdk/src/change-conflict/detect-change-conflicts.test.ts +0 -215
- package/node_modules/@lix-js/sdk/src/change-conflict/detect-change-conflicts.ts +0 -65
- package/node_modules/@lix-js/sdk/src/change-conflict/detect-diverging-entity-conflict.test.ts +0 -228
- package/node_modules/@lix-js/sdk/src/change-conflict/detect-diverging-entity-conflict.ts +0 -82
- package/node_modules/@lix-js/sdk/src/change-conflict/garbage-collect-change-conflicts.test.ts +0 -219
- package/node_modules/@lix-js/sdk/src/change-conflict/garbage-collect-change-conflicts.ts +0 -96
- package/node_modules/@lix-js/sdk/src/change-conflict/index.ts +0 -3
- package/node_modules/@lix-js/sdk/src/change-conflict/resolve-conflict-by-selecting.test.ts +0 -118
- package/node_modules/@lix-js/sdk/src/change-conflict/resolve-conflict-by-selecting.ts +0 -66
- package/node_modules/@lix-js/sdk/src/change-conflict/update-change-conflicts.ts +0 -79
- package/node_modules/@lix-js/sdk/src/change-schema/README.md +0 -3
- package/node_modules/@lix-js/sdk/src/change-schema/index.ts +0 -4
- package/node_modules/@lix-js/sdk/src/change-schema/types.test-d.ts +0 -52
- package/node_modules/@lix-js/sdk/src/change-schema/types.ts +0 -53
- package/node_modules/@lix-js/sdk/src/change-set/change-set-element-in-symmetric-difference.test.ts +0 -128
- package/node_modules/@lix-js/sdk/src/change-set/change-set-element-in-symmetric-difference.ts +0 -52
- package/node_modules/@lix-js/sdk/src/change-set/create-change-set.test.ts +0 -43
- package/node_modules/@lix-js/sdk/src/change-set/create-change-set.ts +0 -41
- package/node_modules/@lix-js/sdk/src/change-set/index.ts +0 -2
- package/node_modules/@lix-js/sdk/src/database/apply-schema.ts +0 -270
- package/node_modules/@lix-js/sdk/src/database/execute-sync.test.ts +0 -152
- package/node_modules/@lix-js/sdk/src/database/execute-sync.ts +0 -47
- package/node_modules/@lix-js/sdk/src/database/index.ts +0 -4
- package/node_modules/@lix-js/sdk/src/database/init-db.test.ts +0 -628
- package/node_modules/@lix-js/sdk/src/database/init-db.ts +0 -111
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v1.test.ts +0 -204
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v1.ts +0 -55
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.ts +0 -204
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v2.ts +0 -194
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/serialize-jsonb-plugin.test.ts +0 -132
- package/node_modules/@lix-js/sdk/src/database/kysely-plugin/serialize-jsonb-plugin.ts +0 -122
- package/node_modules/@lix-js/sdk/src/database/mutation-log/database-schema.ts +0 -126
- package/node_modules/@lix-js/sdk/src/database/mutation-log/lix-session.ts +0 -19
- package/node_modules/@lix-js/sdk/src/database/nano-id.test.ts +0 -15
- package/node_modules/@lix-js/sdk/src/database/nano-id.ts +0 -72
- package/node_modules/@lix-js/sdk/src/database/schema.ts +0 -273
- package/node_modules/@lix-js/sdk/src/discussion/create-comment.ts +0 -18
- package/node_modules/@lix-js/sdk/src/discussion/create-discussion.test.ts +0 -45
- package/node_modules/@lix-js/sdk/src/discussion/create-discussion.ts +0 -48
- package/node_modules/@lix-js/sdk/src/discussion/index.ts +0 -2
- package/node_modules/@lix-js/sdk/src/file/index.ts +0 -1
- package/node_modules/@lix-js/sdk/src/file/validate-file-path.test.ts +0 -44
- package/node_modules/@lix-js/sdk/src/file/validate-file-path.ts +0 -60
- package/node_modules/@lix-js/sdk/src/file-queue/file-handlers.ts +0 -273
- package/node_modules/@lix-js/sdk/src/file-queue/file-queue-process.test.ts +0 -457
- package/node_modules/@lix-js/sdk/src/file-queue/file-queue-process.ts +0 -101
- package/node_modules/@lix-js/sdk/src/file-queue/file-queue-settled.test.ts +0 -56
- package/node_modules/@lix-js/sdk/src/file-queue/file-queue-settled.ts +0 -31
- package/node_modules/@lix-js/sdk/src/file-queue/index.ts +0 -1
- package/node_modules/@lix-js/sdk/src/file-queue/with-skip-file-queue.test.ts +0 -158
- package/node_modules/@lix-js/sdk/src/file-queue/with-skip-file-queue.ts +0 -33
- package/node_modules/@lix-js/sdk/src/index.ts +0 -16
- package/node_modules/@lix-js/sdk/src/key-value/database-schema.test.ts +0 -140
- package/node_modules/@lix-js/sdk/src/key-value/database-schema.ts +0 -66
- package/node_modules/@lix-js/sdk/src/lix/close-lix.ts +0 -8
- package/node_modules/@lix-js/sdk/src/lix/index.ts +0 -7
- package/node_modules/@lix-js/sdk/src/lix/merge.get-leaf-changes-only-in-source.test.ts +0 -143
- package/node_modules/@lix-js/sdk/src/lix/merge.get-leaf-changes-only-in-source.ts +0 -46
- package/node_modules/@lix-js/sdk/src/lix/merge.test.ts +0 -858
- package/node_modules/@lix-js/sdk/src/lix/merge.ts +0 -244
- package/node_modules/@lix-js/sdk/src/lix/new-lix.test.ts +0 -23
- package/node_modules/@lix-js/sdk/src/lix/new-lix.ts +0 -29
- package/node_modules/@lix-js/sdk/src/lix/open-lix-in-memory.test.ts +0 -34
- package/node_modules/@lix-js/sdk/src/lix/open-lix-in-memory.ts +0 -28
- package/node_modules/@lix-js/sdk/src/lix/open-lix.test.ts +0 -45
- package/node_modules/@lix-js/sdk/src/lix/open-lix.ts +0 -86
- package/node_modules/@lix-js/sdk/src/lix/to-blob.ts +0 -14
- package/node_modules/@lix-js/sdk/src/own-change-control/apply-own-change.test.ts +0 -361
- package/node_modules/@lix-js/sdk/src/own-change-control/apply-own-change.ts +0 -110
- package/node_modules/@lix-js/sdk/src/own-change-control/change-controlled-tables.test.ts +0 -69
- package/node_modules/@lix-js/sdk/src/own-change-control/change-controlled-tables.ts +0 -102
- package/node_modules/@lix-js/sdk/src/own-change-control/database-triggers.test.ts +0 -259
- package/node_modules/@lix-js/sdk/src/own-change-control/database-triggers.ts +0 -189
- package/node_modules/@lix-js/sdk/src/own-change-control/index.ts +0 -1
- package/node_modules/@lix-js/sdk/src/own-change-control/with-skip-own-change-control.test.ts +0 -57
- package/node_modules/@lix-js/sdk/src/own-change-control/with-skip-own-change-control.ts +0 -34
- package/node_modules/@lix-js/sdk/src/plugin/index.ts +0 -6
- package/node_modules/@lix-js/sdk/src/plugin/lix-plugin.test-d.ts +0 -45
- package/node_modules/@lix-js/sdk/src/plugin/lix-plugin.ts +0 -128
- package/node_modules/@lix-js/sdk/src/plugin/load-plugin.ts +0 -28
- package/node_modules/@lix-js/sdk/src/plugin/with-transaction.ts +0 -22
- package/node_modules/@lix-js/sdk/src/query-filter/change-conflict-in-version.test.ts +0 -62
- package/node_modules/@lix-js/sdk/src/query-filter/change-conflict-in-version.ts +0 -25
- package/node_modules/@lix-js/sdk/src/query-filter/change-has-label.test.ts +0 -52
- package/node_modules/@lix-js/sdk/src/query-filter/change-has-label.ts +0 -41
- package/node_modules/@lix-js/sdk/src/query-filter/change-in-version.test.ts +0 -82
- package/node_modules/@lix-js/sdk/src/query-filter/change-in-version.ts +0 -31
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-in-version.test.ts +0 -77
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-in-version.ts +0 -36
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-of.bench.ts +0 -175
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-of.test.ts +0 -84
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf-of.ts +0 -46
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf.test.ts +0 -140
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-leaf.ts +0 -25
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-lowest-common-ancestor-of.test.ts +0 -173
- package/node_modules/@lix-js/sdk/src/query-filter/change-is-lowest-common-ancestor-of.ts +0 -57
- package/node_modules/@lix-js/sdk/src/query-filter/change-set-has-label.test.ts +0 -50
- package/node_modules/@lix-js/sdk/src/query-filter/change-set-has-label.ts +0 -36
- package/node_modules/@lix-js/sdk/src/query-filter/index.ts +0 -8
- package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-difference.test.ts +0 -105
- package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-difference.ts +0 -37
- package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-symmetric-difference.test.ts +0 -104
- package/node_modules/@lix-js/sdk/src/query-filter/version-change-in-symmetric-difference.ts +0 -52
- package/node_modules/@lix-js/sdk/src/server-api-handler/create-server-api-handler.ts +0 -84
- package/node_modules/@lix-js/sdk/src/server-api-handler/environment/create-in-memory-environment.test.ts +0 -131
- package/node_modules/@lix-js/sdk/src/server-api-handler/environment/create-in-memory-environment.ts +0 -115
- package/node_modules/@lix-js/sdk/src/server-api-handler/environment/environment.ts +0 -43
- package/node_modules/@lix-js/sdk/src/server-api-handler/index.ts +0 -5
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/get-v1.test.ts +0 -147
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/get-v1.ts +0 -61
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/new-v1.test.ts +0 -103
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/new-v1.ts +0 -46
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/pull-v1.test.ts +0 -201
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/pull-v1.ts +0 -57
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/push-v1.test.ts +0 -302
- package/node_modules/@lix-js/sdk/src/server-api-handler/routes/push-v1.ts +0 -180
- package/node_modules/@lix-js/sdk/src/snapshot/create-snapshot.test.ts +0 -68
- package/node_modules/@lix-js/sdk/src/snapshot/create-snapshot.ts +0 -40
- package/node_modules/@lix-js/sdk/src/snapshot/index.ts +0 -2
- package/node_modules/@lix-js/sdk/src/snapshot/json-sha-256.test.ts +0 -12
- package/node_modules/@lix-js/sdk/src/snapshot/json-sha-256.ts +0 -35
- package/node_modules/@lix-js/sdk/src/snapshot/mock-json-snapshot.ts +0 -14
- package/node_modules/@lix-js/sdk/src/sync/get-diffing-rows.ts +0 -96
- package/node_modules/@lix-js/sdk/src/sync/merge-state.ts +0 -310
- package/node_modules/@lix-js/sdk/src/sync/pull-from-server.test.ts +0 -425
- package/node_modules/@lix-js/sdk/src/sync/pull-from-server.ts +0 -144
- package/node_modules/@lix-js/sdk/src/sync/push-to-server.test.ts +0 -391
- package/node_modules/@lix-js/sdk/src/sync/push-to-server.ts +0 -47
- package/node_modules/@lix-js/sdk/src/sync/sync-process.test.ts +0 -321
- package/node_modules/@lix-js/sdk/src/sync/sync-process.ts +0 -85
- package/node_modules/@lix-js/sdk/src/version/create-version.test.ts +0 -149
- package/node_modules/@lix-js/sdk/src/version/create-version.ts +0 -88
- package/node_modules/@lix-js/sdk/src/version/index.ts +0 -8
- package/node_modules/@lix-js/sdk/src/version/merge-version.test.ts +0 -530
- package/node_modules/@lix-js/sdk/src/version/merge-version.ts +0 -88
- package/node_modules/@lix-js/sdk/src/version/switch-version.test.ts +0 -292
- package/node_modules/@lix-js/sdk/src/version/switch-version.ts +0 -110
- package/node_modules/@lix-js/sdk/src/version/update-changes-in-version.test.ts +0 -371
- package/node_modules/@lix-js/sdk/src/version/update-changes-in-version.ts +0 -47
- package/node_modules/sqlite-wasm-kysely/LICENSE +0 -21
- package/node_modules/sqlite-wasm-kysely/README.md +0 -11
- package/node_modules/sqlite-wasm-kysely/dist/dialect.d.ts +0 -11
- package/node_modules/sqlite-wasm-kysely/dist/dialect.js +0 -13
- package/node_modules/sqlite-wasm-kysely/dist/dialect.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/index.d.ts +0 -2
- package/node_modules/sqlite-wasm-kysely/dist/index.js +0 -3
- package/node_modules/sqlite-wasm-kysely/dist/index.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/kysely/ConnectionMutex.d.ts +0 -5
- package/node_modules/sqlite-wasm-kysely/dist/kysely/ConnectionMutex.js +0 -34
- package/node_modules/sqlite-wasm-kysely/dist/kysely/ConnectionMutex.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmConnection.d.ts +0 -8
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmConnection.js +0 -57
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmConnection.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDialectConfig.d.ts +0 -18
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDialectConfig.js +0 -2
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDialectConfig.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDriver.d.ts +0 -13
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDriver.js +0 -57
- package/node_modules/sqlite-wasm-kysely/dist/kysely/SqliteWasmDriver.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/kysely/index.d.ts +0 -4
- package/node_modules/sqlite-wasm-kysely/dist/kysely/index.js +0 -4
- package/node_modules/sqlite-wasm-kysely/dist/kysely/index.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/kysely/sqliteModule.d.ts +0 -3
- package/node_modules/sqlite-wasm-kysely/dist/kysely/sqliteModule.js +0 -5
- package/node_modules/sqlite-wasm-kysely/dist/kysely/sqliteModule.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/util/contentFromDatabase.d.ts +0 -9
- package/node_modules/sqlite-wasm-kysely/dist/util/contentFromDatabase.js +0 -12
- package/node_modules/sqlite-wasm-kysely/dist/util/contentFromDatabase.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/util/createInMemoryDatabase.d.ts +0 -3
- package/node_modules/sqlite-wasm-kysely/dist/util/createInMemoryDatabase.js +0 -22
- package/node_modules/sqlite-wasm-kysely/dist/util/createInMemoryDatabase.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/util/importDatabase.d.ts +0 -7
- package/node_modules/sqlite-wasm-kysely/dist/util/importDatabase.js +0 -15
- package/node_modules/sqlite-wasm-kysely/dist/util/importDatabase.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/util/index.d.ts +0 -5
- package/node_modules/sqlite-wasm-kysely/dist/util/index.js +0 -5
- package/node_modules/sqlite-wasm-kysely/dist/util/index.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/util/loadDatabaseInMemory.d.ts +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/util/loadDatabaseInMemory.js +0 -13
- package/node_modules/sqlite-wasm-kysely/dist/util/loadDatabaseInMemory.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/dist/util/sqliteWasmBinary.d.ts +0 -7
- package/node_modules/sqlite-wasm-kysely/dist/util/sqliteWasmBinary.js +0 -17
- package/node_modules/sqlite-wasm-kysely/dist/util/sqliteWasmBinary.js.map +0 -1
- package/node_modules/sqlite-wasm-kysely/package.json +0 -34
- package/node_modules/sqlite-wasm-kysely/src/dialect.ts +0 -15
- package/node_modules/sqlite-wasm-kysely/src/index.ts +0 -2
- package/node_modules/sqlite-wasm-kysely/src/kysely/ConnectionMutex.ts +0 -23
- package/node_modules/sqlite-wasm-kysely/src/kysely/SqliteWasmConnection.ts +0 -57
- package/node_modules/sqlite-wasm-kysely/src/kysely/SqliteWasmDialectConfig.ts +0 -19
- package/node_modules/sqlite-wasm-kysely/src/kysely/SqliteWasmDriver.ts +0 -58
- package/node_modules/sqlite-wasm-kysely/src/kysely/index.ts +0 -4
- package/node_modules/sqlite-wasm-kysely/src/kysely/sqliteModule.ts +0 -7
- package/node_modules/sqlite-wasm-kysely/src/util/contentFromDatabase.ts +0 -13
- package/node_modules/sqlite-wasm-kysely/src/util/createInMemoryDatabase.ts +0 -30
- package/node_modules/sqlite-wasm-kysely/src/util/importDatabase.ts +0 -34
- package/node_modules/sqlite-wasm-kysely/src/util/index.ts +0 -5
- package/node_modules/sqlite-wasm-kysely/src/util/loadDatabaseInMemory.ts +0 -13
- package/node_modules/sqlite-wasm-kysely/src/util/sqliteWasmBinary.ts +0 -20
- package/src/project/state/README.md +0 -22
- package/src/project/state/id$.test.ts +0 -40
- package/src/project/state/id$.ts +0 -21
- package/src/project/state/setSettings.test.ts +0 -73
- package/src/project/state/setSettings.ts +0 -19
- package/src/project/state/settings$.test.ts +0 -63
- package/src/project/state/settings$.ts +0 -26
- package/src/project/state/state.test.ts +0 -128
- package/src/project/state/state.ts +0 -94
- package/src/query-utilities/pollQuery.test.ts +0 -88
- package/src/query-utilities/pollQuery.ts +0 -26
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { Kysely } from "kysely";
|
|
2
|
-
import { createDialect, type SqliteDatabase } from "sqlite-wasm-kysely";
|
|
3
|
-
import { v7 as uuid_v7, v4 as uuid_v4 } from "uuid";
|
|
4
|
-
import type { LixDatabaseSchema } from "./schema.js";
|
|
5
|
-
import { applySchema } from "./apply-schema.js";
|
|
6
|
-
import { validateFilePath } from "../file/validate-file-path.js";
|
|
7
|
-
import { jsonSha256 } from "../snapshot/json-sha-256.js";
|
|
8
|
-
import { ParseJsonBPluginV1 } from "./kysely-plugin/parse-jsonb-plugin-v1.js";
|
|
9
|
-
import { SerializeJsonBPlugin } from "./kysely-plugin/serialize-jsonb-plugin.js";
|
|
10
|
-
import { createSession } from "./mutation-log/lix-session.js";
|
|
11
|
-
import { applyOwnChangeControlTriggers } from "../own-change-control/database-triggers.js";
|
|
12
|
-
import { humanId } from "human-id";
|
|
13
|
-
import { nanoid } from "./nano-id.js";
|
|
14
|
-
|
|
15
|
-
export function initDb(args: {
|
|
16
|
-
sqlite: SqliteDatabase;
|
|
17
|
-
}): Kysely<LixDatabaseSchema> {
|
|
18
|
-
initFunctions({ sqlite: args.sqlite });
|
|
19
|
-
applySchema({ sqlite: args.sqlite });
|
|
20
|
-
const db = new Kysely<LixDatabaseSchema>({
|
|
21
|
-
dialect: createDialect({
|
|
22
|
-
database: args.sqlite,
|
|
23
|
-
}),
|
|
24
|
-
plugins: [
|
|
25
|
-
ParseJsonBPluginV1({
|
|
26
|
-
// jsonb columns
|
|
27
|
-
file: ["metadata"],
|
|
28
|
-
file_queue: ["metadata_before", "metadata_after"],
|
|
29
|
-
snapshot: ["content"],
|
|
30
|
-
mutation_log: ["row_id"],
|
|
31
|
-
}),
|
|
32
|
-
SerializeJsonBPlugin(),
|
|
33
|
-
],
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
// need to apply it here because db object needs to be available
|
|
37
|
-
applyOwnChangeControlTriggers(args.sqlite, db);
|
|
38
|
-
return db;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function initFunctions(args: { sqlite: SqliteDatabase }) {
|
|
42
|
-
args.sqlite.createFunction({
|
|
43
|
-
name: "uuid_v7",
|
|
44
|
-
arity: 0,
|
|
45
|
-
xFunc: () => uuid_v7(),
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
args.sqlite.createFunction({
|
|
49
|
-
name: "uuid_v4",
|
|
50
|
-
arity: 0,
|
|
51
|
-
xFunc: () => uuid_v4(),
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
args.sqlite.createFunction({
|
|
55
|
-
name: "json_sha256",
|
|
56
|
-
arity: 1,
|
|
57
|
-
xFunc: (_ctx: number, value) => {
|
|
58
|
-
if (!value) {
|
|
59
|
-
return "no-content";
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const json = args.sqlite.exec("SELECT json(?)", {
|
|
63
|
-
bind: [value],
|
|
64
|
-
returnValue: "resultRows",
|
|
65
|
-
})[0]![0];
|
|
66
|
-
|
|
67
|
-
const parsed = JSON.parse(json as string);
|
|
68
|
-
|
|
69
|
-
return jsonSha256(parsed);
|
|
70
|
-
},
|
|
71
|
-
deterministic: true,
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
args.sqlite.createFunction({
|
|
75
|
-
name: "is_valid_file_path",
|
|
76
|
-
arity: 1,
|
|
77
|
-
xFunc: (_ctx: number, value) => {
|
|
78
|
-
return validateFilePath(value as string) as unknown as string;
|
|
79
|
-
},
|
|
80
|
-
deterministic: true,
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
const lixSession = createSession();
|
|
84
|
-
|
|
85
|
-
args.sqlite.createFunction({
|
|
86
|
-
name: "lix_session",
|
|
87
|
-
arity: 0,
|
|
88
|
-
xFunc: () => lixSession.id(),
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
args.sqlite.createFunction({
|
|
92
|
-
name: "lix_session_clock_tick",
|
|
93
|
-
arity: 0,
|
|
94
|
-
xFunc: () => lixSession.sessionClockTick(),
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
args.sqlite.createFunction({
|
|
98
|
-
name: "human_id",
|
|
99
|
-
arity: 0,
|
|
100
|
-
xFunc: () => humanId({ separator: "-", capitalize: false }),
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
args.sqlite.createFunction({
|
|
104
|
-
name: "nano_id",
|
|
105
|
-
arity: 1,
|
|
106
|
-
// @ts-expect-error - not sure why this is not working
|
|
107
|
-
xFunc: (_ctx: number, length: number) => {
|
|
108
|
-
return nanoid(length);
|
|
109
|
-
},
|
|
110
|
-
});
|
|
111
|
-
}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { Kysely, sql, type Generated } from "kysely";
|
|
2
|
-
import { expect, test } from "vitest";
|
|
3
|
-
import { createDialect, createInMemoryDatabase } from "sqlite-wasm-kysely";
|
|
4
|
-
import { ParseJsonBPluginV1 } from "./parse-jsonb-plugin-v1.js";
|
|
5
|
-
|
|
6
|
-
test("select()", async () => {
|
|
7
|
-
const db = await mockDatabase();
|
|
8
|
-
|
|
9
|
-
await db
|
|
10
|
-
.insertInto("mock_table")
|
|
11
|
-
.values({
|
|
12
|
-
metadata: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
13
|
-
other: "value",
|
|
14
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
15
|
-
})
|
|
16
|
-
.execute();
|
|
17
|
-
|
|
18
|
-
const result = await db
|
|
19
|
-
.selectFrom("mock_table")
|
|
20
|
-
.select("metadata")
|
|
21
|
-
.executeTakeFirst();
|
|
22
|
-
|
|
23
|
-
expect(result).toEqual({ metadata: { a: 1 } });
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
test("select() with alias on the column is expected to fail", async () => {
|
|
27
|
-
const db = await mockDatabase();
|
|
28
|
-
|
|
29
|
-
await db
|
|
30
|
-
.insertInto("mock_table")
|
|
31
|
-
.values({
|
|
32
|
-
metadata: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
33
|
-
other: "value",
|
|
34
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
35
|
-
})
|
|
36
|
-
.execute();
|
|
37
|
-
|
|
38
|
-
const result = await db
|
|
39
|
-
.selectFrom("mock_table")
|
|
40
|
-
.select("metadata as jc")
|
|
41
|
-
.executeTakeFirst();
|
|
42
|
-
|
|
43
|
-
expect(result).not.toEqual({ jc: { a: 1 } });
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
test("select() with joins should work as long as no aliases are used", async () => {
|
|
47
|
-
const db = await mockDatabase();
|
|
48
|
-
|
|
49
|
-
const insert = await db
|
|
50
|
-
.insertInto("mock_table")
|
|
51
|
-
.values({
|
|
52
|
-
metadata: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
53
|
-
other: "value",
|
|
54
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
55
|
-
})
|
|
56
|
-
.returningAll()
|
|
57
|
-
.executeTakeFirstOrThrow();
|
|
58
|
-
|
|
59
|
-
await db
|
|
60
|
-
.insertInto("other_table")
|
|
61
|
-
.values({
|
|
62
|
-
mock_table_id: insert.id,
|
|
63
|
-
content: new TextEncoder().encode(JSON.stringify({ b: 2 })),
|
|
64
|
-
})
|
|
65
|
-
.execute();
|
|
66
|
-
|
|
67
|
-
const result0 = await db
|
|
68
|
-
.selectFrom("mock_table")
|
|
69
|
-
.innerJoin("other_table", "mock_table.id", "other_table.mock_table_id")
|
|
70
|
-
.select("mock_table.metadata")
|
|
71
|
-
.executeTakeFirst();
|
|
72
|
-
|
|
73
|
-
expect(result0).toEqual({ metadata: { a: 1 } });
|
|
74
|
-
|
|
75
|
-
// other way around
|
|
76
|
-
const result1 = await db
|
|
77
|
-
.selectFrom("mock_table")
|
|
78
|
-
.innerJoin("other_table", "mock_table.id", "other_table.mock_table_id")
|
|
79
|
-
.select("other_table.content")
|
|
80
|
-
.executeTakeFirst();
|
|
81
|
-
|
|
82
|
-
expect(result1).toEqual({ content: { b: 2 } });
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
test("selectAll() without aliases should work", async () => {
|
|
86
|
-
const db = await mockDatabase();
|
|
87
|
-
|
|
88
|
-
await db
|
|
89
|
-
.insertInto("mock_table")
|
|
90
|
-
.values({
|
|
91
|
-
metadata: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
92
|
-
other: "value",
|
|
93
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
94
|
-
})
|
|
95
|
-
.execute();
|
|
96
|
-
|
|
97
|
-
const result = await db
|
|
98
|
-
.selectFrom("mock_table")
|
|
99
|
-
.selectAll()
|
|
100
|
-
.executeTakeFirst();
|
|
101
|
-
|
|
102
|
-
expect(result?.metadata).toStrictEqual({ a: 1 });
|
|
103
|
-
expect(result?.other).toBe("value");
|
|
104
|
-
expect(result?.just_blob).toBeInstanceOf(Uint8Array);
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
test("selectAll() with alias on table should work", async () => {
|
|
108
|
-
const db = await mockDatabase();
|
|
109
|
-
|
|
110
|
-
await db
|
|
111
|
-
.insertInto("mock_table")
|
|
112
|
-
.values({
|
|
113
|
-
metadata: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
114
|
-
other: "value",
|
|
115
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
116
|
-
})
|
|
117
|
-
.execute();
|
|
118
|
-
|
|
119
|
-
const result = await db
|
|
120
|
-
.selectFrom("mock_table as mt")
|
|
121
|
-
.selectAll("mt")
|
|
122
|
-
.executeTakeFirst();
|
|
123
|
-
|
|
124
|
-
expect(result?.metadata).toStrictEqual({ a: 1 });
|
|
125
|
-
expect(result?.other).toBe("value");
|
|
126
|
-
expect(result?.just_blob).toBeInstanceOf(Uint8Array);
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
test("selectAll() with joins should succeed as long as no aliases are used", async () => {
|
|
130
|
-
const db = await mockDatabase();
|
|
131
|
-
|
|
132
|
-
const insert = await db
|
|
133
|
-
.insertInto("mock_table")
|
|
134
|
-
.values({
|
|
135
|
-
metadata: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
136
|
-
other: "value",
|
|
137
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
138
|
-
})
|
|
139
|
-
.returningAll()
|
|
140
|
-
.executeTakeFirstOrThrow();
|
|
141
|
-
|
|
142
|
-
await db
|
|
143
|
-
.insertInto("other_table")
|
|
144
|
-
.values({
|
|
145
|
-
mock_table_id: insert.id,
|
|
146
|
-
content: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
147
|
-
})
|
|
148
|
-
.execute();
|
|
149
|
-
|
|
150
|
-
const result = await db
|
|
151
|
-
.selectFrom("mock_table")
|
|
152
|
-
.innerJoin("other_table", "mock_table.id", "other_table.mock_table_id")
|
|
153
|
-
.selectAll("mock_table")
|
|
154
|
-
.executeTakeFirst();
|
|
155
|
-
|
|
156
|
-
expect(result?.metadata).toStrictEqual({ a: 1 });
|
|
157
|
-
expect(result?.other).toBe("value");
|
|
158
|
-
expect(result?.just_blob).toBeInstanceOf(Uint8Array);
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
const mockDatabase = async () => {
|
|
162
|
-
const database = await createInMemoryDatabase({ readOnly: false });
|
|
163
|
-
|
|
164
|
-
const db = new Kysely<{
|
|
165
|
-
mock_table: {
|
|
166
|
-
id: Generated<number>;
|
|
167
|
-
metadata: Record<string, any>;
|
|
168
|
-
other: string;
|
|
169
|
-
just_blob: Uint8Array;
|
|
170
|
-
};
|
|
171
|
-
other_table: {
|
|
172
|
-
mock_table_id: number;
|
|
173
|
-
content: Record<string, any>;
|
|
174
|
-
};
|
|
175
|
-
}>({
|
|
176
|
-
dialect: createDialect({
|
|
177
|
-
database,
|
|
178
|
-
}),
|
|
179
|
-
plugins: [
|
|
180
|
-
await ParseJsonBPluginV1({
|
|
181
|
-
mock_table: ["metadata"],
|
|
182
|
-
other_table: ["content"],
|
|
183
|
-
}),
|
|
184
|
-
],
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
await sql`
|
|
188
|
-
CREATE TABLE mock_table (
|
|
189
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
190
|
-
metadata BLOB,
|
|
191
|
-
other TEXT,
|
|
192
|
-
just_blob BLOB
|
|
193
|
-
) strict;
|
|
194
|
-
|
|
195
|
-
CREATE TABLE other_table (
|
|
196
|
-
mock_table_id INTEGER,
|
|
197
|
-
content BLOB,
|
|
198
|
-
|
|
199
|
-
FOREIGN KEY (mock_table_id) REFERENCES mock_table (id)
|
|
200
|
-
) strict;
|
|
201
|
-
`.execute(db);
|
|
202
|
-
|
|
203
|
-
return db;
|
|
204
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { type KyselyPlugin } from "kysely";
|
|
2
|
-
import {
|
|
3
|
-
createInMemoryDatabase,
|
|
4
|
-
type SqliteDatabase,
|
|
5
|
-
} from "sqlite-wasm-kysely";
|
|
6
|
-
|
|
7
|
-
// workaround for v1. v2 doesn't need to transform
|
|
8
|
-
// jsonb columns during runtime
|
|
9
|
-
let sqlite: SqliteDatabase;
|
|
10
|
-
|
|
11
|
-
export function ParseJsonBPluginV1(
|
|
12
|
-
jsonbColumns: Record<string, string[]>
|
|
13
|
-
): KyselyPlugin {
|
|
14
|
-
const jsonColumnNames = Object.keys(jsonbColumns).flatMap(
|
|
15
|
-
(key) => jsonbColumns[key]!
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
return {
|
|
19
|
-
transformResult: async (args) => {
|
|
20
|
-
if (!sqlite) {
|
|
21
|
-
sqlite = await createInMemoryDatabase({});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
for (const row of args.result.rows) {
|
|
25
|
-
for (const col of jsonColumnNames) {
|
|
26
|
-
if (!row[col]) {
|
|
27
|
-
// result does not have a whitelisted json column
|
|
28
|
-
// ! this is a heursitic. ideally, we invest into
|
|
29
|
-
// ! building ParseJsonBPluginV2 that detects
|
|
30
|
-
// ! json columns from the query itself
|
|
31
|
-
// see https://github.com/opral/lix-sdk/issues/145
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
try {
|
|
35
|
-
// sqlite has it's own jsonb format
|
|
36
|
-
// hence, need to query sqlite to convert
|
|
37
|
-
// to json
|
|
38
|
-
const json = sqlite.exec("SELECT json(?)", {
|
|
39
|
-
bind: [row[col] as Uint8Array],
|
|
40
|
-
returnValue: "resultRows",
|
|
41
|
-
})[0]![0];
|
|
42
|
-
|
|
43
|
-
row[col] = JSON.parse(json as string);
|
|
44
|
-
} catch {
|
|
45
|
-
// it's not a json binary
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return args.result;
|
|
52
|
-
},
|
|
53
|
-
transformQuery: (args) => args.node,
|
|
54
|
-
};
|
|
55
|
-
}
|
package/node_modules/@lix-js/sdk/src/database/kysely-plugin/parse-jsonb-plugin-v2.no_test.ts
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { Kysely, sql, type Generated } from "kysely";
|
|
2
|
-
import { expect, test } from "vitest";
|
|
3
|
-
import { createDialect, createInMemoryDatabase } from "sqlite-wasm-kysely";
|
|
4
|
-
import { ParseJsonBPluginV2 } from "./parse-jsonb-plugin-v2.js";
|
|
5
|
-
|
|
6
|
-
test("select()", async () => {
|
|
7
|
-
const db = await mockDatabase();
|
|
8
|
-
|
|
9
|
-
await db
|
|
10
|
-
.insertInto("mock_table")
|
|
11
|
-
.values({
|
|
12
|
-
json_column: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
13
|
-
other: "value",
|
|
14
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
15
|
-
})
|
|
16
|
-
.execute();
|
|
17
|
-
|
|
18
|
-
const result = await db
|
|
19
|
-
.selectFrom("mock_table")
|
|
20
|
-
.select("json_column")
|
|
21
|
-
.executeTakeFirst();
|
|
22
|
-
|
|
23
|
-
expect(result).toEqual({ json_column: { a: 1 } });
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
test("select() with alias", async () => {
|
|
27
|
-
const db = await mockDatabase();
|
|
28
|
-
|
|
29
|
-
await db
|
|
30
|
-
.insertInto("mock_table")
|
|
31
|
-
.values({
|
|
32
|
-
json_column: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
33
|
-
other: "value",
|
|
34
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
35
|
-
})
|
|
36
|
-
.execute();
|
|
37
|
-
|
|
38
|
-
const result = await db
|
|
39
|
-
.selectFrom("mock_table")
|
|
40
|
-
.select("json_column as jc")
|
|
41
|
-
.executeTakeFirst();
|
|
42
|
-
|
|
43
|
-
expect(result).toEqual({ jc: { a: 1 } });
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
test("select() with joins", async () => {
|
|
47
|
-
const db = await mockDatabase();
|
|
48
|
-
|
|
49
|
-
const insert = await db
|
|
50
|
-
.insertInto("mock_table")
|
|
51
|
-
.values({
|
|
52
|
-
json_column: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
53
|
-
other: "value",
|
|
54
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
55
|
-
})
|
|
56
|
-
.returningAll()
|
|
57
|
-
.executeTakeFirstOrThrow();
|
|
58
|
-
|
|
59
|
-
await db
|
|
60
|
-
.insertInto("other_table")
|
|
61
|
-
.values({
|
|
62
|
-
mock_table_id: insert.id,
|
|
63
|
-
json_column: new TextEncoder().encode(JSON.stringify({ b: 2 })),
|
|
64
|
-
})
|
|
65
|
-
.execute();
|
|
66
|
-
|
|
67
|
-
const result0 = await db
|
|
68
|
-
.selectFrom("mock_table")
|
|
69
|
-
.innerJoin("other_table", "mock_table.id", "other_table.mock_table_id")
|
|
70
|
-
.select("mock_table.json_column")
|
|
71
|
-
.executeTakeFirst();
|
|
72
|
-
|
|
73
|
-
expect(result0).toEqual({ json_column: { a: 1 } });
|
|
74
|
-
|
|
75
|
-
// other way around
|
|
76
|
-
const result1 = await db
|
|
77
|
-
.selectFrom("mock_table")
|
|
78
|
-
.innerJoin("other_table", "mock_table.id", "other_table.mock_table_id")
|
|
79
|
-
.select("other_table.json_column")
|
|
80
|
-
.executeTakeFirst();
|
|
81
|
-
|
|
82
|
-
expect(result1).toEqual({ json_column: { b: 2 } });
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
test("selectAll()", async () => {
|
|
86
|
-
const db = await mockDatabase();
|
|
87
|
-
|
|
88
|
-
await db
|
|
89
|
-
.insertInto("mock_table")
|
|
90
|
-
.values({
|
|
91
|
-
json_column: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
92
|
-
other: "value",
|
|
93
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
94
|
-
})
|
|
95
|
-
.execute();
|
|
96
|
-
|
|
97
|
-
const result = await db
|
|
98
|
-
.selectFrom("mock_table")
|
|
99
|
-
.selectAll()
|
|
100
|
-
.executeTakeFirst();
|
|
101
|
-
|
|
102
|
-
expect(result?.json_column).toStrictEqual({ a: 1 });
|
|
103
|
-
expect(result?.other).toBe("value");
|
|
104
|
-
expect(result?.just_blob).toBeInstanceOf(Uint8Array);
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
test("selectAll() with alias", async () => {
|
|
108
|
-
const db = await mockDatabase();
|
|
109
|
-
|
|
110
|
-
await db
|
|
111
|
-
.insertInto("mock_table")
|
|
112
|
-
.values({
|
|
113
|
-
json_column: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
114
|
-
other: "value",
|
|
115
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
116
|
-
})
|
|
117
|
-
.execute();
|
|
118
|
-
|
|
119
|
-
const result = await db
|
|
120
|
-
.selectFrom("mock_table as mt")
|
|
121
|
-
.selectAll("mt")
|
|
122
|
-
.executeTakeFirst();
|
|
123
|
-
|
|
124
|
-
expect(result?.json_column).toStrictEqual({ a: 1 });
|
|
125
|
-
expect(result?.other).toBe("value");
|
|
126
|
-
expect(result?.just_blob).toBeInstanceOf(Uint8Array);
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
test("selectAll() with joins", async () => {
|
|
130
|
-
const db = await mockDatabase();
|
|
131
|
-
|
|
132
|
-
const insert = await db
|
|
133
|
-
.insertInto("mock_table")
|
|
134
|
-
.values({
|
|
135
|
-
json_column: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
136
|
-
other: "value",
|
|
137
|
-
just_blob: new TextEncoder().encode("{mock blob value that's not a json"),
|
|
138
|
-
})
|
|
139
|
-
.returningAll()
|
|
140
|
-
.executeTakeFirstOrThrow();
|
|
141
|
-
|
|
142
|
-
await db
|
|
143
|
-
.insertInto("other_table")
|
|
144
|
-
.values({
|
|
145
|
-
mock_table_id: insert.id,
|
|
146
|
-
json_column: new TextEncoder().encode(JSON.stringify({ a: 1 })),
|
|
147
|
-
})
|
|
148
|
-
.execute();
|
|
149
|
-
|
|
150
|
-
const result = await db
|
|
151
|
-
.selectFrom("mock_table")
|
|
152
|
-
.innerJoin("other_table", "mock_table.id", "other_table.mock_table_id")
|
|
153
|
-
.selectAll("mock_table")
|
|
154
|
-
.executeTakeFirst();
|
|
155
|
-
|
|
156
|
-
expect(result?.json_column).toStrictEqual({ a: 1 });
|
|
157
|
-
expect(result?.other).toBe("value");
|
|
158
|
-
expect(result?.just_blob).toBeInstanceOf(Uint8Array);
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
const mockDatabase = async () => {
|
|
162
|
-
const database = await createInMemoryDatabase({ readOnly: false });
|
|
163
|
-
|
|
164
|
-
const db = new Kysely<{
|
|
165
|
-
mock_table: {
|
|
166
|
-
id: Generated<number>;
|
|
167
|
-
json_column: Record<string, any>;
|
|
168
|
-
other: string;
|
|
169
|
-
just_blob: Uint8Array;
|
|
170
|
-
};
|
|
171
|
-
other_table: {
|
|
172
|
-
mock_table_id: number;
|
|
173
|
-
json_column: Record<string, any>;
|
|
174
|
-
};
|
|
175
|
-
}>({
|
|
176
|
-
dialect: createDialect({
|
|
177
|
-
database,
|
|
178
|
-
}),
|
|
179
|
-
plugins: [
|
|
180
|
-
ParseJsonBPluginV2({
|
|
181
|
-
mock_table: ["json_column"],
|
|
182
|
-
other_table: ["json_column"],
|
|
183
|
-
}),
|
|
184
|
-
],
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
await sql`
|
|
188
|
-
CREATE TABLE mock_table (
|
|
189
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
190
|
-
json_column BLOB,
|
|
191
|
-
other TEXT,
|
|
192
|
-
just_blob BLOB
|
|
193
|
-
) strict;
|
|
194
|
-
|
|
195
|
-
CREATE TABLE other_table (
|
|
196
|
-
mock_table_id INTEGER,
|
|
197
|
-
json_column BLOB,
|
|
198
|
-
|
|
199
|
-
FOREIGN KEY (mock_table_id) REFERENCES mock_table (id)
|
|
200
|
-
) strict;
|
|
201
|
-
`.execute(db);
|
|
202
|
-
|
|
203
|
-
return db;
|
|
204
|
-
};
|