Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[Terra-Dev-Site] Reverts MDX version from V2 to V1 #345

Merged
merged 6 commits into from
Aug 22, 2023

Conversation

supreethmr
Copy link
Contributor

Summary

Terra-Dev-Site v7 has been updated to consume latest version of MDX packages to fix CVE's reported on older version.
https://github.com/cerner/terra-application/pull/320/files

Migration to MDX v2 requires changes on existing MDX files ( breaking changes ). Hence this change should be released with Major version of terra-dev-site to fix the CVE.

To resolve the issues caused by newer version of MDX packages. We need to revert changes made by PR 320 and update terra-application V1 branch to downgrade the Mdx versions to ^1.0.0

What was changed:
Reverted only MDX upgrades made on https://github.com/cerner/terra-application/pull/320/files

Why it was changed:
MDX2 has Breaking changes and will cause issue with existing MDX files. Since it is breaking the existing components we need to downgrade the versions back to ^1

Testing

There were few WDIO screenshots which were updated with incorrect changes as shown in below screenshot

Before Downgrading to MDX V1

md_tables

After Downgrading to MDX V1

md_tables

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-9533


Thank you for contributing to Terra.
@cerner/terra

@github-actions github-actions bot temporarily deployed to preview-pr-345 August 22, 2023 16:35 Destroyed
@sdadn sdadn merged commit e285c25 into terra-application-v1 Aug 22, 2023
6 checks passed
@sdadn sdadn deleted the revert-pr-340 branch August 22, 2023 16:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants