Skip to content

Tags: Snapchat/react-camera-kit

Tags

v0.2.0

Toggle v0.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: clear lens cache on re-bootstrap (#5)

## Summary

- Fix stale lens references after SDK re-initialization: the lens cache
retained objects from the old `lensRepository`, causing `fetchLens` to
return lenses bound to a destroyed kit instance
- Clear `lensCache` and reset `lenses` state at the start of the
bootstrap effect, before the new kit is created

## Test plan

- [ ] New test: "should clear lens cache on re-bootstrap" — verifies
that after a `stabilityKey` change triggers re-bootstrap, previously
cached lenses are evicted and `fetchLens` calls the new kit's `loadLens`
- [ ] Full test suite passes

v0.1.0

Toggle v0.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump version to 0.1.0, add repo metadata, align demo deps (#1)

- Bump package version from 0.0.2 to 0.1.0
- Add repository and homepage fields to package.json
- Update demo @snap/camera-kit from ^1.11.0 to ^1.13.0 to match peer dep

v0.0.2

Toggle v0.0.2's commit message
0.0.2