Skip to content

Commit

Permalink
chore: roblox std add content, modify changelog (#622)
Browse files Browse the repository at this point in the history
adds std definitions for Content-related globals, and updates changelog
to reflect new additions
  • Loading branch information
justinbrick authored Jan 10, 2025
1 parent dacec6a commit fdb2939
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased](https://github.com/Kampfkarren/selene/compare/0.27.1...HEAD)
### Added
- Added `Path2DControlPoint.new` to the Roblox standard library
- Added `Path2DControlPoint.new`, `Content.fromUri`, `Content.fromAssetId`, and `Content.fromObject` to the Roblox standard library
- [Adds `lua_versions` to standard library definitions](https://kampfkarren.github.io/selene/usage/std.html#lua_versions). Specifying this will only allow the syntax used by those languages. The default standard libraries now specify these, meaning that invalid syntax for that language will no longer be supported.
- Added missing third parameter to `PathWaypoint.new` in the Roblox standard library
- Added `math.map` to the Luau standard library
Expand Down
15 changes: 15 additions & 0 deletions selene-lib/default_std/roblox_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,21 @@ globals:
- type: any
- required: false
type: "..."
Content.fromObject:
args:
- required: true
type:
display: Object
must_use: true
Content.fromUri:
args:
- required: true
type: string
must_use: true
Content.fromAssetId:
args:
- required: true
type: number
structs:
EnumItem:
Name:
Expand Down

0 comments on commit fdb2939

Please sign in to comment.