Skip to content

Releases

v3.0.0-beta.7: Faster no-op builds and parallel check diagnostics

Choose a tag to compare

@github-actions github-actions released this 30 Nov 03:14
v3.0.0-beta.7
0c9e476

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/cache snapshot 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 4 no 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

Choose a tag to compare

@github-actions github-actions released this 19 Nov 01:37
v3.0.0-beta.5
dc9c8cf

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 true or false after =, so --luau=1 and --luau=TRUE now exit 2. Write --luau=true instead; --luau=1 was read as a boolean before. - by @howmanysmall in #192

🚀 Added

  • sloptor completion: --install writes the script where the shell looks for it, as in sloptor completion zsh --install, and nu is now a supported shell. Previously there was no install step and no nu script. - by @howmanysmall in #192

🐞 Fixed

  • sloptor build: Cold-cache builds of several projects no longer fail while extracting the sidecar, and --watch rebuilds no longer read freed declarations. Previously extraction failed with ENOENT or directory 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 --help adds the examples to the -h page. Usage errors now print usage's error: layout with the command's Usage: 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, --mutexprofile and --heapprofile are 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

Choose a tag to compare

@github-actions github-actions released this 07 Nov 03:14
v3.0.0-beta.4
42ca501

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.optimizedArrayAppends on, a new Array<number>(n) declared directly before a loop that pushes into it now appends by index, as sized[_sizedLength] = value. Previously any constructor argument fell back to table.insert(sized, value), and new Array(n, value) still does. - by @howmanysmall in #190

🐞 Fixed

  • emit: With luauTypes on, 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

Choose a tag to compare

@github-actions github-actions released this 05 Nov 03:23
v3.0.0-beta.3
1e0cc51

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.js fails there with UNSUPPORTED_PLATFORM. Previously those packages installed; switch to a supported target or build with cargo 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_complete output and drop Cobra's __complete protocol. Previously the script used __complete; run sloptor completion <shell> again and replace the installed copy. - by @howmanysmall in #186

🚀 Added

  • sloptor completion: Generates elvish completion 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 -V prints the version, as -v does. Previously -V was not a recognized flag. - by @howmanysmall in #186

🔧 Changed

  • sloptor build: Help and errors show kebab-case flags such as --include-path and --luau-types, and the camelCase spellings such as --includePath still parse. Previously help listed the camelCase names. - by @howmanysmall in #186
  • diagnostics: sloptor build and sloptor check print rustc-style frames with an error[TS2322] header, the path with line and column, an underlined snippet, and = help: lines. Previously they used tsc's frame and plain-line layout. --json output is unchanged. - by @howmanysmall in #186
  • sloptor build: The human output is redesigned, with a header, verb lines such as Built and Failed, 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: --watch rebuilds print a timestamped divider, the changed files, and a Rebuilt N files summary with a rebuild counter. --json watch events keep Go's NDJSON shape apart from the at and durationMs values. Previously rebuilds printed Go's layout. - by @howmanysmall in #186
  • sloptor build: --use-polling with -b now polls at 100 ms through notify'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.ts output uses TypeScript 7.1 printing, so export const { a } = ... declares declare const { a }: { a: T };. Previously beta.2 wrote declare const a: T;, and the types are identical. Luau output is not affected. - by @howmanysmall in #186
  • sloptor build: GOGC and GOMEMLIMIT no longer tune the build, while GOMAXPROCS still sizes the worker pool and ROTOR_MAX_BUILDS still controls build slots. Previously GOGC and GOMEMLIMIT tuned the Go runtime. - by @howmanysmall in #186
  • sloptor lsp: Malformed request params get InvalidParams, and the error text for methods other than initialize and shutdown can 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

Choose a tag to compare

@github-actions github-actions released this 03 Nov 01:11
v3.0.0-beta.2
5d9dfc0

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 sets initializationOptions.typeErrors. Previously those diagnostics appeared only in sloptor diagnostics. - by @howmanysmall in #177
  • rotor.toml [nativeTypes]: Set nativeTypes = true in rotor.toml, or rbxts.nativeTypes in tsconfig.json (tsconfig wins), to annotate parameters and returns in //!native files, e.g. local function addVector(a: vector, b: vector): vector. Previously that function emitted as local function addVector(a, b). - by @howmanysmall in #178
  • sloptor build: Pass --luauTypes, or set luauTypes in rotor.toml or rbxts.luauTypes in tsconfig.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 Object binding, such as import Object from "@rbxts/object-utils" in a CommonJS module, while require and exports bindings still do. Previously that import failed check on projects that rbxtsc compiles cleanly. - by @paradoxuum in #172
  • emit: A file that calls a Flamework guard macro and also declares a @Component now imports t once, from the same guard library as the macro. Previously the decorator imported t from @flamework/core/out/prelude, so a project with its own @rbxts/t got two t imports. - by @paradoxuum in #173
  • emit: An import used only in a qualified type name, such as Namespace.Type from a .d.ts namespace, is now elided. Previously the TS.import stayed in the Luau and failed at runtime with Failed to import! Expected ModuleScript, got Folder. - by @paradoxuum in #174

