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

feat: align some methods with the Set Methods proposal #8890

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

almeidx
Copy link
Member

@almeidx almeidx commented Nov 30, 2022

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

Overview of the changes:

  • intersect -> intersection
  • difference -> symmetricDifference
  • subtract -> difference
  • Added union

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

@vercel
Copy link

vercel bot commented Nov 30, 2022

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

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Nov 7, 2023 5:59pm
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Nov 7, 2023 5:59pm

@almeidx almeidx changed the title feat(collection): align/add methods with/from Set Methods proposal feat(collection): align some methods with the Set Methods proposal Nov 30, 2022
Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

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

We should make a new PR to change the documentation a little and phase out The X method returns... from this package. It's verbose and we don't write like that anywhere else.

I'm also not fond of describe('X() tests', cb); and would rather prefer describe('X', cb);, but that'd be another PR. 😅

Also adding the blocked label to prevent accidental semver-major merges on main.

@kyranet kyranet added the blocked label Dec 1, 2022
@almeidx almeidx force-pushed the collection/set-methods branch from 106881f to 69e2f6b Compare December 1, 2022 16:53
@almeidx almeidx changed the title feat(collection): align some methods with the Set Methods proposal feat: align some methods with the Set Methods proposal Oct 29, 2023
BREAKING CHANGE: The `intersect` method has been renamed to `intersection`
BREAKING CHANGE: The `difference` method has been renamed to `symmetricDifference`
BREAKING CHANGE: The `subtract` method has been renamed to `difference`
@almeidx almeidx force-pushed the collection/set-methods branch from 6049d46 to 5ff0043 Compare November 7, 2023 17:59
@almeidx almeidx requested a review from a team as a code owner November 7, 2023 17:59
Copy link

github-actions bot commented Nov 7, 2023

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 82
🟢 Accessibility 96
🟢 Best practices 100
🟠 SEO 67
🔴 PWA 33

Lighthouse ran on https://discord-js-git-fork-almeidx-collection-set-methods-discordjs.vercel.app/

@iCrawl iCrawl removed the blocked label Nov 7, 2023
@kodiakhq kodiakhq bot merged commit 3b8df63 into discordjs:main Nov 7, 2023
@almeidx almeidx deleted the collection/set-methods branch November 7, 2023 18:05
@Jiralite Jiralite added this to the collection 2.0 milestone Nov 7, 2023
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

6 participants