Commit Graph

37 Commits

Author SHA1 Message Date
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
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
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
Erik Ritter
9b0d77adea feat(time-format): bump d3-time-format (#244) 2021-11-26 11:44:58 +08:00
Krist Wongsuphasawat
3928e063ae v0.12.1 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
61c7e691b6 v0.11.2 2021-11-26 11:44:47 +08:00
Thomas Wang
cbc1de5c76 fix: smartDateVerbose at seconds (#132)
* fix: smartDateVerbose at seconds

* revert the version increment
2021-11-26 11:44:47 +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
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
Christopher Council
28a1124719 v0.8.0 (#72) 2021-11-26 11:44:38 +08:00
Chris Williams
6c8e40c710 [build] fix typescript builds (#56)
* [build] fix typescript builds

* [typescript] ensure types pass in build

* [typescript][connection] declare modules in tests

* [typescript][connection] fix ts errors in tests

* [typescript][connection] test/types.ts => types/external.d.ts

* [chart][typescript] add @types/react-loadable

* [chart][components] convert to ts

* [charts][tests][broken] convert to ts

* [chart][typescript] re-write component generics

* [chart][typescript] fix reactify generic, add react-dom types

* [chart][typescript] more iteration

* - Tweaking reactify types (using Readonly types).
- Uncovered an issue in which ReactifyProps and Props can collide on id and className.
- Move @types/react-loadable to dev dependency
- Fixing a lint error

* [chart][deps] add @types/fetch-mock

* [client][typescript] add and export SupersetClientInterface

* [chart][clients] fix ts

* [charts][components] more ts iterations

* [chart][client] assert FormData type

* [chart][deps] try adding newest @types/react

* [chart][components][ts] fix reactify prop TS

* [chart] lint

* [chart][ts] lint #2, move @types to deps not dev-deps

* [chart][jest] fix tests

* [chart][tests] up branch coverage

* [chart][ts][test] null => undefined

* [chart][tests] hundo

* [chart][tests] update name

* [chart][ts] ChartClient type fixes
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
81b82f82c2 update dependency 2021-11-26 11:44:36 +08:00
Krist Wongsuphasawat
c3db185c41 Add @superset-ui/time-format (#38)
feat: Add @superset-ui/time-format

* update unit test (+6 squashed commits)
Squashed commits:
[5fae1ed] fix lint
[7672544] support local and utc
[c33fae7] update unit tests
[97fdc0d] fix all unit tests
[88e8029] add formatter code
[a33c76c] initialize

* update readme

* add formatDate and formatDateVerbose equivalent

* add unit test

* extract constants

* get to 100 coverage

* update readme

* Update preview test

* explicitly disable magic number
2021-11-26 11:44:36 +08:00