6935 remove order string syntax (#7220)
* Refactored support for ORDER BY clause so SQL injection is not possible. * Adds sublime text files to gitignore. Modified changelog to accurately represent changes to the order property. Fixed lint issues. * Added rejection with error where Order must be type of Array or instance of sequelize literal. * Removed support for options.order accepting strings. @TODO Look into plain objects with property raw @TODO Update documentation and tests * Removed all direct lodash and replaced them with Utils. ie. `_.isPlainObject` is now `Utils._.isPlainObject` find: `(?s)(?<!Utils\.)_\.` replace : `Utils._.` * Updates documentation for findAll order. * Added removeTicks to addTicks in quoteIdentifier for each dialect. * Added documentation for order by only an array. * Added breaking change to changelog and renamed error to be more general. @TODO: TESTS! * Fixes bad code when checking if the order is valid. * Updated unit tests. * Should incorporate all integration tests. * Update changelog.md capitalize Sequelize * Changes everything in query generator to use lodash outside of utils. * Instead of checking if the order object is an instance of a Utils member we just see if `_.isSequelizeMethod` is truthy. * Removing escapeId because it is no longer used. * Instead of removing ticks, we should escape them. * Instead of removing ticks, we should escape them. (reverted from commit e4dade0a18be85dfaf8f91f1210bc0b5bedcb31a) * Removes support for `._isSequelizeMethod` because it can be spoofed. Instead, use instanceof.
Showing
with
44 additions
and
43 deletions
-
Please register or sign in to post a comment