Repository navigation
Releases: PaulJPhilp/effect-actor
Releases · PaulJPhilp/effect-actor
Release list
v0.1.2 - ActorRef Interface & Type Improvements
What's New
✨ New Features
- ActorRef<M, R> Interface: Added proper TypeScript interface for actor references
- Generic message type
Mand requirements typeR send(message: M): Effect.Effect<void, Error, R>method- Full Effect integration for type-safe messaging
- Generic message type
🏗️ Architecture Improvements
- Enhanced Type Safety: Better TypeScript inference across the actor system
- Module Organization: Improved export structure in actor/index.ts
- Effect Integration: Proper Effect imports and usage patterns
📦 Package
- Published to npm as
effect-actor-pauljphilp@0.1.2
🧪 Testing
- All 34 tests passing
- Comprehensive coverage of actor functionality
Usage Example
import { Actor } from 'effect-actor-pauljphilp'
const actor: ActorRef<{ type: 'increment' }> = await Actor.make({
initialState: 0,
receive: (count, msg) =>
msg.type === 'increment'
? Effect.succeed(count + 1)
: Effect.succeed(count)
}).pipe(Effect.runPromise)
await actor.send({ type: 'increment' })v0.1.1 - Actor.make() High-Level API
Added Actor.make() high-level API for simpler actor creation. Published to npm as effect-actor-pauljphilp@0.1.1
Release v0.1.0
What's New
Added
- Initial release of effect-actor
- Effect-native state machine orchestration framework
- Actor service with state persistence and audit trails
- State machine specification builder with guards and actions
- Storage and compute provider interfaces
- Content production workflow example
- Comprehensive test suite
- TypeScript declarations and ES modules support
Features
- Hierarchical state machines with entry/exit actions
- Guard conditions for state transitions
- Action execution during transitions
- Schema validation with Effect.Schema
- Audit trail recording
- Actor state persistence
- Effect service integration
- Type-safe actor specifications
Dependencies
- Effect ^3.18.4 (peer dependency)