Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Features
Query.updateBulk update the instances in a query. The provided fields will be changed on every matched item. (filters, limits and offsets apply)
Model.updateAllows updating fields on an instance with type hints, note that saving still needs to happen in a separate step.
Query.forEachNew Error types
WormError: Base error for all the errors produced by this libraryConnectionError: Whenever an operation is tried against a closed databaseModelError: Any Model validation error (eg. not nullable field set to null)Decorator-less definitions
This will allow using this library in a non-TS environment.
Global namespace
Now all the module's exports can be found in
globalThis.WORM."Script" usage
Other
distbuilds are now smaller, with a minified version available (closes Build minified versions in dist #24)