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

Bump Javalab Codemirror version #41273

Merged
merged 3 commits into from Jun 24, 2021
Merged

Conversation

bencodeorg
Copy link
Contributor

@bencodeorg bencodeorg commented Jun 23, 2021

In working on readonly mode for Javalab, I found that there are some relevant features that are only available in a 0.18.x release (namely, preventing copy/paste when your Code Mirror is in readonly mode). This PR bumps all Codemirror packages to 0.18.x. This change broke our Dark/Light mode, so it includes changes to resolve those issues. More info on the changes in 0.18 is here.

Testing story

I tested these changes manually by switching back and forth between light and dark mode and generally playing around with the editor. It appears these packages are only used in Javalab currently, so I only tested there.

Follow-up work

Will follow this up with work on read only mode.

@@ -9635,13 +9635,25 @@ lezer-tree@^0.13.0:
resolved "https://registry.yarnpkg.com/lezer-tree/-/lezer-tree-0.13.0.tgz#199757338a30e4c5ee8d9a767546d7ce8935bfbe"
integrity sha512-YqGD22WxQmT6np2JEX5Z+zhdBSfPEcQ8B6ct+39oLzSAHecUPUd/maN5PKNtnUZbSzd81mEx1ZqzMDA1eRSRcg==

lezer-tree@^0.13.2:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

First time upgrading our apps dependencies -- these look like code-mirror dependencies, but is there any best practice for confirming that I'm not accidentally bumping the version of things that I didn't intend to change?

Copy link
Contributor

Choose a reason for hiding this comment

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

the only way I know to do that would be to search in this file to see if other packages depend on lezer-tree.

@bencodeorg bencodeorg requested a review from a team June 23, 2021 19:08
Copy link
Contributor

@molly-moen molly-moen left a comment

Choose a reason for hiding this comment

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

Thanks for picking this up!

@bencodeorg bencodeorg merged commit 540f74e into staging Jun 24, 2021
@bencodeorg bencodeorg deleted the ben/javalab-bump-codemirror branch June 24, 2021 13:04
@bencodeorg bencodeorg mentioned this pull request Oct 14, 2021
8 tasks
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.

None yet

2 participants