diff --git a/CHANGELOG.md b/CHANGELOG.md index 81a1c9ef..a8e9e2a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/selene-lib/default_std/roblox_base.yml b/selene-lib/default_std/roblox_base.yml index 2bc6fa48..e77bf482 100644 --- a/selene-lib/default_std/roblox_base.yml +++ b/selene-lib/default_std/roblox_base.yml @@ -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: