-
Notifications
You must be signed in to change notification settings - Fork 45
docs: deprecate withFeatureFactory in favor of withFeature
#167
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
docs: deprecate withFeatureFactory in favor of withFeature
#167
Conversation
…'s `withFeature`
|
I realize now that when I asked you about this that I didn't ask if this would be a soft or hard deprecation. So I am going about this like a soft deprecation at the moment but can make changes to hard deprecate it if you want. In my opinion, I think a soft deprecation for perhaps at least a certain period of time or certain amount of versions and then a hard deprecation would be good. I don't think the way I handled the doc page with the initial commit is as clean as it could be, but I wanted to ask a few questions first before over thinking things.
|
rainerhahnekamp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite happy with your approach! Do you think it would make sense for withFeatureFactory to directly call withFeature?
Regarding deprecation
If we can get the toolkit to support ng update in the next release, we could already start working on an automatic migration script for v20. That would also mean we don’t need to keep this feature around for too long. In fact, with a working migration, we could remove it entirely in v20.
Adding ng update support for the upcoming 19.2 release could be handled in a separate PR.
As for the documentation
If it’s possible to give the title in the side menu some kind of special marking—like a different color or a strikethrough—then yes, let’s go for it. Otherwise, we can leave it as is.
So the library's function would just be a wrapper for it and no real source code? Yeah that makes sense. In that respect, I think maybe then the copy for the docs should just be pulled out and the page be a glorified link to the NgRx docs until deprecation IMO.
I'll look into that after work |
Yes! |
|
Update (if none of these are deal breakers then I am fine with the PR as is) Docs:
Implementation:
|
…withFeature` wrapper I explain in the PR that I find the wrapper approach more effort/complication than it is worth. Removing this for now as I am not currently changing the implementation.
|
All right, looks good to me. Would you like to add anything, or are we ready to merge? |
|
I think it's ready |
|
Thanks again @michael-small |
NGRX v19.1.0's release added
withFeature, which is justwithFeatureFactorybut now directly built intongrx/signals.ngrx/platform@d87acb3