prettier-plugin-sql
Advanced tools
Comparing version 0.8.3 to 0.9.0
@@ -137,5 +137,3 @@ import { __rest } from "tslib"; | ||
- \`tabWidth\` option is ignored. Indentation will always be 10 spaces, regardless of what is specified by \`tabWidth\` | ||
- \`newlineBeforeOpenParen\` option is ignored | ||
- \`newlineBeforeCloseParen\` option is ignored`, | ||
- \`tabWidth\` option is ignored. Indentation will always be 10 spaces, regardless of what is specified by \`tabWidth\``, | ||
choices: [ | ||
@@ -156,37 +154,2 @@ { | ||
}, | ||
multilineLists: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
type: 'choice', | ||
default: 'always', | ||
description: 'Determines when to break lists of items (e.g. columns in `SELECT` clause) to multiple lines for `sql-formatter`', | ||
choices: [ | ||
{ | ||
value: 'always', | ||
description: 'always breaks to multiple lines (even when just a single item)', | ||
}, | ||
{ | ||
value: 'avoid', | ||
description: 'avoids breaking to multiple lines, regardless of item count or line length', | ||
}, | ||
{ | ||
value: 'expressionWidth', | ||
description: 'breaks to multiple lines when the line would exceed value of `expressionWidth` option', | ||
}, | ||
{ | ||
value: undefined, | ||
description: 'breaks to multiple lines when there are more items than the specified number', | ||
// @ts-expect-error | ||
redirect: '_multilineLists', | ||
}, | ||
], | ||
}, | ||
_multilineLists: { | ||
// @ts-expect-error | ||
hidden: true, | ||
since: '0.7.0', | ||
category: 'Format', | ||
type: 'int', | ||
description: 'Determines when to break lists of items (e.g. columns in `SELECT` clause) to multiple lines for `sql-formatter`', | ||
}, | ||
logicalOperatorNewline: { | ||
@@ -239,3 +202,3 @@ since: '0.7.0', | ||
default: false, | ||
description: 'Aligns column aliases into a single column for `sql-formatter`. Does not effect table name aliases, does not work when option `multilineLists: "avoid"` is used.', | ||
description: 'Aligns column aliases into a single column for `sql-formatter`. Does not effect table name aliases.', | ||
}, | ||
@@ -263,24 +226,2 @@ commaPosition: { | ||
}, | ||
newlineBeforeOpenParen: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
type: 'boolean', | ||
default: true, | ||
description: `Decides whether to place open-parenthesis \`(\` of sub-queries on a separate line for \`sql-formatter\`. | ||
Caveats: | ||
This option is ignored when \`indentStyle: "tabularLeft"\` or \`"tabularRight"\` is used.`, | ||
}, | ||
newlineBeforeCloseParen: { | ||
since: '0.7.0', | ||
category: 'Format', | ||
type: 'boolean', | ||
default: true, | ||
description: `Decides whether to place close-parenthesis \`)\` of sub-queries on a separate line for \`sql-formatter\`. | ||
Caveats: | ||
This option is ignored when \`indentStyle: "tabularLeft"\` or \`"tabularRight"\` is used.`, | ||
}, | ||
expressionWidth: { | ||
@@ -287,0 +228,0 @@ since: '0.7.0', |
{ | ||
"name": "prettier-plugin-sql", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"type": "module", | ||
@@ -79,3 +79,3 @@ "description": "An opinionated sql formatter plugin for Prettier", | ||
"node-sql-parser": "^4.3.0", | ||
"sql-formatter": "^7.0.3" | ||
"sql-formatter": "^8.0.1" | ||
}, | ||
@@ -82,0 +82,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43727
950
+ Addedsql-formatter@8.2.0(transitive)
- Removedsql-formatter@7.0.4(transitive)
Updatedsql-formatter@^8.0.1