Ivan Babak
b9fb113b3b
feat(benchmark): add options to measure performance ( #4776 ) ( #4789 )
...
- `--debug-benchmark` uses `benchmark` module to produce statistically significant time measurements.
- `--debug-repeat` uses a naive loop and measures just the average run time, but useful for profiling to highlight hot functions.
2018-07-01 19:49:16 -07:00
Ika
50d242d085
feat(typescript): support TSOptionalType and TSRestType ( #4757 )
...
Ref: Microsoft/TypeScript#24897
2018-06-30 09:10:56 +08:00
Ika
e10c31a333
fix(typescript): update typescript-eslint-parser ( #4762 )
2018-06-29 19:27:21 +08:00
Lucas Duailibe
e765d31f8f
Release 1.13.7
2018-06-28 16:26:15 -03:00
Ika
0b659b898d
feat: update linguist languages ( #4741 )
...
Context: https://github.com/prettier/prettier/pull/4734#issue-196702272
Languages should be easy to maintain now.
2018-06-28 08:24:02 +08:00
Lucas Duailibe
1baddf27f2
Bump Prettier dependency to 1.13.6
2018-06-25 10:59:37 -03:00
Lucas Duailibe
114b30b196
Release 1.13.6
2018-06-25 10:58:03 -03:00
David Gomes
9e0b1223cd
Update postcss-scss parser version to 1.0.6 (with test for it). ( #4733 )
2018-06-22 13:42:15 +03:00
Ika
f53b5b8323
fix(options): inferParser for standalone ( #4721 )
2018-06-22 12:43:44 +08:00
Rubén Norte
cbef0105e9
Upgrade flow-parser to 0.75.0 ( #4727 )
...
* Upgrade flow-parser to 0.75.0
* Added failing test for optional catch binding and flow-parser@0.74.0
2018-06-21 10:50:54 -07:00
Ika
dcf44ffbdc
feat: support YAML ( #4563 )
...
* feat: support YAML
* fix: do not indent sequence in mappingValue
* docs: add yaml to index.md
* fix: reduce `SyntaxError: Node#parse consumed no characters`
* chore: remove old-build and new-worker.js
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* fix: no space after `<<`
* fix: add yaml to standalone test
* test: add tests
* fix: next empty line in flow collection
* fix: tabs are not allowed
http://yaml.org/spec/1.2/spec.html#space/indentation/
* fix: update parser
* feat: rewrite the mappingItem logic
* feat: indent sequence in mapping
* feat(doc): add ifBreak#groupId and group#id
* chore: fix node 4
* chore: add tools_yaml.svg
* chore: remove resolved TODO
* refactor: remove unnecessary workaround
* chore(worker): importScriptOnce
* chore(build): rename with babelPlugins
* make it rollup compatible
* feat: support singleQuote
* refactor
2018-06-21 10:29:42 +08:00
Lucas Duailibe
9ec1da1ad1
[internal] Cache build results ( #4693 )
2018-06-18 15:16:40 -03:00
Lucas Duailibe
78ac229956
Transpile webpack generated bundles ( #4689 )
2018-06-13 17:23:33 -03:00
Brian Ng
3e0dceda99
flow-parser@0.74.0 ( #4649 )
2018-06-09 17:03:50 -05:00
Ika
98bfd03d93
feat(typescript): support unknown type ( #4625 )
2018-06-10 00:12:30 +08:00
Lucas Duailibe
6d42fd12e4
Bump Prettier dependency to 1.13.5
2018-06-08 15:06:04 -03:00
Lucas Duailibe
ab4ee77b3a
Release 1.13.5
2018-06-08 15:00:50 -03:00
Ika
f27f6c525b
fix(typescript): preserve decorator on interface ( #4632 )
2018-06-05 00:08:24 +08:00
Ika
ae6abe4d8c
chore: bump own prettier to 1.13.4
2018-06-01 20:02:28 +08:00
Ika
dfefe259db
chore(release): 1.13.4
2018-06-01 19:59:12 +08:00
Lucas Duailibe
16da7d3a76
Bump own Prettier to 1.13.3
2018-05-30 15:04:20 -03:00
Lucas Duailibe
3d429dbade
1.13.3
2018-05-30 14:09:33 -03:00
Lucas Duailibe
68f594414e
Bump own Prettier to 1.13.2
2018-05-29 09:49:47 -03:00
Suchipi Izumi
c7d40b0ed9
1.13.2
2018-05-29 00:23:19 -06:00
Suchipi Izumi
fea34d4e70
Bump version to 1.13.1
2018-05-29 00:11:31 -06:00
Lucas Duailibe
9da80415f4
Bump own prettier dependency
2018-05-27 15:22:34 -03:00
Lucas Duailibe
8892b14d8a
1.13.0
2018-05-27 15:19:39 -03:00
Lucas Duailibe
68e24cef79
Build docs script
2018-05-27 15:19:01 -03:00
Brian Ng
d20d9c160e
Switch to @babel/parser ( #4544 )
...
We landed a change that added a new `InterpreterDirective` AST node type for hashbangs, and no longer add it as a comment/leadingComment.
Ref: https://github.com/babel/babel/pull/7928
I mimicked what we do in `@babel/generator` here, since I found it better than trying to add comments to the ast in `parser-include-shebang.js`). Definitely open to a better/cleaner option though!
Note: I'll follow this up with enabling tests for https://github.com/prettier/prettier/pull/4543 and https://github.com/prettier/prettier/pull/4540 once they land too.
2018-05-25 11:27:41 -05:00
Lucas Duailibe
174a7736c1
[build] Always transpile everything ( #4548 )
2018-05-25 12:47:01 -03:00
Brian Ng
e42db35427
Add support for flow inline interfaces ( #4543 )
...
Flow commit: 4f93f3adb7
Babel commit: https://github.com/babel/babel/pull/7973
Will follow up w/ flow team on making `InterfaceType` -> `InterfaceTypeAnnotation`, since it seems a bit inconsistent.
2018-05-25 09:17:43 -05:00
Christopher Chedeau
8f141bfafe
Update babylon & flow ( #4536 )
...
* Support new node types for optionals
* Update babylon
* Fix decorator tests
* fix manual errors
* Update flow
* pretty print
* enable option for flow to support ??
* fix AST_COMPARE=1
* fix lint and explicitly test 1_2_3 syntax for flow
2018-05-24 13:06:33 -07:00
Lucas Duailibe
ded8524acd
Drop node 4 support for development ( #4537 )
2018-05-24 15:49:57 -03:00
Lucas Duailibe
52a2a46b3c
New build system ( #4449 )
2018-05-24 15:30:45 -03:00
Lucas Duailibe
983202413c
Refactor frontmatter handling ( #4482 )
2018-05-14 22:17:15 -03:00
Alexander Kachkaev
7345a38e64
Fix plugin API in globally installed Prettier and introduce optional --plugin-search-dir ( #4192 )
...
* Fix plugin API in globally installed Prettier and introduce optional --plugin-search-dir
* Use find-parent-dir instead of find-up and test autoloading (with mocked fn)
* Add two test cases where --plugin-search-dir is not .
* Do not mutate pluginSearchDirs argument in load-plugins.js
* Do not test automatic plugin resolution as mocking of "find-parent-dir" does not work due to rollup
* Document --plugin-search-dir / pluginSearchDirs and improve spacing
* Address @ikatyang's review comments
* Fix require path for third-party
* Undo alphabetic sorting of third-party scripts
2018-05-09 19:17:12 +08:00
Elias Meire
5b7ebb18ba
Fix: Always preserve frontmatter, remove dependency ( #4392 )
...
* Fix: Always preserve frontmatter, remove dependency
* Move correct test to correct filename
* Add test for malformed frontmatter, finetune regex
* Use other malformed test case
* Update yarn.lock
2018-04-28 08:53:30 -03:00
Ika
643e2a83d6
feat(typescript): support TaggedTemplateExpression typeParameters ( #4353 )
...
* test: add tests
* feat(typescript): support TaggedTemplateExpression typeParameters
* fix(playground): `buffer is not defined` in `--parser typescript`
* chore(deps): update typescript-eslint-parser
2018-04-24 08:45:06 -05:00
Brian Ng
7cb6790ce0
Merge pull request #4326 from existentialism/flow70
...
Bump flow to 0.70
2018-04-18 17:04:14 -05:00
Stephen Scott
ad318f6f36
1.12.1
2018-04-16 20:45:29 -06:00
Brian Ng
e22ec0b9b9
Bump flow to 0.70
2018-04-16 20:53:07 -05:00
Suchipi Izumi
bdc5e0073d
Bump own prettier dependency to 1.12.0
2018-04-11 22:39:13 -06:00
Suchipi Izumi
6ae20cbdb8
1.12.0
2018-04-11 22:31:54 -06:00
Lucas Duailibe
46c8a4cd9d
Move sw-toolbox to `website` dependencies ( #4297 )
2018-04-11 11:38:48 -03:00
Christopher Chedeau
7819a8f010
[flow] Upgrade flow to 0.69 and enable ?. support ( #4296 )
...
Flow now support ?. so this PR enables it in prettier
2018-04-10 18:03:34 -07:00
Evilebot Tnawi
d676188dbb
chore(deps): update `html-tag-names` package ( #4242 )
2018-04-02 16:25:29 +03:00
Evilebot Tnawi
76cb653347
chore: update `postcss-scss` and `postcss-less` ( #4237 )
2018-04-02 12:50:48 +03:00
Evilebot Tnawi
f2f2390114
fix: inline comments in lists and maps ( #4205 )
2018-03-31 17:18:23 +03:00
Rui Araújo
9da8752585
Allow new interface style for GraphQL. ( #4012 )
...
* Allow new interface style for GraphQL.
This is a breaking change since it will upgrade the old style to the new one.
Closes #3600 .
* Allow old interface style.
When in present of mixed style, it updates to the new one.
2018-03-27 00:52:57 -06:00
Wang Zhongliang
67277f7477
feat(typescript): support TSMinusToken
2018-03-16 10:46:12 +08:00