Bot releases are hidden (Show)
Almost everything changed :)
Published by hazae41 over 1 year ago
Published by hazae41 over 1 year ago
BREAKING CHANGES
FetchResult
to Fetched
Other changes
Fetched.from
typePublished by hazae41 over 1 year ago
BREAKING CHANGES
FetchResult.Error
to FetchResult.Fail
to avoid conflict with globalThis.Error
other
Published by hazae41 over 1 year ago
Published by hazae41 over 1 year ago
Published by hazae41 over 1 year ago
Published by hazae41 over 1 year ago
BREAKING
@hazae41/result
Not breaking
@hazae41/result
's ResultPublished by hazae41 over 1 year ago
BREAKING
iterations
, 1_000_000
should be good for user passwordsPublished by hazae41 over 1 year ago
See prerelease changelogs
Published by hazae41 over 1 year ago
fixes
Published by hazae41 over 1 year ago
serializer
in storage params to valueSerializer
keySerializer
to storage paramsHmacEncoder
to hash keys using a password (PBKDF2)Published by hazae41 over 1 year ago
Published by hazae41 over 1 year ago
This update adds a parameter to define a storage serializer for each query
BREAKING
serializer
to keySerializer
(optional, default is JSON):-useQuery("/api", fetcher, { serializer: JSON })
+useQuery("/api", fetcher, { keySerializer: JSON })
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 } })
Published by hazae41 over 1 year ago
Published by hazae41 over 1 year ago
Changes about Result:
Published by hazae41 over 1 year ago
Published by hazae41 over 1 year ago
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
Published by hazae41 over 1 year ago
see previous release
Published by hazae41 over 1 year ago