Skip to content

Conversation

@ryanlua
Copy link
Contributor

@ryanlua ryanlua commented Jan 15, 2026

Fixes deprecated warnings by removing deprecated methods and using the up-to-date versions.

  • Change usage of FontSize to TextSize
    • Both are the same but one uses a Enum instead of a number
  • Remove TextWrap
    • TextWrap is an alias for TextWrapped which is already set
  • Change GetProductInfo to GetProductInfoAsync
    • Behaviors and API are exactly the same for both methods.

Script Analysis Before

image

Script Analysis After

image

Update FontSize to use TextSize and remove TextWrap since it's already set using TextWrapped
Remove TextWrap since TextWrapped already sets it
Replace GetProductInfo with GetProductInfoAsync to remove the deprecation warning. The functions behave exactly the same, but one is asynchronous
Copilot AI review requested due to automatic review settings January 15, 2026 22:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes deprecated Roblox API warnings by updating deprecated properties and methods to their current equivalents.

Changes:

  • Replaced deprecated GetProductInfo with GetProductInfoAsync in MarketplaceService calls
  • Changed deprecated FontSize enum property to TextSize numeric property
  • Removed redundant TextWrap property (which was deprecated and duplicates TextWrapped)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/VERSION.lua Updated MarketplaceService call from deprecated GetProductInfo to GetProductInfoAsync
src/Elements/Widget.lua Removed deprecated TextWrap property (redundant with TextWrapped)
src/Elements/Notice.lua Changed deprecated FontSize enum to TextSize numeric property and removed redundant TextWrap

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant