Skip to content

build(deps): bump prettier-plugin-nginx from 1.0.3 to 2.0.0 in /prettier - #865

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/prettier/main/prettier-plugin-nginx-2.0.0
Open

build(deps): bump prettier-plugin-nginx from 1.0.3 to 2.0.0 in /prettier#865
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/prettier/main/prettier-plugin-nginx-2.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 7, 2026

Copy link
Copy Markdown
Contributor

Bumps prettier-plugin-nginx from 1.0.3 to 2.0.0.

Changelog

Sourced from prettier-plugin-nginx's changelog.

2.0.0

A rewrite for Prettier 3, with a parser that follows NGINX's own lexer.

Breaking changes

  • Requires Prettier 3.6 and Node.js 18 or later.
  • The package is published as both ES and CommonJS modules, and no longer ships its TypeScript sources.
  • The repository moved to jxddk/prettier-plugin-nginx.
  • A single blank line between statements is preserved; longer runs collapse to one. (#11)
  • Files end with a newline, unless they are empty. (#8)
  • Empty blocks print as {} on one line, or { } for a Lua block, which OpenResty requires to be non-empty.
  • Directives without parameters no longer receive alignment padding (ip_hash; instead of ip_hash ;).
  • Directive names that end beyond the middle of the line are left out of the alignment, so one long name, such as those in mime.types, no longer pushes every other parameter to the right margin.
  • if conditions are printed as if (...) with single spaces.
  • continuationIndent: 0 is respected instead of falling back to 2.
  • Invalid configuration is rejected with a syntax error, including its line and column, rather than being silently mangled.
  • endOfLine: "cr" is refused, because NGINX ends comments only at a line feed.

Features

  • *_by_lua_block directives from lua-nginx-module and stream-lua-nginx-module are recognised and their bodies re-indented, following the OpenResty block scanner. When a Prettier plugin providing a lua parser is loaded, the Lua is formatted with it. (#2)
  • nginx.conf, mime.types, fastcgi_params, fastcgi.conf, scgi_params, uwsgi_params, proxy_params, koi-utf, koi-win, win-utf and .vhost files are formatted automatically, as are .conf and .template files inside an nginx directory and the files in any sites-available, sites-enabled, conf.d or snippets directory below it. (#10, #9)
  • # prettier-ignore keeps the next statement verbatim.
  • # @format joins # @prettier as a pragma for --require-pragma, and --insert-pragma and --check-ignore-pragma (# @noformat, # @noprettier) are supported.
  • Comments between a directive's parameters are kept.

Fixes

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for prettier-plugin-nginx since your current version.


Dependabot compatibility score

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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 [prettier-plugin-nginx](https://github.com/jxddk/prettier-plugin-nginx) from 1.0.3 to 2.0.0.
- [Changelog](https://github.com/jxddk/prettier-plugin-nginx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jxddk/prettier-plugin-nginx/commits)

---
updated-dependencies:
- dependency-name: prettier-plugin-nginx
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from a team as a code owner September 7, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

0 participants