Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

build: ease integration into projects #335

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

Conversation

Copy link

@shaman-apprentice shaman-apprentice commented Dec 3, 2022

close #333

Thanks for being open to this change. Please let me know, if I have missed something. But I think this is the only necessary change.

through removing rxjs from peer dependencies
ref testing-library#333 
@@ -32,13 +32,15 @@
"@angular/common": ">= 14.0.0",
"@angular/platform-browser": ">= 14.0.0",
"@angular/router": ">= 14.0.0",
"@angular/core": ">= 14.0.0",
"rxjs": ">= 7.4.0"
"@angular/core": ">= 14.0.0"
Copy link
Member

@timdeschryver timdeschryver Dec 3, 2022

Choose a reason for hiding this comment

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

We still want to register rxjs as a peer dep.
But, we also want to support v6

Suggested change
"@angular/core": ">= 14.0.0"
"@angular/core": ">= 14.0.0",
"rxjs": "^6.5.3 || ^7.4.0"

Copy link
Author

@shaman-apprentice shaman-apprentice Dec 3, 2022

Choose a reason for hiding this comment

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

I think that would work for me.

I couldn't find any usage of rxjs in the library code itself. Would something not work as expected, if someone installed the library and doesn't provide rxjs? If not I would like to free the user of the obligation to install rxjs. What do you think?

Copy link
Member

@timdeschryver timdeschryver Dec 3, 2022

Choose a reason for hiding this comment

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

Oh! That's a very good point 😅 I'm so used to having it as a peer dep, but you're right we can just remove it here.
We also don't need it in the dev deps, because that's being handled at the root level.

shaman-apprentice reacted with laugh emoji
Copy link
Author

@shaman-apprentice shaman-apprentice Dec 3, 2022

Choose a reason for hiding this comment

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

I am glad I didn't miss anything. Thanks for checking and responding so fast! 🙂 I updated the PR and removed it from dev deps as well.

Copy link
Member

@timdeschryver timdeschryver left a comment

Choose a reason for hiding this comment

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

Thanks!

@timdeschryver timdeschryver merged commit cb445ef into testing-library:main Dec 3, 2022
Copy link
Member

@all-contributors please add @shaman-apprentice for maintenance

Copy link
Contributor

@shaman-apprentice shaman-apprentice deleted the build/333/rxjs-as-dev-Dependency branch December 3, 2022 19:13
Copy link

github-actions bot commented Dec 3, 2022

🎉 This PR is included in version 12.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

dzonatan commented Dec 5, 2022

@timdeschryver I don't understand how.. but this somehow got messed up during release.
12.2.1 still holds rxjs peer dependency (strictly to 7.5.6 which produces even more warnings when resolving dependencies).

❯ npm info @testing-library/angular@12.2.1 peerDependencies
{
 '@angular/common': '>= 14.0.0',
 '@angular/platform-browser': '>= 14.0.0',
 '@angular/router': '>= 14.0.0',
 '@angular/core': '>= 14.0.0',
 rxjs: '7.5.6'
}
❯ npm info @testing-library/angular@12.2.0 peerDependencies
{
 '@angular/common': '>= 14.0.0',
 '@angular/platform-browser': '>= 14.0.0',
 '@angular/router': '>= 14.0.0',
 '@angular/core': '>= 14.0.0',
 rxjs: '>= 7.4.0'
}

Copy link
Member

@dzonatan it's some NX magic.
This commit should resolve that 65cccbe

dzonatan reacted with thumbs up emoji

Copy link
Member

Seems to be resolved now, thanks for the follow up @dzonatan !
https://unpkg.com/@testing-library/angular@12.2.2/package.json

dzonatan reacted with thumbs up emoji

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

@timdeschryver timdeschryver timdeschryver approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Reduce peer dependencies for easier integration

AltStyle によって変換されたページ (->オリジナル) /