Skip to content

refactor: consume promises from fs rather than fs/promises to support downstream ESM usage#78

Merged
jlp-craigmorten merged 1 commit intomainfrom
esm-support-downstream
Feb 29, 2024
Merged

refactor: consume promises from fs rather than fs/promises to support downstream ESM usage#78
jlp-craigmorten merged 1 commit intomainfrom
esm-support-downstream

Conversation

@jlp-craigmorten
Copy link
Contributor

@jlp-craigmorten jlp-craigmorten commented Feb 29, 2024

Issue

Fixes #77 .

Details

Replaces usage of fs/promises with the promises named export from fs to support downstream ESM usage.

Scouted some minor/patch dependency upgrades.

CheckList

  • Has been tested (where required).

@jlp-craigmorten
Copy link
Contributor Author

jlp-craigmorten commented Feb 29, 2024

@scottnath has this captured the change you've suggested correctly?

@scottnath
Copy link

@jlp-craigmorten this changed worked great. Steps I took to test:

  1. download this branch
  2. build locally
  3. copy ./lib into my node_modules/@guidepup/guidepup in my storybook repo
    • note: used v0.19.0 as-is from virtual-screen-reader
  4. ran storybook - no error

so this is a big 👍 from me - thanks for the fast turnaround!

@jlp-craigmorten jlp-craigmorten merged commit 63d8a61 into main Feb 29, 2024
@jlp-craigmorten jlp-craigmorten deleted the esm-support-downstream branch February 29, 2024 17:52
diegohaz referenced this pull request in ariakit/ariakit Mar 1, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@guidepup/guidepup](https://togithub.com/guidepup/guidepup) |
[`0.22.2` ->
`0.22.3`](https://renovatebot.com/diffs/npm/@guidepup%2fguidepup/0.22.2/0.22.3)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@guidepup%2fguidepup/0.22.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@guidepup%2fguidepup/0.22.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@guidepup%2fguidepup/0.22.2/0.22.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@guidepup%2fguidepup/0.22.2/0.22.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>guidepup/guidepup (@&#8203;guidepup/guidepup)</summary>

###
[`v0.22.3`](https://togithub.com/guidepup/guidepup/releases/tag/0.22.3)

[Compare
Source](https://togithub.com/guidepup/guidepup/compare/0.22.2...0.22.3)

#### What's Changed

- refactor: consume `promises` from `fs` rather than `fs/promises` to
support downstream ESM usage by
[@&#8203;jlp-craigmorten](https://togithub.com/jlp-craigmorten) in
[https://github.com/guidepup/guidepup/pull/78](https://togithub.com/guidepup/guidepup/pull/78)
- thanks to [@&#8203;scottnath](https://togithub.com/scottnath) for
proposed change

**Full Changelog**:
guidepup/guidepup@0.22.2...0.22.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ariakit/ariakit).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMjAuMiIsInVwZGF0ZWRJblZlciI6IjM3LjIyMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

Bug: fs/promises breaks ESM usage in Virtual Screen Reader

2 participants