From 500e529df47ae5def4bf5cedc55fc099251c25a1 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Fri, 8 Sep 2023 11:58:00 -0500 Subject: [PATCH] feat(npm): move deprecated components in v36 to deprecated (#3719) * feat: move deprecated components in v36 to deprecated * chore: add changeset --------- Co-authored-by: Josh Black --- .changeset/tough-pillows-glow.md | 7 +++++++ src/__tests__/__snapshots__/exports.test.ts.snap | 3 +++ src/deprecated/index.ts | 8 ++++++++ 3 files changed, 18 insertions(+) create mode 100644 .changeset/tough-pillows-glow.md diff --git a/.changeset/tough-pillows-glow.md b/.changeset/tough-pillows-glow.md new file mode 100644 index 00000000000..426824feb4a --- /dev/null +++ b/.changeset/tough-pillows-glow.md @@ -0,0 +1,7 @@ +--- +'@primer/react': minor +--- + +The UnderlineNav, FilterList, and FilteredSearch components will be deprecated in v36 and have been moved to the deprecated entrypoint. To use the new UnderlineNav, migrate to the component available in drafts. + + diff --git a/src/__tests__/__snapshots__/exports.test.ts.snap b/src/__tests__/__snapshots__/exports.test.ts.snap index eacc48ac9b0..c47f8efcd96 100644 --- a/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/src/__tests__/__snapshots__/exports.test.ts.snap @@ -117,6 +117,8 @@ exports[`@primer/react/decprecated should not update exports without a semver ch "Dropdown", "DropdownButton", "DropdownMenu", + "FilterList", + "FilteredSearch", "Fixed", "Flex", "FormGroup", @@ -128,6 +130,7 @@ exports[`@primer/react/decprecated should not update exports without a semver ch "Relative", "SelectMenu", "Sticky", + "UnderlineNav", ] `; diff --git a/src/deprecated/index.ts b/src/deprecated/index.ts index 9ced82cf98d..67db3ad54a4 100644 --- a/src/deprecated/index.ts +++ b/src/deprecated/index.ts @@ -72,3 +72,11 @@ export type { ButtonCloseProps, } from './Button' // end of v35.0.0 + +// Deprecated in v36 +export {default as FilterList} from '../FilterList' +export type {FilterListProps, FilterListItemProps} from '../FilterList' +export {default as FilteredSearch} from '../FilteredSearch' +export type {FilteredSearchProps} from '../FilteredSearch' +export {default as UnderlineNav} from '../UnderlineNav' +export type {UnderlineNavProps, UnderlineNavLinkProps} from '../UnderlineNav'