Skip to content

Releases: hazae41/glacier

1.5.1 - Encrypted storage

11 Apr 08:57
Compare
Choose a tag to compare

See prerelease changelogs

1.5.1 RC 9 - Fixes

30 Mar 13:19
Compare
Choose a tag to compare

1.5.1 RC 7 - Hashed keys

29 Mar 17:32
Compare
Choose a tag to compare
  • Renamed serializer in storage params to valueSerializer
  • Added keySerializer to storage params
  • Added HmacEncoder to hash keys using a password (PBKDF2)

1.5.1 RC 4 - Encrypted storage

28 Mar 14:22
Compare
Choose a tag to compare
  • Added AesGcmSerializer with support for PBKDF2 key derivation from a user-given password

1.5.1 RC 0 - Per query storage serializer

28 Mar 10:51
Compare
Choose a tag to compare

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 } })

1.5.0 - Parallel optimistics

20 Mar 22:18
Compare
Choose a tag to compare
  • See prereleases for full changelog

1.4.2 RC 11

20 Mar 13:16
Compare
Choose a tag to compare

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

1.4.2 RC 8

17 Mar 18:03
Compare
Choose a tag to compare
  • Fixes
  • Normalization is no longer done on optimistic updates

1.4.2 RC 1 - Parallel optimistic

16 Mar 21:23
Compare
Choose a tag to compare
  • 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

1.4.1 - Scroll.peek()

14 Mar 11:04
Compare
Choose a tag to compare

see previous release