2018-12-03 16:24:39 -05:00
|
|
|
# @superset-ui : Change Log
|
|
|
|
|
2019-01-29 02:16:50 -05:00
|
|
|
## v0.9.1
|
|
|
|
|
|
|
|
### 🐞 Bug fixes
|
|
|
|
|
|
|
|
* Fix TypeScript declaration for package `jed` with `@superset-ui/translation` distribution.
|
|
|
|
|
|
|
|
## v0.9.0
|
|
|
|
|
|
|
|
### ✨ Features
|
|
|
|
|
|
|
|
* Add `useLegacyApi` field to `ChartMetadata`. This flag will help us determine whether to use the new `/api/v1/query` endpoint or the legacy one.
|
|
|
|
* Add two generics to `Registry<V, W>`
|
|
|
|
* `V` is type of value in the registry
|
|
|
|
* `W` is type of value returned from `loader` function when using `.registerLoader(key, loader)`.
|
|
|
|
* `W` can be either `V`, `Promise<V>` or `V | Promise<V>`
|
|
|
|
* Set `W=V` when does not support asynchronous loader. Making return type of `.get()` become `V` instead of `Promise<V>`
|
|
|
|
* By default, `W` is set to `V | Promise<V>` to support both synchronous and asynchronous loaders.
|
|
|
|
* Include and link TypeScript declaration for package `jed` with `@superset-ui/translation` distribution.
|
|
|
|
|
|
|
|
### 🛠️ Internal
|
|
|
|
|
|
|
|
* Convert `@superset-ui/number-format` to TypeScript
|
|
|
|
* Convert `@superset-ui/time-format` to TypeScript
|
|
|
|
* Convert `@superset-ui/translation` to TypeScript
|
|
|
|
|
|
|
|
### 💔 BREAKING CHANGES
|
|
|
|
|
|
|
|
* Make number formatter always returns `string`. This is different from previous behavior.
|
|
|
|
|
|
|
|
|Value|formatted value (before)|formatted value (after)|
|
|
|
|
|------------|------------|-----------|
|
|
|
|
| `null` | `null` | `'null'` |
|
|
|
|
| `undefined` | `undefined` | `'undefined'` |
|
|
|
|
| `NaN` | `NaN` | `'NaN'` |
|
|
|
|
|
|
|
|
* Make time formatter always returns `string`. This is different from previous behavior.
|
|
|
|
|
|
|
|
|Value|formatted value (before)|formatted value (after)|
|
|
|
|
|------------|------------|-----------|
|
|
|
|
| `null` | `null` | `'null'` |
|
|
|
|
| `undefined` | `undefined` | `'undefined'` |
|
|
|
|
| `NaN` | `NaN` | `'NaN'` |
|
|
|
|
|
2019-01-14 14:25:35 -05:00
|
|
|
## v0.8.0
|
|
|
|
|
2019-01-29 02:16:50 -05:00
|
|
|
### ✨ Features
|
2019-01-14 14:25:35 -05:00
|
|
|
|
|
|
|
* Add SuperChart and convert to TypeScript
|
|
|
|
* Allow metrics arrays in form data
|
|
|
|
* Moved query module from `incubator-superset` into `superset-ui`
|
|
|
|
* Add `reactify` function from `incubator-superset`
|
|
|
|
|
|
|
|
### 🐞 Bug fixes
|
|
|
|
|
|
|
|
* Handle `BigNumber` conversions to/from JSON without loss of precision
|
|
|
|
|
|
|
|
### 🛠️ Internal
|
|
|
|
|
|
|
|
* Use DefinitelyTyped's `fetch-mock` type def
|
|
|
|
* Improved type def for `json-bigint`
|
|
|
|
* Migrated `@superset-ui/chart` to TypeScript
|
|
|
|
* Migrated `@superset-ui/color` to TypeScript
|
|
|
|
* Migrated `@superset-ui/core` to TypeScript
|
|
|
|
* Made `connection` and `color` packages peer dependencies
|
|
|
|
|
2018-12-03 16:24:39 -05:00
|
|
|
## v0.7.2
|
|
|
|
|
|
|
|
### ✨ Features
|
|
|
|
|
|
|
|
* Make `@superset-ui/time-format` and `@superset-ui/number-format` ignore leading and trailing spaces when looking for formatters.
|
2018-11-03 04:39:14 -04:00
|
|
|
|
2018-11-30 13:31:14 -05:00
|
|
|
## v0.7.1
|
|
|
|
|
|
|
|
### ✨ Features
|
|
|
|
|
|
|
|
* Add new APIs to `@superset-ui/time-format`
|
|
|
|
- `createD3TimeFormatter`
|
|
|
|
- `createMultiFormatter`
|
|
|
|
* Add new APIs to `@superset-ui/number-format`
|
|
|
|
- `createD3NumberFormatter`
|
|
|
|
- `createSiAtMostNDigitFormatter`
|
|
|
|
|
2018-11-29 17:55:21 -05:00
|
|
|
## v0.7.0
|
2018-11-14 19:55:58 -05:00
|
|
|
|
2018-11-29 17:55:21 -05:00
|
|
|
### ✨ Features
|
2018-11-14 19:55:58 -05:00
|
|
|
|
2018-11-29 17:55:21 -05:00
|
|
|
* Add `@superset-ui/time-format` package
|
|
|
|
* Add `@superset-ui/number-format` package
|
|
|
|
* Use the recently added `ExtensibleFunction` to make an instance of `CategoricalColorScale` be a function
|
|
|
|
* Add `overwritePolicy` for `Registry` so developer can customize whether overwriting is `ALLOW`, `WARN` or `PROHIBIT`.
|
2018-11-14 19:55:58 -05:00
|
|
|
|
2018-11-29 17:55:21 -05:00
|
|
|
### 🐞 Bug fixes
|
2018-11-14 19:55:58 -05:00
|
|
|
|
2018-11-29 17:55:21 -05:00
|
|
|
* Transform input value before setting color.
|
2018-11-06 01:33:46 -05:00
|
|
|
|
2018-11-29 17:55:21 -05:00
|
|
|
### 🛠️ Internal
|
2018-11-06 01:33:46 -05:00
|
|
|
|
2018-11-29 17:55:21 -05:00
|
|
|
* Rewrite `@superset-ui/connection` in TypeScript
|
2018-11-03 04:39:14 -04:00
|
|
|
|
2018-11-29 17:55:21 -05:00
|
|
|
### 💔 BREAKING CHANGES
|
|
|
|
|
|
|
|
* Remove `categoricalColorScale.toFunction()`. Now `categoricalColorScale` itself is already a function.
|
|
|
|
* The color scales no longer convert input to lowercase before finding color.
|
|
|
|
* Rename `ColorScheme` field `name` to `id`.
|
|
|
|
* Change `Registry` constructor API to take object instead of single string name.
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
## v0.6.0
|
|
|
|
|
|
|
|
### ✨ Features
|
|
|
|
|
|
|
|
* Add `@superset-ui/generator-superset`
|
|
|
|
* Add `RegistryWithDefaultKey` and `ExtensibleFunction` to `@superset-ui/core`
|
|
|
|
|
|
|
|
### 💔 BREAKING CHANGES
|
|
|
|
|
|
|
|
* `getDefaultSchemeName()` and `setDefaultSchemeName()` are renamed to `getDefaultKey()` and `setDefaultKey()`
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
## v0.5.0
|
|
|
|
|
|
|
|
### ✨ Features
|
|
|
|
|
|
|
|
* Add `@superset-ui/chart`
|
|
|
|
|
|
|
|
### 🐞 Bug fixes
|
|
|
|
|
|
|
|
* Use simple js to create range
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
## v0.4.0
|
|
|
|
|
|
|
|
### ✨ Features
|
|
|
|
|
|
|
|
* Add `@superset-ui/color` for color management
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
## v0.3.0
|
|
|
|
|
|
|
|
### ✨ Features
|
|
|
|
|
|
|
|
* Add new `@superset-ui/core` with data structures and utilities.
|
|
|
|
|
|
|
|
### 💔 BREAKING CHANGES
|
|
|
|
|
|
|
|
* Rename former `@superset-ui/core` to `@superset-ui/connection`.
|