Releases: ticket-bridge/hyper-durable
v0.1.19
v0.1.18
fix: Properly persist deeply-nested objects
This change does remove the memoizing benefits from before, since we're now creating a new proxy on every lookup of an object-like property. The proxy is scoped to the getter
. Interested in suggestions for memoizing solutions!
v0.1.17
types: Improve proxyHyperDurable
types
v0.1.16
types: Improve types on proxyHyperDurables
v0.1.15
refactor: HyperNamespaceProxy
no longer creates DO as ref, instead queries prototype of class
This is also a fix to prevent instantiating a new DO instance with an undefined state
and env
.
v0.1.14
types: Guarantee keys in PromisedGetStub
v0.1.13
types: Export and parameterize HyperStub
v0.1.12
types: Refine types on HyperStub
HyperStub
now includes type annotations for method parameters and return values, getter return values, and setter return values.
v0.1.11
types: HyperDurable
accepts T param to specify persisted data
For example:
type CounterData = {
abc?: number;
counter: number;
objectLikeProp: string[];
}
class Counter extends HyperDurable<CounterData, Environment> implements CounterData {
// impl
}
v0.1.10
feat: toObject
returns unpersisted dirty data