@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,129 +0,0 @@
|
|
|
1
|
-
import { sql } from "kysely";
|
|
2
|
-
import type { Account } from "../account/database-schema.js";
|
|
3
|
-
import { executeSync } from "../database/execute-sync.js";
|
|
4
|
-
import type { Change, Snapshot, Version } from "../database/schema.js";
|
|
5
|
-
import type { Lix } from "../lix/open-lix.js";
|
|
6
|
-
import { changeIsLeafInVersion } from "../query-filter/change-is-leaf-in-version.js";
|
|
7
|
-
import { updateChangesInVersion } from "../version/update-changes-in-version.js";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Programatically create a change in the database.
|
|
11
|
-
*
|
|
12
|
-
* Use this function to directly create a change from a lix app
|
|
13
|
-
* with bypassing of file-based change detection.
|
|
14
|
-
*/
|
|
15
|
-
export async function createChange(
|
|
16
|
-
args: {
|
|
17
|
-
lix: Pick<Lix, "db" | "sqlite">;
|
|
18
|
-
authors: Array<Pick<Account, "id">>;
|
|
19
|
-
version: Pick<Version, "id">;
|
|
20
|
-
entityId: Change["entity_id"];
|
|
21
|
-
fileId: Change["file_id"];
|
|
22
|
-
pluginKey: Change["plugin_key"];
|
|
23
|
-
schemaKey: Change["schema_key"];
|
|
24
|
-
snapshotContent: Snapshot["content"];
|
|
25
|
-
},
|
|
26
|
-
options?: {
|
|
27
|
-
/**
|
|
28
|
-
* When true, the version changes will be updated.
|
|
29
|
-
*
|
|
30
|
-
* Defaults to true.
|
|
31
|
-
*/
|
|
32
|
-
updateVersionChanges?: boolean;
|
|
33
|
-
}
|
|
34
|
-
): Promise<Change> {
|
|
35
|
-
const optionsWithDefaults = {
|
|
36
|
-
updateVersionChanges: true,
|
|
37
|
-
...options,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
if (args.authors.length === 0) {
|
|
41
|
-
throw new Error("At least one author is required");
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// const executeInTransaction = async (trx: Lix["db"]) => {
|
|
45
|
-
const snapshot = executeSync({
|
|
46
|
-
lix: args.lix,
|
|
47
|
-
query: args.lix.db
|
|
48
|
-
.insertInto("snapshot")
|
|
49
|
-
.values({
|
|
50
|
-
content: args.snapshotContent ?? null,
|
|
51
|
-
})
|
|
52
|
-
.onConflict((oc) =>
|
|
53
|
-
oc.doUpdateSet((eb) => ({
|
|
54
|
-
content: eb.ref("excluded.content"),
|
|
55
|
-
}))
|
|
56
|
-
)
|
|
57
|
-
.returningAll()
|
|
58
|
-
.returning(sql`json(content)`.as("content")),
|
|
59
|
-
})[0] as Snapshot;
|
|
60
|
-
|
|
61
|
-
snapshot.content = JSON.parse(snapshot.content as unknown as string);
|
|
62
|
-
|
|
63
|
-
const change = executeSync({
|
|
64
|
-
lix: args.lix,
|
|
65
|
-
query: args.lix.db
|
|
66
|
-
.insertInto("change")
|
|
67
|
-
.values({
|
|
68
|
-
entity_id: args.entityId,
|
|
69
|
-
plugin_key: args.pluginKey,
|
|
70
|
-
file_id: args.fileId,
|
|
71
|
-
schema_key: args.schemaKey,
|
|
72
|
-
snapshot_id: snapshot.id,
|
|
73
|
-
})
|
|
74
|
-
.returningAll(),
|
|
75
|
-
})[0] as Change;
|
|
76
|
-
|
|
77
|
-
const parentChange = executeSync({
|
|
78
|
-
lix: args.lix,
|
|
79
|
-
query: args.lix.db
|
|
80
|
-
.selectFrom("change")
|
|
81
|
-
.where("file_id", "=", change.file_id)
|
|
82
|
-
.where("schema_key", "=", change.schema_key)
|
|
83
|
-
.where("entity_id", "=", change.entity_id)
|
|
84
|
-
.where(changeIsLeafInVersion(args.version))
|
|
85
|
-
.select("id"),
|
|
86
|
-
})[0] as Change | undefined;
|
|
87
|
-
|
|
88
|
-
// If a parent exists, the change is a child of the parent
|
|
89
|
-
if (parentChange) {
|
|
90
|
-
executeSync({
|
|
91
|
-
lix: args.lix,
|
|
92
|
-
query: args.lix.db.insertInto("change_edge").values({
|
|
93
|
-
parent_id: parentChange.id,
|
|
94
|
-
child_id: change.id,
|
|
95
|
-
}),
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
for (const author of args.authors) {
|
|
100
|
-
try {
|
|
101
|
-
executeSync({
|
|
102
|
-
lix: args.lix,
|
|
103
|
-
query: args.lix.db.insertInto("change_author").values({
|
|
104
|
-
change_id: change.id,
|
|
105
|
-
account_id: author.id,
|
|
106
|
-
}),
|
|
107
|
-
});
|
|
108
|
-
} catch (e) {
|
|
109
|
-
console.log(e);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// update the version with the new change
|
|
114
|
-
if (optionsWithDefaults.updateVersionChanges) {
|
|
115
|
-
updateChangesInVersion({
|
|
116
|
-
lix: { ...args.lix },
|
|
117
|
-
changes: [change],
|
|
118
|
-
version: args.version,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return change;
|
|
123
|
-
}
|
|
124
|
-
// if (args.lix.db.isTransaction) {
|
|
125
|
-
// return executeInTransaction(args.lix.db);
|
|
126
|
-
// } else {
|
|
127
|
-
// return args.lix.db.transaction().execute(executeInTransaction);
|
|
128
|
-
// }
|
|
129
|
-
// }
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Change, NewChange } from "../database/schema.js";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates a mock change object with the given properties.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* const change = mockChange({ id: "change1" });
|
|
8
|
-
* await lix.db.insertInto("change").values(change).execute();
|
|
9
|
-
*/
|
|
10
|
-
export function mockChange(args: Partial<NewChange>): Change {
|
|
11
|
-
return {
|
|
12
|
-
id: "mock",
|
|
13
|
-
created_at: "mock",
|
|
14
|
-
plugin_key: "mock",
|
|
15
|
-
file_id: "mock",
|
|
16
|
-
entity_id: "mock",
|
|
17
|
-
schema_key: "mock",
|
|
18
|
-
snapshot_id: "no-content",
|
|
19
|
-
...args,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { expect, test } from "vitest";
|
|
2
|
-
import { openLixInMemory } from "../lix/open-lix-in-memory.js";
|
|
3
|
-
import { createChangeConflict } from "./create-change-conflict.js";
|
|
4
|
-
import { createVersion } from "../version/create-version.js";
|
|
5
|
-
|
|
6
|
-
test("conflicts should be de-duplicated based on the change_conflict.key and version", async () => {
|
|
7
|
-
const lix = await openLixInMemory({});
|
|
8
|
-
|
|
9
|
-
const version0 = await createVersion({ lix, name: "version0" });
|
|
10
|
-
|
|
11
|
-
await lix.db
|
|
12
|
-
.insertInto("change")
|
|
13
|
-
.values([
|
|
14
|
-
{
|
|
15
|
-
id: "change0",
|
|
16
|
-
plugin_key: "mock-plugin",
|
|
17
|
-
schema_key: "mock",
|
|
18
|
-
file_id: "mock",
|
|
19
|
-
entity_id: "value0",
|
|
20
|
-
snapshot_id: "no-content",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: "change1",
|
|
24
|
-
plugin_key: "mock-plugin",
|
|
25
|
-
file_id: "mock",
|
|
26
|
-
entity_id: "value1",
|
|
27
|
-
schema_key: "mock",
|
|
28
|
-
snapshot_id: "no-content",
|
|
29
|
-
},
|
|
30
|
-
])
|
|
31
|
-
.execute();
|
|
32
|
-
|
|
33
|
-
const changeConflict = await createChangeConflict({
|
|
34
|
-
lix,
|
|
35
|
-
version: version0,
|
|
36
|
-
key: "mock-conflict",
|
|
37
|
-
conflictingChangeIds: new Set(["change0", "change1"]),
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
// Check that no new conflict is created
|
|
41
|
-
const conflictsAfter1Creation = await lix.db
|
|
42
|
-
.selectFrom("change_conflict")
|
|
43
|
-
.where("change_conflict.key", "=", "mock-conflict")
|
|
44
|
-
.selectAll()
|
|
45
|
-
.execute();
|
|
46
|
-
|
|
47
|
-
expect(conflictsAfter1Creation.length).toBe(1);
|
|
48
|
-
expect(conflictsAfter1Creation[0]?.id).toBe(changeConflict.id);
|
|
49
|
-
expect(conflictsAfter1Creation[0]?.key).toBe("mock-conflict");
|
|
50
|
-
|
|
51
|
-
// Create a second conflict
|
|
52
|
-
const changeConflict2 = await createChangeConflict({
|
|
53
|
-
lix,
|
|
54
|
-
version: version0,
|
|
55
|
-
key: "mock-conflict",
|
|
56
|
-
conflictingChangeIds: new Set(["change0", "change1"]),
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
// Check that no new conflict is created
|
|
60
|
-
const conflictsAfter2Creation = await lix.db
|
|
61
|
-
.selectFrom("change_conflict")
|
|
62
|
-
.where("change_conflict.key", "=", "mock-conflict")
|
|
63
|
-
.selectAll()
|
|
64
|
-
.execute();
|
|
65
|
-
|
|
66
|
-
expect(conflictsAfter2Creation.length).toBe(1);
|
|
67
|
-
expect(conflictsAfter2Creation[0]?.id).toBe(changeConflict2.id);
|
|
68
|
-
expect(conflictsAfter2Creation[0]?.key).toBe("mock-conflict");
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
test("if a conflict contains the same changes for a given key and version, no new conflict should be created", async () => {
|
|
72
|
-
const lix = await openLixInMemory({});
|
|
73
|
-
|
|
74
|
-
const version0 = await createVersion({ lix, name: "version0" });
|
|
75
|
-
|
|
76
|
-
await lix.db
|
|
77
|
-
.insertInto("change")
|
|
78
|
-
.values([
|
|
79
|
-
{
|
|
80
|
-
id: "change0",
|
|
81
|
-
plugin_key: "mock-plugin",
|
|
82
|
-
schema_key: "mock",
|
|
83
|
-
file_id: "mock",
|
|
84
|
-
entity_id: "value0",
|
|
85
|
-
snapshot_id: "no-content",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
id: "change1",
|
|
89
|
-
plugin_key: "mock-plugin",
|
|
90
|
-
file_id: "mock",
|
|
91
|
-
entity_id: "value1",
|
|
92
|
-
schema_key: "mock",
|
|
93
|
-
snapshot_id: "no-content",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
id: "change2",
|
|
97
|
-
plugin_key: "mock-plugin",
|
|
98
|
-
file_id: "mock",
|
|
99
|
-
entity_id: "value1",
|
|
100
|
-
schema_key: "mock",
|
|
101
|
-
snapshot_id: "no-content",
|
|
102
|
-
},
|
|
103
|
-
])
|
|
104
|
-
.execute();
|
|
105
|
-
|
|
106
|
-
const changeConflict = await createChangeConflict({
|
|
107
|
-
lix,
|
|
108
|
-
version: version0,
|
|
109
|
-
key: "mock-conflict",
|
|
110
|
-
conflictingChangeIds: new Set(["change0", "change1"]),
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
// Check that no new conflict is created
|
|
114
|
-
const conflictElements = await lix.db
|
|
115
|
-
.selectFrom("change_set_element")
|
|
116
|
-
.innerJoin(
|
|
117
|
-
"change_conflict",
|
|
118
|
-
"change_conflict.change_set_id",
|
|
119
|
-
"change_set_element.change_set_id"
|
|
120
|
-
)
|
|
121
|
-
.where("change_conflict.id", "=", changeConflict.id)
|
|
122
|
-
.selectAll()
|
|
123
|
-
.execute();
|
|
124
|
-
|
|
125
|
-
expect(conflictElements.length).toBe(2);
|
|
126
|
-
expect(conflictElements[0]?.change_id).toBe("change0");
|
|
127
|
-
expect(conflictElements[1]?.change_id).toBe("change1");
|
|
128
|
-
|
|
129
|
-
const changeConflict2 = await createChangeConflict({
|
|
130
|
-
lix,
|
|
131
|
-
version: version0,
|
|
132
|
-
key: "mock-conflict",
|
|
133
|
-
conflictingChangeIds: new Set(["change0", "change1"]),
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
expect(changeConflict2.id).toBe(changeConflict.id);
|
|
137
|
-
|
|
138
|
-
const changeConflict3 = await createChangeConflict({
|
|
139
|
-
lix,
|
|
140
|
-
version: version0,
|
|
141
|
-
key: "mock-conflict-other",
|
|
142
|
-
// 2 was preivously not in the conflict
|
|
143
|
-
conflictingChangeIds: new Set(["change1", "change2"]),
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
// Check that no new conflict is created
|
|
147
|
-
const conflictsAfter3Creation = await lix.db
|
|
148
|
-
.selectFrom("change_conflict")
|
|
149
|
-
.selectAll()
|
|
150
|
-
.execute();
|
|
151
|
-
|
|
152
|
-
const conflictElementsAfter3Creation = await lix.db
|
|
153
|
-
.selectFrom("change_set_element")
|
|
154
|
-
.innerJoin(
|
|
155
|
-
"change_conflict",
|
|
156
|
-
"change_conflict.change_set_id",
|
|
157
|
-
"change_set_element.change_set_id"
|
|
158
|
-
)
|
|
159
|
-
.where("change_conflict.id", "=", changeConflict.id)
|
|
160
|
-
.selectAll()
|
|
161
|
-
.execute();
|
|
162
|
-
|
|
163
|
-
expect(conflictsAfter3Creation.length).toBe(2);
|
|
164
|
-
expect(conflictsAfter3Creation.map((c) => c.key)).toStrictEqual([
|
|
165
|
-
"mock-conflict",
|
|
166
|
-
"mock-conflict-other",
|
|
167
|
-
]);
|
|
168
|
-
expect(conflictsAfter3Creation.map((c) => c.id)).toStrictEqual([
|
|
169
|
-
changeConflict.id,
|
|
170
|
-
changeConflict3.id,
|
|
171
|
-
]);
|
|
172
|
-
expect(conflictElementsAfter3Creation.length).toBe(2);
|
|
173
|
-
});
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { Version, Change, ChangeConflict } from "../database/schema.js";
|
|
2
|
-
import type { Lix } from "../lix/open-lix.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new change conflict with the given conflicting changes.
|
|
6
|
-
*
|
|
7
|
-
* @param args.key - The key of the change conflict.
|
|
8
|
-
* @param args.conflictingChanges - The conflicting changes.
|
|
9
|
-
*/
|
|
10
|
-
export async function createChangeConflict(args: {
|
|
11
|
-
lix: Pick<Lix, "db">;
|
|
12
|
-
key: string;
|
|
13
|
-
version: Pick<Version, "id">;
|
|
14
|
-
conflictingChangeIds: Set<Change["id"]>;
|
|
15
|
-
}): Promise<ChangeConflict> {
|
|
16
|
-
const executeInTransaction = async (trx: Lix["db"]) => {
|
|
17
|
-
// Check if a conflict with the same key and identical change IDs already exists
|
|
18
|
-
const existingConflict = await trx
|
|
19
|
-
.selectFrom("change_conflict")
|
|
20
|
-
.innerJoin(
|
|
21
|
-
"version_change_conflict",
|
|
22
|
-
"version_change_conflict.change_conflict_id",
|
|
23
|
-
"change_conflict.id"
|
|
24
|
-
)
|
|
25
|
-
// the version should point to the conflict
|
|
26
|
-
.where("version_change_conflict.version_id", "=", args.version.id)
|
|
27
|
-
// which has the identical key
|
|
28
|
-
.where("change_conflict.key", "=", args.key)
|
|
29
|
-
// and same set of changes
|
|
30
|
-
.where((eb) =>
|
|
31
|
-
eb.exists(
|
|
32
|
-
trx
|
|
33
|
-
.selectFrom("change_set_element")
|
|
34
|
-
.innerJoin("change_conflict", (join) =>
|
|
35
|
-
join.onRef(
|
|
36
|
-
"change_conflict.change_set_id",
|
|
37
|
-
"=",
|
|
38
|
-
"change_set_element.change_set_id"
|
|
39
|
-
)
|
|
40
|
-
)
|
|
41
|
-
.where(
|
|
42
|
-
"change_set_element.change_id",
|
|
43
|
-
"in",
|
|
44
|
-
Array.from(args.conflictingChangeIds)
|
|
45
|
-
)
|
|
46
|
-
.groupBy("change_set_element.change_set_id")
|
|
47
|
-
.having(
|
|
48
|
-
trx.fn.count("change_set_element.change_id"),
|
|
49
|
-
"=",
|
|
50
|
-
args.conflictingChangeIds.size
|
|
51
|
-
)
|
|
52
|
-
.select("change_set_element.change_set_id")
|
|
53
|
-
)
|
|
54
|
-
)
|
|
55
|
-
.selectAll()
|
|
56
|
-
.executeTakeFirst();
|
|
57
|
-
|
|
58
|
-
if (existingConflict) {
|
|
59
|
-
// Return the existing conflict if it already exists
|
|
60
|
-
return existingConflict;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const newChangeSet = await trx
|
|
64
|
-
.insertInto("change_set")
|
|
65
|
-
.defaultValues()
|
|
66
|
-
.returning("id")
|
|
67
|
-
.executeTakeFirstOrThrow();
|
|
68
|
-
|
|
69
|
-
const newConflict = await trx
|
|
70
|
-
.insertInto("change_conflict")
|
|
71
|
-
.values({
|
|
72
|
-
key: args.key,
|
|
73
|
-
change_set_id: newChangeSet.id,
|
|
74
|
-
})
|
|
75
|
-
.returningAll()
|
|
76
|
-
.executeTakeFirstOrThrow();
|
|
77
|
-
|
|
78
|
-
await trx
|
|
79
|
-
.insertInto("change_set_element")
|
|
80
|
-
.values(
|
|
81
|
-
Array.from(args.conflictingChangeIds).map((id) => ({
|
|
82
|
-
change_id: id,
|
|
83
|
-
change_set_id: newConflict.change_set_id,
|
|
84
|
-
}))
|
|
85
|
-
)
|
|
86
|
-
// Ignore if the conflict element already exists
|
|
87
|
-
.onConflict((oc) => oc.doNothing())
|
|
88
|
-
.execute();
|
|
89
|
-
|
|
90
|
-
await trx
|
|
91
|
-
.insertInto("version_change_conflict")
|
|
92
|
-
.values({
|
|
93
|
-
version_id: args.version.id,
|
|
94
|
-
change_conflict_id: newConflict.id,
|
|
95
|
-
})
|
|
96
|
-
.execute();
|
|
97
|
-
|
|
98
|
-
return newConflict;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
if (args.lix.db.isTransaction) {
|
|
102
|
-
return executeInTransaction(args.lix.db);
|
|
103
|
-
}
|
|
104
|
-
return args.lix.db.transaction().execute(executeInTransaction);
|
|
105
|
-
}
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { test, expect, vi } from "vitest";
|
|
2
|
-
import { openLixInMemory } from "../lix/open-lix-in-memory.js";
|
|
3
|
-
import type { Change } from "../database/schema.js";
|
|
4
|
-
import { detectChangeConflicts } from "./detect-change-conflicts.js";
|
|
5
|
-
import type { LixPlugin } from "../plugin/lix-plugin.js";
|
|
6
|
-
|
|
7
|
-
test("should detect conflicts using plugins", async () => {
|
|
8
|
-
const lix = await openLixInMemory({});
|
|
9
|
-
|
|
10
|
-
const mockPlugin: LixPlugin = {
|
|
11
|
-
key: "mock-plugin",
|
|
12
|
-
detectConflicts: vi.fn().mockResolvedValue([
|
|
13
|
-
{
|
|
14
|
-
key: "mock-conflict",
|
|
15
|
-
conflictingChangeIds: new Set(["change0", "change1"]),
|
|
16
|
-
},
|
|
17
|
-
]),
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// Mock the plugin.getAll method to return the mock plugin
|
|
21
|
-
lix.plugin.getAll = vi.fn().mockResolvedValue([mockPlugin]);
|
|
22
|
-
|
|
23
|
-
const changes = [
|
|
24
|
-
{
|
|
25
|
-
id: "change0",
|
|
26
|
-
entity_id: "entity0",
|
|
27
|
-
file_id: "file0",
|
|
28
|
-
schema_key: "type0",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: "change1",
|
|
32
|
-
entity_id: "entity1",
|
|
33
|
-
file_id: "file1",
|
|
34
|
-
schema_key: "type1",
|
|
35
|
-
},
|
|
36
|
-
] as const satisfies Partial<Change>[];
|
|
37
|
-
|
|
38
|
-
const detectedConflicts = await detectChangeConflicts({
|
|
39
|
-
lix,
|
|
40
|
-
changes: changes as unknown as Change[],
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
expect(detectedConflicts.length).toBe(1);
|
|
44
|
-
expect(detectedConflicts[0]?.key).toBe("mock-conflict");
|
|
45
|
-
expect(detectedConflicts[0]?.conflictingChangeIds).toEqual(
|
|
46
|
-
new Set(["change0", "change1"])
|
|
47
|
-
);
|
|
48
|
-
expect(mockPlugin.detectConflicts).toHaveBeenCalledWith({
|
|
49
|
-
lix,
|
|
50
|
-
changes,
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
test("should handle no conflicts detected by plugins", async () => {
|
|
55
|
-
const lix = await openLixInMemory({});
|
|
56
|
-
|
|
57
|
-
const mockPlugin: LixPlugin = {
|
|
58
|
-
key: "mock-plugin",
|
|
59
|
-
detectConflicts: vi.fn().mockResolvedValue([]),
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
// Mock the plugin.getAll method to return the mock plugin
|
|
63
|
-
lix.plugin.getAll = vi.fn().mockResolvedValue([mockPlugin]);
|
|
64
|
-
|
|
65
|
-
const changes = [
|
|
66
|
-
{
|
|
67
|
-
id: "change0",
|
|
68
|
-
entity_id: "entity0",
|
|
69
|
-
file_id: "file0",
|
|
70
|
-
schema_key: "type0",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
id: "change1",
|
|
74
|
-
entity_id: "entity1",
|
|
75
|
-
file_id: "file1",
|
|
76
|
-
schema_key: "type1",
|
|
77
|
-
},
|
|
78
|
-
] as const satisfies Partial<Change>[];
|
|
79
|
-
|
|
80
|
-
const detectedConflicts = await detectChangeConflicts({
|
|
81
|
-
lix,
|
|
82
|
-
changes: changes as unknown as Change[],
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
expect(detectedConflicts.length).toBe(0);
|
|
86
|
-
expect(mockPlugin.detectConflicts).toHaveBeenCalledWith({
|
|
87
|
-
lix,
|
|
88
|
-
changes,
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
test("should handle multiple plugins detecting conflicts", async () => {
|
|
93
|
-
const lix = await openLixInMemory({});
|
|
94
|
-
|
|
95
|
-
const mockPlugin1: LixPlugin = {
|
|
96
|
-
key: "mock-plugin1",
|
|
97
|
-
detectConflicts: vi.fn().mockResolvedValue([
|
|
98
|
-
{
|
|
99
|
-
key: "mock-conflict1",
|
|
100
|
-
conflictingChangeIds: new Set(["change0", "change1"]),
|
|
101
|
-
},
|
|
102
|
-
]),
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
const mockPlugin2: LixPlugin = {
|
|
106
|
-
key: "mock-plugin2",
|
|
107
|
-
detectConflicts: vi.fn().mockResolvedValue([
|
|
108
|
-
{
|
|
109
|
-
key: "mock-conflict2",
|
|
110
|
-
conflictingChangeIds: new Set(["change1", "change2"]),
|
|
111
|
-
},
|
|
112
|
-
]),
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
// Mock the plugin.getAll method to return the mock plugins
|
|
116
|
-
lix.plugin.getAll = vi.fn().mockResolvedValue([mockPlugin1, mockPlugin2]);
|
|
117
|
-
|
|
118
|
-
const changes = [
|
|
119
|
-
{
|
|
120
|
-
id: "change0",
|
|
121
|
-
entity_id: "entity0",
|
|
122
|
-
file_id: "file0",
|
|
123
|
-
schema_key: "type0",
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
id: "change1",
|
|
127
|
-
entity_id: "entity1",
|
|
128
|
-
file_id: "file1",
|
|
129
|
-
schema_key: "type1",
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
id: "change2",
|
|
133
|
-
entity_id: "entity2",
|
|
134
|
-
file_id: "file2",
|
|
135
|
-
schema_key: "type2",
|
|
136
|
-
},
|
|
137
|
-
] as const satisfies Partial<Change>[];
|
|
138
|
-
|
|
139
|
-
const detectedConflicts = await detectChangeConflicts({
|
|
140
|
-
lix,
|
|
141
|
-
changes: changes as unknown as Change[],
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
expect(detectedConflicts.length).toBe(2);
|
|
145
|
-
expect(detectedConflicts[0]?.key).toBe("mock-conflict1");
|
|
146
|
-
expect(detectedConflicts[0]?.conflictingChangeIds).toEqual(
|
|
147
|
-
new Set(["change0", "change1"])
|
|
148
|
-
);
|
|
149
|
-
expect(detectedConflicts[1]?.key).toBe("mock-conflict2");
|
|
150
|
-
expect(detectedConflicts[1]?.conflictingChangeIds).toEqual(
|
|
151
|
-
new Set(["change1", "change2"])
|
|
152
|
-
);
|
|
153
|
-
expect(mockPlugin1.detectConflicts).toHaveBeenCalledWith({
|
|
154
|
-
lix,
|
|
155
|
-
changes,
|
|
156
|
-
});
|
|
157
|
-
expect(mockPlugin2.detectConflicts).toHaveBeenCalledWith({
|
|
158
|
-
lix,
|
|
159
|
-
changes,
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
test("it should auto detect diverging entity conflicts", async () => {
|
|
164
|
-
const lix = await openLixInMemory({});
|
|
165
|
-
|
|
166
|
-
const changes = await lix.db
|
|
167
|
-
.insertInto("change")
|
|
168
|
-
.values([
|
|
169
|
-
{
|
|
170
|
-
id: "change0",
|
|
171
|
-
plugin_key: "plugin1",
|
|
172
|
-
schema_key: "mock",
|
|
173
|
-
file_id: "file0",
|
|
174
|
-
entity_id: "entity0",
|
|
175
|
-
snapshot_id: "no-content",
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
id: "change1",
|
|
179
|
-
plugin_key: "plugin1",
|
|
180
|
-
schema_key: "mock",
|
|
181
|
-
file_id: "file0",
|
|
182
|
-
entity_id: "entity0",
|
|
183
|
-
snapshot_id: "no-content",
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
id: "change2",
|
|
187
|
-
plugin_key: "plugin1",
|
|
188
|
-
file_id: "file0",
|
|
189
|
-
entity_id: "entity0",
|
|
190
|
-
schema_key: "mock",
|
|
191
|
-
snapshot_id: "no-content",
|
|
192
|
-
},
|
|
193
|
-
])
|
|
194
|
-
.returningAll()
|
|
195
|
-
.execute();
|
|
196
|
-
|
|
197
|
-
await lix.db
|
|
198
|
-
.insertInto("change_edge")
|
|
199
|
-
.values([
|
|
200
|
-
{ parent_id: "change0", child_id: "change1" },
|
|
201
|
-
{ parent_id: "change0", child_id: "change2" },
|
|
202
|
-
])
|
|
203
|
-
.execute();
|
|
204
|
-
|
|
205
|
-
const detectedConflicts = await detectChangeConflicts({
|
|
206
|
-
lix,
|
|
207
|
-
changes,
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
expect(detectedConflicts.length).toBe(1);
|
|
211
|
-
expect(detectedConflicts[0]?.key).toBe("lix-diverging-entity-conflict");
|
|
212
|
-
expect(detectedConflicts[0]?.conflictingChangeIds).toEqual(
|
|
213
|
-
new Set(["change1", "change2"])
|
|
214
|
-
);
|
|
215
|
-
});
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { Change } from "../database/schema.js";
|
|
2
|
-
import type { DetectedConflict, LixReadonly } from "../plugin/lix-plugin.js";
|
|
3
|
-
import { detectDivergingEntityConflict } from "./detect-diverging-entity-conflict.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Detects conflicts in the given set of changes.
|
|
7
|
-
*
|
|
8
|
-
* The caller is responsible for filtering out changes
|
|
9
|
-
* that should not lead to conflicts before calling this function.
|
|
10
|
-
*
|
|
11
|
-
* For example, detecting conflicts between two versiones should
|
|
12
|
-
* only include changes that are different between the two versiones
|
|
13
|
-
* when calling this function.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* const detectedConflicts = await detectChangeConflicts({
|
|
17
|
-
* lix: lix,
|
|
18
|
-
* changes: diffingChages,
|
|
19
|
-
* });
|
|
20
|
-
*/
|
|
21
|
-
export async function detectChangeConflicts(args: {
|
|
22
|
-
lix: Pick<LixReadonly, "db" | "plugin">;
|
|
23
|
-
changes: Change[];
|
|
24
|
-
}): Promise<DetectedConflict[]> {
|
|
25
|
-
const detectedConflicts: DetectedConflict[] = [];
|
|
26
|
-
const plugins = await args.lix.plugin.getAll();
|
|
27
|
-
|
|
28
|
-
// let plugin detect conflicts
|
|
29
|
-
await Promise.all(
|
|
30
|
-
plugins.map(async (plugin) => {
|
|
31
|
-
if (plugin.detectConflicts) {
|
|
32
|
-
const conflicts = await plugin.detectConflicts({
|
|
33
|
-
lix: args.lix,
|
|
34
|
-
changes: args.changes,
|
|
35
|
-
});
|
|
36
|
-
detectedConflicts.push(...conflicts);
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
// auto detect diverging entity conflicts
|
|
42
|
-
|
|
43
|
-
// group by the primary key (entity_id, file_id, type)
|
|
44
|
-
const groupedByEntity = Object.groupBy(
|
|
45
|
-
args.changes,
|
|
46
|
-
(change) => `${change.entity_id}_${change.file_id}_${change.schema_key}`
|
|
47
|
-
);
|
|
48
|
-
for (const changes of Object.values(groupedByEntity)) {
|
|
49
|
-
if (changes === undefined) {
|
|
50
|
-
continue;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (changes.length > 1) {
|
|
54
|
-
const divergingEntityConflict = await detectDivergingEntityConflict({
|
|
55
|
-
lix: args.lix,
|
|
56
|
-
changes,
|
|
57
|
-
});
|
|
58
|
-
if (divergingEntityConflict) {
|
|
59
|
-
detectedConflicts.push(divergingEntityConflict);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return detectedConflicts;
|
|
65
|
-
}
|