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

feat: add wildcard imports as exports #4976

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

joshblack
Copy link
Member

@joshblack joshblack commented Sep 16, 2024

We've identified usage of wildcard imports downstream 👀 As a result, this PR adds these imports to named entry points that we have (and also creates a new one).

With these wildcard exports now coming from a named entry point, we can update dotcom to use these new exports before officially removing them ☠️

The full list of wildcard imports identified is at: https://github.com/primer/eslint-plugin-primer-react/blob/main/src/rules/no-wildcard-imports.js#L5

Changelog

New

  • Add a test-helpers entrypoint for @primer/react/test-helpers
  • Add VisuallyHidden, VisuallyHiddenProps to @primer/react
  • Add BetterCssProperties to @primer/react
  • Add BetterSystemStyleObject to @primer/react
  • Add IssueLabelTokenProps to @primer/react
  • Add LabelColorOptions to @primer/react
  • Add useIsomorphicLayoutEffect to @primer/react
  • Add useProvidedRefOrCreate to @primer/react
  • Add ActionListGroupedListProps, ActionListGroupProps, ActionListItemProps to @primer/react/deprecated
  • Add DefaultFeatureFlags to @primer/react/experimental

Changed

Removed

Rollout strategy

  • Minor release

Copy link

changeset-bot bot commented Sep 16, 2024

🦋 Changeset detected

Latest commit: 3ba43eb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the staff Author is a staff member label Sep 16, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-4976 September 16, 2024 20:59 Inactive
Copy link
Contributor

github-actions bot commented Sep 16, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 97.5 KB (+0.14% 🔺)
packages/react/dist/browser.umd.js 97.77 KB (-0.03% 🔽)

@primer-integration
Copy link

👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/342579

@joshblack joshblack marked this pull request as ready for review September 18, 2024 20:46
@joshblack joshblack requested a review from a team as a code owner September 18, 2024 20:46
@github-actions github-actions bot temporarily deployed to storybook-preview-4976 September 18, 2024 20:49 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant