Commit Graph

36 Commits

Author SHA1 Message Date
Krist Wongsuphasawat
420321ca7b v0.11.10 2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
9810dad834 build: bump build-config (#167)
* build: bump build-config

* test: fix typings in mock data
2021-11-26 11:44:51 +08:00
Krist Wongsuphasawat
3c8dd8cec0 v0.11.5 2021-11-26 11:44:49 +08:00
Krist Wongsuphasawat
d6f39335d8 fix: broken build due to failing unit tests (#141)
* fix: callapi unit test

* test: fix async calls

* fix: remaining test

* refactor: do not declare unused var
2021-11-26 11:44:48 +08:00
Christine Chambers
684e56b43e v0.11.0 2021-11-26 11:44:47 +08:00
Christine Chambers
f71180e251 Revert "Handle BigNumber conversions in JSON properly (without loss of precision) (#71)" (#126)
* revert: revert "Handle BigNumber conversions in JSON properly (without loss of precision) (#71)"

This reverts commit e3866129b2b3cbd6e099fe4ab66319c4fe6ae485.

* fix: type errors

* fix: typescript errors in superset-ui-demo
2021-11-26 11:44:47 +08:00
Krist Wongsuphasawat
fef6466f74 v0.10.10 2021-11-26 11:44:47 +08:00
Beto Dealmeida
a63f947ff5 feat: add support for conditional get requests (#119)
* feat: add support for conditional requests

* feat: add unit tests for conditional requests

* feat: use invariant

* feat: add type guard

* feat: fix lint

* feat: add more unit tests
2021-11-26 11:44:46 +08:00
Chris Williams
7ad0e1f57d v0.10.5 2021-11-26 11:44:45 +08:00
Chris Williams
061faab818 feat(chart): Add <ChartDataProvider /> (#120)
* docs: [demo][connection] add ConfigureCORS story for testing CORS

* docs: [demo][ConfigureCORS] better instructions

* feat: [chart] add mvp DataProvider component

* docs: better CORS story, update webpack for @babel/polyfill

* docs: [chart] add DataProvider story with WordCloudPlugin

* docs: [chart] add DataProvider deets to Readme

* test(chart): move SuperChart.test.jsx => .tsx and instead use @ts-ignore

* fix(connection): point interface.request to client.request

* feat(chart): re-write DataProvider as ChartDataProvider

* docs(demo): re-write LegacyWordCloudStories => ChartDataProviderStories

* refactor(chart): use IDENTITY as ChartPlugin buildQuery default

* feat(chart): support legacy + v1 loadQueryData endpoints in ChartClient

* docs(demo): add sankey + sunburst plugins to ChartDataProvider story

* style(chart): run prettier on SuperChart

* feat(chart): export QueryData type from models/ChartProps

* feat(chart): export Metrics and BaseFormData from types/ChartFormData

* feat(chart): add request option overrides in ChartDataProvider

* fix(chart): use Partial<> for ChartClient request option overrides

* test(chart): add ChartDataProvider tests

* build: include demo pkg in type script

* build: move storybook/mocks to test/fixtures

* build: move json-bigint TS declaration to root

* test(chart): clean up ChartDataProvider test TS

* chore(chart): lint fix SuperChart

* fix(chart): set ChartPlugin.buildQuery default back to undefined

* test(connection): fix expected Client.get call count

* test(chart): fix ChartClient tests and add test for legacy API

* fix(chart): uninitialized typo, change fetching => loading

* docs(chart): update README to final ChartDataProvider API

* docs(chart): fix typo

* test(chart): get ChartDataProvider to one hundo

* feat(chart): add and export more meaningful Datasource type

* feat(chart): use Datasource type in ChartClient
2021-11-26 11:44:45 +08:00
Krist Wongsuphasawat
b162aacb90 v0.10.2 2021-11-26 11:44:44 +08:00
fabiomendescom
3c53885aba feat(superset-ui-connection): Allow PUT and PATCH in call API 2021-11-26 11:44:44 +08:00
Krist Wongsuphasawat
1975277cb0 v0.10.0 2021-11-26 11:44:43 +08:00
Krist Wongsuphasawat
86cde58f0f v0.9.5 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
80290426ec Remove unnecessary export types and reorganize types (#99)
* fix re-export types in translation

* Fix more types

* reorganize type in chart package

* Fix unit tests

* remove Array<> in favor of []
2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
447537f5d7 v0.9.3 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
0e79c602eb v0.9.2 2021-11-26 11:44:40 +08:00
Maxime Beauchemin
b12bb31bd0 [SupersetClient] Implement put and delete HTTP methods (#85)
* feat: Allow any http METHOD

* Add method to RequestConfig

* linting

* fix tests
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
59402bbce6 v0.9.0 2021-11-26 11:44:39 +08:00
Christopher Council
56f8af889f Combined two similarly-named test files, updated release notes (#76)
* internal: Combined two similarly-named test files
* internal: Update CHANGELOG
2021-11-26 11:44:38 +08:00
Christopher Council
28a1124719 v0.8.0 (#72) 2021-11-26 11:44:38 +08:00
Christopher Council
99568b6bc8 Handle BigNumber conversions in JSON properly (without loss of precision) (#71)
* Handle BigNumber conversions in JSON properly (without loss of precision)
* Rewrap "errors" from JSONbig.parse in proper error object.
* Use DefinitelyTyped's fetch-mock type def
* Improved type def for json-bigint
* Added type casts to some tests due to addition of fetchMock type def
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
fcb7ded22a Add ChartClient (v2) (#57)
feat: Add ChartClient
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
d9163364f9 Separate SupersetClient and SupersetClientClass (#53)
feat: Export `SupersetClientClass`
internal: Increase test coverage.
2021-11-26 11:44:37 +08:00
Chris Williams
3cf863fb58 [bugfix][connection] fix client promise (#52) 2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
ffc52baced v0.7.2 2021-11-26 11:44:37 +08:00
Christine Chambers
084115a7d2 Type promises (#47)
- type rejectAfterTimeout with generics.
- fixing an import typo in tests.
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
e18ae6621d v0.7.0 2021-11-26 11:44:36 +08:00
Chris Williams
b3444d86df add Typescript support + convert @superset-ui/connection to Typescript (#41)
* [typescript] add build support for typescript

* [typescript] working lint and build

* [typescript] refactor SupersetClient to TS

* [typescript][connection] leverage RequestInit types when relevant

* [typescript][connection] callApi.js => callApi.ts

* [typescript][connection] remaining .js => .ts

* [typescript][connection] add and export src/types.ts, refactor things, convert test to .ts and fix

* [typescript] build:ts only in typescript-containing packages
2021-11-26 11:44:35 +08:00
Krist Wongsuphasawat
0ab3f094a5 v0.6.0 2021-11-26 11:44:34 +08:00
Krist Wongsuphasawat
4e0d2c1dae v0.5.0 2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
537b6a53e5 v0.4.0 2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
6dc7871f05 v0.3.0 2021-11-26 11:44:32 +08:00
Krist Wongsuphasawat
b9391d3c6b add badges 2021-11-26 11:44:32 +08:00
Krist Wongsuphasawat
a285b55b80 Merge pull request #18 from apache-superset/kristw--rename-core
rename core package to connection
2021-11-26 11:44:32 +08:00