We currently use zxcvbn which wasn't updated for 8 years, but there is modern alternative which is actively maintained - https://github.com/zxcvbn-ts/zxcvbn.
Let's migrate to it, here is migration guide - https://zxcvbn-ts.github.io/zxcvbn/guide/migration/