Updated deps and fixed the deprecated code. Fixes #2