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

feat: introduce warning system for deprecated API #788

Merged
merged 1 commit into from
Sep 26, 2024
Merged

feat: introduce warning system for deprecated API #788

merged 1 commit into from
Sep 26, 2024

Conversation

antfu
Copy link
Member

@antfu antfu commented Sep 26, 2024

No description provided.

This comment was marked as off-topic.

This comment was marked as duplicate.

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 82.35294% with 9 lines in your changes missing coverage. Please review.

Project coverage is 93.12%. Comparing base (85a4ff9) to head (f59d27d).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/core/src/warn.ts 75.00% 2 Missing ⚠️
packages/engine-oniguruma/src/index.ts 71.42% 2 Missing ⚠️
packages/core/src/constructors/bundle-factory.ts 50.00% 1 Missing ⚠️
packages/core/src/constructors/internal.ts 83.33% 1 Missing ⚠️
packages/shiki/src/bundle-full.ts 50.00% 1 Missing ⚠️
packages/shiki/src/bundle-web.ts 50.00% 1 Missing ⚠️
packages/shiki/src/core-unwasm.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #788      +/-   ##
==========================================
- Coverage   93.20%   93.12%   -0.08%     
==========================================
  Files          74       75       +1     
  Lines        4519     4554      +35     
  Branches     1008     1015       +7     
==========================================
+ Hits         4212     4241      +29     
- Misses        298      304       +6     
  Partials        9        9              
Flag Coverage Δ
93.12% <82.35%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@antfu antfu merged commit 4e59b65 into main Sep 26, 2024
11 of 13 checks passed
@antfu antfu deleted the feat/warn branch September 26, 2024 02:59
chgeo referenced this pull request in cap-js/docs Sep 26, 2024
…#1281)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@shikijs/vitepress-twoslash](https://redirect.github.com/shikijs/shiki)
([source](https://redirect.github.com/shikijs/shiki/tree/HEAD/packages/vitepress-twoslash))
| [`1.18.0` ->
`1.19.0`](https://renovatebot.com/diffs/npm/@shikijs%2fvitepress-twoslash/1.18.0/1.19.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@shikijs%2fvitepress-twoslash/1.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@shikijs%2fvitepress-twoslash/1.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@shikijs%2fvitepress-twoslash/1.18.0/1.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@shikijs%2fvitepress-twoslash/1.18.0/1.19.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>shikijs/shiki (@&#8203;shikijs/vitepress-twoslash)</summary>

###
[`v1.19.0`](https://redirect.github.com/shikijs/shiki/releases/tag/v1.19.0)

[Compare
Source](https://redirect.github.com/shikijs/shiki/compare/v1.18.0...v1.19.0)

#####    🚀 Features

- Introduce warning system for deprecated API  -  by
[@&#8203;antfu](https://redirect.github.com/antfu) in
[https://github.com/shikijs/shiki/issues/788](https://redirect.github.com/shikijs/shiki/issues/788)
[<samp>(4e59b)</samp>](https://redirect.github.com/shikijs/shiki/commit/4e59b65d)
-   **core**:
- Pass raw token to `transformer.span` api  -  by
[@&#8203;zzuu666](https://redirect.github.com/zzuu666) in
[https://github.com/shikijs/shiki/issues/782](https://redirect.github.com/shikijs/shiki/issues/782)
[<samp>(bba45)</samp>](https://redirect.github.com/shikijs/shiki/commit/bba452c4)
- Support object style `htmlStyle` in themed token, support new
`htmlAttrs`  -  by [@&#8203;antfu](https://redirect.github.com/antfu)
[<samp>(85a4f)</samp>](https://redirect.github.com/shikijs/shiki/commit/85a4ff94)

#####     [View changes on
GitHub](https://redirect.github.com/shikijs/shiki/compare/v1.18.0...v1.19.0)

</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 was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/cap-js/docs).

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

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.

1 participant