Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(changesets): version packages #6468

Closed
wants to merge 1 commit into from
Closed

Conversation

refine-bot
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@refinedev/[email protected]

Minor Changes

@refinedev/[email protected]

Minor Changes

  • #6445 4ff4335274d5689ec62127312695b76d692a125a Thanks @alicanerdurmaz! - feat: added new prop called mutationVariables to <AuthPage />. [FEAT] <AuthPage /> should be able to send additional parameters to authProvider methods #6431
    From now on, you can pass additional parameters to the authProvider methods using the mutationVariables prop of the <AuthPage /> component.

    import { AuthPage } from "@refinedev/antd"; // or "@refinedev/chakra-ui", "@refinedev/mantine", "@refinedev/mui"
    
    const MyLoginPage = () => {
      return (
        <AuthPage
          type="login" // all other types are also supported.
          // highlight-start
          mutationVariables={{
            foo: "bar",
            xyz: "abc",
          }}
          // highlight-end
        />
      );
    };
    
    // all mutation methods are supported.
    const authProvider = {
      login: async ({ foo, xyz, ...otherProps }) => {
        console.log(foo); // bar
        console.log(xyz); // abc
        // ...
      },
      register: async ({ foo, xyz, ...otherProps }) => {
        console.log(foo); // bar
        console.log(xyz); // abc
        // ...
      },
      // ...
    };

    Resolves #6431

Patch Changes

@refinedev/[email protected]

Minor Changes

Patch Changes

  • #6445 4ff4335274d5689ec62127312695b76d692a125a Thanks @alicanerdurmaz! - fix: Added more flexibility to the <Link /> component's ref type by changing it from HTMLAnchorElement to Element.
    From now on, we can pass any type of ref to the <Link /> component.

    // Before fix - Only worked with HTMLAnchorElement
    const ref = useRef<HTMLAnchorElement>(null);
    
    // After fix - Works with any Element type
    const ref = useRef<HTMLDivElement>(null);
    const ref = useRef<HTMLSpanElement>(null);

    Resolves #6463

  • #6445 4ff4335274d5689ec62127312695b76d692a125a Thanks @alicanerdurmaz! - fix: Priority logic between to and go props in Link component.
    From now on, the to prop has priority over the go prop. If both are passed, the to prop will be used.

    // Before fix - go would override to
    <Link to="/posts" go={{ resource: "categories" }} />
    
    // After fix - to overrides go
    <Link to="/posts" go={{ resource: "categories" }} />

    Resolves #6461

@refinedev/[email protected]

Minor Changes

  • #6445 4ff4335274d5689ec62127312695b76d692a125a Thanks @alicanerdurmaz! - feat: added new prop called mutationVariables to <AuthPage />. [FEAT] <AuthPage /> should be able to send additional parameters to authProvider methods #6431
    From now on, you can pass additional parameters to the authProvider methods using the mutationVariables prop of the <AuthPage /> component.

    import { AuthPage } from "@refinedev/antd"; // or "@refinedev/chakra-ui", "@refinedev/mantine", "@refinedev/mui"
    
    const MyLoginPage = () => {
      return (
        <AuthPage
          type="login" // all other types are also supported.
          // highlight-start
          mutationVariables={{
            foo: "bar",
            xyz: "abc",
          }}
          // highlight-end
        />
      );
    };
    
    // all mutation methods are supported.
    const authProvider = {
      login: async ({ foo, xyz, ...otherProps }) => {
        console.log(foo); // bar
        console.log(xyz); // abc
        // ...
      },
      register: async ({ foo, xyz, ...otherProps }) => {
        console.log(foo); // bar
        console.log(xyz); // abc
        // ...
      },
      // ...
    };

    Resolves #6431

@refinedev/[email protected]

Minor Changes

  • #6445 4ff4335274d5689ec62127312695b76d692a125a Thanks @alicanerdurmaz! - feat: added new prop called mutationVariables to <AuthPage />. [FEAT] <AuthPage /> should be able to send additional parameters to authProvider methods #6431
    From now on, you can pass additional parameters to the authProvider methods using the mutationVariables prop of the <AuthPage /> component.

    import { AuthPage } from "@refinedev/antd"; // or "@refinedev/chakra-ui", "@refinedev/mantine", "@refinedev/mui"
    
    const MyLoginPage = () => {
      return (
        <AuthPage
          type="login" // all other types are also supported.
          // highlight-start
          mutationVariables={{
            foo: "bar",
            xyz: "abc",
          }}
          // highlight-end
        />
      );
    };
    
    // all mutation methods are supported.
    const authProvider = {
      login: async ({ foo, xyz, ...otherProps }) => {
        console.log(foo); // bar
        console.log(xyz); // abc
        // ...
      },
      register: async ({ foo, xyz, ...otherProps }) => {
        console.log(foo); // bar
        console.log(xyz); // abc
        // ...
      },
      // ...
    };

    Resolves #6431

Patch Changes

@refinedev/[email protected]

Patch Changes

@refinedev/[email protected]

Patch Changes

@refine-bot refine-bot requested a review from a team as a code owner November 7, 2024 10:45
@BatuhanW BatuhanW closed this Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants