Skip to content

Commit

Permalink
feat(npm): move deprecated components in v36 to deprecated (#3719)
Browse files Browse the repository at this point in the history
* feat: move deprecated components in v36 to deprecated

* chore: add changeset

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack authored Sep 8, 2023
1 parent 7613131 commit 500e529
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/tough-pillows-glow.md
Original file line number Diff line number Diff line change
@@ -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.

<!-- Changed components: FilterList, FilteredSearch, UnderlineNav -->
3 changes: 3 additions & 0 deletions src/__tests__/__snapshots__/exports.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ exports[`@primer/react/decprecated should not update exports without a semver ch
"Dropdown",
"DropdownButton",
"DropdownMenu",
"FilterList",
"FilteredSearch",
"Fixed",
"Flex",
"FormGroup",
Expand All @@ -128,6 +130,7 @@ exports[`@primer/react/decprecated should not update exports without a semver ch
"Relative",
"SelectMenu",
"Sticky",
"UnderlineNav",
]
`;

Expand Down
8 changes: 8 additions & 0 deletions src/deprecated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 500e529

Please sign in to comment.