Skip to content

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.

4 participants