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

Remove deprecated queries #152

Merged
merged 4 commits into from
Sep 3, 2020
Merged

Remove deprecated queries #152

merged 4 commits into from
Sep 3, 2020

Conversation

TheGallery
Copy link
Collaborator

@TheGallery TheGallery commented Aug 29, 2020

What:
Remove query* and get* queries from the available commands.

Why:
These queries have been deprecated in a previous release and are no longer used.

How:
Filter the imported queries from dom-testing-library to use only the ones that are relevant.

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Looking good!

src/index.js Outdated

const deprecatedRegex = /^(get|query)/
const availableRegex = /^(find|get)/
const deprecatedRegex = /^(get)/
Copy link
Member

Choose a reason for hiding this comment

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

Let's just get rid of all deprecated stuff in this release 👍

@TheGallery TheGallery changed the title Remove query* queries Remove deprecated queries Sep 3, 2020
@TheGallery
Copy link
Collaborator Author

I think I got everything now 🕵️ 🤞

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Solid! Thank you! When this is merged it should get automatically released as a beta version. Then we can have folks test it out before merging the beta branch into master to get the official release.

@kentcdodds kentcdodds merged commit 2f7fc37 into beta Sep 3, 2020
@kentcdodds kentcdodds deleted the pr/remove-deprecated-queries branch September 3, 2020 13:31
@testing-library-bot
Copy link

🎉 This PR is included in version 7.0.0-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

kentcdodds pushed a commit that referenced this pull request Sep 3, 2020
BREAKING CHANGE: `get` and `query` queries (which have been deprecated) have now been removed. Use `find` queries only.
@TheGallery
Copy link
Collaborator Author

Great! I look forward to contributing more.

@kentcdodds
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants