Oreille
f920196c18
Add logical operators to the SDK's Filter type ( #9965 )
...
* Add logical filter operator to the Filter type
* Removed unnecessary ?
* Reverted import from `@directus/shared`
* Handle many-to-many field filters
2021-11-22 13:05:22 -05:00
Joe Innes
ff002443f0
SDK: Start auth refresh job when constructor is initialised ( #9777 )
...
* Refresh auth when SDK is initialised
If autorefresh is enabled, then this will cause the SDK to refresh tokens whenever it's loaded. This fixes bug #9639 (discussion #9720 )
* start autoRefreshJob on constructor and on refresh
* preserve refresh_token before clear it on refresh
Co-authored-by: Jose Varela <joselcvarela@gmail.com >
2021-11-22 11:11:09 -05:00
renovate[bot]
241dc13c65
Update NPM dependencies (non-major) ( #9968 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-11-22 10:05:40 -05:00
rijkvanzanten
ba72d2cfd0
v9.0.1
2021-11-11 16:45:31 -05:00
José Varela
da0676fefc
Fix pass options to transport ( #9725 )
2021-11-11 15:34:14 +00:00
renovate[bot]
ad3a503f25
Update NPM dependencies (non-major) ( #9585 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-11-09 11:18:41 -05:00
Nicola Krumschmidt
eeb78b96cc
Include the ESM entrypoint when publishing to npm ( #9535 )
2021-11-05 12:06:33 -04:00
rijkvanzanten
c95add08ef
v9.0.0
2021-11-04 22:03:10 -04:00
Nicola Krumschmidt
13b479ad49
Fix importing the SDK from a Node ESM environment ( #9502 )
2021-11-04 21:01:12 -04:00
José Varela
23f6baa4db
SDK: refactor constructors ( #9080 )
...
* refactor: more intuitive interfaces
* refactor: simpler refresh
before: on every request we were debouncing a refresh request
after: call refresh only once before now() + 'expires'
* refactor: prefix on base storage
* fixup! refactor: simpler refresh before: on every request we were debouncing a refresh request after: call refresh only once before now() + 'expires'
* refactor: simpler axios transport
before: handle auth headers
after: auth headers are handled on directus instance
* refactor: simpler usage of Directus constructor
* fixup! refactor: simpler refresh before: on every request we were debouncing a refresh request after: call refresh only once before now() + 'expires'
* refactor: fix tests based on previous changes
* refactor: better auth constructor
before: depends on SDK instance
after: depends on Transport and Storage instance
* accept staticToken from auth
* make transport and storage as optional on options
* fix type auth refresh
* simplify transport
* fix test for previous changes
* improve auth class
* revert some IAuth props because tests
* allow to force memory of localstorage on storage
* add tests for previous change
* document everything and simplify some things
* fix override headers on request
* better name typing
* fix private axios
* removed boolean from CLI auth.refresh()
* fix missing url in some examples
* soem grammar updates
Co-authored-by: Jay Cammarano <jay.cammarano@gmail.com >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-11-04 13:30:30 -04:00
rijkvanzanten
37cf80e0fe
v9.0.0-rc.101
2021-11-03 19:29:41 -04:00
Nicola Krumschmidt
69d893123e
Add exports fields to all packages ( #9443 )
2021-11-03 18:59:45 -04:00
renovate[bot]
a85460c0f2
Update dependency rollup to v2.59.0 ( #9293 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-11-01 14:21:26 -04:00
rijkvanzanten
7e1034d9d4
v9.0.0-rc.100
2021-10-29 14:40:05 -04:00
renovate[bot]
1d2f139bb6
Update dependency ts-node to v10.4.0 ( #9083 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-26 03:25:06 +00:00
renovate[bot]
24bbe3114c
Update dependency axios to v0.24.0 ( #9132 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-25 20:52:06 -04:00
renovate[bot]
a257f324c0
Update dependency rollup to v2.58.3 ( #9114 )
...
* Update dependency rollup to v2.58.3
* node version
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Jay Cammarano <jay.cammarano@gmail.com >
2021-10-25 18:45:12 -04:00
rijkvanzanten
7c88f03884
v9.0.0-rc.99
2021-10-21 19:52:37 -04:00
renovate[bot]
f8587497d8
Update dependency ts-node to v10.3.1 ( #9025 )
...
* Update dependency ts-node to v10.3.1
* Update package-lock
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-10-21 15:10:39 -04:00
renovate[bot]
71093f5d2e
Update dependency @rollup/plugin-commonjs to v21.0.1 ( #8958 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-20 09:53:04 -04:00
renovate[bot]
a9432b6db3
Update dependency @rollup/plugin-node-resolve to v13.0.6 ( #8959 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-20 09:52:51 -04:00
renovate[bot]
8c6a7b1b3e
Update jest monorepo to v27.3.1 ( #8967 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-20 09:23:55 -04:00
renovate[bot]
9d137af1a0
Update dependency nock to v13.1.4 ( #8961 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-20 18:03:20 +08:00
renovate[bot]
6e3a63df2b
Update jest monorepo to v27.3.0 ( #8918 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-18 15:33:32 +00:00
renovate[bot]
f3400bb54d
Update dependency ts-jest to v27.0.7 ( #8915 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-18 11:02:42 -04:00
Daniil Yastremskiy
752689d32a
Add geo operators to FilterOperators type ( #8863 )
2021-10-16 21:38:58 +00:00
rijkvanzanten
0dd0e1b1c1
v9.0.0-rc.98
2021-10-15 20:13:07 -04:00
rijkvanzanten
392d8bd1df
v9.0.0-rc.97
2021-10-14 21:47:50 -04:00
renovate[bot]
4fb2dcc9a9
Update dependency ts-jest to v27.0.6 ( #8803 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-14 16:53:18 -04:00
renovate[bot]
2429d30917
Update dependency typescript to v4.4.4 ( #8749 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-12 16:51:36 -04:00
renovate[bot]
b9a2a3a18b
Update dependency axios to v0.23.0 ( #8744 )
2021-10-12 14:45:16 -04:00
renovate[bot]
b2ec182493
Update typescript-eslint monorepo to v5 (major) ( #8702 )
...
* Update typescript-eslint monorepo to v5
* Fix linter warnings
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-10-12 11:07:46 -04:00
renovate[bot]
86861ecb8d
Update dependency ts-node to v10.3.0 ( #8700 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-12 10:46:18 +08:00
renovate[bot]
b4bb1071f2
Update jest monorepo to v27.2.5 ( #8656 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-08 11:45:56 -04:00
rijkvanzanten
435cc0cc67
v9.0.0-rc.96
2021-10-07 18:39:54 -04:00
renovate[bot]
06a52d10e6
Update dependency @rollup/plugin-commonjs to v21 ( #8494 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-04 12:44:49 -04:00
renovate[bot]
b8d4a24958
Update dependency axios to v0.22.0 ( #8483 )
...
* Update dependency axios to v0.22.0
* Fix shared type
* Use any type in axios
* Adjust for axios type breaking change
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-10-01 12:41:18 -04:00
renovate[bot]
a9dd90c03d
Update dependency rollup to v2.58.0 ( #8484 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-10-01 11:42:32 -04:00
renovate[bot]
3f56a6d5f5
Update jest monorepo to v27.2.4 ( #8426 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-09-29 15:57:30 +00:00
renovate[bot]
18846527c8
Update jest monorepo to v27.2.3 ( #8380 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-09-28 09:51:51 -04:00
rijkvanzanten
afe7b15990
v9.0.0-rc.95
2021-09-27 18:58:22 -04:00
Jay Cammarano
a7b0cbe69b
GitHub workflow to run tests on pushes to main and PRs ( #8247 )
...
* testing workflow
* name changed
* generateHash working
* changed pendingMock() to 0 because ticks > 5000
* removed empty tests
* removed empty tests
* Update packages/sdk/tests/utils.ts
Co-authored-by: José Varela <joselcvarela@gmail.com >
* updated workflow to add build
* added npm run build
* fixed get-filter-operators
* added env to workflow
* potential fix to index.test.ts
* added env variables for index.test.ts
* added caching and node-version matrix
* added all supported node versions
* only supported node versions
* updated to only support 16
* removed duplicate workflow caching
Co-authored-by: José Varela <joselcvarela@gmail.com >
2021-09-27 15:10:29 -04:00
renovate[bot]
2aae01a22c
Update jest monorepo to v27.2.2 ( #8316 )
2021-09-25 11:24:19 -04:00
rijkvanzanten
7e41860cbf
v9.0.0-rc.94
2021-09-22 15:53:24 -04:00
renovate[bot]
56f5f97465
Update dependency @rollup/plugin-node-resolve to v13.0.5 ( #8220 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-09-21 22:00:07 +00:00
renovate[bot]
b9815ee1e4
Update dependency @types/jest to v27.0.2 ( #8183 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-09-21 11:46:44 +08:00
renovate[bot]
cca51e84aa
Update dependency jest to v27.2.1 ( #8168 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-09-20 10:37:49 -04:00
rijkvanzanten
61a368523b
v9.0.0-rc.93
2021-09-16 18:09:55 -04:00
renovate[bot]
a1eae036e9
Update jest monorepo to v27.2.0 ( #7989 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-09-13 11:37:17 -04:00
renovate[bot]
8063dda2c7
Update dependency typescript to v4.4.3 ( #7973 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2021-09-10 18:30:56 -04:00