Improve CREATE TABLE & CREATE VIEW formatting for BigQuery. #269
Upgrade dependencies. Notably switch from TypeScript 4.6.3 to 4.7.4. #271
7.0.3
Warnings and deprecations
A warning is now printed when params option values are not all strings. For now just a warning. In next major version non-string values will no more be accepted.
Optimized tokenizer. With large inputs the formatter is now considerably faster.
7.0.0
This release contains a major rewrite of how strings, identifiers, variables and parameters are handled internally. What is and isn't supported regarding these things in various dialects was also re-evaluated, resulting in removal of support for various bits of syntax that shouldn't have been there in the first place, along with addition of missing bits of syntax.
Breaking changes
The params option is no more supported for Hive and Spark. These dialects don't actually have prepared statements - the values of which params option was meant to provide. Instead the params there was used to replace substitution variables ${var_name}, which however did not work correctly either (e.g. inside strings).
Dropped @".." parameter placeholder support from SQLite
Dropped :name parameter placeholders from PostgreSQL
No more allowing # and $ chars in PL/SQL parameter placeholder names.
No more allowing . inside parameter placeholder names.
No more allowing # and @ in DB2 identifiers.
No more allowing $ and @ in BigQuery identifiers.
Dropped `backtick quoted identifiers` from PL/SQL, DB2, PostgreSQL, Redshift, Transact-SQL.
Dropped "double quoted identifiers" from Spark.
Dropped [bracket quoted identifiers] from DB2.
Removed lots of incorrect reserved keywords from SQLite (this mainly affects keywordCase option).
Dropped the sql-formatter.js bundle from dist/ dir. Now only sql-formatter.min.js and sql-formatter.min.js.map are left there.
New features and improvements
Added names of Oracle SQL functions (which are now also effected by keywordCase option).
Added names of SQLite functions (which are now also effected by keywordCase option).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps sql-formatter from 2.3.3 to 7.0.4.
Release notes
Sourced from sql-formatter's releases.
... (truncated)
Commits
97c9c49
Release v7.0.4281f837
Merge PR #271: Upgrade dependencies0f223d5
Drop Node 12.x support1cd41ed
Upgrade release-it2bdd591
Upgrade TypeScript870b4c4
Upgrade ts-loader05e2cfd
Upgrade Jest4d2e3cb
Upgrade ESLint & Prettierbeb87e0
Upgrade Webpackf782307
Upgrade BabelDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)