typescript
7.0.2 · 8 Jul 2026Apache-2.0451M / weekRepositoryHomepagenpmAtom feed
4.9.5 is the newest release of 4.x.
In short
6 breaking13 new2 faster99 fixed77 internal
- Breaking
Dom update 2022-10-25
- Breaking
package.json
exportsshould have priority overtypesVersions - Breaking
DOM update 2022/09/21
- Breaking
feat(49962): Disallow comparison against NaN
- Breaking
Don't elide imports when transforming JS files
- Breaking
Make useFsEvents as default strategy for the watching
Release note
For release notes, check out the release announcement.
Downloads are available on:
Changes
Bump version to 4.9.3 and LKG.
Update LKG.
Update version to 4.9.2-rc and LKG.
Merge remote-tracking branch 'origin/main' into release-4.9
Update package-lock.json
Update package-lock.json
Only call return() for an abrupt completion in user code
Fix for broken baseline in yieldInForInInDownlevelGenerator
Fix for-in enumeration containing yield in generator
See More
Fix assertion functions accessed via wildcard imports
51301: Fixing an unused import at the end of a line removes the newline
Update CodeQL workflow and configuration, fix found bugs
Update package-lock.json
51245: Class with parameter decorator in arrow function causes "convert to default export" refactoring failure
Update package-lock.json
50654: "Move to a new file" breaks the declaration of referenced variable
Dom update 2022-10-25
Remove "No type information for this code" from baseline
50068: Refactors trigger debug failure when JSX text has a ' and a tag on the same line.
Update package-lock.json
Fix early call to return/throw on generator
Add a GH Action to file a new issue if we go a week without seeing a typescript-error-deltas issue
Update package-lock.json
Update package-lock.json
Update package-lock.json
Generate shortest
rootDirsmodule specifier instead of first possibleInclude 'this' type parameter in isRelatedTo fast path
Fix super property transform in async arrow in method
Update package-lock.json
Make the init config category order predictable
50551: Destructuring assignment with var bypasses "variable is used before being assigned" check (2454)
Update package-lock.json
Revert structuredTypeRelatedTo change and fix isUnitLikeType
Change type
51222: Go-to-definition on return statements should jump to the containing function declaration
markAliasReferenced should include ExportValue as well
Update package-lock.json
Remove old tslint comments
Fixed a false positive "await has no effect on the type" diagnostic with mixed generic union
Avoid downleveled dynamic import closing over specifier expression
Rename internal functions to
narrowTypeBySwitchOnTypeOfandnarrowTypeByInKeywordUpdate package-lock.json
49196: Add jsdoc snippet for interface member functions
51170: Completing an unimplemented property overwrites rest of line
Remove some unnecessary code discovered by rollup
LEGO: Merge pull request 51200
LEGO: Merge pull request 51190
Update package-lock.json
Update package-lock.json
Add more tracing to node16/nodenext resolution
Update package-lock.json
Add an extra regression test for awaited unresolvable recursive union
50416: Correctly names disabled export refactors (#50663) [ #50416 ]
37440: Provide a quick-fix for non-exported types
Remove VSDevMode.ps1 and createPlaygroundBuild
51112: Omit parameter names that precede the type
51163: Show QF to fill in the missing properties for the mapped type.
Remove bug-causing carve-out in conditional type instantiation that hopefully is no longer required
Check nested weak types in intersections on target side of relation
Update package-lock.json
Fix isExhaustiveSwitchStatement to better handle circularities
- Deprecated
Overloads shouldn't gain @deprecated tags of other overloads in quick info
Update package-lock.json
Remove unused declarations array in extractSymbol's TargetRange
51100: Ensure tsserver shuts down when parent process is killed
Fix nightly publish oops in Gulpfile
Update package-lock.json
51072: Ts.preProcessFile finds import in template string after conditional expression with template strings
Convert scripts/Gulpfile to checked mjs/cjs so they can run without compilation
51017: Make lineText in the references response opt-out
Properly defer resolution of mapped types with generic
asclausesUpdate package-lock.json
Plugin probe location is higher priority than peer node_modules (#51079) [ #34616 ]
Plugins in project were adding up after every config file reload
Fix incorrect options type to WatchOptions
Update package-lock.json
Covert some of the config testing to baselines for easy validation
Remove unused defaultWatchFileKind method since useFsEvents is default for tsserver and tsc
Use typescript.d.ts in APISample tests
Remove configureLanguageServiceBuild, instrumenter
Update GitHub Actions
Update package-lock.json
Adding a JSDoc comment to the es5 type declarations to describe the functionality of Date.now()
Fix crash in goto-def on
@override50750: Object type literal with string literal property in contextual typing position causes language service error on all literal type references
Update package-lock.json
Update package-lock.json
Include type parameter defaults in contextual typing (#50994) [ #51002 ]
Allow Unicode extended escapes in ES5 and earlier
Update package-lock.json
Add option to OrganizeImports for removal only
Codefix for
for await ofProperly compute
SymbolFlags.Optionalfor intersected propertiesFully resolve aliases when checking symbol flags
Update package-lock.json
Fix
<=and>comparisons when compared against prerelease versionsFix comparability between type parameters related by a union constraint
Merge pull request #50041 from microsoft/fix/47969
Update package-lock.json
Pick correct compilerOptions when checking if we can share emitSignatures (#50910) [ #50902 ]
During uptodate ness check with buildInfo, check if there are errors explicitly with noEmit (#50974) [ #50959 ]
Update package-lock.json
Handle if project for open file will get recollected because of pending cleanup from closed script info (#50908) [ #50868 ]
49594: Typescript 4.7.3 bracketed class property compilation error strictPropertyInitialization:true
Merge pull request #49912 from microsoft/fix/47508
Update package-lock.json
Fixing pr comments
Update package-lock.json
Update package-lock.json
Use paths in package.json 'files' array that work with npm 6 and later.
Use paths in package.json 'files' array that work with npm 6 and later.
Update version to 4.9.1-beta and LKG.
Remove 'async' dependency, used only in errorCheck.ts, modernize file
LEGO: Merge pull request 50921
Update package-lock.json
Pluralized
hasInvalidatedResolution->hasInvalidatedResolutions🤖 Pick PR #50912 (Pluralized `hasInvalidatedResolutio...) into release-4.9
Merge remote-tracking branch 'origin/main' into release-4.9
Make hasInvalidatedResolution non internal for program and add it watchApi (#50776) [ #48057 ]
Fix assert in addIndirectUser in FAR
LEGO: Merge pull request 50900
Update package-lock.json
Package.json
exportsshould have priority overtypesVersionsRemove .github/tsc.json
49993: Skip the quick fix for an expression with an enum type
49200: Skip duplicated method declarations
Bump version to 4.9.0-beta and LKG.
37030: Expand Selection in function and arrow function skips body block
DOM update 2022/09/21
50866: Emit modifiers from export declarations
LEGO: Merge pull request 50877
Fix debug.ts __debugKind check
Consistently add undefined/missing to optional tuple element types
Improve escape sequence handling in private names
Fix import statement completions followed by interface declaration
49962: Disallow comparison against NaN
Fixing spaces
Fixing baseline errors
Merge branch 'main' into fix/47969
50591: RangeError: Maximum call stack size exceeded
Allow a union property of a private/protected member and an intersection property including that same member
Update package-lock.json
Add rules from eslint's recommended set that triggered good lints
Improve checking of
inoperatorGabritto/jsemitfixsilly
Don't elide imports when transforming JS files
LEGO: Merge pull request 50842
Improve check of whether type query node possibly contains reference to type parameter
LEGO: Merge pull request 50825
Fixed an issue with destructured bindings from a generic union constraint not being narrowed correctly
Update package-lock.json
Fix test around RegExp match vs. exec results
Fixes for pr
Make
RegExpExecArrayalways include index 0Accepting baselines
Rewording documentation
50796: Omit questionToken in object literal method completions
Fix crash caused by incorrect bounds check (regression in 4.8)
Update package-lock.json
The error "Object is possibly null or undefined" is ambiguous.
Update user baselines +cc @sandersn
Removing duplicated code
Partially revert #41044, restoring parameter destructurings in d.ts files
LEGO: Merge pull request 50783
Update package-lock.json
Fix equality narrowing and comparable relation for intersections with {}
LEGO: Merge pull request 50771
Update package-lock.json
50717: Tsc crashes when it sees a JSDoc tag inside an @override annotation
Discriminant of type
nevershould never be matchedUpdate package-lock.json
Fix test baselining for tsserver host timeouts
Handle more places where package direcroy is converted to canonical file path
Revert removal of nonInferrableAnyType
Update twoslash workflow
Don't run linter after tests runs
Fix backticks in our JSDoc comments
Support for auto-accessor fields from the Stage 3 Decorators proposal
Update package-lock.json
Update package-lock.json
Don't leave space for property access on non-integer literals
Preserve special intersections in mapped types
Don't remove space before dot if in property access on numeric literal
Baseline host state when baselining tsserver tests
Update LKG and devDep of typescript to v4.8.3
Update package-lock.json
Remove error message in node16
Ignore
--helpand-?intsc initgeneratedcompilerOptionsForward intersection state flag to conditional type target check
Update package-lock.json
Simplify CI detection
Fix eslint not looking at certain scripts, fix lints
Make useFsEvents as default strategy for the watching
Remove unused cancellation from build
Update package-lock.json
Update package-lock.json
Report every instance of TS1208
Check if its same buildinfo only for directly referenced projects and not recursively (#50617) [ #50545 ]
Allow
{}to narrow in same special cases asunknowninoperator shouldn't narrow{}originating inunknownUpdate package-lock.json
50079: Show deprecated on JSX attributes
Use bidirectional comparability in narrowing
Remove unused baselines
{} & null and {} & undefined should always be never
Defer distributing index over generic object types
Do not canonicalize the file names when getting absolute paths during nodenext resolution (#50557) [ #50544 ]
Update package-lock.json
50340: Typeof ... === "undefined" check on discriminated union of undefined and object type doesn't narrow correctly
Only normalize intersections that include {}
Rename API to importPlugin
Managing control flow
Update package-lock.json
Move contributing related info out of README to CONTRIBUTING
Retain name and propertyName in declaration emit copies of binding patterns if property name is a keyword
Update package-lock.json
Remove redundant pretest script
Handle intersections in isGenericTypeWithoutNullableConstraint
LEGO: Merge pull request 50506
LEGO: Merge pull request 50493
LEGO: Merge pull request 50484
Reuse computed type of condition expressions
Update package-lock.json
50427: Allow convert function expressions
Push package-lock.json updates via typescript-bot token
50415: Language server debug failure - Did not expect GetAccessor to have an Identifier in its trivia
Rephrase error message to be 100% technically correct
Add unknown to DateTimeFormatTypes
Don't include .gitattributes in package
Optimize substitution types
Fix typechecking related lints that changed post 4.8, update LKG to 4.8.2
7481: Operator to ensure an expression is contextually typed by, and satisfies, some type
Update package-lock.json
Remove AUTHORS.md, .mailmap, authors.ts script
Fix auto import crash due to difference in
pathshandling50435: Duplicate seeming Code Actions for convert const to let
Remove top level loc folder
Update package-lock.json
50375: Errors for missing enum-named properties should attempt to preserve names
Discard union types before considering weak type checks on unit-like types
Syntax operations also need to ensure project is present for the open script infos since update could be pending to make sure open script info has project (#50418) [ #50131 ]
Update package-lock.json
50224: Intellisense for strings within a type's Union doesn't work properly for JSX
Use package.json files array instead of .npmignore
This list of changes was auto generated.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.