Skip to content

v0.6.1

@M1tsumi M1tsumi tagged this 12 Nov 05:36
We're excited to announce **v0.6.1**, marking the **completion of ShardingGatewayManager Phase 2** with production-grade reliability, observability, and graceful lifecycle management.

---

- **ShardingGatewayManager Phase 2 Complete**:
 Full per-shard control, event isolation, staggered scaling, and guild distribution validation.
- **Phase 2 Day 4**: Graceful shutdown, resume metrics, health APIs, and comprehensive documentation.

---

- Per-shard **presence** via configuration
callbacks with fallback
- Per-shard **filtered event streams** (customizable per shard)
- **Staggered connection mode** with batch pacing (respects identify rate limits)
- **Guild distribution verification** after all shards report `READY`
- **Graceful shutdown**: Sets shutdown gate, blocks reconnects, closes shards concurrently, clears cache
- **Health surfaces**: Aggregate metrics & snapshots (incl. resume success/failure)
- **Restart API** for controlled restarts

- **Resume metrics**: Success/failure counters,
last attempt/success timestamps
- Improved `RESUMED` handling with fallback to clean re-identify
- **Reconnect gating** via `ReconnectGate`

- **Stickers**: `create`, `get`, `modify`, `delete`
- **Forum helper**: Streamlined forum channel operations
- **Auto Moderation**: Full CRUD for rules (`list`, `get`, `create`, `modify`, `delete`)
- **Scheduled Events**: Full CRUD + `list interested users`
- **Stage Instances**: `create`, `get`, `modify`, `delete`
- **Audit Logs**: Full access
- **Invites & Templates**: `create`, `list`, `delete` + template `CRUD` and `sync`

- **README Overhaul**:
  - Setup & Configuration (Windows notes, env vars, intents, logging)
  - Dedicated **Sharding** section
  - **Advanced Features**, **Production sharding config**, **Health Monitoring**, **Graceful Shutdown**
- **Tests**: Initial sharding suite (config defaults, staggered delay, shard formula, `ShardedEvent` wrapper)

---

- **ShardingGatewayManager initializer** split:
  `init(sharding: ShardingOptions, config: GatewayConfig)` – clearer separation of concerns
- Updated **README examples** to reflect new API and defaults

---

- Prevent **reconnect loops during shutdown** via
reconnect gating
- Handle `RESUMED` failures by clearing session/seq and performing clean re-identify
- Track `READY` events to accurately record resume metrics
Assets 2
Loading