roblox_dart 0.1.7
roblox_dart: ^0.1.7 copied to clipboard
Dart-to-Luau transpiler for Roblox. Write Dart, compile to Luau with full Roblox API types and Rojo integration.
0.1.0 #
- Initial release
- Dart-to-Luau transpiler with Rojo integration
- Roblox API stubs: Vector3, CFrame, Color3, UDim2, Instance, BasePart, Humanoid
- Services: Workspace, Players
- CLI commands: init, watch, translate
0.1.1 #
- Added 'publish_to: none' to generated projects to prevent pub.dev errors.
- Improved path detection for roblox_dart dependency in 'init' command.
0.1.2 #
- Adaptive dependency detection:
initnow automatically chooses betweenpath(Dev) andversion(User) based on installation environment. - Dynamic version detection in
initcommand based on internal pubspec. - Project cleanliness: ensured all generated projects avoid hardcoded cache paths.
0.1.3 #
- Internal refactor: version management moved to
lib/version.dartfor maximum reliability. - Robust fallback mechanism for version detection across all operating systems.
0.1.4 #
- Improved
initcommand template: Now generates a complete Client-Server-Shared project structure. - Added
src/shared/shared.dartand example communication between server and client in the default template. - Refined project bootstrapping for a more professional developer experience.
0.1.5 #
- Native
Rojoresolution:initandimportnow respect thedefault.project.jsonpath structure. - Smarter imports: Automatically generates relative Roblox paths (e.g.
script.Parent.Shared) across client/server boundaries. - Optimized performance: Improved compiler initialization with one-time project config parsing.
- Refined internal architecture of the visitor pattern.
0.1.6 #
- Resolved fatal double
require()chain-nesting bug on luau module resolution emitted byimportdirectives. - Cross-Boundary Service Injection: Extracted Roblox-TS parity routing. Path compilation strictly evaluates
default.project.jsonservice nodes and automatically builds native entry points (game:GetService(...)) when traversing between Client, Server, and Shared scopes. - Improved robust AST path parser: Segments are deeply walked mapping relations like
..strictly as independent"Parent"instances to prevent runtime Luau failures. - Added foundational integration test suit
import_visitor_test.dartfor compiling AST nodes internally safely.
0.1.7 #
- Fixed critical
RojoResolverregression preventinggame:GetService(...)cross-boundary emission natively on fresh compilations: The resolution system was wrongfully discarding$pathmappings if outputout/directories did not physically exist prior to the transpilation process.