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: move types condition to the front #492

Merged
merged 1 commit into from
May 4, 2023

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented May 1, 2023

I moved types condition to the front. package.json#exports are order-sensitive - they are always matched from the top to the bottom. When a match is found then it should be used and no further matching should occur.

Right now, the current setup works in TypeScript but it's considered a bug and it should not be relied upon, see the thread and the comment here. For that reason, I would like to fix all popular packages that misconfigured their exports this way so the bug can be fixed in TypeScript.

⚠️ this PR focuses solely on fixing "🐛 Used fallback condition" problem but the "🚭 Unexpected ESM syntax" remains here. You can check the reported errors here

Copy link
Owner

@quantizor quantizor left a comment

Choose a reason for hiding this comment

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

Sounds good, thanks :)

@quantizor quantizor merged commit 4339521 into quantizor:main May 4, 2023
3 checks passed
@Andarist
Copy link
Contributor Author

Andarist commented Jun 1, 2023

@probablyup would there be any chance to get this small fix released?

@quantizor
Copy link
Owner

Oops yes thanks for reminding me

@Andarist Andarist deleted the fix/types-condition branch June 1, 2023 10:50
marcustisater-kivra added a commit to kivra/toybox that referenced this pull request Oct 23, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [markdown-to-jsx](https://probablyup.github.io/markdown-to-jsx)
([source](https://togithub.com/probablyup/markdown-to-jsx)) | [`7.2.0`
->
`7.3.2`](https://renovatebot.com/diffs/npm/markdown-to-jsx/7.2.0/7.3.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/markdown-to-jsx/7.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/markdown-to-jsx/7.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/markdown-to-jsx/7.2.0/7.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/markdown-to-jsx/7.2.0/7.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>probablyup/markdown-to-jsx (markdown-to-jsx)</summary>

###
[`v7.3.2`](https://togithub.com/probablyup/markdown-to-jsx/releases/tag/v7.3.2)

[Compare
Source](https://togithub.com/probablyup/markdown-to-jsx/compare/v7.3.1...v7.3.2)

fix(types): path to esm types in "exports"

**Full Changelog**:
quantizor/markdown-to-jsx@v7.3.1...v7.3.2

###
[`v7.3.1`](https://togithub.com/probablyup/markdown-to-jsx/releases/tag/v7.3.1)

[Compare
Source](https://togithub.com/probablyup/markdown-to-jsx/compare/v7.3.0...v7.3.1)

#### What's Changed

-   add dev-time error if trying to provide bad input

**Full Changelog**:
quantizor/markdown-to-jsx@v7.3.0...v7.3.1

###
[`v7.3.0`](https://togithub.com/probablyup/markdown-to-jsx/releases/tag/v7.3.0)

[Compare
Source](https://togithub.com/probablyup/markdown-to-jsx/compare/v7.2.1...v7.3.0)

#### What's Changed

- chore(deps): bump word-wrap from 1.2.3 to 1.2.4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[quantizor/markdown-to-jsx#505
- chore(deps): bump semver from 6.3.0 to 6.3.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[quantizor/markdown-to-jsx#504
- chore(deps): bump tough-cookie from 4.1.2 to 4.1.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[quantizor/markdown-to-jsx#503
-
[#&#8203;379](https://togithub.com/probablyup/markdown-to-jsx/issues/379)
- Allow more custom HTML character codes by
[@&#8203;brianfryer](https://togithub.com/brianfryer) in
[quantizor/markdown-to-jsx#502
- fix: correctly parse markdown inside of a table row when a preceding
column has nested HTML elements by
[@&#8203;gusbmurphy](https://togithub.com/gusbmurphy) in
[quantizor/markdown-to-jsx#501
- add option to enforce a space between headings by
[@&#8203;insanicly](https://togithub.com/insanicly) in
[quantizor/markdown-to-jsx#440
- fix: Update package.json for "type": "module" with updated
`size-limit` tests for `index.cjs` and `index.module.js` (replacing
`index.js`) by
[@&#8203;nbarrow-inspire-labs](https://togithub.com/nbarrow-inspire-labs)
in
[quantizor/markdown-to-jsx#500

#### New Contributors

- [@&#8203;brianfryer](https://togithub.com/brianfryer) made their first
contribution in
[quantizor/markdown-to-jsx#502
- [@&#8203;gusbmurphy](https://togithub.com/gusbmurphy) made their first
contribution in
[quantizor/markdown-to-jsx#501
- [@&#8203;insanicly](https://togithub.com/insanicly) made their first
contribution in
[quantizor/markdown-to-jsx#440
-
[@&#8203;nbarrow-inspire-labs](https://togithub.com/nbarrow-inspire-labs)
made their first contribution in
[quantizor/markdown-to-jsx#500

**Full Changelog**:
quantizor/markdown-to-jsx@v7.2.1...v7.3.0

###
[`v7.2.1`](https://togithub.com/probablyup/markdown-to-jsx/releases/tag/v7.2.1)

[Compare
Source](https://togithub.com/probablyup/markdown-to-jsx/compare/v7.2.0...v7.2.1)

#### What's Changed

- fix: move `types` condition to the front by
[@&#8203;Andarist](https://togithub.com/Andarist) in
[quantizor/markdown-to-jsx#492

#### New Contributors

- [@&#8203;Andarist](https://togithub.com/Andarist) made their first
contribution in
[quantizor/markdown-to-jsx#492

**Full Changelog**:
quantizor/markdown-to-jsx@v7.2.0...v7.2.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
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/kivra/toybox).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marcus Tisäter <77273035+marcustisater-kivra@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.

None yet

2 participants