Repository navigation
Releases
7.1.0-beta.tsrs9
tsrs 7.1.0-beta.tsrs9
What's Changed
- perf(build): size -b --fast builders and checkers to the machine by @maschwenk in #1228
- perf(checker): stop copying names into the type-only export * map (type-only barrels -5% cpu, -9% peak RSS) by @maschwenk in #1231
- perf(lint): share module resolutions across a request's programs (1,160-tsconfig monorepo -19% cpu, 1.13x wall) by @maschwenk in #1232
Full Changelog: v7.1.0-beta.tsrs8...v7.1.0-beta.tsrs9
7.1.0-beta.tsrs8
tsrs 7.1.0-beta.tsrs8
What's Changed
- fix(lint/await-thenable): only use number index types of array-like inputs by @camc314 in #1184
- fix(lint/consistent-type-exports): only check star exports that resolve to a source file by @camc314 in #1185
- fix(lint/consistent-return): only exempt bare returns when the Promise type argument is void by @camc314 in #1186
- fix(lint/consistent-return): skip parentheses when checking for undefined by @camc314 in #1187
- fix(lint/no-unnecessary-condition): stop checking type predicates of array predicate callbacks by @camc314 in #1188
- fix(lint/no-unnecessary-condition): consider every overload of array predicate callbacks by @camc314 in #1189
- fix(lint/no-confusing-void-expression): only exempt intersections with a single callable member by @camc314 in #1190
- fix(lint/no-base-to-string): don't cache certainty that depends on the recursion path by @camc314 in #1192
- fix(lint/consistent-return): port the core rule's implicit return check by @camc314 in #1191
- fix(lint/no-deprecated): resolve overloads for self-closing JSX tags by @camc314 in #1193
- fix(lint/no-deprecated): resolve overloads for parenthesized callees by @camc314 in #1202
- fix(lint/no-base-to-string): look through parentheses around operands and callees by @camc314 in #1203
- fix(lint/no-base-to-string): match ignored type names on generic declarations by @camc314 in #1204
- fix(lint/no-base-to-string): only check String calls that aren't bound in the file by @camc314 in #1205
- fix(lint/no-deprecated): inherit deprecation tags from base members by @camc314 in #1206
- refactor(core): infer Send for FrozenCell by @camc314 in #915
- refactor(parser): use typed storage for the missing-list sentinel by @camc314 in #917
- fix(lint/no-deprecated): check each union constituent for deprecated properties by @camc314 in #1208
- fix(lint/no-duplicate-type-constituents): unwrap parenthesized duplicates when reporting and fixing by @camc314 in #1209
- fix(lint/no-deprecated): check identifiers used as parameter defaults by @camc314 in #1210
- fix(lint/no-deprecated): check each receiver constituent in element access by @camc314 in #1211
- fix(lint/no-deprecated): don't check element access keys as separate identifiers by @camc314 in #1212
- fix(lint/no-duplicate-type-constituents): report constituents with identical syntax by @camc314 in #1214
- fix(lint/no-duplicate-type-constituents): look through parentheses for optional parameter types by @camc314 in #1215
- perf(checker): skip comparable checks for unequal enum members by @camc314 in #1136
- fix(tsrs-wasm): catch edited inputs when -b runs over in-memory files by @maschwenk in #1217
- fix(core): start on Linux arm64 kernels with a 39-bit address space by @maschwenk in #1218
- perf(checker): speed up export * resolution (nested barrels -66% instructions, catalog -0.22%) by @maschwenk in #1226
- perf(lint): speed up multi-program linting (480-tsconfig monorepo 5.6x faster, t3code-server -29%) by @maschwenk in #1225
Full Changelog: v7.1.0-beta.tsrs7...v7.1.0-beta.tsrs8
7.1.0-beta.tsrs7
tsrs 7.1.0-beta.tsrs7
What's Changed
- chore(bench): add opencode-core, lobehub, and sentry to benchmark catalog by @maschwenk in #1130
- perf(checker): cut lobehub check time 49-66% with in-place union intersection by @maschwenk in #1131
- ci(release): add Linux PGO release guard and aarch64 PGO/BOLT notes by @maschwenk in #1132
- fix(lint/no-duplicate-type-constituents): avoid panic when fixing a duplicate after a template literal type by @camc314 in #1137
- chore(deps): update npm packages by @renovate[bot] in #1140
- chore(deps): update rust crates by @renovate[bot] in #1139
- fix(lint/no-unnecessary-type-assertion): check union constituents for
undefinedunderexactOptionalPropertyTypesby @camc314 in #1138 - fix(lint/no-floating-promises): skip parentheses around nested operands by @camc314 in #1144
- fix(lint): visit property names in destructuring assignments by @camc314 in #1147
- fix(lint/no-mixed-enums): only read members from earlier non-empty enum declarations by @camc314 in #1146
- fix(lint/no-unnecessary-boolean-literal-compare): require nullable unions to contain only booleans by @camc314 in #1145
- fix(lint): resolve static values only from effectively-const variables by @camc314 in #1141
- fix(lint/prefer-optional-chain): ignore typeof guards on global references by @camc314 in #1142
- fix(lint/no-base-to-string): treat Symbol.toPrimitive methods as custom stringification by @camc314 in #1143
- docs(lint): drop per-port details from the progress and compatibility tables by @camc314 in #1149
- fix(release): stage tsrs publishing for maintainer approval by @Boshen in #1151
- fix(lint/prefer-optional-chain): only treat equality operators as comparisons by @camc314 in #1153
- fix(lint/prefer-optional-chain): resolve trailing comparison values to their constraints by @camc314 in #1154
- fix(lint/no-unnecessary-condition): only report always-nullish for unions of null and undefined by @camc314 in #1155
- fix(lint/no-unnecessary-condition): only scan callee signatures for union callees by @camc314 in #1156
- fix(lint/no-unnecessary-condition): check the returned expression of inline array predicates by @camc314 in #1157
- fix(lint/no-unnecessary-type-arguments): treat interface heritage as a type context by @camc314 in #1158
- fix(lint/no-unnecessary-type-arguments): skip instantiation expressions by @camc314 in #1159
- fix(lint/no-unnecessary-qualifier): match in-scope names against the source text of the member by @camc314 in #1160
- fix(lint/no-useless-default-assignment): keep defaults that any contextual overload can use by @camc314 in #1161
- fix(lint/prefer-includes): reject RegExp constructors with flags by @camc314 in #1162
- fix(lint/prefer-optional-chain): treat every assignment operator as a side effect by @camc314 in #1164
- fix(lint/prefer-optional-chain): check the type of the guard operand rather than its base by @camc314 in #1165
- fix(lint/prefer-optional-chain): stop treating void expressions as undefined in guards by @camc314 in #1166
- fix(lint/prefer-readonly): treat assignments through static element access as modifications by @camc314 in #1167
- fix(lint/prefer-regexp-exec): resolve RegExp copies and validate patterns with the TypeScript scanner by @camc314 in #1168
- fix(lint/no-unsafe-enum-comparison): read computed member names from the enum's source file by @camc314 in #1169
- fix(lint/prefer-string-starts-ends-with): stop resolving cyclic variable initializers by @camc314 in #1170
- fix(lint/prefer-return-this-type): treat returned unions containing the class as class returns by @camc314 in #1171
- fix(lint/promise-function-async): match promise base types like upstream by @camc314 in #1172
- fix(lint/prefer-optional-chain): only allow plain operands at the end of OR chains by @camc314 in #1173
- fix(lint/prefer-optional-chain): apply type options to every truthiness guard by @camc314 in #1174
- fix(lint): visit destructuring default targets as patterns by @camc314 in #1175
- fix(lint): visit for-in and for-of targets as patterns by @camc314 in #1176
- fix(lint/unbound-method): treat nullish coalescing like other logical operators by @camc314 in #1177
- test(lint/unbound-method): sync untyped this parameter baselines by @camc314 in #1178
- fix(lint/no-unnecessary-type-assertion): treat unknown constraints as nullable by @camc314 in #1179
- fix(lint/dot-notation): check parenthesized literal keys by @camc314 in #1180
- fix(lint/dot-notation): allow access through any string-like index signature by @camc314 in #1181
- fix(lint/await-thenable): skip parentheses around aggregator inputs and await using initializers by @camc314 in #1182
- fix(lint/await-thenable): resolve computed aggregator method names statically by @camc314 in #1183
Full Changelog: v7.1.0-beta.tsrs6...v7.1.0-beta.tsrs7
7.1.0-beta.tsrs6
tsrs 7.1.0-beta.tsrs6
What's Changed
- fix(modulespecifiers): ignore exports targets that end with a slash by @magurotuna in #1077
- fix(module): map output paths back to input files as Go does by @magurotuna in #1079
- fix(module): resolve a bare imports target from the scope directory without a slash by @magurotuna in #1078
- fix(lint/non-nullable-type-assertion-style): leave JSDoc casts in JavaScript files alone by @camc314 in #1080
- fix(tsoptions): write outputs below outDir for a directory named ^ or c: by @magurotuna in #1081
- fix(vfs): leave files in a directory named c: out of the include walk by @magurotuna in #1082
- perf(build): cold
-bof many small projects in 26% less time and 6% less memory by @maschwenk in #1083 - test(arena): fix main's Miri job and run large-slab regions under Miri by @maschwenk in #1084
- fix(build):
TSRS_MEM_SPLIT=1no longer crashestsrs -bwith more than one builder by @maschwenk in #1087 - perf(lint): parse each tsconfig and extended config once per request by @camc314 in #1086
- fix(checker): stop an arity underflow on an optional JSDoc this parameter by @camc314 in #1090
- fix(checker): stop a panic on an invalid thenable yield in an async generator by @camc314 in #1091
- fix(declarations): stop a stripInternal panic on a JSDoc
@callbackwithout@returnsby @camc314 in #1093 - tsrs_lint: forward type-check diagnostic category to oxlint by @oxc-captain[bot] in #1033
- fix(sdk): hide spawned API server console window on Windows by @maschwenk in #1089
- fix(tsrs-wasm): report TS5033 when in-memory emit path conflicts with a regular file or directory by @oxc-captain[bot] in #1045
- fix(tsrs_execute): poll and retry stdout writes on EAGAIN by @oxc-captain[bot] in #1017
- fix(lint): check extension-shadowed imported files in their configured program by @maschwenk in #1094
- fix(checker): name the absolute file in TS2876 for a file below ^/ by @magurotuna in #1111
- fix(tsoptions): keep outputs of a file below ^/ in their project by @magurotuna in #1110
- fix(compiler): print absolute names for files below a directory named ^ or c: by @magurotuna in #1107
- fix(modulespecifiers): do not write a specifier that starts with ^/ by @magurotuna in #1108
- fix(ls): write the absolute path for a file renamed into a directory named ^ by @magurotuna in #1109
- fix(tsoptions): lowercase option and pragma names with Go's ToLower by @magurotuna in #1106
- fix(project): check ignored paths on the decoded path of a watched file by @magurotuna in #1105
- fix(module): look for peer dependencies only in a whole node_modules directory by @magurotuna in #1104
- fix(modulespecifiers): do not take lib.d.ts as the main file of "types": "lib/" by @magurotuna in #1103
- fix(module): match the inferred types file by its base name by @magurotuna in #1102
- fix(checker): report TS2878 for a relative import rewritten into a project on another drive by @camc314 in #1100
- fix(checker): stop spurious TS7022 on readonly assignments through nested accesses by @camc314 in #1099
- fix(printer): stop a source-map panic on a position inside a multibyte character by @camc314 in #1096
- chore(deps): update dependency rust to v1.100.1 by @renovate[bot] in #1122
- fix(lint): build the tsrs_lint library for wasm32-wasip1 by @maschwenk in #1123
- fix(lsp): free replaced project versions after references and rename by @maschwenk in #1124
- fix(checker): preserve default library member names after a flow limit by @maschwenk in #1125
- fix(checker): preserve cached diagnostics in split declaration files by @maschwenk in #1126
- perf(checker): cut type-fest check time ~29% with ordered array mappers and bulk tuple spreads by @maschwenk in #1127
- perf(emit): cut cold webpack declaration-map time 44% and peak memory 65% by @maschwenk in #1128
- perf(checker): keep reserved link ids dense past 16M by @maschwenk in #975
- perf(checker): keep the deepest files of the import graph with their owner under --fast by @maschwenk in #898
Full Changelog: v7.1.0-beta.tsrs5...v7.1.0-beta.tsrs6
7.1.0-beta.tsrs5
tsrs 7.1.0-beta.tsrs5
What's Changed
- fix(api): root file name arguments as Go's ToFileName does by @magurotuna in #1065
- fix(tsoptions): root command line file names as Go's ParseCommandLine does by @magurotuna in #1066
- fix(build): resolve -b project paths with ResolveFile by @magurotuna in #1060
- fix(ls): resolve rename and definition paths with ResolveFile by @magurotuna in #1061
- fix(ls): list open documents that are not on disk in path completions by @magurotuna in #1062
- fix(compiler): resolve mapRoot before it is used in source maps by @magurotuna in #1063
- fix(tsoptions): root files entries before they are matched by @magurotuna in #1064
- feat(lint): add no-unsafe-class-instance-assignment rule by @camc314 in #1059
- docs(lint): document global diagnostics in --type-check by @camc314 in #1068
- chore(deps): update rust crates by @renovate[bot] in #1070
- fix(lint/no-meaningless-void-operator): report void on non-call expressions by @camc314 in #1071
- fix(lint/restrict-template-expressions): avoid stack overflow on recursive arrays by @camc314 in #1072
Full Changelog: v7.1.0-beta.tsrs4...v7.1.0-beta.tsrs5
7.1.0-beta.tsrs4
tsrs 7.1.0-beta.tsrs4
What's Changed
- ci(release): stop the Intel macOS build from timing out by @maschwenk in #1030
- fix(tsoptions): remove the config extension after the build info name is joined by @magurotuna in #1040
- fix(lsp): normalize the path of a file URI by @magurotuna in #1039
- fix(module): set the package ID sub-module only for files in the package by @magurotuna in #1038
- fix(modulespecifiers): stop a panic for a file named index directly in node_modules by @magurotuna in #1037
- fix(build): build a new program in -b --watch when a referenced config changed by @magurotuna in #1036
- fix(module): skip the file lookup for type root names that end with a separator by @magurotuna in #1008
- fix(module): end drive root candidates with a separator to stop a VFS panic by @magurotuna in #1007
- fix(compiler): list wildcard type roots with the compiler host to stop a panic with project references by @camc314 in #1048
- fix(compiler): compare program paths with the file system's case sensitivity by @magurotuna in #1053
- fix(vfs): reject a path that is not valid UTF-8 in valid_path by @magurotuna in #1051
- fix(vfs): port the include base path computation from Go by @magurotuna in #1052
- fix(module): port the directory-only candidate checks outside the type roots by @magurotuna in #1049
- fix(incremental): reject a tsbuildinfo tuple of the wrong length by @magurotuna in #1050
- fix(lint/prefer-includes): suggest non-string
indexOfrewrites by @camc314 in #1055 - fix(lint/no-unnecessary-template-expression): suggest removals that narrow types by @camc314 in #1054
- fix(lint): report global and declaration diagnostics in the type check by @camc314 in #1056
- feat(cli): support --showConfig by @camc314 in #1041
- fix(compiler): resolve reference paths with ResolveFile to stop a VFS panic by @magurotuna in #1057
Full Changelog: v7.1.0-beta.tsrs3...v7.1.0-beta.tsrs4
7.1.0-beta.tsrs3
7.1.0-beta.tsrs3
This release targets TypeScript 7.1.0-beta, pinned to microsoft/TypeScript@3e9236361fa97a9e6c685f4833ac457ae2d8c50a.
It is the first TypeScript-aligned release published under npm's latest tag (#1014), so a default install now gets
it instead of 0.25.0-ts7.1.0-beta:
pnpm add -D tsrs@7.1.0-beta.tsrs3
pnpm add @tsrs/wasm@7.1.0-beta.tsrs3Linting
oxlint --type-checkno longer reports suggestion diagnostics. Oxlint showed them as errors, so suggestions from
plugins like Effect's language service failed lint. Message diagnostics such as TS1450, whichtscfails on, are
still reported (#959).- Type errors include the message chain, the extra lines that explain the error, as
tscprints it.tsconfig-error
reports put the chain in their help text (#1006). - Two performance changes: headless diagnostics are serialized without building an intermediate JSON value tree
(#1011), andno-unsafe-enum-assignmentno longer recursively compares prototype members when both constrained
types share a primitive wrapper (#1012).
Compiler
These fixes match tsgo:
- A file that references itself without an extension, such as
/// <reference path="a" />ina.ts, reports TS1006
(#1023). - With
"files": ["a.ts"]and"include": ["*.d.ts"],a.d.tsis no longer part of the program, and overlapping
filesandincludeentries no longer repeat thePart of 'files' listreason (#1021). - With
declaration: true, a type fromlib/index.tskeepsimport("./lib/index")whenlib.tsalso exists
(#1024). tsrs -p subandtsrs -b subno longer report TS5011 for a declaration-only project withoutDir. The check
uses the config directory instead of the working directory (#1022).tsrs -bwrites"root":[]to.tsbuildinfofor a non-incremental project with no input files (#1025).- The language server resolves type roots for documents that are not
file:URIs, such asuntitled:files and
virtual workspaces (#1009).
The compiler continues to report TypeScript 7.1.0-beta for compatibility. Packages are available for macOS
arm64/x64, Linux x64/arm64 (glibc and musl), and Windows x64/arm64.
7.1.0-beta.tsrs2
7.1.0-beta.tsrs2
This release targets TypeScript 7.1.0-beta, pinned to microsoft/TypeScript@3e9236361fa97a9e6c685f4833ac457ae2d8c50a.
It is the first npm release with TypeScript-aligned versions. 7.1.0-beta.tsrs1 reached
crates.io, but its npm publication stopped at the installed-package smoke test, which still expected the
0.25.0-ts7.1.0-beta format (#1000). Cargo crates and all ten npm packages share version 7.1.0-beta.tsrs2.
npm prereleases use the next tag, so latest stays on 0.25.0-ts7.1.0-beta. Install this release by version:
pnpm add -D tsrs@7.1.0-beta.tsrs2
pnpm add @tsrs/wasm@7.1.0-beta.tsrs2Linting
tsrs-lintandtsrs --lintenable the fast preset by default (#989).TSRS_FAST=0opts out; per-feature
environment overrides still take precedence.oxlint --type-checkreports compiler diagnostics only for the files Oxlint selected for linting, as tsgolint does
(#998). Files excluded by ignore patterns, CLI path selection ortsconfig.excludestill provide type information
but no longer fail lint. Program-wide global diagnostics are no longer reported on the tsconfig.no-misused-promisesacceptschecksConditionals: { flagUnions: "none" | "strict" | "all" }, matching
typescript-eslint 8.69.0 (#988).- A relative type reference from a type root into a symlinked package no longer panics when the program has project
references (#999). Vue projects using pnpm hit this through the generated global types reference.
Release builds
PGO training, and BOLT training on Linux, now include tsrs -p . --fast, so the code paths the fast preset enables are
no longer laid out as cold (#976). Release binaries build with Rust 1.100.0, and the published crates now require
Rust 1.100 (#990). Rust dependencies were updated (#997).
The compiler continues to report TypeScript 7.1.0-beta for compatibility. Packages are available for macOS
arm64/x64, Linux x64/arm64 (glibc and musl), and Windows x64/arm64.
0.25.0
0.25.0
tsrs 0.25.0 targets TypeScript 7.1 beta, with package version 0.25.0-ts7.1.0-beta for tsrs and @tsrs/wasm.
The TypeScript source pin remains microsoft/TypeScript@3e9236361fa9. The type checker is unchanged from 0.24.0.
pnpm add -D tsrs@0.25.0-ts7.1.0-beta
# WebAssembly for Node and browsers:
pnpm add @tsrs/wasm@0.25.0-ts7.1.0-betaWindows ARM64
tsrs now installs a native binary on Windows ARM64 through the new @tsrs/win32-arm64 package
(aarch64-pc-windows-msvc). Like Windows x64, it is a PGO build trained natively on the conformance suite, the CLI
and the linter, and the release runs the same installed-package CLI and SDK smoke test on it. The instrumented and
final builds link with rust-lld, because link.exe corrupts LLVM profile data on ARM64.
Linting and the command line
- Headless lint requests check separate tsconfig programs concurrently on a quarter of the cores, each with its own
checker pool (#957, fixing #956). Output stays in program order and matches serial runs byte for byte; setting
RAYON_NUM_THREADSkeeps the serial path. On a repository with about 40 tsconfigs this cut wall time by roughly a
third at the same CPU time, with higher peak memory. The linked PR records the measurements. - Command-line arguments that are not valid UTF-8 report TS6231 like the pinned Go compiler instead of panicking, in
bothtsrsandtsrs-lint(#965, fixing #964). - The "not supported" errors for
--init,--showConfigand--watchon Windows go to stderr instead of stdout
(#967).
Packages are available for macOS arm64/x64, Linux x64/arm64 (glibc and musl), and Windows x64/arm64.
See the compatibility table for supported capabilities and known limitations.
0.24.0
0.24.0
tsrs 0.24.0 targets TypeScript 7.1 beta, with package version 0.24.0-ts7.1.0-beta for tsrs and @tsrs/wasm.
The TypeScript source pin remains microsoft/TypeScript@3e9236361fa9.
pnpm add -D tsrs@0.24.0-ts7.1.0-beta
# WebAssembly for Node and browsers:
pnpm add @tsrs/wasm@0.24.0-ts7.1.0-betaFaster language-server edits
The language server reuses the program after edits that preserve a file's imports, including in projects using
importHelpers or jsx: react-jsx (#948, fixing #946). Synthetic imports for tslib and the JSX runtime no
longer force a full rebuild after every ordinary edit. Each replaced file owns its reused synthetic import nodes.
Edits that change imports still trigger a full rebuild, which remains slower than the pinned Go compiler on the
reported reproduction. The linked PR records edit-latency, instruction and memory measurements for this change.
Linting and type checking
With --type-check, every file is type-checked before any lint rule runs (#955, fixing #941). This prevents
rule type queries from producing spurious global errors on the tsconfig or hiding errors in files checked later.
Errors such as TS2590 retain the file location reported by tsrs --noEmit. Checking before rules can add overhead
on larger projects; the linked PR records the measurements.
Headless lint requests over multiple tsconfigs retain less per-program data and reuse common parsing work:
- Each configured program frees its loader allocations when it finishes, instead of retaining every program's
allocations until the request ends (#949, fixing #855). - Referenced-project tsconfigs are parsed once per request, avoiding repeated file reads and include-glob expansion
across programs (#950). - Declaration files are parsed and bound once per file name and parse options, then shared across programs in the
same request (#951).
Shared configs and declaration files stay alive until the request ends. Keeping declarations for reuse can increase
peak memory on some workloads even as it reduces parsing work. The linked PRs record the original series' individual
measurements; these are not measurements of the packaged release.
Other changes
- Fixes parser panics when JSDoc indentation splits Unicode whitespace, including in example and trailing-tag
comments (#940, fixing #939). Synthesized declaration comments still use replacement characters where the
pinned Go compiler emits incomplete UTF-8 bytes. - Updates Rust dependencies
flate2,smallvecandureq(#944).
Packages remain available for macOS arm64/x64, Linux x64/arm64 (glibc and musl), and Windows x64. Windows ARM64
awaits npm setup and a passing native PGO release dry run.
See the compatibility table for supported capabilities and known limitations.