Releases: coresql/sql-query-identifier
Releases · coresql/sql-query-identifier
v2.2.4
Bugfixes
- Identify all invalid statements as unknown when not in strict mode
v2.2.3
Bugfixes
- Fix identifying statements with nested CTEs
- Fix identifying statement with terminating semicolon in middle of CTE
v2.2.2
Bugfixes
- Ignore extra semi-colons between statements (similar to comments)
v2.2.1
Bugfixes
- Sort parameters for psql dialect
- Fix parsing CTE statements with lowercase tokens
- Fix handling duplicate named variables in a query
v2.2.0
Features
- Add support for identifying create/drop view statements
- Add
getExecutionType
method to get execution type for a command - Add support for identifying alter statements
- Add support for identifying create/drop/alter schema statements
- Add support for identifying parameters in queries
Bugfixes
- Narrow type information for
Token.type
Build
- Add Node 16 to test matrix
v2.1.1
Bugfixes
- Parse CR token as whitespace
v2.1.0
Features
- Improve identification of quoted identifiers
Chores
- Add repository field to package.json
- Migrate from prepublish to prepublishOnly run-script
v2.0.0
Breaking Changes
- The module sets minimum supported version of Node to 10. While this package may run on Node 6 and 8, it is unsupported. Older versions of Node will probably not work.
Features
- Add support for parsing statements using CTE
Build
- Convert module to TypeScript (does not affect downstream usage)
v1.3.0
Features
- Add identification support for
CREATE_FUNCTION
- Add identification support for
DROP_TRIGGER
- Add identification support for
DROP_FUNCTION
- Support tokenizing words with underscores
- Support tokenizing dollar quoted strings
v1.2.0
Features
- Add support for identification of CREATE TRIGGER statements
- Add
dialect
option to set database type to better handle database specific query syntax - Add typings to library for use in TypeScript projects, deprecating usage of
@types/sql-query-identifier
Maintenance
- Add @MasterOdin and @rathboma as maintainers
Build
- Migrate from Travis-CI to GitHub actions for continuous integration
- Add additional non-essential files to .npmignore
- Upgrade to eslint to v7
- Upgrade to babel to v7
- Upgrade mocha to v8
- Upgrade chai to v4