Commit graph

180 commits

Author SHA1 Message Date
Thijs Louisse
519cb9c91a fix: cleanup dependencies, code and deprecated cli commands (extend-docs, search, etc.) 2024-05-14 13:47:10 +02:00
github-actions[bot]
420e005668 Version Packages 2024-05-07 15:23:48 +00:00
Alex Thirlwall
a8105ec278 Add caching tests for when getCacheIdentifier is asynchronous 2024-05-07 17:22:33 +02:00
Alex Thirlwall
c5ffe9cffc feat: Allow getCacheIdentifier cache option to be an asynchronous function 2024-05-07 14:32:05 +02:00
Alex Thirlwall
df8bf58f03 If session cache Id changes, reset the cache and pending requests 2024-05-07 11:54:14 +02:00
github-actions[bot]
0e6b24a73f Version Packages 2024-03-01 10:38:14 +00:00
github-actions[bot]
fce6328787 Version Packages 2024-02-29 14:57:22 +00:00
Henk vd Brink
04d08683f7
@lion/ajax: only add XSRF token on mutable requests and on same origin or whitelisted origins 2024-02-29 15:05:58 +01:00
Thijs Louisse
45fe0b4bb3 chore(ui): lint and types fixes 2023-11-08 19:08:54 +01:00
Thijs Louisse
d129dd629d
chore: allow ajax test to work with different dev server ports 2023-11-02 15:52:50 +01:00
github-actions[bot]
83eefe4958
Version Packages (#2083)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-18 10:34:43 +02:00
Pascal Schilp
0952647d95
fix: make fetchjson returntype generic (#2082) 2023-09-26 08:53:07 +02:00
github-actions[bot]
a447ad66a1
Version Packages (#2078)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-14 15:19:37 +02:00
thepassle
570f834b85 chore: fix types 2023-09-14 09:08:23 +02:00
thepassle
d79795acc3 fix: types are optional 2023-09-13 17:00:38 +02:00
thepassle
3b895a1ad3 fix: export ajax types 2023-09-13 16:41:35 +02:00
github-actions[bot]
3c605b14a6
Version Packages (#2067)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-12 15:24:31 +02:00
Kristján Oddsson
55d6c7588d add tests for AjaxFetchError 2023-08-30 13:46:21 +02:00
Kristján Oddsson
9b7def4aa4 run prettier 2023-08-30 13:46:21 +02:00
Kristján Oddsson
54287eeff0 Enrich the AjaxFetchError message with the response status 2023-08-30 13:46:21 +02:00
Kristján Oddsson
b2c8a8ab90 Set AjaxFetchError as error name 2023-08-30 13:46:21 +02:00
github-actions[bot]
3a652d6c18
Version Packages (#2050)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-01 11:00:04 +02:00
Joren Broekema
9cdac8e947
fix: clone response when reading the response for error (#2049) 2023-08-01 10:45:27 +02:00
github-actions[bot]
f1ef7c164e Version Packages 2023-07-18 11:45:39 +00:00
Joren Broekema
7a875ef1b4
feat: parsing body for failed ajax responses (#2039) 2023-07-18 13:44:22 +02:00
github-actions[bot]
b340fd7a6c
Version Packages (#2032)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-06 13:02:46 +02:00
thepassle
08b109b2a1 fix: avoid JSON.parsing empty responses 2023-07-06 11:38:27 +02:00
github-actions[bot]
ecea06cb6e Version Packages 2023-02-28 15:21:38 +01:00
Joren Broekema
63bb012e36 fix(ajax): fetchJSON to attempt parse JSON when missing content-type header
Co-authored-by: Nikhil Hundare <nikhil.hundare@gmail.com>
2023-02-28 14:04:37 +01:00
github-actions[bot]
42a8acdc72 Version Packages 2022-11-09 09:07:56 +01:00
thepassle
7c2a8c3bb6 fix: relax content type restriction of json response 2022-11-09 09:01:41 +01:00
github-actions[bot]
c44c828b2e Version Packages 2022-11-07 16:27:15 +01:00
thepassle
1565bc81ca fix: relax content types when setting cache 2022-11-07 12:42:39 +01:00
github-actions[bot]
3cc3d2960f Version Packages 2022-11-07 12:29:11 +01:00
Thomas Allmer
c1982965c3 feat: introduce wireit and ts use node16 resolution 2022-11-07 11:39:40 +01:00
Lars den Bakker
66abd3ea4c fix(ajax): don't throw on non-JSON responses in fetchJson 2022-09-14 23:45:12 +02:00
github-actions[bot]
1ff70af3c7 Version Packages 2022-09-08 07:20:58 +00:00
github-actions[bot]
ad468be032 Version Packages 2022-05-31 16:03:50 +00:00
jorenbroekema
e7a4ca1dcc fix: add type module to pkg jsons of ESM packages 2022-05-31 16:46:53 +02:00
Lars den Bakker
362ee0e2e9 fix(ajax): align intercepted and non-intercepted response behavior 2022-05-31 13:46:54 +02:00
Martin Pool
447383bd14 feat(ajax): add maxCacheSize option 2022-05-30 12:58:18 +02:00
github-actions[bot]
f11f94fafc Version Packages 2022-05-09 17:38:48 +02:00
Martin Pool
558edcb686 feat(ajax): add a maxResponseSize cache option to specify a max size for responses to be cached 2022-05-09 17:12:51 +02:00
Martin Pool
efcdf653a4 feat: content-type filter for ajax cache 2022-05-09 12:39:49 +02:00
Martin Pool
56af96f1da feat(ajax): add an option to initialize the cache interceptors even when useCache is turned off in the global options 2022-05-09 10:09:43 +02:00
Martin Pool
b291e60794 chore(ajax): add tests for response values and headers in caching calls 2022-04-28 16:26:06 +02:00
Thomas Allmer
974d0872a0 chore: fix published docs pathes 2022-04-06 14:46:05 +02:00
github-actions[bot]
cebbb6aac1 Version Packages 2022-04-06 09:42:12 +00:00
Konstantinos Norgias
672c8e99b6 chore: update header order, components list and links 2022-03-30 12:37:30 +02:00
github-actions[bot]
bfec15264b Version Packages 2022-02-23 17:10:39 +01:00