Releases: remult/remult
v0.24.1
- Improved JsonDataProvider to support promise for load and save, useful in all sorts of cases
- Fixed issue with ESM on NodeJS - Module '"remult/postgres"' has no exported member 'createPostgresDataProvider'.
Full Changelog: v0.24.0...v0.24.1
v0.24.0
Changed
- BREAKING CHANGE: PostgresDataProvider: Column & table names are now quoted (e.g.,
"firstName"
) to enforce specific casing in PostgreSQL.- To revert to the old (version < 0.24) case-insensitive identifiers, set
caseInsensitiveIdentifiers: true
when usingcreatePostgresDataProvider
.
- To revert to the old (version < 0.24) case-insensitive identifiers, set
Added
- ESM support for NodeJS
- Support for nuxt Fullstack framework
- Support for the
sqlExpression
field option in entities using theknex
data provider. schema
parameter toPostgresDataProvider
&createPostgresDataProvider
.findOne
method inRepository
with a unifiedoptions
parameter for simplicity.withRemultAsync
function inremultExpress
for contexts outside the normal request lifecycle.withRemult
function for obtaining a valid remult context in server scenarios.- Inclusion of
EntityMetadata
inCaptionTransformer.transformCaption
method. dbName
attribute inEntityMetadata
&FieldMetadata
.wrapIdentifier
optional parameter indbNamesOf
function.dbNames
as an optional parameter in thefilterToRaw
method ofSqlDatabase
.wrapIdentifier
method inSqlDatabase
for wrapping identifiers before sending to the database.
Deprecated
getDbName
method inEntityMetadata
&FieldMetadata
(to be removed in future versions).
Removed
run
method fromRemult
.
Renamed
withRemultPromise
towithRemultAsync
inRemultServer
.
Full Changelog: v0.23.5...v0.24.0
v.0.23.6
- Fixed issue where delete by id on the backend, didn't go through the deleting hook
Full Changelog: v0.23.5...v0.23.6
v.0.23.5
- Fixed
toOne
relation filter null for non nullable fields to work - Fixed
toOne
relation filter on $id:0 failed to work - Fixed wrongful loading of
toMany
relation on api withdefaultIncluded
Full Changelog: v0.23.4...v0.23.5
v.0.23.4
- Fixed Live query to also work in init api #306
Full Changelog: v0.23.3...v0.23.4
v0.23.3
v0.23.2
- Fixed issue with mongo db and contains
Full Changelog: v0.23.1...v0.23.2
v0.23.0
What's Changed
-
Added Relations - see Relations
-
Added LifecycleEvent info for saving,saved,deleting,deleted - see Entity Lifecycle Hooks
- Breaking change -
saving
inFieldOptions
now has a second parameter if EntityLifeCycle hook - and the fieldRef is the 3rd parameter.
- Breaking change -
-
Saving, Saved, Deleting, Deleted all run only on the backend now
-
include in api now supports expressions that use the current row
- Breaking change - instead of
if(repo.fields.name.includedInApi)
you now needif(repo.fields.name.includedInApi(instance))
- Breaking change - instead of
-
Changed the way an entity id is defined see Entity id's doc
Example:@Entity<OrderDetails>("orderDetails", { id: { orderId: true, productCode: true } })
-
added repo function which is A convenient shortcut function to quickly obtain a repository for a specific entity type in Remult.
await repo(Task).find()
-
Added support for (Hapi api server)[https://hapi.dev/]
-
Fixed exception with toRawFilter
-
Fixed json db to support db names
-
Fixed issue with sort result after live query
-
Fix issue with compound id on middleware based servers
-
Added with remult for sveltekit for usage before the remult hook
-
Fixed issue with requireId not respecting in statement #290
-
findId
was changed to no longer use cache by default
Full Changelog: v0.22.12...v0.23.0
v0.22.10
What's Changed
- Fixed issue with
repo.validate
without specifying fields
Full Changelog: v0.22.9...v0.22.10
v0.22.9
What's Changed
- Fixed issue with Entity Backend Method and fields with allow api false #255
New Contributors
- @OshriAsulin made their first contribution in #252
Full Changelog: v0.22.8...v0.22.9