luau breaking changes
luau 0.748 is its newest release with breaking changes. The first: Type functions can no longer reference expression globals from the surrounding scope in luau 0.748. Every breaking API change we have recorded in luau on vcpkg: 76 breaking changes in 47 versions. Below, its 47 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.748. Source repository
luau 0.748 breaking changes
- Behavior changed
Type functions have isolated, sandboxed environments, so code that reads expression globals inside a type function is now rejected rather than sometimes inferred. Remove such references from type function bodies. github.com
luau 0.747 breaking changes
- Behavior changed
A class constructor that reads or writes self before calling its base constructor now reports an error. github.com - Behavior changed
Code that iterates over a union containing non-iterable types such as boolean, number or vector will now be reported as a type error. github.com - Behavior changed
Some type errors on table index types that used to be silently suppressed are now reported. github.com
luau 0.746 breaking changes
- Behavior changed
Iterating over a type containing tables that is not itself a subtype of table now produces a type error. Code that iterates such values will be flagged by the typechecker. github.com - Behavior changed
In the experimental classes prototype, inheriting a constructor instead of defining its own is now an error. Classes relying on inherited constructors must define their own. github.com - Behavior changed
Globals used inside type functions no longer influence type inference outside them, and using them now reports a typechecking error. Code relying on this must be updated. github.com
luau 0.745 breaking changes
- Signature changed
lua_EmbedderGc
The embedder's lua_EmbedderGc callback now returns an int: return nonzero while it is still making progress. Embedders must update their implementation to return a value. github.com
luau 0.743 breaking changes
- Behavior changed
At debug level 2, constant locals are no longer stored as extra locals and upvalues, which can change what debugging tools see. github.com
luau 0.742 breaking changes
- Removed
loadstring
loadstring is no longer declared in Luau's built-in type definitions, so code that relies on it will fail type checking. github.com
Older versions
41 older versions, each with its first changes. Sign up to see every change
Show 41 older versions
luau 0.741 breaking changes
- Renamed
lua_setbuffercage
The C API function lua_setbuffercage was renamed to lua_setmemorycage. Code calling the old name must switch to the new one. github.com
luau 0.740 breaking changes
- Removed
Luau.Set
Luau::Set was removed because DenseHashSet fully replaces it. C++ code that uses Luau::Set must switch to DenseHashSet. github.com - Behavior changed
luaL_sandbox
luaL_sandbox now freezes the vector metatable if it is set. Code that modifies that metatable after sandboxing will no longer be able to do so. github.com
luau 0.739 breaking changes
- Behavior changed
Code that passed the type checker before may now be rejected when generic function bodies call functions with values of the wrong type, such as nil. Fix the flagged calls to match the generic type. github.com
luau 0.737 breaking changes
- Behavior changed
keyof
Table indexers no longer let their generics leak into unsealed tables passed as arguments, so code that relied on that type inference may now get type errors. github.com
luau 0.731 breaking changes
- Behavior changed
lua_unref
lua_unref now unconditionally returns LUA_NOREF, so code that uses its return value to track references must be updated. github.com
luau 0.727 breaking changes
- Removed
The extern class declaration syntax is no longer accepted, so code using it will fail to type check. github.com - Behavior changed
Parameters of functions assigned to a variadic-typed member now receive the variadic element type instead of unknown, which can change type checking results. github.com
luau 0.716 breaking changes
- Renamed
Luau.OverloadResolution.h
The header Luau/OverloadResolution.h was renamed to Luau/OverloadResolver.h to match the struct name. Code that includes the old header must update its include path. github.com
luau 0.713 breaking changes
- Removed
InsertionOrderedMap
InsertionOrderedMap is no longer provided by the Analysis library and now lives in Common. Code that includes or links it from Analysis must update its include or link path. github.com - Behavior changed
const
Assigning a function to a name already declared with const is now a compile error. Code that redeclares a const name with a function statement must be changed. github.com
luau 0.710 breaking changes
- Signature changed
useratom
The useratom callback now receives an extra lua_State pointer argument. Code that uses string atom identifiers must add that argument to its handler. github.com
luau 0.708 breaking changes
- Behavior changed
Defining a type alias with the same name as a built-in type is now disallowed in the new solver, matching the old solver. Rename any such aliases in your code. github.com
luau 0.707 breaking changes
- Removed
RequireNavigator.getRequirerIdentifier
The getRequirerIdentifier method is gone; its work is now done by resetToRequirer. Code calling it must switch to resetToRequirer. github.com - Removed
RequireNavigator.reset
The reset method is gone; resetToRequirer replaces it. Code calling reset must switch to resetToRequirer. github.com
luau 0.706 breaking changes
- Renamed
class
The class tag used in type functions is renamed to extern. Code that refers to the old class tag must switch to extern. github.com - Behavior changed
Some internal type unification now uses the new solver's subtyping, so inferred types can differ from earlier releases. Code relying on previous inference results may need review. github.com
luau 0.705 breaking changes
- Removed
DebugLuauStringSingletonBasedOnQuotes
The experimental flag is removed, and singleton type inference no longer depends on quote style. github.com - Renamed
class
Code using the class type tag in UDTF definitions must switch to extern. github.com
And 1 more in this version.
luau 0.704 breaking changes
- Behavior changed
Assignments that used to pass because table indexers were ignored can now fail type checking. Check code that assigns extern types to tables with incompatible indexers. github.com - Behavior changed
Some recursive type aliases used with different parameters that previously passed type checking now report an error, including in nonstrict mode. Update those aliases to follow the recursive type restriction RFC. github.com
And 1 more in this version.
luau 0.703 breaking changes
- Behavior changed
Calls that pass too many arguments to a function type, such as a method with extra arguments, now produce a type error where they were previously missed. Fix the extra arguments in calls that now fail. github.com - Behavior changed
Annotated for-in loop variables are now checked against the iterator's types, so code whose annotation disagrees with the iterated value now fails type checking. github.com
And 2 more in this version.
luau 0.700 breaking changes
- Behavior changed
OverloadResolver.resolveOverload
The overload resolution interface was reworked, and OverloadResolver::resolveOverload was introduced to unify existing machinery. github.com - Behavior changed
table.isfrozen
table.isfrozen and table.clear now use {} instead of a generic table type in the type checker, so typing of union-of-table arguments changes. github.com
And 1 more in this version.
luau 0.698 breaking changes
- Removed
Luau.RequireNavigator
The Luau.RequireNavigator static library no longer exists because it was merged into Luau.Require. Link against Luau.Require instead. github.com - Renamed
is_config_present
is_config_present was replaced with get_config_status in Luau.Require. Callers must switch to the new function. github.com
luau 0.694 breaking changes
- Behavior changed
The typechecker now reports the extern type name as userdata rather than class. Code that depends on the old name in typechecker output or tooling may need to be updated. github.com
luau 0.690 breaking changes
- Behavior changed
Generic aliases that accept both a type and a type pack now report an error when only a type pack is given. Provide a type before the pack to keep code type checking. github.com
luau 0.689 breaking changes
- Signature changed
rawget
rawget is typed to return V? instead of V, since it returns nil when the key is missing. Code that assumes a non-nil result may now fail type checking. github.com
luau 0.688 breaking changes
- Behavior changed
Calls where the inferred instantiation of a polymorphic type is impossible, such as passing a string to table.insert on a number array, now produce type errors that were previously missed. github.com
luau 0.687 breaking changes
- Behavior changed
The new type solver adds iteration and recursion limits and stops before exhausting system resources. Code that type-checked before may now report errors. github.com
luau 0.685 breaking changes
- Behavior changed
The analysis now raises type checking errors in cases where it previously leaked internal error types from modules. Code that type checks cleanly on the previous version may now report errors. github.com
luau 0.684 breaking changes
- Behavior changed
xpcall
The xpcall error handler can no longer yield. Code that yields from an xpcall error handler must be restructured so it does not yield there. github.com
luau 0.682 breaking changes
- Behavior changed
Refinements targeting *no-refine* are resolved even when the target would otherwise be pending, such as another type function. Code relying on the old pending behavior may see different type results. github.com
luau 0.680 breaking changes
- Behavior changed
Sealed tables are now stringified as { ... } and unsealed tables as {| ... |} under either solver, so code that depends on the old type-to-string output may need updating. github.com
luau 0.679 breaking changes
- Behavior changed
Refining a table property such as foo.bar in an if check now produces a read-only property type instead of a plain one, which can change type errors when the property is later assigned. github.com - Signature changed
Luau.shallowClone
The last argument of Luau::shallowClone, which controls whether persistent (builtin) types are cloned, is no longer optional. Callers must pass it explicitly. github.com
luau 0.677 breaking changes
- Behavior changed
Converting function types with a different number of generic parameters, such as () -> () into <T>() -> (), again produces a type mismatch error in the new type solver, so code that relied on it passing type checking may now report errors. github.com - Signature changed
getmetatable
The type signature of the getmetatable library function now uses the corresponding type function, which can change type inference results for code that uses it. github.com
luau 0.676 breaking changes
- Behavior changed
lua_unref
lua_unref no longer accepts reference values that did not exist in the table, so C code that releases unknown refs may behave differently. github.com - Signature changed
setmetatable
setmetatable is now typed as generic over its table and metatable types, so code relying on the previous type signature may see different type errors. github.com
luau 0.675 breaking changes
- Behavior changed
The new type solver no longer infers singleton types for large tables, so code relying on those narrower inferred types may now see different type-check results. github.com
luau 0.673 breaking changes
- Renamed
contents API
The contents API in Luau.Require is replaced by the new loadname API. Code that calls the contents API must switch to loadname. github.com
luau 0.671 breaking changes
- Behavior changed
Magic functions are now only special when the code calls them explicitly, so implicit uses such as the call desugared from for..in loops are no longer handled as magic. github.com - Behavior changed
The internal ClassType was renamed to ExternType. In definition files, these types are now declared with 'declare extern type Foo with prop: type end', so existing definition files using the old syntax must be updated. github.com
luau 0.670 breaking changes
- Behavior changed
typeof
Type functions named typeof are rejected with an error in the new solver. Rename any such type function. github.com
luau 0.668 breaking changes
- Configuration changed
Building Luau now requires CMake 3.10 or later, so builds using older CMake versions will no longer work. github.com
luau 0.665 breaking changes
- Removed
lua_setuserdatametatable
The idx parameter is removed so the function only operates on the top of the stack. Code relying on the old index-based behavior must use lua_setuserdatametatable_DEPRECATED, which keeps the old behavior. github.com
luau 0.660 breaking changes
- Behavior changed
AST nodes now keep source information so the transpiler can re-emit code as written; tools consuming the AST may see changes. github.com
luau 0.658 breaking changes
- Renamed
FunctionType.dcrMagicFunction
FunctionType::dcrMagicFunction became MagicFunction::infer. github.com - Renamed
FunctionType.dcrMagicRefinement
FunctionType::dcrMagicRefinement became MagicFunction::refine. github.com
And 3 more in this version.
luau 0.657 breaking changes
- Renamed
Table
Luau's Table struct was renamed to LuaTable; code using the old name must update. github.com
luau 0.656 breaking changes
- Behavior changed
Some autocomplete hangs now exit early with a unification error, and some crashes become internal compiler exceptions. github.com - Behavior changed
Fragment autocomplete now provides no suggestions within comments. github.com
And 1 more in this version.
luau 0.655 breaking changes
- Behavior changed
Print inside a user-defined type function now reports an error instead of logging to stdout. github.com
luau 0.653 breaking changes
- Behavior changed
Vector x/y/z/X/Y/Z field access is now provided through a vector metatable __index method. github.com
Related packages
- luau on Homebrew
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.