Skip to content

Commit

Permalink
Add math.map to the Luau standard library
Browse files Browse the repository at this point in the history
  • Loading branch information
brinkokevin committed Jan 1, 2025
1 parent e19e3c4 commit 3a3d026
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Added `Path2DControlPoint.new` 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

### Changed
- Upgrades to [full-moon 1.0.0](https://github.com/Kampfkarren/full-moon/blob/main/CHANGELOG.md#100---2024-10-08), which should provide faster parse speeds, support for multiple parsing errors at the same time, and support for some new Luau syntax.
Expand Down
8 changes: 8 additions & 0 deletions selene-lib/default_std/luau.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,14 @@ globals:
- required: false
type: number
must_use: true
math.map:
args:
- type: number
- type: number
- type: number
- type: number
- type: number
must_use: true
math.noise:
args:
- type: number
Expand Down

0 comments on commit 3a3d026

Please sign in to comment.