Skip to content

chore: bump version to v0.8.0 (#118)

Choose a tag to compare

@robert-northmind robert-northmind released this 13 Jan 12:13
· 129 commits to main since this release
f6ec591

Faro Flutter SDK v0.8.0

✨ What's New: User Management

This release introduces comprehensive user identity management with persistence, replacing the legacy setUserMeta() API.

New FaroUser Model

A feature-rich user model that aligns with the Faro Web SDK MetaUser for cross-platform consistency.

Faro().setUser(FaroUser(
  id: 'user-123',
  username: 'johndoe',
  email: 'john@example.com',
  attributes: {'plan': 'premium', 'team': 'mobile'},
));

User Persistence

User identity is now automatically persisted across app restarts (enabled by default).

Config Option Default Description
persistUser true Save user to device storage
initialUser null Set user on SDK initialization
FaroConfig(
  // ... other config
  persistUser: true,  // User survives app restarts
  initialUser: FaroUser(id: 'known-user'),  // Set immediately at startup
)

⚠️ Migration from setUserMeta()

setUserMeta() is now deprecated. Update your code:

// Before
Faro().setUserMeta(userId: 'x', userName: 'y', userEmail: 'z');

// After
Faro().setUser(FaroUser(id: 'x', username: 'y', email: 'z'));

Breaking behavior change: setUserMeta() now requires SDK initialization before calling. Previously it could be called before init() or runApp().

See CHANGELOG.md for complete details.

Full Changelog: v0.7.0...v0.8.0