Skip to content

Releases: prettier/plugin-php

v0.25.0

Choose a tag to compare

@czosel czosel released this 29 Mar 19:51

Features

  • feat: support php-parser 3.4.0 (pipe operator and readonly anonymous classes) by @jorgsowa in #2459

Bugfixes

  • fix: detect >> and << in isBitwiseOperator by @jorgsowa in #2460
  • fix: correct "silence" typo to "silent" by @jorgsowa in #2464
  • fix: correct parts.unshift() to parts.shift() in isSimpleCallArgument by @jorgsowa in #2461
  • fix: don't parenthesize assign inside static variable declaration by @jorgsowa in #2463
  • fix: yield from parenthesis by @jorgsowa in #2466

Other

v0.24.0

Choose a tag to compare

@czosel czosel released this 16 Jul 08:09
  • feat!: bump default formatting version to composer version with fallback to latest supported PHP (#2434, thanks @cseufert!)

Breaking Change

The plugin now infers the phpVersion option from composer.json. If no such file is found, the default fallback is changed from 7.0 to the latest supported version, currently 8.4. See the new section in the README for details.

v0.23.0

Choose a tag to compare

@czosel czosel released this 13 Jul 18:45

Breaking Changes

  • chore!: upgrade dependencies, drop support for node 16 (#2431)

Features

Chores

Docs

  • Add Nova to the Editor List (#2423, thanks @stonerl)
  • docs: delete Atom code editor from the README.md (#2420, thanks @pure-js!)

v0.22.4

Choose a tag to compare

@czosel czosel released this 20 Jan 22:46
  • fix: parameter comment function attribute removal (#2412, thanks @LordSalmon!)
  • chore(ci): bump codecov action

v0.22.3

Choose a tag to compare

@czosel czosel released this 19 Jan 10:42
  • chore(deps): πŸ€– bump php-parser from 3.1.5 to 3.2.1 and add test for reserved keyword after null-safe operator (#2411, thanks @shufo!)

v0.22.2

Choose a tag to compare

@czosel czosel released this 03 Feb 20:53

What's Changed

  • Make chain breaking as similar to original prettier (js) as much as possible by @eldair in #2320
  • fix: πŸ› singleQuote option does not work on format API by @shufo in #2303
  • chore: upgrade dependencies by @czosel in #2321

New Contributors

Full Changelog: v0.22.1...v0.22.2

v0.22.1

Choose a tag to compare

@czosel czosel released this 16 Dec 19:05

v0.22.0

Choose a tag to compare

@czosel czosel released this 16 Dec 18:56
  • feat: make format compatible with "PER Coding Style 2.0" (#2269, thanks @ferchoz)
  • fix: make /standalone entry work with require() (#2247, thanks @shufo)
  • chore: upgrade deps (#2289)

0.21.0

Choose a tag to compare

@czosel czosel released this 15 Oct 12:08

Breaking changes

This release drops support for node v14.

v0.20.1

Choose a tag to compare

@czosel czosel released this 18 Aug 20:07

This package is now pure ESM.