1 | # Changelog
|
2 |
|
3 | This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
4 |
|
5 | ## v2.2.0 (`latest`)
|
6 |
|
7 | ### 🎉 Dashboard embedding
|
8 |
|
9 | - Embed dashboard in authenticated or unauthenticated way by using `sdk.createDashboard`
|
10 |
|
11 | ### Chart embedding
|
12 |
|
13 | - Added support for getting chart data via `chart.getData()`
|
14 |
|
15 | ## v2.2.0-beta.2 (`beta`)
|
16 |
|
17 | ### Dashboard embedding (beta)
|
18 |
|
19 | - Added functionality to embed dashboard
|
20 |
|
21 | ## v2.1.0
|
22 |
|
23 | ### 🎉 Interactive click events and applying chart highlights
|
24 |
|
25 | - Subscribe to click events on an embedded chart using `chart.addEventListener`. The `payload`
|
26 | parameter in the event callback contains details on the chart element clicked.
|
27 | - Apply a highlight on an embedded chart using `chart.setHighlight`
|
28 |
|
29 | ### 🛠Performance Improvements
|
30 |
|
31 | - Improved performance for authenticated embedded charts, by eliminating redundant API calls.
|
32 |
|
33 | ## v2.1.0-beta.1
|
34 |
|
35 | ### Interactive click events (beta)
|
36 |
|
37 | - Added the ability to filter click events by role to ensure the "hand" mouse cursor only appears over interactive elements.
|
38 |
|
39 | ### Performance Improvements
|
40 |
|
41 | - Improved performance for authenticated embedded charts, by eliminating redundant API calls.
|
42 |
|
43 | ## v2.0.1
|
44 |
|
45 | ### Bug fixes
|
46 |
|
47 | - fix: Publish the UMD bundle of `@mongodb-js/charts-embed-dom` that was mistakenly omitted from the `v2.0.0` release.
|
48 |
|
49 | ## v2.0.0
|
50 |
|
51 | ### Breaking Changes
|
52 |
|
53 | Changed the [Content-Security-Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) of the `iframe` created by the SDK to include the following `sandbox` directive flags:
|
54 |
|
55 | - **`allow-popups`**: Allows popups to function (eg: `window.open`, `target="_blank"`).
|
56 | - **`allow-popups-to-escape-sandbox`**: Allows a sandboxed document to open new windows without forcing the sandboxing flags upon them.
|
57 |
|
58 | This change fixes the issue that prevented hyperlinks within the `iframe` document from opening a new tab/window. While this change does not change an explicit SDK API, it does change the implicit behaviour of the security model, and therefore warranted a major version bump.
|
59 |
|
60 | ## v1.2.0-beta.1 (`beta`)
|
61 |
|
62 | ### Interactive click events (beta)
|
63 |
|
64 | - Subscribe to click events on a chart using `chart.addEventListener('click', eventHandler);` The `payload`
|
65 | parameter in the event callback contains details on the chart element clicked. In this beta release, not
|
66 | all chart types are supported, and the payload format is subject to change.
|
67 |
|
68 | ## v1.1.3
|
69 |
|
70 | ### Bug Fixes
|
71 |
|
72 | - Fixed an issue (#14) where types for `mongodb-stitch-browser-sdk` were missing causing builds with TSC to fail.
|
73 |
|
74 | ## v1.1.2
|
75 |
|
76 | ### Improved API Documentation
|
77 |
|
78 | In this release, we've added generated API docs to the NPM package bundle in the `docs` folder. We've also corrected some minor typos and omissions in the README.
|
79 |
|
80 | ### Bug Fixes
|
81 |
|
82 | - We fixed a minor bug in the `maxAgeData` prop where it would ignore when the prop was set to `0`. This resulted in cached data still being served to the client.
|
83 |
|
84 | ## v1.1.1
|
85 |
|
86 | ### Improved Rollup documentation
|
87 |
|
88 | We've now added an example `rollup.config.js` to the package README to help Rollup users get started with the SDK.
|
89 |
|
90 | ## v1.1.0
|
91 |
|
92 | ### Chart Caching Support
|
93 |
|
94 | In the latest Charts cloud release, we’ve given developers more control over the caching and refresh behaviour, which can improve performance and user experience. The new `maxDataAge` option allows you to specify when data should be retrieved from the cache or re-queried from the database. This can also be combined with the `autoRefresh` option to ensure charts are always kept current.
|
95 |
|
96 | Note: as part of this change, we have deprecated the `refreshInterval` property, as the same functionality is accessible through the new `autoRefresh` and `maxDataAge` properties.
|
97 |
|
98 | ### Minor fixes
|
99 |
|
100 | - Moved `ts-node` to a dev-dependency
|
101 |
|
102 | ## v1.0.0
|
103 |
|
104 | ### Highlights
|
105 |
|
106 | - 🎉 First release of the Charts Embedding SDK
|
107 | - 🛠Dynamically set the current theme, refresh interval, and filter
|
108 | - 🔒 Support for embedding authentication providers (Custom / Realm / Google)
|
109 |
|
110 | ### 🎉 First release of the Charts Embedding SDK
|
111 |
|
112 | We're excited to show you the first v1.0.0 release of the embedding SDK. For comprehensive documentation and guides, head on over to https://github.com/mongodb-js/charts-embed-sdk, or https://docs.mongodb.com/charts/master/embedding-charts-sdk/.
|
113 |
|
114 | ### 🛠Embedding SDK Commands
|
115 |
|
116 | The SDK unlocks interactivity in your charts that simply wasn't possible with IFrame embedding.
|
117 |
|
118 | - You can now dynamically toggle between dark mode using `setTheme`
|
119 | - Adjust how frequently your chart refreshes using `setRefreshInterval`
|
120 | - Control what data is shown in your chart using `setFilter`
|
121 |
|
122 | ### 🔒 Support for Embedding Authentication Providers
|
123 |
|
124 | You can now control who can view your embedded charts by enabling authenticated embedding. With this setting enabled, you will need to pass in a function to `getUserToken` that returns a JWT with claims
|
125 | representing the user attempting to view the Chart. For more information, check out our authenticated embedding example here: https://github.com/mongodb-js/charts-embed-sdk/tree/master/examples/authenticated-custom-jwt
|