Migrating from 0.4.x to 0.5.0
0.5.0 removes the legacy rules surface that 0.4.0 deprecated. Every route is in the 0.3→0.4 migration guide; nothing else changed.
Both workspace packages (dnd5e-engine and dnd5e-srd-data) and
nat20-bridge version in lockstep from 0.4.x to 0.5.0. The dataset and the
bridge have no changes of their own in this release.
Removed
- Modules:
dnd5e_engine.dispatch,dnd5e_engine.event_dicts,dnd5e_engine.types.dice,dnd5e_engine.types.intent,dnd5e_engine.rules.combat,dnd5e_engine.rules.combat_data,dnd5e_engine.rules.combat_helpers,dnd5e_engine.rules.equipment,dnd5e_engine.rules.gambits,dnd5e_engine.rules.resolution,dnd5e_engine.rules.spells. - Names:
dnd5e_engine.ActionType,dnd5e_engine.types.CombatNPC(andtypes.combat.CombatNPC), and the lazydnd5e_engine.types.{ActionType, CombatOutcome, DiceOutcome}re-exports. - The 0.4.0 re-export shims: import
DeathSaveStatefromdnd5e_engine.death_savesandBehaviorProfilefromdnd5e_engine.types.combat.
Unchanged
rules.dice, rules.conditions, rules.skills, rules.effects, check,
death_saves, rest, types.combat.Combatant, types.effects,
types.conditions, and the whole orchestrator / activities engine.
If you vendored the legacy modules per the 0.4.0 guide, drop the <0.5
ceiling on dnd5e-engine; nothing you vendored depends on what was removed.