Skip to content

Releases: remult/remult

v0.24.1

30 Dec 07:54
Compare
Choose a tag to compare
  • 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

28 Dec 12:43
Compare
Choose a tag to compare

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 using createPostgresDataProvider.

Added

  • ESM support for NodeJS
  • Support for nuxt Fullstack framework
  • Support for the sqlExpression field option in entities using the knex data provider.
  • schema parameter to PostgresDataProvider & createPostgresDataProvider.
  • findOne method in Repository with a unified options parameter for simplicity.
  • withRemultAsync function in remultExpress for contexts outside the normal request lifecycle.
  • withRemult function for obtaining a valid remult context in server scenarios.
  • Inclusion of EntityMetadata in CaptionTransformer.transformCaption method.
  • dbName attribute in EntityMetadata & FieldMetadata.
  • wrapIdentifier optional parameter in dbNamesOf function.
  • dbNames as an optional parameter in the filterToRaw method of SqlDatabase.
  • wrapIdentifier method in SqlDatabase for wrapping identifiers before sending to the database.

Deprecated

  • getDbName method in EntityMetadata & FieldMetadata (to be removed in future versions).

Removed

  • run method from Remult.

Renamed

  • withRemultPromise to withRemultAsync in RemultServer.

Full Changelog: v0.23.5...v0.24.0

v.0.23.6

26 Dec 16:51
Compare
Choose a tag to compare
  • 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

23 Dec 09:12
Compare
Choose a tag to compare
  • 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 with defaultIncluded

Full Changelog: v0.23.4...v0.23.5

v.0.23.4

20 Dec 07:06
Compare
Choose a tag to compare
  • Fixed Live query to also work in init api #306

Full Changelog: v0.23.3...v0.23.4

v0.23.3

19 Dec 16:59
Compare
Choose a tag to compare

What's Changed

  • Added support for notContains filter option

Full Changelog: v0.23.2...v0.23.3

v0.23.2

12 Dec 13:22
Compare
Choose a tag to compare

v0.23.0

11 Dec 10:05
Compare
Choose a tag to compare

What's Changed

  • Added Relations - see Relations

  • Added LifecycleEvent info for saving,saved,deleting,deleted - see Entity Lifecycle Hooks

    • Breaking change - saving in FieldOptions now has a second parameter if EntityLifeCycle hook - and the fieldRef is the 3rd parameter.
  • 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 need if(repo.fields.name.includedInApi(instance))
  • 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

17 Nov 16:33
Compare
Choose a tag to compare

What's Changed

  • Fixed issue with repo.validate without specifying fields

Full Changelog: v0.22.9...v0.22.10

v0.22.9

05 Oct 16:50
Compare
Choose a tag to compare

What's Changed

  • Fixed issue with Entity Backend Method and fields with allow api false #255

New Contributors

Full Changelog: v0.22.8...v0.22.9