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 #6406

Merged
merged 1 commit into from
Oct 15, 2024
Merged

ci(changesets): version packages #6406

merged 1 commit into from
Oct 15, 2024

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]

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/[email protected]

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/[email protected]

Patch Changes

@refinedev/[email protected]

Patch Changes

@refinedev/[email protected]

Patch Changes

@refinedev/[email protected]

Patch Changes

@refinedev/[email protected]

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/[email protected]

Patch Changes

@refine-bot refine-bot requested a review from a team as a code owner October 14, 2024 14:22
Copy link
Contributor

github-actions bot commented Oct 14, 2024

Copy link

cypress bot commented Oct 14, 2024

refine    Run #11567

Run Properties:  status check passed Passed #11567  •  git commit ee6c02f577 ℹ️: Merge baec8002ddeffaf93f13f6c45e100500767015fc into c67b3abbc94b37f789b67dfeafff...
Project refine
Run status status check passed Passed #11567
Run duration 19m 17s
Commit git commit ee6c02f577 ℹ️: Merge baec8002ddeffaf93f13f6c45e100500767015fc into c67b3abbc94b37f789b67dfeafff...
Committer Refine Community Bot
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 37
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 383

@BatuhanW BatuhanW merged commit 3740bf6 into master Oct 15, 2024
99 checks passed
@BatuhanW BatuhanW deleted the changeset-release/master branch October 15, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants