Skip to content

Releases: refinedev/refine

@refinedev/strapi-v4@6.0.9

15 Oct 06:51
3740bf6
Compare
Choose a tag to compare

Patch Changes

@refinedev/nestjsx-crud@5.0.10

15 Oct 06:51
3740bf6
Compare
Choose a tag to compare

Patch Changes

  • #6320 5c0f3d83cb424a82431c2f7ae183a94f3e59c39b Thanks @mehrabmp! - feat: add between filter operator

    Add between operator support to CrudFilters

    import { useTable } from "@refinedev/core";
    
    useTable({
      filters: {
        initial: [
          {
            field: "createdAt",
            operator: "between",
            value: [new Date().toISOString(), new Date().toISOString()],
          },
        ],
      },
    });

    Resolves #6334

@refinedev/hasura@6.6.8

15 Oct 06:51
3740bf6
Compare
Choose a tag to compare

Patch Changes

@refinedev/graphql@7.0.0

15 Oct 06:51
3740bf6
Compare
Choose a tag to compare

Major Changes

  • #6336 58e90f26248ed3d1bc92ae748f03a2cbe71721c2 Thanks @aliemir! - feat: rewrite GraphQL data provider.

    We've modernized GraphQL dataprovider to make it more flexible and strictly coupled into a specific API schema.
    You can utilize option parameter to change the behaviour of the data provider. You can also do it individually for a single action.
    We've removed gql-query-builder and graphql-request dependencies and now using @urql/core as a GraphQL client.
    This means now it's required to pass either gqlQuery or gqlMutation to the hooks, meta.fields usage is removed.
    graphql-tag package is also removed since @urql/core already has gql export to write queries & mutations.
    We are no more re-exporting other packages, just our data provider, live provider and defaultOptions.

    See the updated documentation for more details: https://refine.dev/docs/data/packages/graphql/

    Resolves #5942
    Resolves #5943

@refinedev/devtools@1.2.9

15 Oct 06:51
3740bf6
Compare
Choose a tag to compare

Patch Changes

@refinedev/devtools-server@1.1.37

15 Oct 06:51
3740bf6
Compare
Choose a tag to compare

Patch Changes

@refinedev/core@4.55.0

15 Oct 06:51
3740bf6
Compare
Choose a tag to compare

Minor Changes

  • #6330 5a81b35bc1eedbecb4b6c531a2fa5235dd0caf31 Thanks @alicanerdurmaz! - feat: add <Link /> component to navigate to a resource with a specific action. Under the hood, It uses useGo to generate the URL.

    Usage

    import { Link } from "@refinedev/core";
    
    const MyComponent = () => {
      return (
        <>
          {/* simple usage, navigates to `/posts` */}
          <Link to="/posts">Posts</Link>
          {/* complex usage with more control, navigates to `/posts` with query filters */}
          <Link
            go={{
              query: {
                // `useTable` or `useDataGrid` automatically use this filters to fetch data if `syncWithLocation` is true.
                filters: [
                  {
                    operator: "eq",
                    value: "published",
                    field: "status",
                  },
                ],
              },
              to: {
                resource: "posts",
                action: "list",
              },
            }}
          >
            Posts
          </Link>
        </>
      );
    };

    Fixes #6329

  • #6330 5a81b35bc1eedbecb4b6c531a2fa5235dd0caf31 Thanks @alicanerdurmaz! - chore: From now on, useLink returns <Link /> component instead of returning routerProvider.Link.

    Since the <Link /> component uses routerProvider.Link under the hood with leveraging useGo hook to generate the URL there is no breaking change. It's recommended to use the <Link /> component from the @refinedev/core package instead of useLink hook. This hook is used mostly for internal purposes and is only exposed for customization needs.

    Fixes #6329

Patch Changes

  • #6327 c630b090539082b5166b508053f87274624c794e Thanks @Anonymous961! - fix(core): added ability to return undefined to fallback to the default notification config when using the function form in successNotification and errorNotification props.

    Resolves #6270

  • #6353 a0f2d7bbef3093e11c3024bb7fa2a0ffc3ce9e10 Thanks @alicanerdurmaz! - fix: The label and route fields in useMenu().menuItems were marked as deprecated, but they are not actually deprecated. This issue was caused by menuItems extending from IResourceItem, however, menuItems populates these fields and handles deprecation of these fields internally. This change removes the deprecation warning for these fields.

    export const Sider = () => {
      const { menuItems } = useMenu();
      menuItems.map((item) => {
        // these are safe to use
        console.log(item.label);
        console.log(item.route);
        item.children.map((child) => {
          // these are safe to use
          console.log(child.label);
          console.log(child.route);
        });
      });
    
      return <div>{/* ... */}</div>;
    };

    Fixes #6352

  • #6386 bfe28f0316b3623aaef0b60ae39ebe24939dd0af Thanks @hugorezende! - fix(core): wrap setFilters and setSorters methods with useCallback to prevent looping re-renders

    With this we can use the setFilters as dependencies inside useEffects without infinite loop since state changes in the hook won't cause the functions to be re-assigned

    Fixes #6385

@refinedev/cli@2.16.39

15 Oct 06:51
3740bf6
Compare
Choose a tag to compare

Patch Changes

@refinedev/supabase@5.9.4

03 Sep 11:48
273d962
Compare
Choose a tag to compare

Patch Changes

@refinedev/mui@5.21.0

03 Sep 11:48
273d962
Compare
Choose a tag to compare

Minor Changes

  • #6271 2b89fbd136b2134f22d38dff8d4a7f24e57e73db Thanks @Anonymous961! - feat(mui): added loading spinner to <Create />, <Edit /> and <Show /> components

    This change introduces a loading spinner to the <Create />, <Edit /> and <Show /> components in the @refinedev/mui package. The spinner provides a visual indication that data is being loaded, improving the user experience bym giving clear feedback during loading states.

    Resolves #5668