Commit Graph

51 Commits

Author SHA1 Message Date
Krist Wongsuphasawat
f4eb082df6 v0.12.15 2021-11-26 11:45:07 +08:00
Krist Wongsuphasawat
aa84115ca4 feat: make time formatter handle number and fix formatters type warnings (#358)
* fix: type warnings for formatters

* docs: add comment

* fix: unit tests

* fix: type

* feat: make time formatter handle timestamp
2021-11-26 11:45:07 +08:00
Krist Wongsuphasawat
e0bbdf9f85 v0.12.14 2021-11-26 11:45:06 +08:00
Krist Wongsuphasawat
149405e90e v0.12.13 2021-11-26 11:45:05 +08:00
Jianchao Yang
23f52286cd build: try to merge superset-ui-plugins (#333) 2021-11-26 11:45:04 +08:00
Jesse Yang
4d0d05f71f Revert "build: try to merge superset-ui-plugins"
This reverts commit 823126633ea0743254f78b0a74fe83c68ee6438f.
2021-11-26 11:45:03 +08:00
Jesse Yang
1238e78e2d build: try to merge superset-ui-plugins 2021-11-26 11:45:03 +08:00
Krist Wongsuphasawat
d32465db7e v0.12.12 2021-11-26 11:45:03 +08:00
dependabot-preview[bot]
aa9d262fba build(deps): bump pretty-ms from 5.1.0 to 6.0.1 (#304)
Bumps [pretty-ms](https://github.com/sindresorhus/pretty-ms) from 5.1.0 to 6.0.1.
- [Release notes](https://github.com/sindresorhus/pretty-ms/releases)
- [Commits](https://github.com/sindresorhus/pretty-ms/compare/v5.1.0...v6.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-11-26 11:45:03 +08:00
Krist Wongsuphasawat
3342bfdd56 v0.12.10 2021-11-26 11:45:02 +08:00
Krist Wongsuphasawat
5966ff10be feat: add more support for undefined format to number and time formatters (#308)
* feat: add more support for undefined format

* test: add unit tests

* fix: handle empty string
2021-11-26 11:45:02 +08:00
Krist Wongsuphasawat
64dca92eb2 v0.12.9 2021-11-26 11:45:02 +08:00
Krist Wongsuphasawat
83a1901a35 feat: make formatTime and formatNumber handle undefined format (#307) 2021-11-26 11:45:02 +08:00
Krist Wongsuphasawat
94d8280482 v0.12.8 2021-11-26 11:45:02 +08:00
Krist Wongsuphasawat
6ae05114ca build: fix lints (#289)
* build: remove no-test-callback override

* fix: no-callback auto-fix

* fix: lint issues import/extension
2021-11-26 11:45:01 +08:00
Krist Wongsuphasawat
97f18e686b build: migrate build tool to nimbus (#281)
* build: migrate to nimbus

* build: update gitignore

* build: update package.json

* build: update travis config

* build: lower engine requirements

* build: adjust typescript config

* fix: errors

* fix: change yarn run to yarn

* fix: lint

(cherry picked from commit 22328c349c9b987eecc5e46fb306e459b6a9cadc)

* fix: eslint rules

* fix: lint

* fix: setup file

* fix: more lint

* fix: lint - pass build and lint

* fix: test setup and babel transform runtime

(cherry picked from commit dd55fd88ced045a8f83ca771705721bf2f930ff0)

* fix: timeout issues

* fix: some broken test due to jest.setTimeout

* fix: computeMaxFontSize tests

* fix: createLoadableRenderer test

* fix: loadble and broken tests due to warnings

* fix: test coverage

* fix: coverage of generator tests

* fix: all unit tests pass

* fix: remove yeutech-lab/react-loadable
2021-11-26 11:45:00 +08:00
Ville Brofeldt
00ede940dc docs(number-format): add durationFormatter example README (#266)
* docs: add durationFormatter example to number-format README.md

* docs: refactor example to use registry
2021-11-26 11:45:00 +08:00
Ville Brofeldt
7212d1240b feat(number-format): bump pretty-ms to 5.1.0 (#262) 2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
28acf608c8 v0.12.5 2021-11-26 11:45:00 +08:00
Krist Wongsuphasawat
20452b1cfc v0.12.4 2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
a5a4f1bcec build: fix lint (#245) 2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
3928e063ae v0.12.1 2021-11-26 11:44:55 +08:00
Ville Brofeldt
dc9d0a0d40 feat: add duration formatter (#209)
* feat: add duration formatter

* fix: address review comments
2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
13ceb8dc70 fix: peerDependencies version (#210) 2021-11-26 11:44:55 +08:00
Krist Wongsuphasawat
287ee479e0 v0.12.0 2021-11-26 11:44:54 +08:00
erik_ritter
02265669b3 v0.11.14 2021-11-26 11:44:53 +08:00
Krist Wongsuphasawat
3fc8551014 feat: support locale in number and time format (#182)
* feat: support locale in number and time format

* test: improve coverage

* test: merge js and ts test
2021-11-26 11:44:52 +08:00
Krist Wongsuphasawat
3c8dd8cec0 v0.11.5 2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
847655a4ef v0.11.3 2021-11-26 11:44:48 +08:00
Krist Wongsuphasawat
99c2e4c875 fix: bump peer dependencies (#136) 2021-11-26 11:44:48 +08:00
Christine Chambers
684e56b43e v0.11.0 2021-11-26 11:44:47 +08:00
Krist Wongsuphasawat
e14d6567a9 v0.10.1 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
ca04f8ce85 refactor: make @superset-ui/core peer dependency (#111)
* refactor: 💡 make @superset-ui/core peer dependency

BREAKING CHANGE: @superset-ui/core becomes peer dependency
2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
1975277cb0 v0.10.0 2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
0cde8a2884 feat: Add SMART_NUMBER formatter and make it default (#109)
* feat: implement smart number format

* test: add unit tests

* refactor: Rename number formats
BREAKING CHANGE: NumberFormat.xxx are renamed

* feat: Make smart number default formatter

* fix: add unit test

* refactor: move formatters outside
2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
0f5e88eb5a Feat: Enable warnings when values are overwritten in registries (#107)
* enable warning

* add warning

* fix order
2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
86cde58f0f v0.9.5 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
447537f5d7 v0.9.3 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
59402bbce6 v0.9.0 2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
68b97db5d7 Convert time-format to TypeScript (#78)
* convert source to TS

* fix lint

* convert unit test to TS

* fix rebasing issue

* fix typings

* use ts-ignore
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
9a7e3dc7b2 Convert number-format to TypeScript (#75)
* Convert number-format to TypeScript

* return string

* unit test 100%

* Allow developer to specify return type for loader

* add doc
2021-11-26 11:44:39 +08:00
Christopher Council
28a1124719 v0.8.0 (#72) 2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
ffc52baced v0.7.2 2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
5485593fb1 Fix typo in unit test description (#45) 2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
06ecc4742e allow leading and trailing space when looking up formatter (#46)
feat: allow leading and trailing space when looking up formatter
2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
0d001900b6 v0.7.1 2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
6f7d57721a Expose factory functions as public API (#43)
feat: Expose factory functions through API
2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
e18ae6621d v0.7.0 2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
ebf1fe4c89 Merge branch 'master' of github.com:apache-superset/superset-ui 2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
f6ea69b7b2 Rename D3Formatter to D3NumberFormatter (#36)
BREAKING CHANGE: rename D3Formatter to D3NumberFormatter
2021-11-26 11:44:35 +08:00