Skip to content

Releases: coresql/sql-query-identifier

v2.2.4

21 Nov 16:18
Compare
Choose a tag to compare

Bugfixes

  • Identify all invalid statements as unknown when not in strict mode

v2.2.3

04 Nov 01:30
edae798
Compare
Choose a tag to compare

Bugfixes

  • Fix identifying statements with nested CTEs
  • Fix identifying statement with terminating semicolon in middle of CTE

v2.2.2

28 Oct 01:54
b79d33b
Compare
Choose a tag to compare

Bugfixes

  • Ignore extra semi-colons between statements (similar to comments)

v2.2.1

15 Sep 23:53
Compare
Choose a tag to compare

Bugfixes

  • Sort parameters for psql dialect
  • Fix parsing CTE statements with lowercase tokens
  • Fix handling duplicate named variables in a query

v2.2.0

25 Aug 16:21
Compare
Choose a tag to compare

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

28 May 02:58
Compare
Choose a tag to compare

Bugfixes

  • Parse CR token as whitespace

v2.1.0

15 Mar 23:04
Compare
Choose a tag to compare

Features

  • Improve identification of quoted identifiers

Chores

  • Add repository field to package.json
  • Migrate from prepublish to prepublishOnly run-script

v2.0.0

25 Feb 21:54
bacdacb
Compare
Choose a tag to compare

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

21 Jan 22:59
Compare
Choose a tag to compare

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

01 Jan 01:11
Compare
Choose a tag to compare

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

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