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

refactor(react): remove wildcard imports #5075

Merged
merged 5 commits into from
Oct 18, 2024
Merged

Conversation

joshblack
Copy link
Member

@joshblack joshblack commented Oct 7, 2024

Closes https://github.com/github/primer/issues/3688

Update our package in @primer/react to no longer allow wildcard imports. This will allow us to explicitly define files that folks can import from @primer/react and means that we can avoid our internal convention in the future.

Changelog

New

Changed

Removed

  • Remove support for wildcard imports from our package

Rollout strategy

  • Major release; if selected, include a written rollout or migration plan

We have added wildcard imports that are used to our named entrypoints. As a result, we are going to update imports upstream to use these instead of named entrypoints.

Copy link

changeset-bot bot commented Oct 7, 2024

🦋 Changeset detected

Latest commit: a94f4f7

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 Major

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 Oct 7, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-5075 October 7, 2024 16:22 Inactive
Copy link
Contributor

github-actions bot commented Oct 7, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 97.06 KB (0%)
packages/react/dist/browser.umd.js 97.36 KB (0%)

@joshblack joshblack marked this pull request as ready for review October 9, 2024 20:01
@joshblack joshblack requested a review from a team as a code owner October 9, 2024 20:01
Copy link
Contributor

github-actions bot commented Oct 9, 2024

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Oct 9, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-5075 October 9, 2024 20:05 Inactive
@joshblack joshblack added this pull request to the merge queue Oct 18, 2024
Merged via the queue into main with commit de7dbde Oct 18, 2024
43 checks passed
@joshblack joshblack deleted the 3688-remove-wildcard-exports branch October 18, 2024 14:53
@primer primer bot mentioned this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants