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

fix(deps): update comet to v7.6.0 #423

Merged
merged 3 commits into from
Nov 11, 2024
Merged

fix(deps): update comet to v7.6.0 #423

merged 3 commits into from
Nov 11, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 8, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@comet/admin (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/admin-date-time (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/admin-icons (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/admin-rte (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/admin-theme (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/blocks-admin (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/blocks-api (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/cli (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/cms-admin (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/cms-api (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/cms-site (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@comet/eslint-config (source) 7.5.0 -> 7.6.0 age adoption passing confidence
@​comet/eslint-plugin 7.5.0 -> 7.6.0 age adoption passing confidence

Release Notes

vivid-planet/comet (@​comet/admin)

v7.6.0

Compare Source

Minor Changes
  • bc19fb1: useDataGridExcelExport: Add support for number and null values in the Data Grid Excel export without the need for a valueFormatter
  • 00d7dda: Allow hiding the header (summary) of FieldSet by making the title prop optional
Patch Changes
  • 37d71a8: Fix hover styling of ToolbarBackButton

  • cf2ee89: Fix missing key error in CrudMoreActionsMenu

  • 03afcd0: Allow customizing CrudContextMenu

    Customize existing parts of CrudContextMenu using the slotProps, iconMapping and messagesMapping props.
    Add custom actions by adding instances of RowActionsItem to the children:

    <CrudContextMenu
    // ...
    >
        <RowActionsItem
            icon={<Favorite />}
            onClick={() => {
                // Do something
            }}
        >
            Custom action
        </RowActionsItem>
        <Divider />
    </CrudContextMenu>
  • fe89094: Slightly adjust the color of the clear button of inputs to match the Comet CI

vivid-planet/comet (@​comet/admin-date-time)

v7.6.0

Compare Source

Patch Changes
vivid-planet/comet (@​comet/admin-icons)

v7.6.0

Compare Source

vivid-planet/comet (@​comet/admin-rte)

v7.6.0

Compare Source

Patch Changes
vivid-planet/comet (@​comet/admin-theme)

v7.6.0

Compare Source

Patch Changes
vivid-planet/comet (@​comet/blocks-admin)

v7.6.0

Compare Source

Patch Changes
vivid-planet/comet (@​comet/blocks-api)

v7.6.0

Compare Source

Minor Changes
  • 9e2b0fa: Add support for literal arrays to block meta

    String, number, boolean, and JSON arrays can be defined by setting array: true.

    Example

    class NewsListBlockData {
        @&#8203;BlockField({ type: "string", array: true })
        newsIds: string[];
    }
vivid-planet/comet (@​comet/cli)

v7.6.0

Compare Source

Minor Changes
  • d353fc8: The inject-site-configs command locates the site-config-file argument relative to the current directory

  • 9e2b0fa: Add support for literal arrays to block meta

    String, number, boolean, and JSON arrays can be defined by setting array: true.

    Example

    class NewsListBlockData {
        @&#8203;BlockField({ type: "string", array: true })
        newsIds: string[];
    }
vivid-planet/comet (@​comet/cms-admin)

v7.6.0

Compare Source

Minor Changes
  • 1f5c29c: Show the number of permissions and content scopes in the User Permissions Admin panel

  • 671e2b2: Create site preview JWT in the API

    With this change the site preview can be deployed unprotected. Authentication is made via a JWT created in the API and validated in the site. A separate domain for the site preview is still necessary.

    Note: This requires the sitePreviewSecret option to be configured in the PageTreeModule.
    Run npx @&#8203;comet/upgrade@latest v7/add-site-preview-secret.ts in the root of your project to perform the necessary code changes.
    Changes to the deployment setup might still be necessary.

  • 3ea66fb: Add support for user impersonation

    Prerequisites for setups with separate domains for admin and api: credentials: "include" must be set in the createApolloClient function in the admin.

    Adds an "Impersonation" button to the detail view of a user in the User Permissions admin panel. The impersonation can be exited by clicking the button in the user's info on the top right.

  • d54a8c9: Add support for multiple paths in ContentScopeProvider

    This enables using different paths for scopes with non-overlapping dimensions.
    The location.createPath and location.createUrl functions can be used to override the default behavior.

    Example

    <ContentScopeProvider
        location={{
            createPath: () => ["/organization/:organizationId", "/channel/:channelId"],
            createUrl: (scope) => {
                if (scope.organizationId) {
                    return `/organization/${scope.organizationId}`;
                } else if (scope.channelId) {
                    return `/channel/${scope.channelId}`;
                } else {
                    throw new Error("Invalid scope");
                }
            },
        }}
    />
  • 05058fc: Export components to allow customization of User Permissions Admin panel

    The application can provide a custom UserPermissionsPage based on the default UserPermissionsPage.

  • 0589ef5: Add displayName prop to createTextLinkBlock factory to support setting a custom display name

Patch Changes
vivid-planet/comet (@​comet/cms-api)

v7.6.0

Compare Source

Minor Changes
  • 73c07ea: Set content scopes in request object

    This allows accessing the affected content scopes inside a block's transformer service.

    Example

    import { Inject, Injectable } from "@&#8203;nestjs/common";
    import { CONTEXT } from "@&#8203;nestjs/graphql";
    
    /* ... */
    
    @&#8203;Injectable()
    export class PixelImageBlockTransformerService implements BlockTransformerServiceInterface<PixelImageBlockData, TransformResponse> {
        constructor(
            // eslint-disable-next-line @&#8203;typescript-eslint/no-explicit-any
            @&#8203;Inject(CONTEXT) private readonly context: any,
        ) {}
    
        async transformToPlain(block: PixelImageBlockData) {
            // Get the affected content scopes
            const contentScopes = this.context.req.contentScopes;
    
            // Do something with the content scopes
    
            /* ... */
        }
    }
  • 671e2b2: Create site preview JWT in the API

    With this change the site preview can be deployed unprotected. Authentication is made via a JWT created in the API and validated in the site. A separate domain for the site preview is still necessary.

    Note: This requires the sitePreviewSecret option to be configured in the PageTreeModule.
    Run npx @&#8203;comet/upgrade@latest v7/add-site-preview-secret.ts in the root of your project to perform the necessary code changes.
    Changes to the deployment setup might still be necessary.

  • f8ae084: API Generator: Add support for disabling sort/filter using the @CrudField() decorator for embeddables

  • d535e32: Improve error message for empty IDs arrays in @AffectedEntity

  • 44ec9eb: Redirects: Add redirectBySource query that can be used to query for a single redirect by source

  • 3ea66fb: Add support for user impersonation

    Prerequisites for setups with separate domains for admin and api: credentials: "include" must be set in the createApolloClient function in the admin.

    Adds an "Impersonation" button to the detail view of a user in the User Permissions admin panel. The impersonation can be exited by clicking the button in the user's info on the top right.

Patch Changes
  • 700ddc3: Fix copy/paste for documents containing a DamFileDownloadLinkBlock

  • 979d5f4: Improve error message in Migration20240702123233

    Migration20240702123233 adds a valid file extension to every DamFile#name that doesn't have an extension yet.
    Previously, the migration crashed without a helpful error message if the mimetype of a file wasn't in mime-db.
    Now, the migration throws an error including the problematic mimetype.

  • b03f3df: Call createUserFromRequest before createUserFromIdToken

    The latter is marked as deprecated and should only be used if the
    first one is not defined.

  • cc2a117: Redirects: Improve GraphQL API performance by preloading the page tree to speed up target page lookup

    Also, increase the maximum limit from 100 to 1000.

  • 72cf8fd: Treat null and undefined scope dimensions the same in AccessControlService#isAllowed

    Optional scope dimensions may sometimes be null or undefined depending on how the scope object is created.
    For instance, when the scope is loaded from the database, the optional dimension will be null, but when the scope is coming from GraphQL, the dimension can be undefined.
    Due to strict equality comparison, this led to incorrect access control checks in AccessControlService#isAllowed.
    This is now prevented by treating null and undefined dimensions as the same when checking the scope.

  • 6b0eceb: DAM: Fix/set cache-control headers

    • Public endpoints should cache files for 1 day
    • Private endpoints should cache files for 1 year - but only in local caches (not CDN)
  • 6f93191: Avoid duplicate file extension in createFileUploadInputFromUrl

  • Updated dependencies [9e2b0fa]

vivid-planet/comet (@​comet/cms-site)

v7.6.0

Compare Source

Minor Changes
  • 671e2b2: Create site preview JWT in the API

    With this change the site preview can be deployed unprotected. Authentication is made via a JWT created in the API and validated in the site. A separate domain for the site preview is still necessary.

    Note: This requires the sitePreviewSecret option to be configured in the PageTreeModule.
    Run npx @&#8203;comet/upgrade@latest v7/add-site-preview-secret.ts in the root of your project to perform the necessary code changes.
    Changes to the deployment setup might still be necessary.

  • c92fd5e: PixelImageBlock: Allow different aspect ratio formats

    The aspectRatio prop now supports values in the following formats:

    • x as separator: aspectRatio="3x1"
    • : as separator: aspectRatio="16:9"
    • / as separator: aspectRatio="4/3"
    • Numbers: aspectRatio={1.5}
    • Strings: aspectRatio="3"
  • e0dea4c: Allow setting a custom height or aspectRatio on PreviewSkeleton when using type="media"

    When no value is provided, the fallback height of 300px is used.

    <PreviewSkeleton type="media" height={200} />
    <PreviewSkeleton type="media" aspectRatio="16x9" />
  • c3bebef: Use non-preview DAM URLs for the site preview

  • 7ac8bb0: gql: Handle non-string variables in GraphQL documents

    Non-string variables were incorrectly converted to strings, e.g., '[object Object]'. This error usually occurred when trying to import a GraphQL fragment from a React Client Component. The gql helper now throws an error for non-string variables.

  • ec57e2d: Add support to set a custom preview image icon to DamVideoBlock, VimeoVideoBlock, and YouTubeVideoBlock

    Use the previewImageIcon prop to pass the icon to the default VideoPreviewImage component:

    <DamVideoBlock
      data={props}
      fill={fill}
    + previewImageIcon={<CustomPlayIcon />}
    />
Patch Changes
  • 41b6cd6: Fix preview overlay not updating on style-only changes

    Previously, the preview overlay would only update when the HTML structure changed or the window was resized.
    Now it also responds to attribute changes, including class modifications, ensuring the overlay updates correctly when elements are repositioned through CSS.

  • 7ac8bb0: GraphQLFetch: Correctly report GraphQL schema validation errors

  • e0dea4c: Render preview skeletons of image and video blocks with the block's aspectRatio or height, if defined, instead of using a fixed height of 300px

    This applies to SvgImageBlock, PixelImageBlock, DamVideoBlock, YouTubeVideoBlock, and VimeoVideoBlock.

  • b0de0bd: Prevent rendering of empty blocks in PreviewSkeleton

    Previously, in non-preview environments, PreviewSkeleton would still render its children, even if hasChanges was set to false, causing unwanted empty HTML tags in the site.
    For instance, an empty rich text block would still render a <p> tag.
    Now, the children will only be rendered if hasContent is set to true.
    Doing so removes the need for duplicate empty checks.

vivid-planet/comet (@​comet/eslint-config)

v7.6.0

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@thomasdax98
Copy link
Member

This still requires executing the upgrade script npx @comet/upgrade@latest v7/add-site-preview-secret.ts

@thomasdax98 thomasdax98 merged commit 513dd3d into main Nov 11, 2024
3 checks passed
@thomasdax98 thomasdax98 deleted the renovate/comet branch November 11, 2024 10:09
@manuelblum manuelblum added dependencies Pull requests that update a dependency file comet Highlights Comet Dependency bumps labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comet Highlights Comet Dependency bumps dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants