Skip to content

fix(rehype): fix type issues #699

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

Merged
merged 2 commits into from
Jun 15, 2024
Merged

Conversation

remcohaszing
Copy link
Contributor

Description

The augmented hast Data interface conflicts with ElementData from mdast-util-to-hast. The augmentation is redundant, so it’s removed entirely.

The augmented hast Properties interface was redundant and invalid. Instead, the value is now converted to string in the place it is used.

Linked Issues

DefinitelyTyped/DefinitelyTyped#69775

Additional context

You should only augment interfaces if you define something, not if you consume it.

Copy link

netlify bot commented Jun 13, 2024

Deploy Preview for shiki-matsu ready!

Name Link
🔨 Latest commit d5888e6
🔍 Latest deploy log https://app.netlify.com/sites/shiki-matsu/deploys/666ad33f92bcff0008e68962
😎 Deploy Preview https://deploy-preview-699--shiki-matsu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 13, 2024

Deploy Preview for shiki-next ready!

Name Link
🔨 Latest commit d5888e6
🔍 Latest deploy log https://app.netlify.com/sites/shiki-next/deploys/666ad33f389a88000894b391
😎 Deploy Preview https://deploy-preview-699--shiki-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
The augmented hast `Data` interface conflicts with `ElementData` from
`mdast-util-to-hast`. The augmentation is redundant, so it’s removed
entirely.

The augmented hast `Properties` interface was redundant and invalid.
Instead, the value is now converted to string in the place it is used.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@antfu antfu merged commit 0297cd9 into shikijs:main Jun 15, 2024
11 checks passed
@remcohaszing remcohaszing deleted the fix-type-issues branch June 15, 2024 21:29
renovate bot referenced this pull request in r4ai/r4ai.dev Jun 16, 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 |
|---|---|---|---|---|---|
| [shiki](https://togithub.com/shikijs/shiki)
([source](https://togithub.com/shikijs/shiki/tree/HEAD/packages/shiki))
| [`1.6.4` ->
`1.6.5`](https://renovatebot.com/diffs/npm/shiki/1.6.4/1.6.5) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/shiki/1.6.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/shiki/1.6.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/shiki/1.6.4/1.6.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/shiki/1.6.4/1.6.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>shikijs/shiki (shiki)</summary>

### [`v1.6.5`](https://togithub.com/shikijs/shiki/releases/tag/v1.6.5)

[Compare
Source](https://togithub.com/shikijs/shiki/compare/v1.6.4...v1.6.5)

#####    🐞 Bug Fixes

- **rehype**: Fix type issues  -  by
[@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[https://github.com/shikijs/shiki/issues/699](https://togithub.com/shikijs/shiki/issues/699)
[<samp>(0297c)</samp>](https://togithub.com/shikijs/shiki/commit/0297cd94)

#####    🏎 Performance

- Improve performance for the `includeExplanation` option  -  by
[@&#8203;thetarnav](https://togithub.com/thetarnav) in
[https://github.com/shikijs/shiki/issues/701](https://togithub.com/shikijs/shiki/issues/701)
[<samp>(966e7)</samp>](https://togithub.com/shikijs/shiki/commit/966e7e40)

#####     [View changes on
GitHub](https://togithub.com/shikijs/shiki/compare/v1.6.4...v1.6.5)

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **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/r4ai/r4ai.dev).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
diegohaz referenced this pull request in ariakit/ariakit Jun 18, 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 |
|---|---|---|---|---|---|
| [shiki](https://togithub.com/shikijs/shiki)
([source](https://togithub.com/shikijs/shiki/tree/HEAD/packages/shiki))
| [`1.6.4` ->
`1.7.0`](https://renovatebot.com/diffs/npm/shiki/1.6.4/1.7.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/shiki/1.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/shiki/1.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/shiki/1.6.4/1.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/shiki/1.6.4/1.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>shikijs/shiki (shiki)</summary>

### [`v1.7.0`](https://togithub.com/shikijs/shiki/releases/tag/v1.7.0)

[Compare
Source](https://togithub.com/shikijs/shiki/compare/v1.6.5...v1.7.0)

#####    🚀 Features

- **core**: Warning on too many instances, close
[#&#8203;693](https://togithub.com/shikijs/shiki/issues/693)  -  by
[@&#8203;antfu](https://togithub.com/antfu) in
[https://github.com/shikijs/shiki/issues/693](https://togithub.com/shikijs/shiki/issues/693)
[<samp>(412fe)</samp>](https://togithub.com/shikijs/shiki/commit/412fe10e)

#####    🐞 Bug Fixes

- **core**: Add missing `UTF8ToString` function, close
[#&#8203;693](https://togithub.com/shikijs/shiki/issues/693)  -  by
[@&#8203;antfu](https://togithub.com/antfu) in
[https://github.com/shikijs/shiki/issues/693](https://togithub.com/shikijs/shiki/issues/693)
[<samp>(0c891)</samp>](https://togithub.com/shikijs/shiki/commit/0c89157f)

#####     [View changes on
GitHub](https://togithub.com/shikijs/shiki/compare/v1.6.5...v1.7.0)

### [`v1.6.5`](https://togithub.com/shikijs/shiki/releases/tag/v1.6.5)

[Compare
Source](https://togithub.com/shikijs/shiki/compare/v1.6.4...v1.6.5)

#####    🐞 Bug Fixes

- **rehype**: Fix type issues  -  by
[@&#8203;remcohaszing](https://togithub.com/remcohaszing) in
[https://github.com/shikijs/shiki/issues/699](https://togithub.com/shikijs/shiki/issues/699)
[<samp>(0297c)</samp>](https://togithub.com/shikijs/shiki/commit/0297cd94)

#####    🏎 Performance

- Improve performance for the `includeExplanation` option  -  by
[@&#8203;thetarnav](https://togithub.com/thetarnav) in
[https://github.com/shikijs/shiki/issues/701](https://togithub.com/shikijs/shiki/issues/701)
[<samp>(966e7)</samp>](https://togithub.com/shikijs/shiki/commit/966e7e40)

#####     [View changes on
GitHub](https://togithub.com/shikijs/shiki/compare/v1.6.4...v1.6.5)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

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.

None yet

3 participants