Skip to content

Aphrodite JSS deprecation #559

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

Merged
merged 8 commits into from
Mar 10, 2020

Conversation

kebabmaster
Copy link
Contributor

Hi @Rogger794,

I have replaced the *aphrodite-jss implementation with a custom styling solution that does not require any external dependencies.

Tested locally and with the gh-pages branch, works correctly.

The unit tests have been updated accordingly.

No changes in workflows or documentation.

Thank you for your time and have a wonderful day.

@aronhelser
Copy link
Collaborator

You're close on the commit message format, but not quite 😄
fix(aphrodite_jss_deprecation): aphrodite_jss replaced ...

@kebabmaster
Copy link
Contributor Author

You're close on the commit message format, but not quite
fix(aphrodite_jss_deprecation): aphrodite_jss replaced ...

Argh, supposed to be the easiest part! Fixed.

Copy link
Contributor

@roggervalf roggervalf left a comment

Choose a reason for hiding this comment

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

I have only few changes. Also thanks for looking for this solution.

*/

export function generateUUID(){
var dt = new Date().getTime();
Copy link
Contributor

Choose a reason for hiding this comment

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

this could be replace by a let variable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

var dt = new Date().getTime();

var uuid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
var r = (dt + Math.random()*16)%16 | 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

r should be const

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

export function generateUUID(){
var dt = new Date().getTime();

var uuid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

should be let variable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

@kebabmaster
Copy link
Contributor Author

Additionally, added the no-var eslint rule that prevents the further contributors from using var instead of const or let.

@kebabmaster kebabmaster requested a review from roggervalf March 9, 2020 10:10
@roggervalf roggervalf merged commit fcdf7f1 into ReactTooltip:master Mar 10, 2020
@wwayne
Copy link
Collaborator

wwayne commented Mar 10, 2020

🎉 This PR is included in version 4.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@wwayne
Copy link
Collaborator

wwayne commented Mar 12, 2020

🎉 This PR is included in version 4.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants