You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to have more time in the coming weeks to do a proper release, so starting a issue to figure out what needs to be done:
Write the changelog
Run the JSX ternary big change through Facebook codebase and any edge cases it finds
Investigate and fix JSX/fbt issue that prevented to release 1.5 to fb www repo. The fix is likely going to be inside of the fbt transform so not open source.
Correctness issues we should fix:
Implement a tokenizer that extracts CSS comments and use prettier comment attachment instead of the current node-based comment that drops a lot of them CSS: Comment gets eaten #2127
Reacted by Mitermayer Reis, Airat Aminev, Fernando Alex Helwanger, Lucas Azzola, Vlad Shcherbin, Christian Pena Valerio, Ryan Hiebert, azu, Vitor Balocco, Hugo Agbonon and 25 more
IMO we should let @vjeux double-check the JSX stuff on the Facebook codebase, write the changelog and then release. The other things can be done later and shouldn't block the release.
Reacted by Vlad Shcherbin, Alex Rattray and Taylor Ham
Yeah the blocker is me at this point. This summer has been super intense with bunch of vacation, family visiting, switching teams... it'll all go back to normal at the end of next week.
Last time I tried to update prettier on the main codebase at Facebook it didn't go smoothly and had to be reverted so I want to get it right this time.
Once we're past this issue, we should be able to go back to business as usual. I'm also pretty excited because it's going to enable us to use prettier for CSS at fb :)
Reacted by Alex Rattray, Christian Pena Valerio, Matthieu Prat, Florian Mettetal and Kim Joar Bekkelund
Reacted by Alex Rattray, Eldar Chamoukhamedov, Florian Mettetal, Jonathan Edenström and Forbes Lindesay
Would it be possible to instead release a patch release with #2434? This would be such a huge feature yet is backwards compatible that it's a shame that it is just sitting around waiting to be released. I completely understand that you're busy @vjeux, perhaps there is another maintainer that could do such a minor release? If not, I imagine FB has some other developers that would be happy to jump in and help?
Reacted by Jacob Hilker, Yan Takushevich and Taylor Ham
I just fixed all the issues I could find running it through the fb codebase and understood what was wrong with our custom <fbt>.
I'll get started writing the changelog now :)
Reacted by Tao and Dana Woodman
Reacted by Ika, Vlad Shcherbin, Brian Ng, Taylor Ham, Daryl Roberts, Lucas Azzola, James Hegedus, Yan Takushevich, Dana Woodman, Hugo Agbonon and 2 more
Is "prettier" field in package.json going to be supported soon? The issues posted and commented on are misleading and all the issues referenced to this do not discuss this at all, or what version it will be available in.
Also, I was not able to get .prettierignore or an ignore option in a .prettierrc file working. I see that a search for "prettierignore" and "prettierrc" yield results in search on this repo in the tests folder, but I don't think this is even integrated yet?
@niftylettuce See #2434 for what Prettier 1.6 will support. The readme is a bit confusing right now, because it refers to master (what will become 1.6), while the latest released version is 1.5.3 (which does not support any kind of configuration file).
I get error Command failed with exit code 1. when using --list-different, but only when I've executed prettier through a package.json script and prettier has modified some files.
Prettier formats the files correctly (and there are no errors in my files), just the exit code is 1.
Another useful flag is --list-different (or -l) which prints the filenames of files that are different from Prettier formatting. If there are differences the script errors out, which is useful in a CI scenario.
Activity
suchipi commentedon Aug 8, 2017
Let me know if there's anything I can help with in regard to findings with the JSX ternary stuff
rattrayalex commentedon Aug 19, 2017
@vjeux where do we stand on this? Need any help?
lydell commentedon Aug 19, 2017
IMO we should let @vjeux double-check the JSX stuff on the Facebook codebase, write the changelog and then release. The other things can be done later and shouldn't block the release.
vjeux commentedon Aug 19, 2017
Yeah the blocker is me at this point. This summer has been super intense with bunch of vacation, family visiting, switching teams... it'll all go back to normal at the end of next week.
Last time I tried to update prettier on the main codebase at Facebook it didn't go smoothly and had to be reverted so I want to get it right this time.
Once we're past this issue, we should be able to go back to business as usual. I'm also pretty excited because it's going to enable us to use prettier for CSS at fb :)
danawoodman commentedon Aug 24, 2017
Would it be possible to instead release a patch release with #2434? This would be such a huge feature yet is backwards compatible that it's a shame that it is just sitting around waiting to be released. I completely understand that you're busy @vjeux, perhaps there is another maintainer that could do such a minor release? If not, I imagine FB has some other developers that would be happy to jump in and help?
vjeux commentedon Aug 24, 2017
I'm working on it right now, it's going to be resolved soon :)
vjeux commentedon Aug 25, 2017
I just fixed all the issues I could find running it through the fb codebase and understood what was wrong with our custom

