Skip to main content

Changelog

v0.7.2#

Improvements#

  • CLI: Improvements to README.

v0.7.1#

Bug fixes#

  • Visual Studio Code: Previewing another component while preview was already opened did nothing.

v0.7.0#

Improvements#

  • Brand new side panel to explore components in your project!
  • Faster refreshes, especially when from the props editor.
  • More powerful type resolution.

v0.6.2#

Improvements#

  • NextJS components work even better now!
  • React Preview server waits for external browser tabs to be closed before shutting itself down.
  • Reduced CPU/memory usage when refreshing.

Bug fixes#

  • Deleting or moving files could cause spurious errors.
  • Visual Studio Code: React Preview would reset itself to the original component when the preview was hidden. It now keeps running in the background until the preview is closed.

v0.6.1#

Improvements#

  • A loading spinner is now shown when switching between components for clarity.
  • Aliases inferred from tsconfig.json now also work within CSS modules.

Bug fixes#

  • Function props could cause the viewport to overflow.
  • Invalid tsconfig.json files are ignored instead of crashing React Preview.

v0.6.0#

This release includes a major refactor of React Preview's core engine. React Preview now runs with a stateless server, which paves the way for future collaborative uses.

Bug fixes#

  • Generated string props now include the full prop path (eg. "foo.bar").

New features#

  • You can now switch between components within the same file easily.
  • Components in a sibling file (e.g. MyComponent.stories.tsx) will also appear automatically.
  • Storybook decorators are now supported.

v0.5.5#

This is the first synchronised release across both Visual Studio Code and IntelliJ / WebStorm!

Bug fixes#

  • Fixed a potential infinite recursive loop.
  • Prop functions that return other functions are no longer generated past one level.
  • Arrays of unknown value types are now empty arrays instead of [undefined].

v0.5.4#

Bug fixes#

  • Fixed a regression with default props generation when using multiple type aliases.

v0.5.1#

Bug fixes#

  • Fixed a caching issue where Windows users would see a blank screen after updating.

v0.5.0#

Improvements#

  • Improved support for PropTypes, especially in class components.
  • Improved type resolution capabilities, especially for generic types.

v0.4.3#

Improvements#

  • Generated props are now formatted with Prettier.
  • Improved detected props.
  • Array props are now generated.
  • Various bug fixes.

v0.4.2#

Improvements#

  • New keyboard shortcut (Ctrl/Cmd + K V).
  • New setting to disable CodeLens.
  • Support for custom Vite config in reactpreview.config.js (under vite: ...).
  • Lots of bug fixes.

v0.4.1#

Improvements#

  • Introduce a new setting to disable live preview.

v0.4.0#

Improvements#

  • Storybook Args are now supported.
  • PropTypes are detected.
  • Properties are preserved when switching components.
  • Configure custom component previews with preview(Foo, { ... }) from '@reactpreview/config`.

v0.3.0#

Improvements#

  • JSX in .js files is now supported!
  • Improved onboarding experience.
  • New configuration tab.
  • Wrapper component location can be customised.
  • sass package is no longer needed for SCSS.
  • Fixed a race condition on first install.

Bug fixes#

  • Various stability improvements.
  • Preview link always appears immediately before the component definition.

v0.2.3#

Improvements#

  • Errors are more discrete to avoid breaking flow.
  • Bottom panel can be minimised.

Bug fixes#

  • Installation and first use should be more reliable.
  • Support for baseUrl in tsconfig.json.
  • Errors disappear once fixed.
  • Firefox browser is now supported.
  • PostCSS processing no longer crashes.
  • Fixed an infinite loop.

v0.2.2#

Improvements#

  • PostCSS and TailwindCSS support

v0.2.1#

Improvements#

  • Offline support

v0.2.0#

Improvements#

  • Performance has been drastically improved.
  • SVGR support is now configurable and supports CRA apps by default.
  • Callback properties are automatically generated.
  • Various cosmetic improvements.

v0.1.1#

Bug fixes#

  • Hot reloading was broken on Windows.
  • Copy-pasting from the React Preview webview was broken.
  • SVGR support improvements.

v0.1.0#

First release of React Preview!