-
Notifications
You must be signed in to change notification settings - Fork 0
Update react-styleguidist to the latest version 🚀 #12
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
base: master
Are you sure you want to change the base?
Conversation
|
Update to this version instead 🚀 Release Notes for v9.0.2
CommitsThe new version differs by 6 commits.
See the full diff |
|
Update to this version instead 🚀 Release Notes for v9.0.4 |
Update to this version instead 🚀 Release Notes for v9.0.5
|
Update to this version instead 🚀 Release Notes for v9.0.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
The devDependency react-styleguidist was updated from
8.0.6to9.0.0.This version is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for v9.0.0
👋 Support Styleguidist on Open Collective 👋
New features and breaking changes
Do not put components into global namespace
Finally we’ve fixed one of the oldest and weirdest issues. Style guide components are no longer accessible on
window. Only the current component is accessible in the example context (not onwindow). You need to explicitly import any other component.Current component (like
Buttonin this example) is always accessible by its name in the example code. If you want to use other components, you need to explicitly import them:Or you can explicitly import everything, to make examples easier to copy into your app code:
require()statements are still supported.(#1116), #1075, #325 by @sapegin)
Import statements in the editor
You can also define aliases to make your imports more realistic:
In this example
rsg-exampleis an alias defined with the moduleAliases config option.(#1142, #1076, #1109, #1074 by @sapegin)
New editor and syntax highlighting
We’ve replaced CodeMirror with react-simple-code-editor and now using Prism for code highlighting in static examples (instead of Highlight.js) and inside the editor. So code look the same everywhere in Styleguidist. We’ve also removed code splitting because react-simple-code-editor is so small and we can include it in the main bundle (8 KB vs 57 KB).
There are some breaking changes in the config:
editorConfigandhighlightTheme(already deprecated) options were removed.(#1054 #987 by @sapegin)
Drop React 15 support
React 16.3 is the minimum supported version.
Bug fixes
element
element
Changes since 9.0.0-beta4
Migrating from 8.x to 9.x
highlightThemeoreditorConfig.themeoptions withthemeoption:We don’t have predefined themes anymore, you can customize colors as you wish using the theme config option:
Commits
The new version differs by 128 commits.
8c2e2a19.0.0d2511caChore: Run npm audit fix on examples38b4507Chore: Remove Open Collective postinstall banner because it doesn't work anyway 🤔2f00a59Chore: Update deps2f36348Docs: Fix a few broken links to repo code in docs (#1272)7630f10Docs: (Hopefully) fix Markdown 🤯75c393bChore: Fix typos in comments (#1275)c83d2c9Fix: Upgrade react-group to v3 (#1270)0ecaaf5Docs: Update react-native example (#1260)1c68615Docs: Fix link (#1258)63a3a47Fix: Change some dependencies to smaller alternatives (#1248)8554a3dFix: Support webpack configs from react-scripts > 2.1.1 (#1241)4818ffeDocs: Fix webpack CSS loader example (#1245)d52a42eChore: update webpack-dev-server due to vulnerability (#1244)14ba635Fix: Incorrect current section highlighting on partial match (#1239)There are 128 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