JavaScript: Support Smart and F#-style Pipeline (#6319)
* Modify to support smart-pipeline in printer
* Add tests
* add a changelog entry
* change minimal to smart
* fix parens issues
* Support fsharp-pipeline
* Fix needs-parens
* Try to fix ci problem
* Update changelog
* Add more tests
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>