Logo-amall

I’m following the Next.js docs here https://docs.nhost.io/reference/nextjs/use-change-password When I use in-app, VScode shows that the method is deprecated.

Last active 3 months ago

6 replies

11 views

  • TA

    I’m following the Next.js docs here https://docs.nhost.io/reference/nextjs/use-change-password

    When I use in-app, VScode shows that the method is deprecated.

  • EL

    I think what's deprecated is the parameters: https://github.com/nhost/nhost/blob/6ab6bccded9aeee3b18c151d3b954d490470955e/packages/react/src/useChangePassword.ts#L14-L29

  • EL

    So we moved from password: unknown to password: string as an example. Which might cause VS Code to show that deprecation notice.

  • EL

    Those deprecation notices was added in May this year so I think we can remove them soon.

  • EL

    oh they are actually about to be removed: https://github.com/nhost/nhost/pull/1233/files#diff-63ea8890b201c08eaccd63dc76d36edc8078790f93ba3f684ad34eb10fd20dcdL16-L28

  • TA

    Thanks!

Last active 3 months ago

6 replies

11 views