Skip to content

Releases: remult/remult

v0.26.9

02 May 10:45
Compare
Choose a tag to compare

What's Changed

  • Fix order by error with multiple id columns

Full Changelog: v0.26.8...v0.26.9

v0.26.7

01 May 05:27
Compare
Choose a tag to compare
  • Fixed issue with id being empty in some cases in the saved hook
  • Added describeEntity and describeBackendMethods for better decorator-less support

Full Changelog: v0.26.6...v0.26.7

v0.26.6

29 Apr 06:21
Compare
Choose a tag to compare

What's Changed

  • Minor fix to async_hooks fallback for running on stackblitz
  • [doc] Deployment using ESM module by @sancelot in #418

New Contributors

Full Changelog: v0.26.5...v0.26.6

v0.26.5

28 Apr 08:03
Compare
Choose a tag to compare

What's Changed

  • Breaking change - changed the api of updateMany to receive a set option, instead of second parameter for the set
  • Fixed issue where dbNamesOf in entity sqlExpression did not work

New Contributors

Full Changelog: v0.26.4...v0.26.5

v0.26.4

24 Apr 09:09
Compare
Choose a tag to compare

What's Changed

  • getValueList now supports @Fields.literal & @Fields.enum (on top of ValueListType)

Full Changelog: v0.26.3...v0.26.4

v0.26.3

22 Apr 06:49
Compare
Choose a tag to compare

What's Changed

  • Fix delete on hono by @noam-honig in #413
  • Fixed an issue with admin not working with Hono@4.2

Full Changelog: v0.26.2...v0.26.3

v0.26.2

22 Apr 06:49
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.26.1...v0.26.2

v0.26.1

18 Apr 10:54
Compare
Choose a tag to compare

What's Changed

  • Doc tweaks by @jycouet in #407
  • fixed prevent default in deleting by @noam-honig in #409
  • Fixed issue where 404 returns an error - forbidden instead of not found

Full Changelog: v0.26.0...v0.26.1

v0.26.0

08 Apr 15:26
Compare
Choose a tag to compare

Features

  • Added support for migrations. See Migrations.
  • Added an error hook to RemultServerOptions that is called whenever there is an error in the API lifecycle. See RemultServerOptions.
  • Added ForbiddenError to the API, you can throw it anywhere in the request lifecycle to display a forbidden 401 error.
  • Added @Fields.literal and @Fields.enum.
  • Added support for better-sqlite3 without knex, see Connection a Database.
  • Added support for bun:sqlite #387.
  • Added a generic implementation for sqlite that can be easily extended to any provider.
  • Added apiPreprocessFilter and backendPreprocessFilter, see access control.
  • Added a way to analyze filter and query it - Filter.getPreciseValues, which returns a FilterPreciseValues object containing the precise values for each property. see access control.
  • Added an exception when calling updateMany or deleteMany without a filter - to protect against accidental deleting/updating all data.
  • Added updateMany and deleteMany to OpenAPI (swagger) & graphql

Improvements

  • Added validation for @Fields.number & Fields.integer that the value is a valid number.
  • Added "basic" supports for environments where async hooks doesn't work well - mostly for web based dev machines.
  • Improved the API of rawFilter so it can now return the SQL where to be added to the command. see Leveraging Custom Filters for Enhanced Data Filtering
  • KnexDataProvider now supports all execute and createCommand and can be used with any SqlDatabase functionality.
  • Changed postgres schema builder to use timestamptz instead of timestamp.
  • Changed the default storage of @Fields.object to text (varchar max) instead of string 255 in knex and sqlite.

Documentation Updates

Bug Fixes

  • Fixed an issue with entity ids that included date.
  • Fixed an issue with repo(Entity,dataProvider) - where saving wasn't fired because of wrong isProxy inference.
  • Fixed an issue with chaining of validators that in some cases caused a validator to be overwritten.
  • Fixed ValueConverters Number fromInput handle 0 as a valid value.

Breaking Changes

  • Changed the signature of updateMany and deleteMany to require a where parameter: repo(Task).delete({ where: { completed: true } }).
  • Changed the signature of getDb to receive DataProvider as a parameter instead of Remult.
  • Changed the POST REST API queries to include the filter under the where key in the body - previously, it included the filter as the body itself.

New Contributors

Full Changelog: v0.25.8...v0.26.0

v0.25.8

05 Apr 08:57
Compare
Choose a tag to compare
  • Fixed issues related to skipLibCheck: false
  • Fixed issues with typing of validators #400

Full Changelog: v0.25.7...v0.25.8