Full-stack CRUD, simplified, with SSOT TypeScript entities
MIT License
Bot releases are visible (Hide)
Published by noam-honig about 1 year ago
Full Changelog: https://github.com/remult/remult/compare/v0.22.5...v0.22.6
Published by noam-honig about 1 year ago
Full Changelog: https://github.com/remult/remult/compare/v0.22.4...v0.22.5
Published by noam-honig about 1 year ago
Full Changelog: https://github.com/remult/remult/compare/v0.22.3...v0.22.4
Published by yoni-rapoport about 1 year ago
string
in cases where the 'one' table's ID column was not an integerPublished by noam-honig about 1 year ago
Full Changelog: https://github.com/remult/remult/compare/v0.22.1...v0.22.2
Published by noam-honig about 1 year ago
Fixed issue #215 - DisableTransactions in MongoDB, debugging Cosmos DB for MongoDB
Full Changelog: https://github.com/remult/remult/compare/v0.22.0...v0.22.1
Published by noam-honig over 1 year ago
ToJson
and FromJson
methods the the Repository
object. These are extremely useful in the context of SSR (next etc...) where you need to send plain json over the wire, but still want to have dates and other cool stuff in your appparalleldrive/cuid2
getDb
was called without a remult
parameter, it wouldn't use the default remultexperimentalDecorators
.
@Entity<Task>(...)
is now @Entity(...)
@Fields.string<Task>(...)
is now @Fields.string(...)
experimentalDecorator:false
for development, to get the typing, but experimentalDecorator:true
for deploying and functionality.Published by noam-honig over 1 year ago
Field.Json
fails to insert in case of arrayFull Changelog: https://github.com/remult/remult/compare/v0.21.0...v0.21.1
Published by noam-honig over 1 year ago
Full Changelog: https://github.com/remult/remult/compare/v0.20.5...v0.21.0
Published by noam-honig over 1 year ago
Full Changelog: https://github.com/remult/remult/compare/v0.20.5...v0.20.6
Published by noam-honig over 1 year ago
Full Changelog: https://github.com/remult/remult/compare/v0.20.4...v0.20.5
Published by noam-honig over 1 year ago
createdAt
apiReadAllowed:false
when apiUpdateAllowed
is set to undefinedFull Changelog: https://github.com/remult/remult/compare/v0.20.3...v0.20.4
Published by noam-honig over 1 year ago
Full Changelog: https://github.com/remult/remult/compare/v0.20.2...v0.20.3
Published by noam-honig over 1 year ago
allowApiUpdate
falseapiPrefix
to BackendMethod
options
to allow more control over backend method routes. #189Published by noam-honig over 1 year ago
Published by noam-honig over 1 year ago
Published by noam-honig over 1 year ago
Published by noam-honig over 1 year ago
Repository
validate
method that returns an ErrorInfo
object if invalid.fields
member that can be used to access the metadata of specific fields, for example:
repo.fields.title.caption
//or
repo.fields.title.inputType
insert
, validate
, create
, save
and update
value will now run fromJson
and toJson
for field values that do not match their type - for consistent behavior with the api
FieldMetadata
apiUpdateAllowed
to query if update
is allowed for this fieldincludedInApi
to query of this field would be returned from the backend as part of the apidisplayValue
that can be used to achieve a consistent way a field is displayed.toInput
and fromInput
methods that'll help with translating values from and to inputs.getId
method added to IdMetadata
to enable extracting the id from immutable objects, this is mainly useful for entities where the id
column is not called id
:)
repo.metadata.idMetadata.getId(task)
EntityMetadata
the apiUpdateAllowed
, apiDeleteAllowed
and apiInsertAllowed
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)) {
}
validate
method in EntityRef
and ControllerRef
that previously returned true if valid, now returns undefined
if valid and ErrorInfo
if invalidFieldMetadata
's ValueConverter
field's members are now mandatory and no longer optional - it's expected that they'll be implemented