Skip to content

6.10.0

Compare
Choose a tag to compare
@github-actions github-actions released this 14 May 22:25
· 1165 commits to main since this release
9732556

@comet/admin@6.10.0

Minor Changes

  • d4a269e: Add filterByFragment to replace graphql-anywhere's filter

    graphql-anywhere is no longer maintained.
    However, its filter utility is useful for filtering data by a GraphQL document, e.g., a fragment.
    Therefore, the function was copied to @comet/admin.
    To migrate, replace all filter calls with filterByFragment:

    - import { filter } from "graphql-anywhere";
    + import { filterByFragment } from "@comet/admin";
    
    const initialValues: Partial<FormValues> = data?.product
        ? {
    -       ...filter<GQLProductPriceFormFragment>(productPriceFormFragment, data.product),
    +       ...filterByFragment<GQLProductPriceFormFragment>(productPriceFormFragment, data.product),
            price: String(data.product.price),
        }
        : {};

    You can then uninstall the graphql-anywhere package:

    # In admin/
    npm uninstall graphql-anywhere
  • 52130af: Add FinalFormFileSelect component

    Allows selecting files via the file dialog or using drag-and-drop.

  • e938254: Add the useDataGridExcelExport hook for exporting data from a DataGrid to an excel file

    The hook returns an exportApi encompassing:

    • exportGrid: a function to generate and export the excel file
    • loading: a boolean indicating if the export is in progress
    • error: an error when the export has failed

Patch Changes

  • a8a098a: muiGridFilterToGql: change fallback operator to 'and' to match MUI default

@comet/cms-admin@6.10.0

Minor Changes

  • f89af8b: Add disableHideInMenu option to createEditPageNode to hide the "Hide in menu" checkbox

  • d4a269e: Add filterByFragment to replace graphql-anywhere's filter

    graphql-anywhere is no longer maintained.
    However, its filter utility is useful for filtering data by a GraphQL document, e.g., a fragment.
    Therefore, the function was copied to @comet/admin.
    To migrate, replace all filter calls with filterByFragment:

    - import { filter } from "graphql-anywhere";
    + import { filterByFragment } from "@comet/admin";
    
    const initialValues: Partial<FormValues> = data?.product
        ? {
    -       ...filter<GQLProductPriceFormFragment>(productPriceFormFragment, data.product),
    +       ...filterByFragment<GQLProductPriceFormFragment>(productPriceFormFragment, data.product),
            price: String(data.product.price),
        }
        : {};

    You can then uninstall the graphql-anywhere package:

    # In admin/
    npm uninstall graphql-anywhere
  • f528bc3: CronJobModule: Show logs for job run

Patch Changes

  • d340cab: DAM: Fix the duplicate name check when updating a file

    Previously, there were two bugs:

    1. In the EditFile form, the folderId wasn't passed to the mutation
    2. In FilesService#updateByEntity, the duplicate check was always done against the root folder if no folderId was passed

    This caused an error when saving a file in any folder if there was another file with the same name in the root folder.
    And it was theoretically possible to create two files with the same name in one folder (though this was still prevented by admin-side validation).

@comet/cms-api@6.10.0

Minor Changes

  • 536fdb8: Add createUserFromIdToken to UserService-interface

    This allows to override the default implementation of creating the User-Object from the JWT when logging in via createAuthProxyJwtStrategy

  • f528bc3: CronJobModule: Show logs for job run

Patch Changes

  • d340cab: DAM: Fix the duplicate name check when updating a file

    Previously, there were two bugs:

    1. In the EditFile form, the folderId wasn't passed to the mutation
    2. In FilesService#updateByEntity, the duplicate check was always done against the root folder if no folderId was passed

    This caused an error when saving a file in any folder if there was another file with the same name in the root folder.
    And it was theoretically possible to create two files with the same name in one folder (though this was still prevented by admin-side validation).

  • 584d14d: Only return duplicates within the same scope in the FilesResolver#duplicates field resolver

    As a side effect FilesService#findAllByHash now accepts an optional scope parameter.

@comet/cms-site@6.10.0

Minor Changes

  • 5c1ab80: SeoBlock: Change Open Graph image to recommended size and aspect ratio (1200x630)