github refinedev/refine @refinedev/core@4.5.10

Patch Changes

  • #4035 e0c75450f97 Thanks @salihozdemir! - Add types for notification methods arguments based on given generic types.

  • #4071 98cd4b0f203 Thanks @salihozdemir! - Update authBindings error type to provide changeable error messages on notifcations.

    Example for login method:

    import { AuthBindings } from "@refinedev/core";
    
    const authProvider: AuthBindings = {
        login: async ({ email, password }) => {
            ...
            return {
                success: false,
                error: {
                    message: "Login Failed!",
                    name:
                        "The email or password that you've entered doesn't match any account.",
                },
            };
        },
        ...
    };

Don't miss a new refine release

NewReleases is sending notifications on new releases.