Releases: belgattitude/httpx
@httpx/[email protected]
Patch Changes
- #1939
e13e727
Thanks @belgattitude! - Initial release for @httpx/compress
@httpx/[email protected]
Minor Changes
-
#1928
b7333bc
Thanks @belgattitude! - Refactor internal code -
#1928
b7333bc
Thanks @belgattitude! - Improve documentation
@httpx/[email protected]
Patch Changes
- Updated dependencies [
5d4f74c
,5d4f74c
,801602f
]:- @httpx/[email protected]
@httpx/[email protected]
Minor Changes
-
#1931
5d4f74c
Thanks @belgattitude! - Add cache.params to get back the initial params -
#1931
5d4f74c
Thanks @belgattitude! - Expose ILruCache and ITimeLruCache interfaces -
#1931
801602f
Thanks @belgattitude! - Export NullLruCache and NullTimeLruCache
@httpx/[email protected]
Patch Changes
- Updated dependencies [
68e7ebe
,68e7ebe
,68e7ebe
]:- @httpx/[email protected]
@httpx/[email protected]
Minor Changes
-
#1892
68e7ebe
Thanks @belgattitude! - Rename LRUCache into LruCache (Breaking)import { LruCache } from "@httpx/lru";
-
#1892
68e7ebe
Thanks @belgattitude! - All TimeLruCache with support for ttl expiryimport { TimeLruCache } from "@httpx/lru"; const oneSecondInMillis = 1000; const lru = new TimeLruCache({ maxSize: 10, defaultTTL: oneSecondInMillis, onEviction: () => { console.log("evicted"); }, });
-
#1892
68e7ebe
Thanks @belgattitude! - TValue now extends SupportedValues (instead of unknown)type BaseCacheValueTypes = | string | number | bigint | boolean | null | unknown[] // objects or functions, but not promises | (object & { then?: void }) | Record<string | number | symbol, unknown>; export type SupportedCacheValues = | Readonly<BaseCacheValueTypes> | BaseCacheValueTypes;
@httpx/[email protected]
Minor Changes
- #1920
5f6cbfe
Thanks @belgattitude! - Add createStableHash and createStableHashOrThrow with sha-256 support
@httpx/[email protected]
Patch Changes
- #1917
1bce28e
Thanks @belgattitude! - Initial release for stable hash
@httpx/[email protected]
@httpx/[email protected]
Minor Changes
-
#1890
2bf1642
Thanks @belgattitude! - Rename getOrInsert into getOrSet (BC) -
#1890
2bf1642
Thanks @belgattitude! - LRU.clear now returns the number of cleared items -
#1890
2bf1642
Thanks @belgattitude! - Allow CacheKey type to be a number (still default to string) -
#1890
2bf1642
Thanks @belgattitude! - Export BaseCache interface for customization
Patch Changes
- #1890
2bf1642
Thanks @belgattitude! - Add benchmarks for iterators and peek