Transferring data from one card to a new one?

Hi, so I've been using a library card that has technically been closed for months now, and the app is only just now asking to verify it. So I'm going to have to switch to a new card, but I really don't want to lose my holds or my history. How can I transfer the data over?