Skip to content
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

fix: Update wordcount package to prevent crash #6644

Merged
merged 2 commits into from May 9, 2018

Conversation

tofumatt
Copy link
Member

@tofumatt tofumatt commented May 8, 2018

Prevent crash on empty wordcount (fix #6617)
See: WordPress/packages#122

Description

Bump the wordcount package to fix #6617.

How has this been tested?

Tested locally and the crash is gone.
The package itself now has tests to make sure this bug won't happen again.

Screenshots

2018-05-08 19 41 51

Types of changes

Bug fix.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@gziolo
Copy link
Member

gziolo commented May 9, 2018

It seems like there are some unexpected changes in package-lock.json. Which version of npm do you use? There are some weird things going on when using npm 5 and 6, we have just landed the change which enforces npm 6 to sort it out.

@tofumatt
Copy link
Member Author

tofumatt commented May 9, 2018 via email

@tofumatt tofumatt force-pushed the fix/6617-editor-crash-content-empty branch from fba864b to d35f9db Compare May 9, 2018 11:28
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@tofumatt tofumatt merged commit 16d6a01 into master May 9, 2018
@tofumatt tofumatt deleted the fix/6617-editor-crash-content-empty branch May 9, 2018 12:07
@mtias mtias added this to the 2.9 milestone May 17, 2018
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.

Word count crash when content is empty
4 participants