glacier

Keep your data fresh

Downloads
514
Stars
126
Committers
2

Bot releases are visible (Hide)

glacier - 2.0.0 — Glacier Latest Release

Published by hazae41 10 months ago

Almost everything changed :)

glacier - 2.0.0 RC-0 - Maximum safety

Published by hazae41 over 1 year ago

glacier - 1.5.19 - Renamed FetchResult to Fetched

Published by hazae41 over 1 year ago

BREAKING CHANGES

  • Renamed FetchResult to Fetched

Other changes

  • Fix Fetched.from type
glacier - 1.5.18 - Renamed Error to Fail

Published by hazae41 over 1 year ago

BREAKING CHANGES

  • Renamed FetchResult.Error to FetchResult.Fail to avoid conflict with globalThis.Error

other

  • Updated Result, added ignore() to avoid runtime checks
glacier - 1.5.14 -Deps, fix Result map

Published by hazae41 over 1 year ago

glacier - 1.5.13 - Times

Published by hazae41 over 1 year ago

BREAKING

  • Times (timeout, cooldown, expiration) are no longer set per default (by default: no timeout, no cooldown and no expiration)
  • Negative values for times (cooldown, expiration) are no longer required/supported
glacier - 1.5.5 - Fix

Published by hazae41 over 1 year ago

  • Fix FetchResult.from type
glacier - 1.5.3 - Result

Published by hazae41 over 1 year ago

BREAKING

  • Renamed Result to FetchResult, and ResultInit to FetchResultInit
  • Removed wrap,tryWrap,wrapSync,tryWrapSync, please use those from @hazae41/result

Not breaking

  • FetchResult now extends @hazae41/result's Result
glacier - 1.5.2 - Updated Mutex, No default crypto params

Published by hazae41 over 1 year ago

BREAKING

  • AesGcm/Hmac.fromPBKDF2 no longer default iterations, 1_000_000 should be good for user passwords
glacier - 1.5.1 - Encrypted storage

Published by hazae41 over 1 year ago

See prerelease changelogs

glacier - 1.5.1 RC 9 - Fixes

Published by hazae41 over 1 year ago

fixes

glacier - 1.5.1 RC 7 - Hashed keys

Published by hazae41 over 1 year ago

  • Renamed serializer in storage params to valueSerializer
  • Added keySerializer to storage params
  • Added HmacEncoder to hash keys using a password (PBKDF2)
glacier - 1.5.1 RC 4 - Encrypted storage

Published by hazae41 over 1 year ago

  • Added AesGcmSerializer with support for PBKDF2 key derivation from a user-given password
glacier - 1.5.1 RC 0 - Per query storage serializer

Published by hazae41 over 1 year ago

This update adds a parameter to define a storage serializer for each query

BREAKING

  • Renamed key serializer param from serializer to keySerializer (optional, default is JSON):
-useQuery("/api", fetcher, { serializer: JSON })
+useQuery("/api", fetcher, { keySerializer: JSON })
  • Moved storage into a struct with storage and serializer (optional, default is JSON):
-useQuery("/api", fetcher, { storage: myStorage })
+useQuery("/api", fetcher, { storage: { storage: myStorage, serializer: JSON } })
glacier - 1.5.0 - Parallel optimistics

Published by hazae41 over 1 year ago

  • See prereleases for full changelog
glacier - 1.4.2 RC 11

Published by hazae41 over 1 year ago

Changes about Result:

  • Fixed map
  • Renamed map to mapSync, map is now async
  • Added tryMap and tryMapSync
  • Renamed wrap to tryWrap, wrap now throws
  • Renamed wrapSync to tryWrapSync, wrapSync now throws
glacier - 1.4.2 RC 8

Published by hazae41 over 1 year ago

  • Fixes
  • Normalization is no longer done on optimistic updates
glacier - 1.4.2 RC 1 - Parallel optimistic

Published by hazae41 over 1 year ago

  • Optimistic updates are now unlocked and can be executed in parallel
  • Optimistic updates are applied again when data is mutated while an optimistic block is pending
  • Optimistic updates must now be deterministic / pure / idempotent : they should give the same result when called multiple times with the same state
  • New syntax for optimistic updates:

BEFORE

document.update(async function* (previous) {
  yield { data: "hello world" } 
  yield { data: "it works" } 
})

NOW

document.update(async function* () {
  yield (previous) => ({ data: "hello world" })
  yield (previous) => ({ data: "it works" })
})

Basically, XSWR store those functions and apply them again when necessary

glacier - 1.4.1 - Scroll.peek()

Published by hazae41 over 1 year ago

see previous release

glacier - 1.4.1-0

Published by hazae41 over 1 year ago

  • ScrollQuery.peek() returns the next key (or undefined if ended)