<fbt>.I'll get started writing the changelog now :)
niftylettuce commentedon Aug 25, 2017
Is
"prettier"field inpackage.jsongoing to be supported soon? The issues posted and commented on are misleading and all the issues referenced to this do not discuss this at all, or what version it will be available in.niftylettuce commentedon Aug 25, 2017
The reason I ask, is because it's very annoying to have three separate configurations for prettier:
niftylettuce commentedon Aug 25, 2017
Also, I was not able to get
.prettierignoreor an ignore option in a.prettierrcfile working. I see that a search for "prettierignore" and "prettierrc" yield results in search on this repo in the tests folder, but I don't think this is even integrated yet?lydell commentedon Aug 25, 2017
@niftylettuce See #2434 for what Prettier 1.6 will support. The readme is a bit confusing right now, because it refers to
master(what will become 1.6), while the latest released version is 1.5.3 (which does not support any kind of configuration file).vjeux commentedon Aug 25, 2017
I'm done writing the release notes, I'd love some review from people with access to the repo that can read it: https://github.com/prettier/prettier/releases/tag/untagged-3197ffbe0b32929f207d
cc @lydell, @azz, @josephfrazier, @rattrayalex
existentialism commentedon Aug 25, 2017
@vjeux LGTM, nice work!
Small nit:
vjeux commentedon Aug 25, 2017
@existentialism feel free to edit it directly, I'm sure that there are a bunch of English typos :)
existentialism commentedon Aug 25, 2017
Just made a few small edits: https://github.com/prettier/prettier/releases/tag/untagged-75a9874eacb2f71c8a1c
1 remaining item
azz commentedon Aug 26, 2017
Just made a couple of small edits to the notes - mainly noting we support
.prettierrc, not.prettierconfig.vjeux commentedon Aug 26, 2017
@azz: feel free to expand on the config section if there are relevant details that are useful :)
azz commentedon Aug 26, 2017
I added a link to the relevant section of the readme.
ikatyang commentedon Aug 26, 2017
Just out of curious, shouldn't it be marked as
betatag?vjeux commentedon Aug 26, 2017
@ikatyang oh wow good call, I put the latest tag back to the other one! thanks!
adamroyle commentedon Aug 26, 2017
I get
error Command failed with exit code 1.when using--list-different, but only when I've executed prettier through a package.json script and prettier has modified some files.Prettier formats the files correctly (and there are no errors in my files), just the exit code is 1.
eg. script in my package.json
ikatyang commentedon Aug 26, 2017
@adamroyle
--list-differentazz commentedon Aug 27, 2017
@vjeux I just added the TS2.5 support and the computed property change (#2670) to the release notes.
proposal-optional-chaining (#2572) is missing from the release notes. Was that intentional due to it being an early stage proposal?
danawoodman commentedon Aug 27, 2017
Can the branch be
pushedtag to git?vjeux commentedon Aug 27, 2017
@azz: I must have skipped it, there was a bunch of commits, not intentional.
danawoodman commentedon Aug 27, 2017
@vjeux can we push tag to git?
SimenB commentedon Aug 28, 2017
Close this?