-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Upgrade react-syntax-highlighter to the latest version #8266
Conversation
This pull request is automatically deployed with Now. Latest deployment for this branch: https://monorepo-git-fork-stof-upgradesyntaxhighlighter.storybook.now.sh |
needs DefinitelyTyped/DefinitelyTyped#38776 to be merged and released to fix typescript. |
de02c7f
to
0979cc2
Compare
@@ -4,7 +4,7 @@ import { styled } from '@storybook/theming'; | |||
import { Link } from '@storybook/router'; | |||
import { SyntaxHighlighter } from '@storybook/components'; | |||
|
|||
import createElement from 'react-syntax-highlighter/create-element'; | |||
import createElement from 'react-syntax-highlighter/dist/esm/create-element'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be checked again based on the comment in react-syntax-highlighter/react-syntax-highlighter#141 (comment)
Very much appreciated if you could get everything fixed, and upgraded 👏👏👏 |
@ndelangen as I commented, I need to wait for the merge of the bugfix for types, as that's the main blocker (typescript thinks the sub-module does not exist because types tell it so). This is what's breaking builds for Travis, CircleCI as well as deployments. |
@ndelangen any hint at what the DangerJS failed workflow means for my PR ? |
Looks like it is danger/danger-js#918 That's not good for a required check |
@stof We use PR labels to generate changelogs. So it's important that before merging the correct labels are applied. this is what Danger warns us for. It blocks Merging until labels are applied correctly. |
|
0979cc2
to
2748409
Compare
@ndelangen couldn't it report that in the github actions logs instead, which would work for fork PRs too ? |
@shilman I know about that, and I even commented about that in the PR previously. I just pushed an update to that PR now that fixes for the types have been merged an released. |
2748409
to
d99d96c
Compare
It looks like the testsuite does not like ES6 imports in the dependencies. I could switch to importing the CommonJS files (with another update to the types, as these are not documented there), but that would be a bad news for tree-shaking in webpack builds. @ndelangen any idea how to make Jest work here ? |
Visual changes look very good! |
🤔 |
I think we can use this: |
# Conflicts: # lib/components/package.json
Issue: #8208 #8038
What I did
react-syntax-highlighter is updated to the latest version, which is using an uptodate version of regenerator-runtime rather than the old 0.11 one.
How to test