Skip to content

Releases: remult/remult

v0.19.1

02 Apr 13:31
Compare
Choose a tag to compare
  • Added Fields.json
  • Improved deno postgres support

v0.19.0

26 Mar 15:15
Compare
Choose a tag to compare
  • Repository
    • Added a validate method that returns an ErrorInfo 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 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
    • Added apiUpdateAllowed to query if update 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 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)

Breaking Changes

  • In 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)) {
    }
  • The validate method in EntityRef and ControllerRef that previously returned true if valid, now returns undefined if valid and ErrorInfo if invalid
  • FieldMetadata's ValueConverter field's members are now mandatory and no longer optional - it's expected that they'll be implemented

v.0.18.1

17 Mar 15:22
Compare
Choose a tag to compare
  • Solved issue #172 with "contains" query and knex data provider, on postgres.
  • improved performance of many-to-one with subscription
  • Improved url request when order by was not needed or was ascending only

v0.18.0

22 Feb 12:54
Compare
Choose a tag to compare

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 of createPostgresConnection() / createKnexConnection() moved and renamed to RemultServerOptions.ensureSchema
  • REST API filtering parameters naming delimiter changed to . instead of _

v0.17.3

08 Feb 15:20
Compare
Choose a tag to compare

Improved graphql support

v0.17.1

08 Feb 06:30
Compare
Choose a tag to compare

Fixed issue #167 - graphql error when using an entity that relies on global remult

v0.17.0

29 Nov 16:03
Compare
Choose a tag to compare

Fixed issue #145 - when using BackendMethod on Next.js, the error "can't use static remult in this environment, async_hooks were not initialized" error

v0.16.5

22 Oct 06:47
Compare
Choose a tag to compare

removed Knex's returning not supported

v0.16.4

22 Oct 06:14
Compare
Choose a tag to compare
  • Fixed #134
  • Added mysql2 to the automated database tests

v0.16.3

19 Oct 12:16
Compare
Choose a tag to compare