Skip to content

Releases: Guichaguri/crud-query-parser

1.1.1

16 Jul 23:48
Compare
Choose a tag to compare
  • Fixed multi-level relation joining in TypeORM

Full Changelog: 1.1.0...1.1.1

1.1.0

27 Jan 05:24
Compare
Choose a tag to compare

Changelog

Full Changelog: 1.0.0...1.1.0

1.0.0

07 Jan 02:54
Compare
Choose a tag to compare

After a few months of development and testing, this is the first stable release 😄

Breaking Changes

  • RequestParser now accepts URLSearchParams besides the query parameter object
    • This will only affect you if you had your own implementation of a RequestParser.
  • ensureCondition() now prepends conditions instead of appending
    • This should not affect you.
  • Pagination in TypeORM now starts at 1 instead of 0 to improve compatibility with @nestjsx/crud
    • You can add query.page = query.page ? query.page - 1 : undefined; to keep the old behavior.

Changelog

Full Changelog: 0.1.0...1.0.0

0.1.0

23 Nov 20:45
Compare
Choose a tag to compare
  • Added ensureEqCondition function
    • It's similar to ensureCondition but takes any object containing fields and values and generates the proper where conditions.
  • Added options to CrudRequestParser that allows disabling individual parameters.
    • This is useful if you want to take CrudRequests in "get one" operations and not allow where conditions.
  • Added field validation to TypeORM.
    • This allows you to either throw errors or ignore fields that are not in the entity.
    • This also fixes SQL injections in order
  • Fixed targeting relation fields in where and order on TypeORM.