Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-plugin-sql

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-sql - npm Package Compare versions

Comparing version 0.8.3 to 0.9.0

63

lib/index.js

@@ -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',

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc