This repository has been archived by the owner on May 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Update react-styleguidist to the latest version 🚀 #92
Open
greenkeeper
wants to merge
2
commits into
master
Choose a base branch
from
greenkeeper/react-styleguidist-9.0.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
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
|
|
|
|
|
|
|
|
|
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The devDependency react-styleguidist was updated from
7.3.11
to9.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
Button
in 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-example
is 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:
editorConfig
andhighlightTheme
(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
highlightTheme
oreditorConfig.theme
options withtheme
option: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 146 commits.
8c2e2a1
9.0.0
d2511ca
Chore: Run npm audit fix on examples
38b4507
Chore: Remove Open Collective postinstall banner because it doesn't work anyway 🤔
2f00a59
Chore: Update deps
2f36348
Docs: Fix a few broken links to repo code in docs (#1272)
7630f10
Docs: (Hopefully) fix Markdown 🤯
75c393b
Chore: Fix typos in comments (#1275)
c83d2c9
Fix: Upgrade react-group to v3 (#1270)
0ecaaf5
Docs: Update react-native example (#1260)
1c68615
Docs: Fix link (#1258)
63a3a47
Fix: Change some dependencies to smaller alternatives (#1248)
8554a3d
Fix: Support webpack configs from react-scripts > 2.1.1 (#1241)
4818ffe
Docs: Fix webpack CSS loader example (#1245)
d52a42e
Chore: update webpack-dev-server due to vulnerability (#1244)
14ba635
Fix: Incorrect current section highlighting on partial match (#1239)
There are 146 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 🌴