Skip to content

Aphrodite JSS deprecation#559

Merged
roggervalf merged 8 commits into
ReactTooltip:masterfrom
kebabmaster:aphrodite_jss_deprecation
Mar 10, 2020
Merged

Aphrodite JSS deprecation#559
roggervalf merged 8 commits into
ReactTooltip:masterfrom
kebabmaster:aphrodite_jss_deprecation

Conversation

@kebabmaster
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@kebabmaster
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread src/utils/uuid.js Outdated
*/

export function generateUUID(){
var dt = new Date().getTime();
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed

Comment thread src/utils/uuid.js Outdated
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed

Comment thread src/utils/uuid.js Outdated
export function generateUUID(){
var dt = new Date().getTime();

var uuid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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