* Update history.js - Change `BatchCommand.unapply` to use `[...this.commands].reverse()` so the original array is never mutated. - This preserves the order of commands and ensures history integrity.
* Update history.js - Change `BatchCommand.unapply` to use `[...this.commands].reverse()` so the original array is never mutated. - This preserves the order of commands and ensures history integrity.