Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: deprecate $ prefix from ws.properties keys #8095

Merged
merged 5 commits into from Jun 17, 2022
Merged

refactor: deprecate $ prefix from ws.properties keys #8095

merged 5 commits into from Jun 17, 2022

Conversation

SuperchupuDev
Copy link
Contributor

@SuperchupuDev SuperchupuDev commented Jun 14, 2022

Please describe the changes this PR makes and why it should be merged:

Status and versioning classification:

  • I know how to update typings and have done so, or typings don't need updating

@vercel
Copy link

vercel bot commented Jun 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
discord-js ❌ Failed (Inspect) Jun 14, 2022 at 8:42PM (UTC)

@vercel vercel bot temporarily deployed to Preview June 14, 2022 18:29 Inactive
@Jiralite Jiralite added this to the discord.js v13.8.1 milestone Jun 14, 2022
@almeidx
Copy link
Member

almeidx commented Jun 14, 2022

As is, this is a breaking change

@iCrawl
Copy link
Member

iCrawl commented Jun 14, 2022

We should do this in a non-breaking way, yes. Accept both but only send the "new" way.

@SuperchupuDev
Copy link
Contributor Author

SuperchupuDev commented Jun 14, 2022

alright then, since the prefix is apparently dropped server-side by discord i just made the typings accept both

@vercel vercel bot temporarily deployed to Preview June 14, 2022 18:50 Inactive
@almeidx
Copy link
Member

almeidx commented Jun 14, 2022

🤔 Can you deprecate the prefixed keys?

@vercel vercel bot temporarily deployed to Preview June 14, 2022 19:06 Inactive
@vercel vercel bot temporarily deployed to Preview June 14, 2022 19:24 Inactive
Copy link
Member

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

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

These @links will point to the correct definition in the typings.

typings/index.d.ts Outdated Show resolved Hide resolved
typings/index.d.ts Outdated Show resolved Hide resolved
typings/index.d.ts Outdated Show resolved Hide resolved
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
@vercel vercel bot temporarily deployed to Preview June 14, 2022 20:42 Inactive
@SuperchupuDev SuperchupuDev changed the title refactor: remove $ prefix from ws.properties keys for v13 refactor: deprecate $ prefix from ws.properties keys Jun 14, 2022
@JosPoka
Copy link

JosPoka commented Jun 16, 2022

@SuperchupuDev Could you check the failing check? (vercel)

@kyranet
Copy link
Member

kyranet commented Jun 16, 2022

@JosPoka Vercel only passes on PRs pointing to main, it'll always fail for PRs to v13, don't mind it.

@iCrawl iCrawl merged commit 3638b40 into discordjs:v13 Jun 17, 2022
@SuperchupuDev SuperchupuDev deleted the v13 branch June 17, 2022 21:34
@RedGuy12 RedGuy12 mentioned this pull request Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

9 participants