Repository navigation
Releases
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.
0.23.0
0.23.0
tsrs 0.23.0 targets TypeScript 7.1 beta, with package version 0.23.0-ts7.1.0-beta for tsrs and @tsrs/wasm.
The TypeScript source pin remains microsoft/TypeScript@3e9236361fa9.
Whole-program type checking in both modes
oxlint --type-aware --type-check now checks the whole program for each tsconfig selected by Oxlint's files,
in both default and fast (TSRS_FAST=1) modes (#930).
- Unselected, ignored and generated program files can report type errors.
skipLibCheckstill controls
declaration checking; global diagnostics appear on the tsconfig. Oxlint ignores still control lint rules. - Files sent by Oxlint that no discovered tsconfig includes are checked in an inferred program with tsgolint's
fallback options, restoring their type errors in fast mode. - Shared files report errors once: selected files use their mapped program; other files use the first selected
configured program eligible to check them. - Config discovery follows transitive project references, including custom-named configs, and preserves inherited
compiler options (#934).
Selecting a clean file can now fail because another file in its program has a type error. Checking more files can
add work, especially with overlapping configs.
Other changes
- Speeds up cross-project references and initial auto-import completions in the language server (#936).
- Fixes memory growth across repeated full program rebuilds (#895).
no-misused-promisesavoids expensive type expansion for generic callbacks and overloads, and skips parameters
without corresponding arguments (#907, #923).prefer-optional-chainreports optional-chain opportunities inside JSX callbacks (#910, #926).no-unnecessary-conditionfixes false positives for unresolved conditional types such asAwaited<T>, while
retaining reports when constraints prove a condition always truthy or never nullish (#911).no-unsafe-assignmentfixes false positives for quoted, numeric and computed object properties contextually
typed asunknown, and reportsanyassignments to JSX props (#914, #924).prefer-includeshandles escaped backslashes in regex patterns and preserves escaping in.includes()fixes (#918).no-unnecessary-type-assertionreports assertions that may supply a generic call's inferred type arguments,
recommending explicit type arguments without an automatic removal fix (#925).
Packages remain available for macOS arm64/x64, Linux x64/arm64 (glibc and musl), and Windows x64. Windows ARM64
(#903) awaits npm setup and a passing native PGO release dry run.
See the compatibility table for supported capabilities and known limitations.
0.22.0
0.22.0
tsrs 0.22.0 targets TypeScript 7.1 beta. The TypeScript source pin remains microsoft/TypeScript@3e9236361fa9, with
the same TypeScript-compatible defaults and opt-in --fast preset as 0.21.0.
pnpm add -D tsrs@0.22.0-ts7.1.0-beta
# WebAssembly for Node and browsers:
pnpm add @tsrs/wasm@0.22.0-ts7.1.0-betaOne run for type-aware lint and type checking
Under the fast preset, oxlint --type-aware --type-check reports the same type errors as tsrs --noEmit for each
tsconfig program, so a project can drop its separate typecheck step and type-check in the lint run (#897, #902):
TSRS_FAST=1 OXLINT_TSGOLINT_PATH=node_modules/.bin/tsrs-lint oxlint --type-aware --type-check- Same errors as
tsrs --noEmit. Every filetsrs --noEmitchecks is checked, including files Oxlint does not
lint (ignored or generated files, declaration files), and each program's global diagnostics are reported on its
tsconfig. Files outside every tsconfig are linted but not type-checked. The type errors match
tsrs -p <config> --noEmiton webpack (840), vscode (371), t3code-server (6) and a large private monorepo. - One program, one checking pass. Lint already resolves the types of nearly every expression, so checking in the
same pass costs little more than a typecheck alone. Against runningtsrs --noEmitand then lint, the single run
took 21-37% less wall time and 27-49% fewer instructions on vscode, t3code-server, webpack and the private monorepo
(measurements). - When it pays. Each tsconfig that Oxlint's files map to is checked whole, so the run replaces a typecheck of those
same tsconfigs. A monorepo that typechecks one root config while lint maps its files to many overlapping package
configs does more work this way: mikro-orm was 75% slower. - Default mode is unchanged. Without
--fast,--type-checkreports type errors for the files Oxlint sends, as
tsgolint does.
See type checking in the lint run.
Other changes
- Content mappers in the language server and the Node API.
tsrs --lspandtsrs --api --runExternalCoderun
contentMappers, so mapped files such as.vuecheck in editors and through rolldown-plugin-dts's
generator: "tsrs", with diagnostics at their original positions (#885, fixing #877). - Content mappers in the linter.
tsrs --lint --runExternalCode, orTSRS_LINT_RUN_EXTERNAL_CODE=1under
Oxlint, lints programs whose tsconfig hascontentMappersinstead of reporting a tsconfig error. Type errors in
mapped files are reported at their original ranges, and rules skip mapped files (#883, fixing #876). - Incremental runs under
--fast. Fast-mode build info records which files declare an interface, so an edit to
a file without one no longer rechecks every interface-declaring file when a run starts from a tsbuildinfo (#900). - Fast-mode checker performance. Conditional-type simplification resolves the false branch first, and literal
indexes into fixed tuples are answered from the tuple's type arguments, ported from
teamchong/TypeScript#1 (#854). - Maintenance. Determinism CI runs in shards and the lint baselines run in parallel (#875).
Supported platforms and known limitations remain listed in the compatibility table.
0.21.0
0.21.0
tsrs 0.21.0 targets TypeScript 7.1 beta and adds a type-aware linter for Oxlint. The TypeScript source pin remains
microsoft/TypeScript@3e9236361fa9, with the same TypeScript-compatible defaults and opt-in --fast preset as 0.20.1.
pnpm add -D tsrs@0.21.0-ts7.1.0-beta
# WebAssembly for Node and browsers:
pnpm add @tsrs/wasm@0.21.0-ts7.1.0-beta- Type-aware linting for Oxlint. tsrs implements tsgolint's headless protocol and all 61 of its type-aware
rules at v7.0.2005 (#624). Thetsrspackage ships the linter inside thetsrsbinary astsrs --lint, with a
tsrs-lintcommand thatoxlint --type-awareruns throughOXLINT_TSGOLINT_PATH=node_modules/.bin/tsrs-lint;
release builds include lint in PGO training on every platform (#857). See
type-aware linting. - Lint memory. Rules run on the program's checker pool with the CLI's checker count and file assignment, so
checkers no longer resolve most of the program once per thread;TSRS_FAST=1applies the fast preset (#848).
The linter reads the default libraries fromTSRS_LIB_PATHwhen it is set, as the CLI does (#862). - Lint file reads. Disk contents, including empty files and failed reads, are cached for each request;
source overrides take precedence, and later requests observe disk changes (#874). - Checker performance. Key-property lookups skip resolving property types that cannot be unit types (#859),
declaration and JSDoc paths avoid redundant allocations (#833), and symbol tables store keys that differ from
the symbol's name as name proxies, ported from microsoft/TypeScript#64979 (#829). - Language server. A server dropped without a shutdown request frees its session, snapshots and programs
(#837). - Maintenance. The TypeScript nightly sync workflow (#685), lint benchmarks on pull requests that change the
linter (#853), and dependency updates (#865, #866, #867).
Supported platforms and known limitations remain listed in the compatibility table.
0.20.1
tsrs 0.20.1 is a patch release targeting TypeScript 7.1 beta. The TypeScript source pin remains
microsoft/TypeScript@3e9236361fa9, with the same TypeScript-compatible defaults and opt-in --fast preset as 0.20.0.
pnpm add -D tsrs@0.20.1-ts7.1.0-beta
# WebAssembly for Node and browsers:
pnpm add @tsrs/wasm@0.20.1-ts7.1.0-beta- Checker correctness. Reverts a union-constraint shortcut whose cached type-variable flag could miss
NoInferconstituents. Narrowing checks each constituent again (#808). - WebAssembly hosts. Host and WASI memory accesses treat pointers at or above 2 GiB as unsigned, including
request and response buffers, filesystem transfers, environment variables and output (#812). - Windows integration. Native packages include
tsgo.exefor VS Code SDK discovery (#826); see
editor setup. Bare content-mapper commands resolve throughPATHEXT, and explicit
paths bypassPATHlookup (#822). - npm launcher. Restores blocking standard streams before starting the native compiler, avoiding output
failures when Node has made a stream nonblocking (#831). - Checker and collection storage. Small union-merge buffers and inference flags use inline storage;
concurrent maps allocate shard groups on demand, generic link stores use smaller chunks, and language-server
file events use Fx hashing while preserving order (#800, #804). The
small-buffer and
collection notes record individual measurements and tradeoffs. - Scheduling and filesystem work. Checker threads are reused across work groups, build modification-time
caches are shared across builders without a single lock, and small include trees are read inline before
falling back to the Rayon pool (#814, #815, #816). - Printer allocations. Emit and type display avoid temporary output buffers and strings while retaining
the same output (#828). The printer note records measurements. - Release publishing. GitHub releases are marked as the latest release. npm packages continue to use the
latesttag, and the playground deploys after publication (#801). - Benchmark documentation. The benchmark report compares published 0.20.0 packages
with and without--fastagainst TypeScript 7.1 beta, with reproducible chart data (#805).
Supported platforms and known limitations remain listed in the compatibility table.
The linked optimization measurements describe individual changes, not a new packaged-release performance comparison.