-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
Rename MatrixInMemoryStore
to MemoryStore
#861
Conversation
None of the other store classes use the `Matrix` prefix, and I find the mismatch confusing (it leads me to think it might have a different purpose than the others). This change removes the prefix from the store for consistency. The old name is left as an export for existing SDK consumers.
NVM, I see the double export |
Not to mention all the bots and bridges which use it. A stub class might work, but comments which clear up the confusion might be better. Edit: I also missed the double export. Can it be made more obvious somehow? |
The PR currently preserves exporting the old name for compatibility, as I was expecting issues just like what you've mentioned otherwise. Does that address these issues? |
I could add "COMPATIBILITY:" or some other loud string to the comment, maybe? |
It sure reminds me that the project has never been updated for new build practices, but that's a different issue. I think it should at least get a deprecation notice so we can remove it eventually. |
Okay, I have added the deprecation notice as well. (Sorry for tripping everyone's breaking change alarm... 😰) |
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.
Looks like all the instances of it. I assume this has been tested, and that it doesn't cause stuff to explode.
Thanks for deprecating it, and not making it a breaking change from the outset despite everyone's efforts to call you out on it :)
Yes, I've tested that both the old and new exported names are working as expected. |
None of the other store classes use the
Matrix
prefix, and I find the mismatchconfusing (it leads me to think it might have a different purpose than the
others).
This change removes the prefix from the store for consistency. The old name is
left as an export for existing SDK consumers.