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 library to Cookie #191
Comments
When you Is there a specific reason of why you would want a |
Initially we thought on using Since the ship has sailed already, we will need a much stronger argument to change it. I don't see any value in deprecating the current name in favor of a singular. |
Closing due to the lack of feedback from the OP. If you want to continue the discussion, please comment here mentioning one of the collaborators. |
@FagnerMartinsBrack from an MVC standpoint, and seeing the Cookies library as a Model, it's usually the standard to use singular, that's why I was suggesting it. Also, sorry for the late reply but have been very busy last week. |
If you decide on doing this it might indeed make sense to require a parameter for |
js-cookie should be environment agnostic. There are projects that uses js-cookie and are not MVC based. Therefore there is no reason for changing the API to make it fit for a specific use case. We want to create a library that is simple enough so that it can fir any use case.
There is no such standard. Even if we develop this library using MVC in mind, there is no difference between having |
Yes of course, but the library does look and behave like a Model would in an MVC app though. Get and set methods and the like.
Never seen an MVC app use plural for Model names tho. Again, this is just my opinion and a suggestion. In the end it doesn't really matter if a library is called |
The "Model" part in MVC is not about There is no such thing as "MVC is
Just because some MVCs apps doesn't use plural in the file names, it doesn't mean that all MVCs apps use plural. It all depends on how the code is structured.
I understand, and thanks for initiating the discussion. |
It makes more sense to name the library after the singular name rather than the plural I think. You could add an alias for
Cookies
but mark it as deprecated, and then remove it in the next major release.The text was updated successfully, but these errors were encountered: