Georgii Dolzhykov
607afd7b36
Release 2.0.2
2020-03-24 00:32:35 +02:00
Georgii Dolzhykov
cfb6166296
update stable docs wrt npx
2020-03-23 23:25:39 +02:00
Georgii Dolzhykov
58ac3b0c15
Revert "markdown: fix redundant leading spaces in markdown list" ( #7847 )
2020-03-23 22:47:36 +02:00
Georgii Dolzhykov
8ec7bc229a
fix formatting of pseudo-elements and pseudo-classes in styled-components ( #7842 )
2020-03-23 16:59:49 +02:00
Georgii Dolzhykov
fac9ce07fe
mention npx in install docs
2020-03-23 14:40:41 +02:00
Georgii Dolzhykov
ba500e22f9
Refactor inferParser to extract interpreter only once ( #7835 )
2020-03-23 03:33:53 +02:00
Georgii Dolzhykov
996d1cbb4f
Add please-upgrade-node ( #7837 )
2020-03-23 03:32:05 +02:00
Georgii Dolzhykov
0d813b7d4a
update 2.0 blog post wrt #7660
2020-03-23 03:10:44 +02:00
Georgii Dolzhykov
6835aa8dda
fix prettier-ignore in union types ( #7798 )
2020-03-23 00:51:40 +02:00
Georgii Dolzhykov
55fdc499e6
update 2.0 blog post wrt #6993
2020-03-23 00:25:46 +02:00
Georgii Dolzhykov
445e08fc0f
remove codemirror from website/package.json as Playground loads it from CDN ( #7823 )
2020-03-22 19:27:31 +02:00
Georgii Dolzhykov
d244c6fe8f
remove 2.0 notice from readme
2020-03-22 14:09:19 +02:00
Georgii Dolzhykov
e23e5ccbb6
website: spell check js code, add twitterImage
2020-03-22 03:48:31 +02:00
Georgii Dolzhykov
ed54300087
fix message in release script
2020-03-22 01:10:11 +02:00
Georgii Dolzhykov
f56d620be5
Bump Prettier dependency to 2.0.1
2020-03-22 01:08:06 +02:00
Georgii Dolzhykov
c5c9332d77
Release 2.0.1
2020-03-22 01:05:58 +02:00
Georgii Dolzhykov
c9225caac2
Tweak build script to not corrupt import-fresh
2020-03-22 00:46:01 +02:00
Georgii Dolzhykov
6953471d22
revert whitespace changes from the previous commit
2020-03-22 00:32:38 +02:00
Georgii Dolzhykov
4314e9cacc
update blog post
2020-03-22 00:11:07 +02:00
Georgii Dolzhykov
8f7164fdf4
clean changelog_unreleased
2020-03-21 22:41:36 +02:00
Georgii Dolzhykov and Jed Fox
8334610aa2
Blog post for 2.0 ( #7417 )
...
* add a script that concatenates changelog_unreleased into a blog post draft
* syntax highlighting issues
* generate post draft
* Copy edit, remove error stacks
* Update 2020-00-00-2.0.0.md
* Update changelog source files
* edit entries, regenerate the post
* add lost file in versioned_docs
Co-authored-by: Jed Fox <git@twopointzero.us >
2020-03-21 22:24:23 +02:00
Georgii Dolzhykov
9dad95b35f
Bump Prettier dependency to 2.0.0
2020-03-21 22:09:54 +02:00
Georgii Dolzhykov
5b3028e220
Release 2.0.0
2020-03-21 21:59:05 +02:00
Georgii Dolzhykov
262423a0f9
run yarn-deduplicate
2020-03-21 21:02:46 +02:00
Georgii Dolzhykov
6d0607cebf
Update release script
2020-03-21 21:02:18 +02:00
Georgii Dolzhykov
b3008f2caf
Merge remote-tracking branch 'remotes/upstream/master' into next
2020-03-21 00:56:36 +02:00
Georgii Dolzhykov
1ad13d7420
Ultimate fix for Closure-style type casts ( #7791 )
2020-03-19 18:26:22 +02:00
Georgii Dolzhykov
3f1c46373a
Expand directories in CLI (2020) ( #7660 )
2020-03-17 01:34:32 +02:00
Georgii Dolzhykov
318bf2cb33
Partial support for TypeScript 3.8 (private fields, import/export type modifier) ( #7631 )
...
* support TypeScript 3.8
* Update standard_private_fields.ts
* improve tests for import/export type modifier
* temporary hacks for private fields
* comment out some tests, update snapshots
* add changelog entry
2020-03-11 17:40:57 +03:00
Georgii Dolzhykov
a7e92624b3
add changelog entry for #6981 ( #7747 )
...
fixes #7741
2020-03-10 12:38:04 +02:00
Georgii Dolzhykov
76c5ea47a2
azure pipelines: switch to macOS 10.14 ( #7739 )
...
see https://devblogs.microsoft.com/devops/removing-older-images-in-azure-pipelines-hosted-pools/
2020-03-10 10:27:28 +02:00
Georgii Dolzhykov
8b85bdc21e
fix commands in CONTRIBUTING.md
2020-02-27 13:58:25 +02:00
Georgii Dolzhykov
6748840174
Merge remote-tracking branch 'remotes/upstream/master' into next
2020-02-27 02:49:35 +02:00
Georgii Dolzhykov
1f64401915
remove --stdin ( #7668 )
2020-02-27 02:19:52 +02:00
Georgii Dolzhykov
d469140322
exclude another debug path from coverage
2020-02-26 21:08:27 +02:00
Georgii Dolzhykov
78784871e8
exclude a debug path from coverage
2020-02-25 02:09:47 +02:00
Georgii Dolzhykov
a6563fa584
edit changelog entries
2020-02-24 23:03:55 +02:00
Georgii Dolzhykov
0bca7a0a4f
merge changelog entries for removed deprecated API
2020-02-24 22:58:29 +02:00
Georgii Dolzhykov
cf3d9f0b80
api: remove the version parameter of getSupportInfo ( #7620 )
...
* api: remove the version parameter of getSupportInfo
* add changelog entry
* remove mapDeprecated
* Update pr-7620.md
* remove the first parameter completely
* Update api.md
* add default value for opts just to be on the safe side
2020-02-23 02:47:17 +02:00
Georgii Dolzhykov
473bf9f50d
Merge remote-tracking branch 'remotes/upstream/master' into next
2020-02-18 17:29:57 +02:00
Georgii Dolzhykov
16c0a7a10f
Rudimentary support for the most used directives of AngularJS 1.x ( #6869 )
...
* Rudimentary support for the most used directives of AngularJS 1.x
* add ng-class and ng-style
* add changelog entry in the new format
* Update pr-6869.md
* update snapshots
2020-02-18 00:38:23 +02:00
Georgii Dolzhykov
5dab172700
Merge remote-tracking branch 'remotes/upstream/master' into next
2020-02-14 14:08:20 +02:00
Georgii Dolzhykov
850e705d10
Fix edge cases with parentheses around optional chaining ( #7500 )
...
* fix disappearing parens in (foo?.bar)()
* fix `new (foo?.bar)();`
2020-01-31 12:50:08 +02:00
Georgii Dolzhykov
6f1ed54206
fix tests on Windows: drive letter case returned by process.cwd() depends on environment ( #7409 )
2020-01-23 10:34:53 +02:00
Georgii Dolzhykov
37a7e9cd42
Merge branch 'master' into next
2020-01-22 14:55:22 +02:00
Georgii Dolzhykov
8efa29ca0c
fix object literal checks in isSimpleCallArgument ( #7403 )
2020-01-21 17:55:43 +02:00
Georgii Dolzhykov
3fd0d56a95
angular: fix i18n attr with @@ ( #7371 )
...
* angular: fix i18n attr with @@
* changelog
2020-01-16 15:57:33 +02:00
Georgii Dolzhykov
7e3c0c73b3
Merge branch 'master' into next
2020-01-14 20:36:21 +02:00
Georgii Dolzhykov
67a99ef2a8
start using object spread syntax ( #7242 )
2020-01-14 14:00:46 +02:00
Georgii Dolzhykov
26272bfc32
Bump @babel/core from 7.7.2 to 7.7.7
2020-01-10 14:38:40 +02:00
Georgii Dolzhykov
7d88fb81c6
fix snapshots after merge
2020-01-10 02:38:28 +02:00
Georgii Dolzhykov
29e8496384
fix yarn.lock, add version resolutions for glimmer
...
See https://github.com/prettier/prettier/pull/6570 re glimmer
2020-01-10 02:35:42 +02:00
Georgii Dolzhykov
d83277bdf2
remove code for old Node from jest config
2020-01-10 00:45:51 +02:00
Georgii Dolzhykov
9868017749
change version to 2.0.0-dev in package.json
2020-01-10 00:39:06 +02:00
Georgii Dolzhykov
5f2384e497
use lodash/* instead of lodash.* ( #7235 )
2020-01-09 17:48:02 +02:00
Georgii Dolzhykov
19499ec723
add netlify.toml to override the node version on netlify
2020-01-09 17:01:29 +02:00
Georgii Dolzhykov
773ebd85e8
fix snapshots
2020-01-09 17:01:05 +02:00
Georgii Dolzhykov
42e7f7f1a5
Merge remote-tracking branch 'remotes/upstream/master' into next
2020-01-09 16:55:41 +02:00
Georgii Dolzhykov
ff566879d8
fix build: remove reference to replace-array-includes-with-indexof
2020-01-09 16:45:17 +02:00
Georgii Dolzhykov
9b7f097368
fix snapshots
2020-01-09 16:38:22 +02:00
Georgii Dolzhykov
1f5e8488fd
tests: "Expected" and "Received" are mixed up in parser verification tests ( #7125 )
2019-12-10 18:37:50 +02:00
Georgii Dolzhykov
db78483df1
refactoring: introduce path.match ( #7108 )
2019-12-10 01:41:03 +02:00
Georgii Dolzhykov
f421c7f613
fix(typescript): align printing of comments in function types w… ( #7104 )
...
* fix(typescript): align printing of comments in function types with Flow and Babel
* add changelog
* add tests for --no-semi
2019-12-06 19:03:26 +01:00
Georgii Dolzhykov
3c13329f4f
fix indentation in ternaries nested in conditions of other ternaries ( #7087 )
...
* fix indentation in ternaries nested in conditions of other ternaries
* fix giant indent when tabWidth=4
* refactoring: remove breakNested as it was always true
* break between parens
* add changelog
* microfix
* fix TS conditional types
* Update pr-7087.md
2019-12-04 12:39:29 +03:00
Georgii Dolzhykov
26a0bc3305
Don't print trailing commas after rest elements in tuples ( #7075 )
2019-12-02 13:34:04 +03:00
Georgii Dolzhykov
bf2989718b
fix unstable formatting of logical expressions ( #7026 )
2019-11-22 00:14:34 +02:00
Georgii Dolzhykov
13d37dac20
TypeScript: print JSDoc-only types ( #7020 )
...
* TypeScript: print JSDoc-only types
* add changelog
2019-11-21 12:27:23 +02:00
Georgii Dolzhykov
d52b6a8a1e
refactoring: tokens requested from TS parser were immediately dismissed ( #7008 )
2019-11-19 14:49:44 +02:00
Georgii Dolzhykov
f99e3d9293
refactoring: Babel's error recovery superseded option combinations ( #6930 )
2019-11-11 17:38:29 +01:00
Georgii Dolzhykov
58c6b42aa8
fix formatting of union type as arrow function return type ( #6896 )
2019-11-09 11:47:54 +01:00
Georgii Dolzhykov
3fb111a48c
deduplicate entries in yarn.lock - part 2 ( #6884 )
2019-11-09 00:12:32 +01:00
Georgii Dolzhykov
10c5c377f5
deduplicate entries in yarn.lock ( #6882 )
...
* deduplicate entries in yarn.lock
* revert changes for @babel/code-frame
2019-11-08 23:43:34 +01:00
Georgii Dolzhykov
361fd2dbfa
fix printing bigint literals parsed by Flow ( #6883 )
2019-11-08 23:06:54 +01:00
Georgii Dolzhykov
ea70396a05
Fix lost adjacent JSX when using Babel ( #6881 )
...
Bump @babel/parser to 7.7.3. Otherwise Prettier formats "<a/><b/>" to "<a/ >;".
2019-11-08 22:31:31 +01:00
Georgii Dolzhykov
b9ab7e2a81
fix formatting of comments in flow enums ( #6860 )
2019-11-07 13:02:41 +03:00
Georgii Dolzhykov
54cbdb89b1
better formatting for AwaitExpression in CallExpression/MemberExpression ( #6856 )
...
* better formatting for AwaitExpression nested in CallExpression or MemberExpression
* update changelog
2019-11-06 20:53:16 +01:00
Georgii Dolzhykov
1df4c1721a
update Babel to 7.7.0 and enable error recovery ( #6816 )
2019-11-05 20:08:41 +01:00
Georgii Dolzhykov
6ba4be015b
fix: numeric separators were removed from BigInt literals ( #6796 )
2019-11-04 18:21:29 +01:00
Georgii Dolzhykov
12ba997207
disable optimization from #6229 for calls with type arguments ( #6791 )
2019-11-03 13:05:08 +01:00
Georgii Dolzhykov
1490536054
merge similar entries in CHANGELOG.unreleased.md ( #6782 )
2019-11-02 10:40:41 +01:00
Georgii Dolzhykov
ea6ae31ba0
test: fix a FIXME, add typescript ( #6744 )
...
* test: fix a FIXME, add typescript
* tests/es6modules
* tests/no-semi
* tests/array_spread
2019-11-01 18:43:03 +02:00
Georgii Dolzhykov
69b481758c
set up cspell ( #6684 )
...
* set up cspell
* fix actual misspellings
* add cspell.json to .prettierignore
* rebase and fix issues in CHANGELOG.unreleased.md
2019-10-25 00:07:17 +03:00
Georgii Dolzhykov
2c14a7f13c
docs on whitespace sensitivity: better wording ( #6699 )
2019-10-23 21:57:00 +03:00
Georgii Dolzhykov
e1bfd2e2fc
fix playground: wrong parser shown in options on first open ( #6683 )
2019-10-18 14:20:55 +02:00
Georgii Dolzhykov
80260555c9
ts: fix optional computed methods ( #6673 )
2019-10-17 14:23:14 +03:00
Georgii Dolzhykov
4ba0d4e36d
fix spelling, wording, markup issues in CHANGELOG.unreleased.md ( #6672 )
2019-10-16 23:18:53 +03:00
Georgii Dolzhykov
d4537dc5f2
enable the allowUndeclaredExports Babel option ( #6660 )
2019-10-15 18:32:46 +03:00
Georgii Dolzhykov
ab598e6e23
tests: rename duplicate bindings to be ready for #6400 ( #6662 )
2019-10-15 18:27:39 +03:00
Georgii Dolzhykov
3a8ebae57d
refactoring: unify code for printing methods, remove isNodeStar… ( #6637 )
...
* unify code for printing methods, remove isNodeStartingWithDeclare hacks
* body is BlockStatement, not an array
* getters and setters can't be async
* unify printPropertyKey calls
2019-10-14 17:39:36 +02:00
Georgii Dolzhykov
977b828666
Get rid of TSParenthesizedType nodes before proceeding with formatting ( #6605 )
...
* get rid of TSParenthesizedType nodes before proceeding with formatting
* fix parens for TSIndexedAccessType, TSFunctionType, TSConditionalType
fixes #6603
* workaround edge cases with one-item unions and intersections
* fix parens for TSInferType
* fix parens for rest elements in tuple types
* refactoring
* fix function types in conditional types
* move tests for rest and optional tuple elements
* fix comment issues
* tests for unions and intersections
* add parens around multiline unions in tuple
* move the parens check for TS nodes closer to the one for Flow nodes
* update CHANGELOG.unreleased.md
* remove dead code
* fix parens for TSConstructorType
* better wording in CHANGELOG.unreleased.md
2019-10-14 15:00:21 +03:00
Georgii Dolzhykov
f8a4a61a62
fix typos ( #6642 )
2019-10-13 21:51:58 +02:00
Georgii Dolzhykov
ff9b2b6cb5
HTML: treat scripts as blocks (not inline) ( #6423 )
...
* HTML: treat scripts as blocks (not inline)
Fixes #6393
Signed-off-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
* update CHANGELOG.unreleased.md
2019-09-05 20:24:20 +02:00
Georgii Dolzhykov
644b419328
fix typos and stuff in the 1.18 release blog post ( #6191 )
2019-06-07 10:08:07 -03:00
Georgii Dolzhykov
e4f0df5bed
fix: nested embeds (JS in HTML in JS) ( #6038 )
2019-05-27 14:42:13 -03:00
Georgii Dolzhykov
b3adb46ba9
Keep parens around non-null assertions for new-expressions only ( #6140 )
2019-05-22 19:01:47 -03:00
Georgii Dolzhykov
91797439d9
docs(blog): add missing subheader ( #6060 )
2019-04-15 11:30:50 -03:00
Georgii Dolzhykov
c6e8177282
Inline AngularJS tests that use inject ( #4495 )
...
* Inline AngularJS tests that use `inject`
See https://docs.angularjs.org/guide/unit-testing#using-beforeall- for a code example.
* More meaningful function name, minor refactoring
* Linting
* Minor regexp improvement
* address review comments
2018-05-17 12:09:20 -03:00
Georgii Dolzhykov
5c6b93a654
Add "JSON with comments" to vscodeLanguageIds ( #3496 )
2017-12-16 11:45:51 +11:00