Invisibility
A creature you touch has the Invisible condition until the spell ends. The spell ends early immediately after the target makes an attack roll, deals damage, or casts a spell.
Using a Higher-Level Spell Slot. You can target one additional creature for each spell slot level above 2.
Invisibility 5e 2024 vs. 2014 edition differences
The 2024 version states "up to 1 hour" duration, while 2014 states "1 hour" (no change). The 2024 version applies the Invisible condition until the spell ends, ending early after attack, damage, or spell cast; 2014 ends when the target attacks or casts a spell. The 2024 version explicitly states "attack roll" and "deals damage," clarifying conditions for ending.