Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.4.2
->2.4.6
4.17.13
->4.17.21
0.9.0
->0.9.2
8.5.6
->8.5.9
2.4.1
->2.8.8
4.4.4
->4.9.5
Release Notes
prettier/prettier (prettier)
v2.8.8
Compare Source
This version is a republished version of v2.8.7.
A bad version was accidentally published and it can't be unpublished, apologies for the churn.
v2.8.7
Compare Source
diff
Allow multiple decorators on same getter/setter (#14584 by @fisker)
v2.8.6
Compare Source
diff
Allow decorators on private members and class expressions (#14548 by @fisker)
v2.8.5
Compare Source
diff
Support TypeScript 5.0 (#14391 by @fisker, #13819 by @fisker, @sosukesuzuki)
TypeScript 5.0 introduces two new syntactic features:
const
modifiers for type parametersexport type *
declarationsAdd missing parentheses for decorator (#14393 by @fisker)
Add parentheses for
TypeofTypeAnnotation
to improve readability (#14458 by @fisker)Support
max_line_length=off
when parsing.editorconfig
(#14516 by @josephfrazier)If an .editorconfig file is in your project and it sets
max_line_length=off
for the file you're formatting,it will be interpreted as a
printWidth
ofInfinity
rather than being ignored(which previously resulted in the default
printWidth
of 80 being applied, if not overridden by Prettier-specific configuration).v2.8.4
Compare Source
diff
Fix leading comments in mapped types with
readonly
(#13427 by @thorn0, @sosukesuzuki)Group params in opening block statements (#14067 by @jamescdavis)
This is a follow-up to #13930 to establish wrapping consistency between opening block statements and else blocks by
grouping params in opening blocks. This causes params to break to a new line together and not be split across lines
unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the
same as opening blocks.
Ignore files in
.sl/
(#14206 by @bolinfest)In Sapling SCM,
.sl/
is the folder where it stores its state, analogous to.git/
in Git. It should be ignored in Prettier like the other SCM folders.Recognize
@satisfies
in Closure-style type casts (#14262 by @fisker)Fix parens in inferred function return types with
extends
(#14279 by @fisker)v2.8.3
Compare Source
diff
Allow self-closing tags on custom elements (#14170 by @fisker)
See Angular v15.1.0 release note for details.
v2.8.2
Compare Source
diff
Don't lowercase link references (#13155 by @DerekNonGeneric & @fisker)
Preserve self-closing tags (#13691 by @dcyriller)
Allow custom "else if"-like blocks with block params (#13930 by @jamescdavis)
#13507 added support for custom block keywords used with
else
, but failed to allow block params. This updates printer-glimmer to allow block params with custom "else if"-like blocks.Preserve empty lines between nested SCSS maps (#13931 by @jneander)
Fix missing parentheses when an expression statement starts with
let[
(#14000, #14044 by @fisker, @thorn0)Fix semicolon duplicated at the end of LESS file (#14007 by @mvorisek)
Fix no space after unary minus when followed by opening parenthesis in LESS (#14008 by @mvorisek)
Do not change case of property name if inside a variable declaration in LESS (#14034 by @mvorisek)
Fix formatting for auto-accessors with comments (#14038 by @fisker)
Add parentheses for TSTypeQuery to improve readability (#14042 by @onishi-kohei)
Fix displacing of comments in default switch case (#14047 by @thorn0)
It was a regression in Prettier 2.6.0.
Support type annotations on auto accessors via
babel-ts
(#14049 by @sosukesuzuki)The bug that
@babel/parser
cannot parse auto accessors with type annotations has been fixed. So we now support it viababel-ts
parser.Fix formatting of empty type parameters (#14073 by @fisker)
Add parentheses to head of
ExpressionStatement
instead of the whole statement (#14077 by @fisker)Fix comments after directive (#14081 by @fisker)
Fix formatting for comments inside JSX attribute (#14082 by @fisker)
Quote numeric keys for json-stringify parser (#14083 by @fisker)
Fix removing commas from function arguments in maps (#14089 by @sosukesuzuki)
Do not insert space in LESS property access (#14103 by @fisker)
v2.8.1
Compare Source
diff
Fix SCSS map in arguments (#9184 by @agamkrbit)
Support auto accessors syntax (#13919 by @sosukesuzuki)
Support for Auto Accessors Syntax landed in TypeScript 4.9.
(Doesn't work well with
babel-ts
parser)v2.8.0
Compare Source
diff
🔗 Release Notes
v2.7.1
Compare Source
diff
Keep useful empty lines in description (#13013 by @chimurai)
v2.7.0
Compare Source
"""
First line
Second Line
"""
type Person {
name: String
}
v2.6.2
Compare Source
diff
Fix LESS/SCSS format error (#12536 by @fisker)
Update
meriyah
to fix several bugs (#12567 by @fisker, fixes inmeriyah
by @3cp)Fixes bugs when parsing following valid code:
v2.6.1
Compare Source
diff
Ignore
loglevel
when printing information (#12477 by @fisker)v2.6.0
Compare Source
prettier --loglevel silent --find-config-path index.js
v2.5.1
Compare Source
diff
Improve formatting for empty tuple types (#11884 by @sosukesuzuki)
Fix compatibility with Jest inline snapshot test (#11892 by @fisker)
A internal change in [email protected] accidentally breaks the Jest inline snapshot test.
Support Glimmer's named blocks (#11899 by @duailibe)
Prettier already supported this feature, but it converted empty named blocks to self-closing, which is not supported by the Glimmer compiler.
See: Glimmer's named blocks.
v2.5.0
Compare Source
diff
🔗 Release Notes
microsoft/TypeScript (typescript)
v4.9.5
: TypeScript 4.9.5Compare Source
For release notes, check out the release announcement.
Downloads are available on:
Changes:
69e88ef
Port ignore deprecations to 4.9 (#52419)daf4e81
Port timestamp fix to 4.9 (#52426)v4.9.4
: TypeScript 4.9.4Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
Changes:
e286821
Bump version to 4.9.4 and LKG.eb5419f
Cherry-pick #51704 to release 4.9 (#51712)b4d382b
Cherry-pick changes for narrowing to tagged literal types.e7a02f4
Port of #51626 and #51689 to release-4.9 (#51627)1727912
Cherry-pick fix aroundvisitEachChild
to release-4.9. (#51544)This list of changes was auto generated.
v4.9.3
: TypeScript 4.9Compare Source
For release notes, check out the release announcement.
Downloads are available on:
Changes:
93bd577
Bump version to 4.9.3 and LKG.107f832
Update LKG.31bee56
Cherry-pick PR #50977 into release-4.9 (#51363) [ #50872 ]1e2fa7a
Update version to 4.9.2-rc and LKG.7ab89e5
Merge remote-tracking branch 'origin/main' into release-4.9e5cd686
Update package-lock.json8d40dc1
Update package-lock.json5cfb3a2
Only call return() for an abrupt completion in user code (#51297)a7a9d15
Fix for broken baseline in yieldInForInInDownlevelGenerator (#51345)7f8426f
fix for-in enumeration containing yield in generator (#51295)See More
3d2b401
Fix assertion functions accessed via wildcard imports (#51324)64d0d5a
fix(51301): Fixing an unused import at the end of a line removes the newline (#51320)754eeb2
Update CodeQL workflow and configuration, fix found bugs (#51263)d8aad26
Update package-lock.jsond4f26c8
fix(51245): Class with parameter decorator in arrow function causes "convert to default export" refactoring failure (#51256)16faf45
Update package-lock.json8b1ecdb
fix(50654): "Move to a new file" breaks the declaration of referenced variable (#50681)170a17f
Dom update 2022-10-25 (#51300)9c4e14d
Remove "No type information for this code" from baseline (#51311)88d25b4
fix(50068): Refactors trigger debug failure when JSX text has a ' and a tag on the same line. (#51299)8bee69a
Update package-lock.json702de1e
Fix early call to return/throw on generator (#51294)2c12b14
Add a GH Action to file a new issue if we go a week without seeing a typescript-error-deltas issue (#51271)6af270d
Update package-lock.json2cc4c16
Update package-lock.json6093491
Fix apparent typo in getStringMappingType (#51248)61c2609
Update package-lock.jsonef69116
Generate shortestrootDirs
module specifier instead of first possible (#51244)bbb42f4
Fix typo in canWatchDirectoryOrFile found by CodeQL (#51262)a56b254
Include 'this' type parameter in isRelatedTo fast path (#51230)3abd351
Fix super property transform in async arrow in method (#51240)eed0511
Update package-lock.json2625c1f
Make the init config category order predictable (#51247)1ca99b3
fix(50551): Destructuring assignment with var bypasses "variable is used before being assigned" check (2454) (#50560)3f28fa1
Update package-lock.json906ebe4
Revert structuredTypeRelatedTo change and fix isUnitLikeType (#51076)8ac4652
change type (#51231)245a02c
fix(51222): Go-to-definition on return statements should jump to the containing function declaration (#51227)2dff34e
markAliasReferenced should include ExportValue as well (#51219)5ef2634
Update package-lock.jsond0f0e35
Remove old tslint comments (#51220)85d405a
Fixed a false positive "await has no effect on the type" diagnostic with mixed generic union (#50833)1f8959f
fix: avoid downleveled dynamic import closing over specifier expression (#49663)11066b2
Rename internal functions tonarrowTypeBySwitchOnTypeOf
andnarrowTypeByInKeyword
(#51215)4c9afe8
Update package-lock.jsonf25bcb7
fix(49196): add jsdoc snippet for interface member functions (#51135)7406ee9
fix(51170): Completing an unimplemented property overwrites rest of line (#51175)a1d82fc
Remove some unnecessary code discovered by rollup (#51204)0481773
LEGO: Merge pull request 5120098c19cb
LEGO: Merge pull request 5119013c9b05
Update package-lock.json673475e
Update package-lock.jsonf6cf510
Add more tracing to node16/nodenext resolution (#51168)83c5581
Update package-lock.jsonbe5f0fe
Add an extra regression test for awaited unresolvable recursive union (#51167)2cb7e77
fix(50416): correctly names disabled export refactors (#50663) [ #50416 ]2bcfed0
feat(37440): Provide a quick-fix for non-exported types (#51038)a24201c
Remove VSDevMode.ps1 and createPlaygroundBuild (#51166)2da62a7
fix(51112): omit parameter names that precede the type (#51142)cf1b6b7
feat(51163): show QF to fill in the missing properties for the mapped type. (#51165)bdcc240
Remove bug-causing carve-out in conditional type instantiation that hopefully is no longer required (#51151)37317a2
Check nested weak types in intersections on target side of relation (#51140)9f49f9c
Update package-lock.json4f54e7e
Fix isExhaustiveSwitchStatement to better handle circularities (#51095)503604c
Overloads shouldn't gain @deprecated tags of other overloads in quick info (#50904)e14a229
Update package-lock.json67256e5
Remove unused declarations array in extractSymbol's TargetRange (#51091)9c87ded
fix(51100): ensure tsserver shuts down when parent process is killed (#51107)c01ae01
Fix nightly publish oops in Gulpfile (#51131)a7d10f1
Update package-lock.jsond0bfd8c
fix(51072): ts.preProcessFile finds import in template string after conditional expression with template strings (#51082)ad56b5c
Convert scripts/Gulpfile to checked mjs/cjs so they can run without compilation (#50988)dbeae5d
fix(51017): Make lineText in the references response opt-out (#51081)d06a592
Properly defer resolution of mapped types with genericas
clauses (#51050)42b1049
Update package-lock.json5f3e6cc
Plugin probe location is higher priority than peer node_modules (#51079) [ #34616 ]2648f6a
Plugins in project were adding up after every config file reload (#51087)c18791c
Fix incorrect options type to WatchOptions (#51064)b0795e9
Update package-lock.json43c6fd4
Covert some of the config testing to baselines for easy validation (#51063)fc5e72b
Remove unused defaultWatchFileKind method since useFsEvents is default for tsserver and tsc (#51044)8af9a93
Use typescript.d.ts in APISample tests (#51061)4953316
Remove configureLanguageServiceBuild, instrumenter (#51048)9dfffd0
Update GitHub Actions (#51045)4635a5c
Update package-lock.json33a34e5
Adding a JSDoc comment to the es5 type declarations to describe the functionality of Date.now() (#50630)299745c
Fix crash in goto-def on@override
(#51016)7dcf11f
fix(50750): Object type literal with string literal property in contextual typing position causes language service error on all literal type references (#50757)5cd49f6
Update package-lock.json8a1b858
Update package-lock.json96894db
Include type parameter defaults in contextual typing (#50994) [ #51002 ]0d0a793
Allow Unicode extended escapes in ES5 and earlier (#50918)58bae8d
Update package-lock.json0ce72ef
Add option to OrganizeImports for removal only (#50931)42f9143
feat: codefix forfor await of
(#50623)ecf50e8
Properly computeSymbolFlags.Optional
for intersected properties (#50958)d1586de
Fully resolve aliases when checking symbol flags (#50853)45148dd
Update LKG to 4.8.4 (#50987)9a83f25
Update package-lock.json865848f
Fix<=
and>
comparisons when compared against prerelease versions (#50915)fbfe934
Fix comparability between type parameters related by a union constraint (#50978)b09e93d
Merge pull request [#50041](https://redirect.github.com/microsoft/TypeScripConfiguration
📅 Schedule: Branch creation - "every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.