Skip to content

Releases: grafana/scenes

v6.1.0

20 Feb 18:06
Compare
Choose a tag to compare

🚀 Enhancement

  • @grafana/scenes
    • UrlSync: Variable changes adds browser history steps #882 (@torkelo)

🐛 Bug Fix

  • @grafana/scenes

Authors: 3

v6.0.2

13 Feb 16:10
Compare
Choose a tag to compare

🐛 Bug Fix

  • @grafana/scenes

Authors: 1

v6.0.1

10 Feb 16:01
Compare
Choose a tag to compare

🐛 Bug Fix

Authors: 2

v6.0.0

07 Feb 19:02
Compare
Choose a tag to compare

💥 Breaking Change

Authors: 1


Migration guide for an app plugin

Example plugin update PR →

  1. Bump react-router-dom - package.json
-"react-router-dom": "^5.2.0",
+"react-router-dom": "^6.22.0",
  1. Remove @types/react-router-dom - package.json
-"@types/react-router-dom": "^5.2.0",
  1. Stop externalisingreact-router-dom - .config/webpack/webpack.config.ts
externals: [
      // Required for dynamic publicPath resolution
      { 'amd-module': 'module' },
      'lodash',
      'jquery',
      'moment',
      'slate',
      'emotion',
      '@emotion/react',
      '@emotion/css',
      'prismjs',
      'slate-plain-serializer',
      '@grafana/slate-react',
      'react',
      'react-dom',
      'react-redux',
      'redux',
      'rxjs',
      'react-router',
-    'react-router-dom',
      'd3',
      'angular',
      '@grafana/ui',
      '@grafana/runtime',
      '@grafana/data',
  1. Enable react-router@v6 - .cprc.json
    Add the following line in the .cprc.json:
{
  "features": {
+   "useReactRouterV6": true
  }
}
  1. <Route>: use relative wildcard routes
-<Route path="/a/myorg-example-app/home ... />
+<Route path="home/*" ... />
  1. <Route>: use the element prop
-<Route ... component={WithDrilldown} />
+<Route ... element={<WithDrilldown />} />
  1. <Switch>: replace with Routes
-import { Switch } from "react-router-dom";
+import { Routes } from "react-router-dom";  

-<Switch> ... </Switch>
+<Routes> ... </Routes>
  1. Add a relative routePath prop to each <SceneAppPage>. It needs to include a wildcard if there are any drill-down or tab pages under it.
-new SceneAppPage({
-  url: "/a/myorg-example-app/home",
-  ...
- });
+new SceneAppPage({
+  url: "/a/myorg-example-app/home",
+  routePath: "home/*",
+  ...
+})
  1. Make the routePath prop defined on drill-downs relative and include a wildcard.

v5.42.0

06 Feb 14:42
Compare
Choose a tag to compare

🚀 Enhancement

  • @grafana/scenes
    • Themes: Fixes variable labels to support border radius #1050 (@torkelo)

Authors: 1

v5.41.3

06 Feb 10:44
Compare
Choose a tag to compare

🐛 Bug Fix

Authors: 1

v5.41.2

04 Feb 09:35
Compare
Choose a tag to compare

🐛 Bug Fix

  • @grafana/scenes
    • Variables: Prevent queries from runners which are not specific to the query runner datasource #1044 (@bfmatei)
    • MultiValueVariable: Add getDefaultSingleState method #1035 (@domasx2)
  • @grafana/scenes-react, @grafana/scenes

Authors: 3

v5.41.1

30 Jan 12:19
Compare
Choose a tag to compare

🐛 Bug Fix

  • @grafana/scenes
    • LazyLoader: Prevent empty panels from not being hidden #1039 (@svennergr)

Authors: 1

v5.41.0

28 Jan 15:54
Compare
Choose a tag to compare

🚀 Enhancement

  • @grafana/scenes
    • Fix issue with custom variables losing URL value when there are no options #1033 (@mdvictor)

Authors: 1

v5.40.0

28 Jan 11:56
Compare
Choose a tag to compare

🚀 Enhancement

  • @grafana/scenes
    • SceneVariableSet: Allow propagation of variable changes through local variable #1030 (@torkelo)

🐛 Bug Fix

  • @grafana/scenes

Authors: 2