Releases: remult/remult
Releases · remult/remult
v0.19.1
- Added Fields.json
- Improved deno postgres support
v0.19.0
Repository
- Added a
validate
method that returns anErrorInfo
object if invalid. - Added a
fields
member that can be used to access the metadata of specific fields, for example:repo.fields.title.caption //or repo.fields.title.inputType
- The
insert
,validate
,create
,save
andupdate
value will now runfromJson
andtoJson
for field values that do not match their type - for consistent behavior with theapi
- Added a
FieldMetadata
- Added
apiUpdateAllowed
to query ifupdate
is allowed for this field - Added
includedInApi
to query of this field would be returned from the backend as part of the api - Added
displayValue
that can be used to achieve a consistent way a field is displayed. - Added
toInput
andfromInput
methods that'll help with translating values from and to inputs.
- Added
getId
method added toIdMetadata
to enable extracting the id from immutable objects, this is mainly useful for entities where theid
column is not calledid
:)repo.metadata.idMetadata.getId(task)
Breaking Changes
- In
EntityMetadata
theapiUpdateAllowed
,apiDeleteAllowed
andapiInsertAllowed
that previously were boolean fields, are now methods that accepts item and return true or false. This is useful for cases where the apiAllowed rules refer to the specific values of an entity.// Previously if (repo.metadata.apiDeleteAllowed) { } // Now if (repo.metadata.apiDeleteAllowed(task)) { }
- The
validate
method inEntityRef
andControllerRef
that previously returned true if valid, now returnsundefined
if valid andErrorInfo
if invalid FieldMetadata
'sValueConverter
field's members are now mandatory and no longer optional - it's expected that they'll be implemented
v.0.18.1
v0.18.0
What's Changed
- NEW FEATURE - Live queries - turn any Remult data fetching (e.g. Repository.find()) call into a real-time live-query subscription with zero-boilerplate. See details in new tutorial section.
- Enhanced SQL escape hatch for backend code - combine raw SQL with entity metadata and typed filters for best performance AND maintainability. See docs.
- New Field types: Fields.createdAt, Fields.updatedAt, Fields.cuid.
- Better integration with Next.js 'getServerSideProps' - wrapper function enables the use of global
remult
object and JSON serializes entity objects. See Next.js tutorial section. autoCreateTables
flag ofcreatePostgresConnection()
/createKnexConnection()
moved and renamed toRemultServerOptions.ensureSchema
- REST API filtering parameters naming delimiter changed to
.
instead of_
v0.17.3
Improved graphql support
v0.17.1
v0.17.0
v0.16.5
removed Knex's returning not supported