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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @codemirror packages to version 6.x #14969

Merged
merged 1 commit into from Jan 4, 2023
Merged

Bump @codemirror packages to version 6.x #14969

merged 1 commit into from Jan 4, 2023

Conversation

steverep
Copy link
Member

@steverep steverep commented Jan 3, 2023

Proposed change

This is meant to replace #14783 from dependabot. Nearly all of the packages use dependencies, instead of more accurately using peer dependencies, so these really should be updated as an entire scope when jumping major versions to avoid issues. Apparently they are cautiously making the switch though (codemirror/dev#858). 馃憤馃徎

Most of the changes needed were just to account for package consolidations and a few minor API changes. The only thing I was unsure of is noted in the comment below.

This might close the issues mentioned below, or at least should be the first step to solving them.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@@ -152,10 +153,8 @@ export class HaCodeEditor extends ReactiveElement {
saveKeyBinding,
] as KeyBinding[]),
this._loadedCodeMirror.langCompartment.of(this._mode),
this._loadedCodeMirror.theme,
this._loadedCodeMirror.Prec.fallback(
Copy link
Member Author

Choose a reason for hiding this comment

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

It's not clear to me why the precedence for the syntax highlighting was lowered. If this was to account for a bug, there was some fixes for highlighting precedence in the release notes, but I don't know what to check for in HA. I made the assumption it was not needed anymore for now.

@steverep steverep added the Dependencies Pull requests that update a dependency file label Jan 3, 2023
Copy link
Member

@bramkragten bramkragten left a comment

Choose a reason for hiding this comment

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

Looks good! 馃憤

@WRoss7
Copy link

WRoss7 commented Feb 2, 2023

Persistent in 2023.2.0

@steverep
Copy link
Member Author

steverep commented Feb 2, 2023

@WRoss7 please add your comment to whichever issue you are referring. Thanks!

@home-assistant home-assistant locked as off-topic and limited conversation to collaborators Feb 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed Dependencies Pull requests that update a dependency file
Projects
None yet
3 participants