Repository navigation
Releases
v3.0.0-beta.7: Faster no-op builds and parallel check diagnostics
This release speeds up incremental rebuilds that change nothing and sloptor check, and changes the default worker counts for output writes and parse threads.
🔧 Changed
- sloptor build: Incremental rebuilds skip unchanged files and return from a
.rotor/cachesnapshot when nothing changed, and default output writes use 4 workers off Windows, not 8. Solution builds, Flamework, and transformer plugins skip the snapshot, and parse threads cap at 4 on macOS and 8 elsewhere. - by @howmanysmall in #200 and #202 - sloptor check: Semantic diagnostics run in parallel across type checkers that are built on first use, so
--checkers 4no longer checks files one at a time. Diagnostics match--checkers 1, and the roblox-api fixture went from 79.7 ms to 38.9 ms with 4 checkers. - by @howmanysmall in #199 and #202
Full Changelog: v3.0.0-beta.5...v3.0.0-beta.7
v3.0.0-beta.5: Usage errors exit 2 and redesigned CLI help
The CLI moves to a new parser, so usage errors now exit 2 and the help and completion scripts change. Two build fixes ship alongside, and building from source now needs Rust 1.100.0 (was 1.99.1).
⚠️ Breaking Changes
- sloptor build: Usage errors from any command now exit 2 instead of 1, including a bare
sloptor. Scripts that match exit code 1 for usage errors must match 2. - by @howmanysmall in #192 - sloptor build: Boolean flags accept only lowercase
trueorfalseafter=, so--luau=1and--luau=TRUEnow exit 2. Write--luau=trueinstead;--luau=1was read as a boolean before. - by @howmanysmall in #192
🚀 Added
- sloptor completion:
--installwrites the script where the shell looks for it, as insloptor completion zsh --install, andnuis now a supported shell. Previously there was no install step and nonuscript. - by @howmanysmall in #192
🐞 Fixed
- sloptor build: Cold-cache builds of several projects no longer fail while extracting the sidecar, and
--watchrebuilds no longer read freed declarations. Previously extraction failed withENOENTordirectory not empty, and a later project could read freed memory. - by @howmanysmall in #195 and #196
🔧 Changed
- sloptor build: Help pages open with a version banner, and
--helpadds the examples to the-hpage. Usage errors now print usage'serror:layout with the command'sUsage:line, where clap printed its own. - by @howmanysmall in #192 - sloptor completion: Installed scripts ask sloptor for candidates on every Tab instead of listing commands and flags, so regenerate any script an older sloptor wrote with
sloptor completion <shell>. Previously the static script went stale after an upgrade. - by @howmanysmall in #192
🗑️ Removed
- sloptor build:
--cpuprofile,--trace-out,--blockprofile,--mutexprofileand--heapprofileare gone, so remove them from scripts. Previously they were accepted, then the build failed before compiling. - by @howmanysmall in #192
Full Changelog: v3.0.0-beta.4...v3.0.0-beta.5
v3.0.0-beta.4: Sized array appends and faster luauTypes builds
This release changes the Luau emitted for new Array(n) when optimizedArrayAppends is on, and fixes slow builds with luauTypes. Projects that leave optimizedArrayAppends unset see no change.
🔧 Changed
- tsconfig.json: With
rbxts.optimizedArrayAppendson, anew Array<number>(n)declared directly before a loop that pushes into it now appends by index, assized[_sizedLength] = value. Previously any constructor argument fell back totable.insert(sized, value), andnew Array(n, value)still does. - by @howmanysmall in #190
🐞 Fixed
- emit: With
luauTypeson, the free-variable check used for type-level aliases no longer takes exponential time on Roblox instance types, which reference each other through hundreds of properties. Previously compile time grew exponentially with the depth limit. - by @howmanysmall in #188
Full Changelog: v3.0.0-beta.3...v3.0.0-beta.4
v3.0.0-beta.3: Rust rewrite drops Intel Mac and Windows ARM
This is the first release built from Rust: the compiler, CLI, watch mode, language server, and API server now ship as one sloptor binary, and the Go build is removed. Intel Mac and Windows ARM64 are no longer supported, the first build after upgrading recompiles every file, and .d.ts and terminal output change.
⚠️ Breaking Changes
- @rotor-rbx/rotor: No npm package or release archive is published for macOS x64 or Windows ARM64, so
bin/rotor.jsfails there withUNSUPPORTED_PLATFORM. Previously those packages installed; switch to a supported target or build withcargo build --release -p rotor_cli, as the Go build is removed. - by @howmanysmall in #186 - sloptor completion: Installed completion scripts must be regenerated, since the new ones are static
clap_completeoutput and drop Cobra's__completeprotocol. Previously the script used__complete; runsloptor completion <shell>again and replace the installed copy. - by @howmanysmall in #186
🚀 Added
- sloptor completion: Generates
elvishcompletion scripts, e.g.sloptor completion elvish, alongside bash, zsh, fish, and PowerShell. Previously elvish was not a supported shell. - by @howmanysmall in #186 - sloptor version:
sloptor -Vprints the version, as-vdoes. Previously-Vwas not a recognized flag. - by @howmanysmall in #186
🔧 Changed
- sloptor build: Help and errors show kebab-case flags such as
--include-pathand--luau-types, and the camelCase spellings such as--includePathstill parse. Previously help listed the camelCase names. - by @howmanysmall in #186 - diagnostics:
sloptor buildandsloptor checkprint rustc-style frames with anerror[TS2322]header, the path with line and column, an underlined snippet, and= help:lines. Previously they used tsc's frame and plain-line layout.--jsonoutput is unchanged. - by @howmanysmall in #186 - sloptor build: The human output is redesigned, with a header, verb lines such as
BuiltandFailed, a live progress line on a coloured terminal, and a line per project for-b. Previously it printed a banner and a summary. - by @howmanysmall in #186 - sloptor build:
--watchrebuilds print a timestamped divider, the changed files, and aRebuilt N filessummary with a rebuild counter.--jsonwatch events keep Go's NDJSON shape apart from theatanddurationMsvalues. Previously rebuilds printed Go's layout. - by @howmanysmall in #186 - sloptor build:
--use-pollingwith-bnow polls at 100 ms throughnotify's poll watcher. Previously Go accepted the flag and always used OS file events. - by @howmanysmall in #186 - sloptor build: An unchanged output is trusted without rereading when its size, mtime, ctime, inode, and device match a record in
.rotor/cache/output-stamps; a file whose timestamps are too close to that record is hashed again. Previously every output was read and hashed on each build. - by @howmanysmall in #186 - sloptor build: The first build after upgrading recompiles every file and recopies non-compiled files, because the copy-files cache and incremental salt now record
sloptor <version>. Previously these caches recorded tsgo's version, so caches from the Go build never match. - by @howmanysmall in #186 - sloptor build:
.d.tsoutput uses TypeScript 7.1 printing, soexport const { a } = ...declaresdeclare const { a }: { a: T };. Previously beta.2 wrotedeclare const a: T;, and the types are identical. Luau output is not affected. - by @howmanysmall in #186 - sloptor build:
GOGCandGOMEMLIMITno longer tune the build, whileGOMAXPROCSstill sizes the worker pool andROTOR_MAX_BUILDSstill controls build slots. PreviouslyGOGCandGOMEMLIMITtuned the Go runtime. - by @howmanysmall in #186 - sloptor lsp: Malformed request params get
InvalidParams, and the error text for methods other thaninitializeandshutdowncan differ. Previously Go's typed decoder wrote that text. - by @howmanysmall in #186
Full Changelog: v3.0.0-beta.2...v3.0.0-beta.3
v3.0.0-beta.2: Opt-in Luau types, sloptor lsp, and import fixes
This beta adds sloptor lsp and opt-in Luau type annotations, changes generated Luau for switch, try, and object spreads, and fixes a false sloptor check error and two import bugs.
🚀 Added
- sloptor lsp: Runs a stdio language server that publishes sloptor's transformer diagnostics to editors for unsaved buffers, and hides
TS####type errors unless the client setsinitializationOptions.typeErrors. Previously those diagnostics appeared only insloptor diagnostics. - by @howmanysmall in #177 - rotor.toml [nativeTypes]: Set
nativeTypes = trueinrotor.toml, orrbxts.nativeTypesintsconfig.json(tsconfig wins), to annotate parameters and returns in//!nativefiles, e.g.local function addVector(a: vector, b: vector): vector. Previously that function emitted aslocal function addVector(a, b). - by @howmanysmall in #178 - sloptor build: Pass
--luauTypes, or setluauTypesinrotor.tomlorrbxts.luauTypesintsconfig.json, to emit full type annotations for locals, signatures, classes, enums, and exported aliases. Previously output had no type annotations, and this experimental mode can change between releases. - by @howmanysmall in #179
🐞 Fixed
- sloptor check: No longer reports TS2441 for a top-level
Objectbinding, such asimport Object from "@rbxts/object-utils"in a CommonJS module, whilerequireandexportsbindings still do. Previously that import failedcheckon projects thatrbxtsccompiles cleanly. - by @paradoxuum in #172 - emit: A file that calls a Flamework guard macro and also declares a
@Componentnow importstonce, from the same guard library as the macro. Previously the decorator importedtfrom@flamework/core/out/prelude, so a project with its own@rbxts/tgot twotimports. - by @paradoxuum in #173 - emit: An import used only in a qualified type name, such as
Namespace.Typefrom a.d.tsnamespace, is now elided. Previously theTS.importstayed in the Luau and failed at runtime withFailed to import! Expected ModuleScript, got Folder. - by @paradoxuum in #174
🔧 Changed
- emit: A
switchwith acaseafterdefaultnow selects the first matching case before running any body, sopick("b")returns2instead of0. This diverges fromrbxtsc 3.0.0for those switches; switches with a trailingdefaultare unchanged. - by @christopher-buss in #185 - emit: A
trywhosetryandcatchboth always exit no longer emits the trailingif _exitType thenguard, soreturn unpack(_returns)is emitted directly. Previously the guard was emitted. This diverges fromrbxtsc 3.0.0for thosetrystatements; ones that can complete normally keep the guard. - by @christopher-buss in #183 - emit: Spreading an operand typed
objectinto an object literal or JSX element no longer emits a nil-check guard, so{ ...source }copies without anif. Previously it was guarded, which diverges fromrbxtsc 3.0.0;object | undefinedstays guarded. - by @christopher-buss in #182
New Contributors
- @paradoxuum made their first contribution in #172
Full Changelog: v3.0.0-beta.1...v3.0.0-beta.2
v3.0.0-beta.1: Compiler-only scope and shared one-shot build slots
Sloptor is now the native compiler only: the bundler, asset and deploy pipelines, scaffolding commands, and the $asset, $git, and $buildTime macros are removed. One-shot builds now share the machine through slots, API sessions transform in sidecars by default, and source maps cover more of the output.
⚠️ Breaking Changes
- sloptor bundle:
sloptor bundle,sloptor minify,sloptor pack, andsloptor sourcemapare removed, so scripts that call them fail. Previously they bundled, minified, packed, and generated Rojo sourcemaps; run those steps with separate tools. - by @christopher-buss and @howmanysmall in #168 - sloptor dev:
sloptor devis removed, so scripts that call it fail. Previously it ran watch, incremental compile, androjo serve; runsloptor build -wfor the compile loop and start Rojo separately. - by @christopher-buss and @howmanysmall in #168 - sloptor asset:
sloptor assetandsloptor deployare removed along with the Open Cloud upload and deploy pipelines. Previouslyasset syncuploaded files and wroterotor-lock.json, anddeployplanned and applied changes to live resources. - by @christopher-buss and @howmanysmall in #168 - sloptor init:
sloptor init,sloptor add,sloptor doctor, andsloptor migrateare removed, so remove them from scripts and CI. Previously they scaffolded projects, editedpackage.json, checked setup, and migrated rbxtsc project configuration. - by @christopher-buss and @howmanysmall in #168 - sloptor build:
--minifyis removed, sosloptor build --minifyfails; drop the flag. Previously it stripped comments and whitespace and rewrotet["x"]tot.x. - by @christopher-buss and @howmanysmall in #168 - $asset:
$assetis removed, so replace each call with a value from$envor generated source. Previously it expanded to an asset ID fromrotor-lock.json. - by @christopher-buss and @howmanysmall in #168 - $git:
$gitis removed, so replace each call with a value from$envor generated source. Previously it read Git values during the build. - by @christopher-buss and @howmanysmall in #168 - $buildTime:
$buildTimeis removed, so replace each call with a value from$envor generated source. Previously it expanded to the build timestamp. - by @christopher-buss and @howmanysmall in #168 - rotor.toml [assets]:
rotor.tomlnow defines onlyparallelTransformersandflamework, and the schema rejects other keys, so delete[assets]and the other removed sections. Previously[assets]configuredsloptor asset sync. - by @christopher-buss and @howmanysmall in #168 - rotor.toml:
rotor.config.tsandrotor.config.jsare no longer loaded. Move any supported settings intorotor.toml. Previously they were evaluated as executable config. - by @christopher-buss and @howmanysmall in #168 - @rotor-rbx/rotor: API sessions now transform in the server's sidecar workers by default. To keep transforms in the client process, pass
createBuildSession({ transformerCallbacks: true }); previously every transform ran there, one at a time. - by @howmanysmall in #171
🐞 Fixed
- @rotor-rbx/rotor: API builds under Node's
--experimental-package-mapnow resolve the project's TypeScript and transformer packages from each project and its ancestors. Previously those lookups failed with missing-package errors. - by @christopher-buss in #166 - $env: Changing a
$envvalue or a$filetarget now rebuilds files that use it in incremental and watch builds. Previously those builds kept stale output. - by @christopher-buss and @howmanysmall in #168 - sloptor build: With
compilerOptions.sourceMap,.luau.mapnow maps callback bodies, function expressions, object methods, class members, and continuation lines to TypeScript, and runtime header and comment lines stay unmapped. Previously only statement starts had mappings, leaving 3,603 of 6,003 non-blank lines in a 300-function fixture unmapped. - by @christopher-buss in #167
🔧 Changed
- sloptor build: One-shot
sloptor buildandsloptor checkruns now take one of several machine-wide slots (one per 6 GiB of memory, at most one per two CPUs), and split memory and sidecar workers among the runs holding slots. Previously each run sized itself as if it owned the machine; setROTOR_MAX_BUILDS=0to disable slots. - by @howmanysmall in #171 - sloptor build: One-shot builds now cap the Go memory limit at the larger of 8 GiB or twice the live heap, and at held memory plus three quarters of free memory. Previously the limit was 75% of memory up to 16 GiB, so the heap could grow to about five times the live set. - by @howmanysmall in #171
- sloptor build:
.luau.mapnow carries segments for expressions, object fields, and operators, mapped to their exact TypeScript columns in UTF-16. Previously each Luau line had one column-zero statement segment; generated Luau is unchanged. - by @christopher-buss in #169
Full Changelog: v2.9.0-beta.1...v3.0.0-beta.1
v2.9.0-beta.1: ESM-only npm package and portable incremental builds
This beta changes how sloptor build resolves package imports and restores incremental state, adds opt-in transformer paths, and makes @rotor-rbx/rotor ES-module only. Incremental projects rebuild once after upgrading because the manifest format changed.
⚠️ Breaking Changes
- @rotor-rbx/rotor: The package is ES-module only and no longer has a
requireexport condition, so CommonJS code that calledrequire("@rotor-rbx/rotor")must useawait import("@rotor-rbx/rotor")instead. Node support is now^20.19.0 || >=22.12.0, previously>=18. - by @howmanysmall (4bcb76a)
🚀 Added
- rotor.toml [parallelTransformers]: Set
workers = 2andbatchIndependent = trueto split one-shotsloptor buildtransformers across two workers, after attesting the chain withtypescriptandsha256. It is experimental and off by default; watch, dev, and API builds stay serial. - by @christopher-buss in #147 - sloptor build: With
ROTOR_REACT_SYNTAX_HOST=1, a sole supported pinned React compiler runs on authored source without a TypeScript Program. Previously every transformer ran through a Program; mixed chains and unsupported versions still do. - by @christopher-buss in #146
🐞 Fixed
- sloptor build: Rojo discovery no longer follows junction and symlink cycles until the path limit. Previously a loop in
node_modulesslowed every build. - by @christopher-buss in #159 - sloptor build: Manifests now use project-relative source identities, so a manifest restored from another checkout or OS selects zero sources when nothing changed. Previously absolute paths made the restored manifest rebuild every file. - by @christopher-buss in #160
- sloptor build: Later plugins and source traces now use positions in the file on disk after a native jecs rewrite, matching the JavaScript jecs transformer. Previously they pointed into the rewritten text. - by @howmanysmall (d2d6bcf)
🔧 Changed
- sloptor build: Package imports now ignore named
*.project.jsonfiles inside dependencies, soTS.getModule(script, "@scope", "lib").outis emitted even when a dependency has a generated test project. Previously that file redirected the path, whichrbxtsc 3.0.0still does. - by @christopher-buss in #145 - sloptor build: Solution watch (
sloptor build --build -w) now watches a package's layout files, so editing itsdefault.project.jsonor a*.project.jsonit references rebuilds that package. Previously these files were not watched. - by @christopher-buss in #145 - sloptor build: Sidecar transforms of 512 or more files now split across up to
min(4, CPUs/2)Node workers; setROTOR_SIDECAR_SHARDS=1to keep one. Previously one worker transformed every file. - by @howmanysmall in #150 - sloptor build:
rbxts-transformer-jecsruns natively when the installed package matches the build the port was written for. Other builds stay in the sidecar, andROTOR_NATIVE_JECS=0forces the sidecar. - by @howmanysmall in #150 - sloptor build: Derived programs default to 8 checkers unless
--checkersor tsconfigcheckersis set. Previously they used the default checker count. - by @howmanysmall in #150 - sloptor build: No-change builds skip building package import mappings when no source file is selected. Previously those mappings were built on every build. - by @christopher-buss in #142
- sloptor build: Overlay updates parse changed files in parallel on multi-checker programs. This can raise peak memory during the update. - by @christopher-buss in #149
Full Changelog: v2.8.3...v2.9.0-beta.1
v2.8.3: Solution watch rebuilds and watch-mode memory defaults
This patch changes solution watch rebuilds, watch-mode GC and memory defaults, and solution build scheduling. It also adds transformer phase timings to --verbose output and changes several error messages.
🚀 Added
- rotor build: With
--verbose, transformer worker phases now print with their durations in ms: config, program, factories, transform (includes parent repair), parent repair, and print/trace map. Previously these phases were not reported. - by @christopher-buss in #133
🐞 Fixed
- rotor build: Solution watch (
rotor build --build -w) now rebuilds only the changed source after a comment-only edit in a referenced project, and still rebuilds dependents when a declaration changes. Previously every dependent recompiled, and a referenced project's output could trigger a second build cycle. - by @christopher-buss in #130
🔧 Changed
- rotor build:
rotor build -w,rotor check -w, androtor devnow default toGOGC=100and a soft Go memory limit capped at 6 GiB, unlessGOGCorGOMEMLIMITis set. Previously they usedGOGC=400and a soft limit of 75% of effective memory, capped at 16 GiB. - by @christopher-buss in #131 - rotor build: Declaration files now emit concurrently per checker group, and overlap the transformer sidecar round trip when one runs. Previously each checker group emitted serially after the transformer finished. - by @howmanysmall in #127
- rotor build: In a solution build with
--builders N, a project waiting on a dependency no longer occupies one of the N workers, so independent projects start while it waits. Previously a blocked project held its worker until the dependency finished. - by @christopher-buss in #133 - tsconfig.json:
rbxtsoption errors now begin withinvalid "rbxts" config in, and tsconfig parse failures begin withfailed to parse tsconfig at. Previously both began with a capital letter,InvalidandFailed. - by @howmanysmall in #132 - rotor migrate: Its missing-config and overwrite errors no longer end in a period, such as
re-run with --force to replace it. Previously they ended withreplace it.- by @howmanysmall in #132
Full Changelog: v2.8.2...v2.8.3
v2.8.2: Full build diagnostics and incremental rebuild fixes
This patch release fixes rotor build diagnostics, Windows path resolution, and incremental rebuilds after a dependency's Rojo project changes. Incremental projects do one full rebuild on the first build after upgrading, and the Windows path change only affects Windows.
🐞 Fixed
- rotor build: A build with type errors now reports them from every file in one run, including
--jsonoutput, and type errors take precedence over comment-directive errors, as inrbxtsc. Previously the build stopped at the first file with errors. - by @howmanysmall in #123 - rotor build: Paths reached through a Windows directory junction,
substdrive, or 8.3 short name now resolve to their real spelling, matching the Node transformer sidecar. Previously, transformer output on these paths could be rejected as missing from the program. - by @howmanysmall in #124 - rotor build: Incremental builds now rebuild when a dependency's Rojo project changes its path mappings, even when the file's modification time is unchanged. Previously, renaming a dependency's Rojo project left stale
TS.importpaths in unchanged files. - by @howmanysmall in #125
Full Changelog: v2.8.1...v2.8.2
v2.8.1: Declaration rebuilds and underscore JSX component bindings
This patch release changes incremental rotor build rebuilds and JSX emit for underscore-prefixed components, and adds a diagnostic for referenced functions declared after a final statement. Existing incremental manifests may rebuild affected importers once after upgrading.
🐞 Fixed
- rotor build: Editing any
.d.tsfile now rebuilds its importers, including re-exports, external packages, and global declarations, which can rebuild every source. Previously a caller kept table indexing after its imported return type changed toLuaTuple<[number, string]>, instead oflocal count, text = values(). - by @christopher-buss in #120 - rotor build: Referencing a function declared after a final
return,break, orcontinuenow fails withFunction "name" is unreachable after a final statement., so move the declaration before the first statement that uses it. Previously the build succeeded and the function was a nil binding. - by @christopher-buss in #121
🔧 Changed
- rotor build: JSX tags such as
<_View />now emit the component bindingReact.createElement(_View), which diverges fromrbxtsc 3.0.0. Previously they emitted the host-tag stringReact.createElement("_View"). Lowercase and hyphenated intrinsic tags are unchanged. - by @christopher-buss in #120
Full Changelog: v2.8.0...v2.8.1