Pular para o conteúdo principal

Updating SDK Packages

How updates work

Business logic (auth, payments, games) lives in @cactus-agents/* packages. When the Cactus team releases updates, you pull them via pnpm:

# Update a specific package
pnpm update @cactus-agents/auth

# Update all @cactus-agents packages
pnpm update @cactus-agents/api-client @cactus-agents/auth @cactus-agents/brand @cactus-agents/types @cactus-agents/utils

What gets updated

  • Bug fixes and security patches
  • New features (e.g., new payment providers)
  • API compatibility updates

What doesn't change

  • Your theme colors (theme.config.ts)
  • Your routes (routes.config.ts)
  • Your layout (layout.config.ts)
  • Your environment variables

Checking for updates

pnpm outdated @cactus-agents/*

After updating

  1. Run pnpm install to resolve updated dependencies
  2. Test locally with pnpm dev
  3. Verify key flows (login, registration, etc.)
  4. Deploy to production