How would you handle a situation where a library you depend on becomes deprecated?

Situational