GitHub
12/11/2023, 10:00 PM3.1.1
🔗 Changelog
3.1.0
diff
🔗 Release note
3.0.3
🔗 Changelog
3.0.2
🔗 Changelog
3.0.1
🔗 Changelog
3.0.0
diff
🔗 Release note
3.0.0-alpha.6
What's Changed
• Updatefiles of plugins to use.d.tsby `@​fisker` in prettier/prettier#14435export default ...
Other changes since v2, see `3.0.0-alpha.1` release notes
Full Changelog: prettier/prettier@3.0.0-alpha.5...3.0.0-alpha.6
3.0.0-alpha.5
What's Changed
• Addfiles by `@​sosukesuzuki` in prettier/prettier#14212.d.ts
• Support TypeScript 5 viaparser by `@​fisker` in prettier/prettier#14391babel-ts
Other changes since v2, see `3.0.0-alpha.1` release notes
Full Changelog: prettier/prettier@3.0.0-alpha.4...3.0.0-alpha.5
3.0.0-alpha.4
What's Changed
• Remove support for Flow comment types by `@​thorn0` in prettier/prettier#13687
• Makework like v2 by `@​fisker` in prettier/prettier#13732resolveParser
• Addapis to cjs version by `@​fisker` in prettier/prettier#13731__debug
Other changes since v2, see `3.0.0-alpha.1` release notes
Full Changelog: prettier/prettier@3.0.0-alpha.3...3.0.0-alpha.4
3.0.0-alpha.3... (truncated) Changelog Sourced from prettier's changelog.
3.1.1
diff
Fix config file search (#15363 by `@​fisker`)
Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.
```
├─ .prettierrc
└─ test.js (A directory)
└─ .prettierrc
```
```
// Prettier 3.1.0
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/test.js/.prettierrc
// Prettier 3.1.1
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/.prettierrc
```
Skip explicitly passed symbolic links with(#15533 by `@​sanmai-NL`)--no-error-on-unmatched-pattern
Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.
In Prettier 3.1.1, you can useto simply skip symbolic links.--no-error-on-unmatched-pattern
Consistently use tabs in ternaries whenisuseTabs(#15662 by `@​auvred`)true
```
// Input
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;
// Prettier 3.1.0
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
</tr></table>
```... (truncated) Commits • `b86701d` Release 3.1.1 • `c97480c` Use
attributes instead of deprecated assertions (#15758)
• `0d1ffb3` Consistently use tabs in ternaries when useTabs is true (#15662)
• `5f7aedc` fix example to fit the actual experimentalTernaries behaviour (#15747)
• `1e30f66` Remove claim, untrue since over 5 years ago, that cursorOffset is incompatibl...
• `39e4e7b` Add cursorOffset to Playground (#15751)
• `8e816ad` Allow skipping symlink patterns, to avoid raising a fault (#15533)
• `2ca5d75` Fix expect call in dts test (#15766)
• `15c7428` chore(deps): update dependency flow-parser to v0.223.3 (#15760)
• `d3b3d4f` chore(deps): update dependency hermes-parser to v0.18.0 (#15761)
• Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by prettier-bot, a new releaser for prettier 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 …
pact-foundation/jest-pact
✅ All checks have passed
21/21 successful checks