Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@lix-js/[email protected]
Minor Changes
4d9d980: adds unique and default human readable version names
version.name
which eases conditional logic.cc93bd9: Refactor: Use nano-ids for change controlled tables like discussions, comments, and labels.
Additional information
The pattern is still not human readable. I assume that we will introduce a human readable pattern in the future in addition to permalinks. This change is a incremental step towards better link sharing and good enough for now.
Performance implications
Nano IDs are not sortable and theoretically make insertions slower. However, until we get lix'es that have billions of rows we need to get users first. Sharing is a key feature to get users.
Patch Changes
85eb03e: refactor: remove
comment.created_at
andcomment.created_by
removecomment.created_at
andcomment.created_by
lix-sdk#175Comments and discussions are now change controlled. Hence, knowing when a comment or discussion has been created can be queried via the changes. This removes the need for the
created_at
andcreated_by
fields on theComment
andDiscussion
entities, and thereby simplifies the schema, avoids duplicate date, and reduces the risk of inconsistencies.2d3ab95: refactor: explicit
firstComment
argument increateDiscussion()
createDiscussion
explicitfirstComment
prop lix-sdk#164It was unclear that the
content
argument increateDiscussion()
was meant to be the first comment. This change makes it explicit by renaming the argument tofirstComment
.d78a1bf: improve: remove top level await in json parsing
required for lix apps that transpile to CJS. CJS does not support top level await.
see support for top level await evanw/esbuild#253
6b14433: refactor: rename
change_queue
tofile_queue
rename change_queue to file_queue lix-sdk#1689f1765a: refactor: rename plugin_key:
lix_own_entity
tolix_own_change_control
Closes rename plugin_key:
lix_own_entity
tolix_own_change_control
lix-sdk#197c494dca: refactor: remove
change_set_label_author
table.Closes remove
change_set_label_author
lix-sdk#227Change set labels are now under own change control. Querying who created a label can happen via the change table itself.
fc5a5dd: fix: duplicate version changes
Closes fix version switching in sync with missing file lix-sdk#217 by making version changes have a unique (entity_id, file_id, schema_key).
Sync was buggy because the sync process is an async process. A client received multiple version changes for the same entity and inserted them fix version switching in sync with missing file lix-sdk#217 (comment) without checking if the version change for the entity already exists.
8c4ac57: refactor: rename
parent
tofrom
increateVersion()
renamecreateVersion({ parent })
tocreateVersion({ from })
lix-sdk#2138629faa: fix: queries against closed database
closes fix file queue running after database close lix-sdk#226
de6d717: fix: type mismatch of
file.data
The type of
file.data
inFile
interface is changed fromArrayBuffer
toUint8Array
to match the type ofUint8Array
returned by SQLite and various file related APIs.be9effa: Extract
toBlob()
fromlix.*
objectlix.toBlob()
doesn't account for transactions lix-sdk#196b74e982: refactor: replace
#*
key syntax withskip_change_control
columncloses use
SKIPCC_*
instead of#*
for skipping change control in key value lix-sdk#191Enables matching of flags and avoids re-names of keys. This change replaces the
#*
key syntax with askip_change_control
column in theflags
table.5eecc61: refactor: rename
file_id
of own changes fromnull
tolix_own_change_control
to avoid debugging confusions make own change controlfile_id = lix_itself
instead of'null'
lix-sdk#194@opral/[email protected]
Minor Changes
1f50c49: refactor: dual bundle dist output and index exports
the output of the dist folder now includes bundled components that can be imported in the browser as well as the index.js file that exports the components for apps that are responsible for bundling the components themselves.
015da74: Separate the markdown-wc-doc-elements package from the markdown-wc package. This package provides a set of custom elements that can be used to write (technical) documentation.
[email protected]
Minor Changes
8314f4c: improve: clears the OPFS in case the lix file can't be loaded.
If the lix schema changed, loading existing lix'es breaks with no possibility for users to fix the situation. Auto clearing the OPFS ledas to the creation of a new lix file with the new schema.
Patch Changes
31b7cda: Refactor(fix):
file.data
fromArrayBuffer
toUint8Array
The lix SDK's file.data type changed from
ArrayBuffer
toUint8Array
. SQLite returnedUInt8Array
.Updated dependencies [85eb03e]
Updated dependencies [2d3ab95]
Updated dependencies [d78a1bf]
Updated dependencies [6b14433]
Updated dependencies [9f1765a]
Updated dependencies [c494dca]
Updated dependencies [4d9d980]
Updated dependencies [cc93bd9]
Updated dependencies [fc5a5dd]
Updated dependencies [31b7cda]
Updated dependencies [8c4ac57]
Updated dependencies [8629faa]
Updated dependencies [de6d717]
Updated dependencies [be9effa]
Updated dependencies [b74e982]
Updated dependencies [5eecc61]
[email protected]
Minor Changes
c016fe4: improve: clears the OPFS in case the lix file can't be loaded.
If the lix schema changed, loading existing lix'es breaks with no possibility for users to fix the situation. Auto clearing the OPFS ledas to the creation of a new lix file with the new schema.
Patch Changes
be92eb8: replaces newsletter example with salary example that has changes
31b7cda: Refactor(fix):
file.data
fromArrayBuffer
toUint8Array
The lix SDK's file.data type changed from
ArrayBuffer
toUint8Array
. SQLite returnedUInt8Array
.Updated dependencies [85eb03e]
Updated dependencies [2d3ab95]
Updated dependencies [d78a1bf]
Updated dependencies [6b14433]
Updated dependencies [9f1765a]
Updated dependencies [c494dca]
Updated dependencies [4d9d980]
Updated dependencies [cc93bd9]
Updated dependencies [fc5a5dd]
Updated dependencies [31b7cda]
Updated dependencies [8c4ac57]
Updated dependencies [8629faa]
Updated dependencies [de6d717]
Updated dependencies [be9effa]
Updated dependencies [b74e982]
Updated dependencies [5eecc61]
@opral/[email protected]
Minor Changes
015da74: Separate the markdown-wc-doc-elements package from the markdown-wc package. This package provides a set of custom elements that can be used to write (technical) documentation.
3c453b5: Refactor: Remove dependency on TailwindCSS to increase interoperability.
3c453b5: Ensure interoperability and portability by letting documents import components via frontmatter.
@lix-js/[email protected]
Patch Changes
@lix-js/[email protected]
Patch Changes
31b7cda: Refactor(fix):
file.data
fromArrayBuffer
toUint8Array
The lix SDK's file.data type changed from
ArrayBuffer
toUint8Array
. SQLite returnedUInt8Array
.Updated dependencies [85eb03e]
Updated dependencies [2d3ab95]
Updated dependencies [d78a1bf]
Updated dependencies [6b14433]
Updated dependencies [9f1765a]
Updated dependencies [c494dca]
Updated dependencies [4d9d980]
Updated dependencies [cc93bd9]
Updated dependencies [fc5a5dd]
Updated dependencies [8c4ac57]
Updated dependencies [8629faa]
Updated dependencies [de6d717]
Updated dependencies [be9effa]
Updated dependencies [b74e982]
Updated dependencies [5eecc61]
@lix-js/[email protected]
Patch Changes
@lix-js/[email protected]
Patch Changes
896602f: fix: emit .js file for node js
Otherwise, node js will throw "UNKNOWN FILE EXTENSION .ts".
[email protected]
Patch Changes