2.0.0
Transitory has been rewritten in TypeScript allowing for a safer cache implementation and easier use in other TypeScript projects.
API changes in 2.x:
Cache
can no longer be used withinstanceof
, it has been replaced withAbstractCache
get(key)
has been replaced withgetIfPresent(key)
for all non-loading cachesRemovalCause
has been renamed toRemovalReason
and now uses strings instead of symbols- Builders are now created via
newCache()
instead of directly via the imported object
Other changes:
- Separate CommonJS build for Node
- ES Module builds to support tree-shaking and easier importing in browser projects