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

fix: Remove circular dependency #800

Merged
merged 1 commit into from
Feb 21, 2022
Merged

fix: Remove circular dependency #800

merged 1 commit into from
Feb 21, 2022

Conversation

pablo-abc
Copy link
Contributor

Fixes #733

./getRole.ts and ./util.ts were importing each other, causing a circular dependency. This causes a warning when using this package (or packages that depend on this like @testing-library/jest-dom) at least when using Rollup.

To remove the warning I moved getLocalName to getRole and re-exported it from util so it is still available when importing from ./util).

@changeset-bot
Copy link

changeset-bot bot commented Feb 6, 2022

🦋 Changeset detected

Latest commit: 035aeb2

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

This PR includes changesets to release 1 package
Name Type
dom-accessibility-api Patch

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

@eps1lon eps1lon changed the title fix: remove circular dependency fix: Remove circular dependency Feb 21, 2022
Copy link
Owner

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eps1lon eps1lon merged commit de554b0 into eps1lon:main Feb 21, 2022
@github-actions github-actions bot mentioned this pull request Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors when using with rollup + svelte
2 participants