🔧 Changed

  • emit: A switch with a case after default now selects the first matching case before running any body, so pick("b") returns 2 instead of 0. This diverges from rbxtsc 3.0.0 for those switches; switches with a trailing default are unchanged. - by @christopher-buss in #185
  • emit: A try whose try and catch both always exit no longer emits the trailing if _exitType then guard, so return unpack(_returns) is emitted directly. Previously the guard was emitted. This diverges from rbxtsc 3.0.0 for those try statements; ones that can complete normally keep the guard. - by @christopher-buss in #183
  • emit: Spreading an operand typed object into an object literal or JSX element no longer emits a nil-check guard, so { ...source } copies without an if. Previously it was guarded, which diverges from rbxtsc 3.0.0; object | undefined stays guarded. - by @christopher-buss in #182

New Contributors

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

Choose a tag to compare

@github-actions github-actions released this 27 Oct 05:15
v3.0.0-beta.1
69ce6b9

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, and sloptor sourcemap are 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 dev is removed, so scripts that call it fail. Previously it ran watch, incremental compile, and rojo serve; run sloptor build -w for the compile loop and start Rojo separately. - by @christopher-buss and @howmanysmall in #168
  • sloptor asset: sloptor asset and sloptor deploy are removed along with the Open Cloud upload and deploy pipelines. Previously asset sync uploaded files and wrote rotor-lock.json, and deploy planned and applied changes to live resources. - by @christopher-buss and @howmanysmall in #168
  • sloptor init: sloptor init, sloptor add, sloptor doctor, and sloptor migrate are removed, so remove them from scripts and CI. Previously they scaffolded projects, edited package.json, checked setup, and migrated rbxtsc project configuration. - by @christopher-buss and @howmanysmall in #168
  • sloptor build: --minify is removed, so sloptor build --minify fails; drop the flag. Previously it stripped comments and whitespace and rewrote t["x"] to t.x. - by @christopher-buss and @howmanysmall in #168
  • $asset: $asset is removed, so replace each call with a value from $env or generated source. Previously it expanded to an asset ID from rotor-lock.json. - by @christopher-buss and @howmanysmall in #168
  • $git: $git is removed, so replace each call with a value from $env or generated source. Previously it read Git values during the build. - by @christopher-buss and @howmanysmall in #168
  • $buildTime: $buildTime is removed, so replace each call with a value from $env or generated source. Previously it expanded to the build timestamp. - by @christopher-buss and @howmanysmall in #168
  • rotor.toml [assets]: rotor.toml now defines only parallelTransformers and flamework, and the schema rejects other keys, so delete [assets] and the other removed sections. Previously [assets] configured sloptor asset sync. - by @christopher-buss and @howmanysmall in #168
  • rotor.toml: rotor.config.ts and rotor.config.js are no longer loaded. Move any supported settings into rotor.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-map now 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 $env value or a $file target 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.map now 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 build and sloptor check runs 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; set ROTOR_MAX_BUILDS=0 to 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.map now 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

Choose a tag to compare

@github-actions github-actions released this 21 Oct 23:04
v2.9.0-beta.1
dfb6e3e

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 require export condition, so CommonJS code that called require("@rotor-rbx/rotor") must use await 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 = 2 and batchIndependent = true to split one-shot sloptor build transformers across two workers, after attesting the chain with typescript and sha256. 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_modules slowed 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.json files inside dependencies, so TS.getModule(script, "@scope", "lib").out is emitted even when a dependency has a generated test project. Previously that file redirected the path, which rbxtsc 3.0.0 still does. - by @christopher-buss in #145
  • sloptor build: Solution watch (sloptor build --build -w) now watches a package's layout files, so editing its default.project.json or a *.project.json it 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; set ROTOR_SIDECAR_SHARDS=1 to keep one. Previously one worker transformed every file. - by @howmanysmall in #150
  • sloptor build: rbxts-transformer-jecs runs natively when the installed package matches the build the port was written for. Other builds stay in the sidecar, and ROTOR_NATIVE_JECS=0 forces the sidecar. - by @howmanysmall in #150
  • sloptor build: Derived programs default to 8 checkers unless --checkers or tsconfig checkers is 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

Choose a tag to compare

@github-actions github-actions released this 17 Oct 19:32
v2.8.3
c9c6ba6

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, and rotor dev now default to GOGC=100 and a soft Go memory limit capped at 6 GiB, unless GOGC or GOMEMLIMIT is set. Previously they used GOGC=400 and 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: rbxts option errors now begin with invalid "rbxts" config in, and tsconfig parse failures begin with failed to parse tsconfig at. Previously both began with a capital letter, Invalid and Failed. - 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 with replace it. - by @howmanysmall in #132

Full Changelog: v2.8.2...v2.8.3

v2.8.2: Full build diagnostics and incremental rebuild fixes

Choose a tag to compare

@github-actions github-actions released this 16 Oct 20:01
v2.8.2
67bdc85

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 --json output, and type errors take precedence over comment-directive errors, as in rbxtsc. Previously the build stopped at the first file with errors. - by @howmanysmall in #123
  • rotor build: Paths reached through a Windows directory junction, subst drive, 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.import paths 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

Choose a tag to compare

@github-actions github-actions released this 12 Oct 17:00
v2.8.1
6cfe536

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.ts file 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 to LuaTuple<[number, string]>, instead of local count, text = values(). - by @christopher-buss in #120
  • rotor build: Referencing a function declared after a final return, break, or continue now fails with Function "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 binding React.createElement(_View), which diverges from rbxtsc 3.0.0. Previously they emitted the host-tag string React.createElement("_View"). Lowercase and hyphenated intrinsic tags are unchanged. - by @christopher-buss in #120

Full Changelog: v2.8.0...v2.8.1