Releases: hazae41/glacier
Releases · hazae41/glacier
1.5.1 - Encrypted storage
See prerelease changelogs
1.5.1 RC 9 - Fixes
fixes
1.5.1 RC 7 - Hashed keys
- Renamed
serializer
in storage params tovalueSerializer
- Added
keySerializer
to storage params - Added
HmacEncoder
to hash keys using a password (PBKDF2)
1.5.1 RC 4 - Encrypted storage
- Added AesGcmSerializer with support for PBKDF2 key derivation from a user-given password
1.5.1 RC 0 - Per query storage serializer
This update adds a parameter to define a storage serializer for each query
BREAKING
- Renamed key serializer param from
serializer
tokeySerializer
(optional, default is JSON):
-useQuery("/api", fetcher, { serializer: JSON })
+useQuery("/api", fetcher, { keySerializer: JSON })
- Moved
storage
into a struct withstorage
andserializer
(optional, default is JSON):
-useQuery("/api", fetcher, { storage: myStorage })
+useQuery("/api", fetcher, { storage: { storage: myStorage, serializer: JSON } })
1.5.0 - Parallel optimistics
- See prereleases for full changelog
1.4.2 RC 11
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
- Fixes
- Normalization is no longer done on optimistic updates
1.4.2 RC 1 - Parallel optimistic
- 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()
see previous release