-
-
Notifications
You must be signed in to change notification settings - Fork 622
Remove LegacyMembershipManager
#4862
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
Those tests were only run with the legacy membership manager and are redundant with the memberhsip manager test spec.
8de7202
to
5d9dfc9
Compare
expect(sendDelayedStateMock).toHaveBeenCalledTimes(1); | ||
} | ||
|
||
it("sends events", async () => { |
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.
Are this and the tests below it being removed because they never were testing the new membership manager?
@@ -77,6 +76,7 @@ export interface MembershipConfig { | |||
* Use the new Manager. | |||
* | |||
* Default: `false`. | |||
* @deprecated does nothing anymore we always default to the new memberhip manager. |
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.
I see, so this isn't even a breaking change as we're not exporting the membership managers to begin with. Nice 👍
The legacy membership manager was kept around during the transition phase. It is now in a spot where we dont use it anymore and where we are getting better results with the new implementation.
This removes all related code and deprecates fields related to it so that downstream projects can adjust. (in particular:
useNewMembershipManager
)There was a custom test file that tested both (new and legacy implementation) this file used describe.each and now just became a simple describe. All helper code for this setup also got removed.
Checklist
public
/exported
symbols have accurate TSDoc documentation.