Releases: Guichaguri/crud-query-parser
Releases · Guichaguri/crud-query-parser
1.1.1
- Fixed multi-level relation joining in TypeORM
Full Changelog: 1.1.0...1.1.1
1.1.0
Changelog
- Added Sequelize 6 support
- Fixed count queries in DynamoDB without where conditions throwing errors
- Added CrudRequest docs
Full Changelog: 1.0.0...1.1.0
1.0.0
After a few months of development and testing, this is the first stable release 😄
Breaking Changes
RequestParser
now acceptsURLSearchParams
besides the query parameter object- This will only affect you if you had your own implementation of a
RequestParser
.
- This will only affect you if you had your own implementation of a
ensureCondition()
now prepends conditions instead of appending- This should not affect you.
- Pagination in TypeORM now starts at
1
instead of0
to improve compatibility with@nestjsx/crud
- You can add
query.page = query.page ? query.page - 1 : undefined;
to keep the old behavior.
- You can add
Changelog
- Added array query adapter
- Added DynamoDB query adapter
- Added MongoDB and Mongoose query adapters
- TypeORM query adapter fixes
- Fixed IN LOWER and NOT IN LOWER operators
- Fixed NaN values when
getMany()
returns an empty result set - Fixed pagination starting at 0 instead of 1
- Added Express middleware
- Added
createCrudRequest()
utility function - Added
URLSearchParams
support toRequestParser
- Better documentation
- Now featuring 100% test coverage
Full Changelog: 0.1.0...1.0.0
0.1.0
- Added
ensureEqCondition
function- It's similar to
ensureCondition
but takes any object containing fields and values and generates the proper where conditions.
- It's similar to
- 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
andorder
on TypeORM.