-
-
Notifications
You must be signed in to change notification settings - Fork 375
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(perf): wrap json data with JSON.parse
to speed up rebundling
#781
Conversation
✅ Deploy Preview for shiki-matsu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for shiki-next ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #781 +/- ##
=======================================
Coverage 93.19% 93.19%
=======================================
Files 74 74
Lines 4512 4512
Branches 1009 1009
=======================================
Hits 4205 4205
Misses 298 298
Partials 9 9 ☔ View full report in Codecov by Sentry. |
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [shiki](https://github.com/shikijs/shiki) ([source](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki)) | [`1.17.7` -> `1.18.0`](https://renovatebot.com/diffs/npm/shiki/1.17.7/1.18.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/shiki/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/shiki/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/shiki/1.17.7/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/shiki/1.17.7/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [simple-git](https://github.com/steveukx/git-js) ([source](https://github.com/steveukx/git-js/tree/HEAD/simple-git)) | [`3.26.0` -> `3.27.0`](https://renovatebot.com/diffs/npm/simple-git/3.26.0/3.27.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/simple-git/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/simple-git/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/simple-git/3.26.0/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/simple-git/3.26.0/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>shikijs/shiki (shiki)</summary> ### [`v1.18.0`](https://github.com/shikijs/shiki/releases/tag/v1.18.0) [Compare Source](https://github.com/shikijs/shiki/compare/v1.17.7...v1.18.0) ##### 🚀 Features - **perf**: Wrap json data with `JSON.parse` to speed up rebundling - by [@​antfu](https://github.com/antfu) in [https://github.com/shikijs/shiki/issues/781](https://github.com/shikijs/shiki/issues/781) [<samp>(bbfce)</samp>](https://github.com/shikijs/shiki/commit/bbfceeef) - **twoslash**: Introduce `disableTriggers`, close [#​780](https://github.com/shikijs/shiki/issues/780) - by [@​antfu](https://github.com/antfu) in [https://github.com/shikijs/shiki/issues/780](https://github.com/shikijs/shiki/issues/780) [<samp>(dca6a)</samp>](https://github.com/shikijs/shiki/commit/dca6a488) ##### [View changes on GitHub](https://github.com/shikijs/shiki/compare/v1.17.7...v1.18.0) </details> <details> <summary>steveukx/git-js (simple-git)</summary> ### [`v3.27.0`](https://github.com/steveukx/git-js/blob/HEAD/simple-git/CHANGELOG.md#3270) [Compare Source](https://github.com/steveukx/git-js/compare/simple-git@3.26.0...simple-git@3.27.0) ##### Minor Changes - [`52f767b`](https://github.com/steveukx/git-js/commit/52f767b): Add `similarity` to the `DiffResultNameStatusFile` interface used when fetching log/diff with the `--name-status` option. - [`739b0d9`](https://github.com/steveukx/git-js/commit/739b0d9): Diff summary includes original name of renamed files when run wiht the `--name-status` option. - [`bc90e7e`](https://github.com/steveukx/git-js/commit/bc90e7e): Fixes an issue with reporting name changes in the `files` array returned by `git.status`. Thank you [@​mark-codesphere](https://github.com/mark-codesphere) for the contribution. ##### Patch Changes - [`03e1c64`](https://github.com/steveukx/git-js/commit/03e1c64): Resolve error in log parsing when fields have empty values. </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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- 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/toeverything/blocksuite). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@floating-ui/dom](https://floating-ui.com) ([source](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom)) | [`1.6.10` -> `1.6.11`](https://renovatebot.com/diffs/npm/@floating-ui%2fdom/1.6.10/1.6.11) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@floating-ui%2fdom/1.6.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@floating-ui%2fdom/1.6.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@floating-ui%2fdom/1.6.10/1.6.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@floating-ui%2fdom/1.6.10/1.6.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [happy-dom](https://github.com/capricorn86/happy-dom) | [`15.7.3` -> `15.7.4`](https://renovatebot.com/diffs/npm/happy-dom/15.7.3/15.7.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/15.7.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/happy-dom/15.7.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/happy-dom/15.7.3/15.7.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/15.7.3/15.7.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [husky](https://github.com/typicode/husky) | [`9.1.5` -> `9.1.6`](https://renovatebot.com/diffs/npm/husky/9.1.5/9.1.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/husky/9.1.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/husky/9.1.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/husky/9.1.5/9.1.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/husky/9.1.5/9.1.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [nyc](https://istanbul.js.org/) ([source](https://github.com/istanbuljs/nyc)) | [`17.0.0` -> `17.1.0`](https://renovatebot.com/diffs/npm/nyc/17.0.0/17.1.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/nyc/17.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/nyc/17.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/nyc/17.0.0/17.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/nyc/17.0.0/17.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [rollup](https://rollupjs.org/) ([source](https://github.com/rollup/rollup)) | [`4.21.2` -> `4.22.2`](https://renovatebot.com/diffs/npm/rollup/4.21.2/4.22.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/rollup/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/rollup/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/rollup/4.21.2/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/rollup/4.21.2/4.22.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [shiki](https://github.com/shikijs/shiki) ([source](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki)) | [`1.17.0` -> `1.18.0`](https://renovatebot.com/diffs/npm/shiki/1.17.0/1.18.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/shiki/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/shiki/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/shiki/1.17.0/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/shiki/1.17.0/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [simple-git](https://github.com/steveukx/git-js) ([source](https://github.com/steveukx/git-js/tree/HEAD/simple-git)) | [`3.26.0` -> `3.27.0`](https://renovatebot.com/diffs/npm/simple-git/3.26.0/3.27.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/simple-git/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/simple-git/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/simple-git/3.26.0/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/simple-git/3.26.0/3.27.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [simple-xml-to-json](https://github.com/nirgit/simple-xml-to-json) | [`1.2.2` -> `1.2.3`](https://renovatebot.com/diffs/npm/simple-xml-to-json/1.2.2/1.2.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/simple-xml-to-json/1.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/simple-xml-to-json/1.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/simple-xml-to-json/1.2.2/1.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/simple-xml-to-json/1.2.2/1.2.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [terser](https://terser.org) ([source](https://github.com/terser/terser)) | [`5.32.0` -> `5.33.0`](https://renovatebot.com/diffs/npm/terser/5.32.0/5.33.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/terser/5.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/terser/5.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/terser/5.32.0/5.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/terser/5.32.0/5.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [tsx](https://tsx.is) ([source](https://github.com/privatenumber/tsx)) | [`4.19.0` -> `4.19.1`](https://renovatebot.com/diffs/npm/tsx/4.19.0/4.19.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/tsx/4.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tsx/4.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tsx/4.19.0/4.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tsx/4.19.0/4.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [vue](https://github.com/vuejs/core/tree/main/packages/vue#readme) ([source](https://github.com/vuejs/core)) | [`3.5.4` -> `3.5.6`](https://renovatebot.com/diffs/npm/vue/3.5.4/3.5.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vue/3.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vue/3.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vue/3.5.4/3.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vue/3.5.4/3.5.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>floating-ui/floating-ui (@​floating-ui/dom)</summary> ### [`v1.6.11`](https://github.com/floating-ui/floating-ui/blob/HEAD/packages/dom/CHANGELOG.md#1611) [Compare Source](https://github.com/floating-ui/floating-ui/compare/@floating-ui/dom@1.6.10...@floating-ui/dom@1.6.11) ##### Patch Changes - fix: handle html relative offset - Update dependencies: `@floating-ui/utils@0.2.8` </details> <details> <summary>capricorn86/happy-dom (happy-dom)</summary> ### [`v15.7.4`](https://github.com/capricorn86/happy-dom/releases/tag/v15.7.4) [Compare Source](https://github.com/capricorn86/happy-dom/compare/v15.7.3...v15.7.4) ##### 👷♂️ Patch fixes - Fixes incorrect handling of non-node items inserted using `replaceWith()`, `before()` and `after()` - By **[@​BenjaminAster](https://github.com/BenjaminAster)** in task [#​1533](https://github.com/capricorn86/happy-dom/issues/1533) </details> <details> <summary>typicode/husky (husky)</summary> ### [`v9.1.6`](https://github.com/typicode/husky/compare/v9.1.5...a2d942a670b3d6a04578005a0fd2dc310e511849) [Compare Source](https://github.com/typicode/husky/compare/v9.1.5...v9.1.6) </details> <details> <summary>istanbuljs/nyc (nyc)</summary> ### [`v17.1.0`](https://github.com/istanbuljs/nyc/blob/HEAD/CHANGELOG.md#1710-2024-09-19) [Compare Source](https://github.com/istanbuljs/nyc/compare/nyc-v17.0.0...nyc-v17.1.0) ##### Features - **deps:** bump foreground-child from ^2.0.0 to ^3.0.0 ([#​1546](https://github.com/istanbuljs/nyc/issues/1546)) ([af74d1e](https://github.com/istanbuljs/nyc/commit/af74d1eae6c598f05f6de9332cf4f83b63286fcb)) ##### Bug Fixes - reduce size of serialized JSON output ([#​1570](https://github.com/istanbuljs/nyc/issues/1570)) ([ae657b6](https://github.com/istanbuljs/nyc/commit/ae657b66264fe7c19a710271510e41b94a152cfa)) </details> <details> <summary>rollup/rollup (rollup)</summary> ### [`v4.22.2`](https://github.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4222) [Compare Source](https://github.com/rollup/rollup/compare/v4.22.1...v4.22.2) *2024-09-20* ##### Bug Fixes - Revert fix for side effect free modules until other issues are investigated ([#​5667](https://github.com/rollup/rollup/issues/5667)) ##### Pull Requests - [#​5667](https://github.com/rollup/rollup/pull/5667): Partially revert [#​5658](https://github.com/rollup/rollup/issues/5658) and re-apply [#​5644](https://github.com/rollup/rollup/issues/5644) ([@​lukastaegert](https://github.com/lukastaegert)) ### [`v4.22.1`](https://github.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4221) [Compare Source](https://github.com/rollup/rollup/compare/v4.22.0...v4.22.1) *2024-09-20* ##### Bug Fixes - Revert [#​5644](https://github.com/rollup/rollup/issues/5644) "stable chunk hashes" while issues are being investigated ##### Pull Requests - [#​5663](https://github.com/rollup/rollup/pull/5663): chore(deps): update dependency inquirer to v11 ([@​renovate](https://github.com/renovate)\[bot], [@​lukastaegert](https://github.com/lukastaegert)) - [#​5664](https://github.com/rollup/rollup/pull/5664): chore(deps): lock file maintenance minor/patch updates ([@​renovate](https://github.com/renovate)\[bot]) - [#​5665](https://github.com/rollup/rollup/pull/5665): fix: type in CI file ([@​YuHyeonWook](https://github.com/YuHyeonWook)) - [#​5666](https://github.com/rollup/rollup/pull/5666): chore(deps): lock file maintenance minor/patch updates ([@​renovate](https://github.com/renovate)\[bot]) ### [`v4.22.0`](https://github.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4220) [Compare Source](https://github.com/rollup/rollup/compare/v4.21.3...v4.22.0) *2024-09-19* ##### Features - Add additional known global values to avoid access side effects ([#​5651](https://github.com/rollup/rollup/issues/5651)) ##### Bug Fixes - Ensure deterministic chunk hash generation despite async renderChunk hook ([#​5644](https://github.com/rollup/rollup/issues/5644)) - Improve side effect detection when using "smallest" treeshaking preset when imports are optimized away ([#​5658](https://github.com/rollup/rollup/issues/5658)) ##### Pull Requests - [#​5644](https://github.com/rollup/rollup/pull/5644): fix: apply final hashes deterministically with stable placeholders set ([@​mattkubej](https://github.com/mattkubej), [@​lukastaegert](https://github.com/lukastaegert)) - [#​5646](https://github.com/rollup/rollup/pull/5646): chore(deps): update dependency [@​mermaid-js/mermaid-cli](https://github.com/mermaid-js/mermaid-cli) to v11 ([@​renovate](https://github.com/renovate)\[bot]) - [#​5647](https://github.com/rollup/rollup/pull/5647): chore(deps): update dependency concurrently to v9 ([@​renovate](https://github.com/renovate)\[bot]) - [#​5648](https://github.com/rollup/rollup/pull/5648): chore(deps): lock file maintenance minor/patch updates ([@​renovate](https://github.com/renovate)\[bot]) - [#​5651](https://github.com/rollup/rollup/pull/5651): feat: add `AggregateError`, `FinalizationRegistry`, `WeakRef` to knownGlobals ([@​re-taro](https://github.com/re-taro)) - [#​5653](https://github.com/rollup/rollup/pull/5653): Fix example selection in REPL ([@​lukastaegert](https://github.com/lukastaegert)) - [#​5657](https://github.com/rollup/rollup/pull/5657): chore(deps): update dependency vite to v5.4.6 \[security] ([@​renovate](https://github.com/renovate)\[bot]) - [#​5658](https://github.com/rollup/rollup/pull/5658): Detect variable reassignments in modules without side effects ([@​lukastaegert](https://github.com/lukastaegert)) ### [`v4.21.3`](https://github.com/rollup/rollup/blob/HEAD/CHANGELOG.md#4213) [Compare Source](https://github.com/rollup/rollup/compare/v4.21.2...v4.21.3) *2024-09-12* ##### Bug Fixes - Always respect side effects in left-hand side of optional chain ([#​5642](https://github.com/rollup/rollup/issues/5642)) - Update stack trace for augmented errors to not hide relevant information ([#​5640](https://github.com/rollup/rollup/issues/5640)) ##### Pull Requests - [#​5636](https://github.com/rollup/rollup/pull/5636): chore(deps): lock file maintenance minor/patch updates ([@​renovate](https://github.com/renovate)\[bot]) - [#​5637](https://github.com/rollup/rollup/pull/5637): chore(deps): lock file maintenance ([@​renovate](https://github.com/renovate)\[bot]) - [#​5640](https://github.com/rollup/rollup/pull/5640): fix: keep the message of stack up-to-date ([@​TrickyPi](https://github.com/TrickyPi)) - [#​5642](https://github.com/rollup/rollup/pull/5642): fix: include left-side effect of optional chaining in the end of hasEffectsAsChainElement ([@​TrickyPi](https://github.com/TrickyPi)) </details> <details> <summary>shikijs/shiki (shiki)</summary> ### [`v1.18.0`](https://github.com/shikijs/shiki/releases/tag/v1.18.0) [Compare Source](https://github.com/shikijs/shiki/compare/v1.17.7...v1.18.0) ##### 🚀 Features - **perf**: Wrap json data with `JSON.parse` to speed up rebundling - by [@​antfu](https://github.com/antfu) in [https://github.com/shikijs/shiki/issues/781](https://github.com/shikijs/shiki/issues/781) [<samp>(bbfce)</samp>](https://github.com/shikijs/shiki/commit/bbfceeef) - **twoslash**: Introduce `disableTriggers`, close [#​780](https://github.com/shikijs/shiki/issues/780) - by [@​antfu](https://github.com/antfu) in [https://github.com/shikijs/shiki/issues/780](https://github.com/shikijs/shiki/issues/780) [<samp>(dca6a)</samp>](https://github.com/shikijs/shiki/commit/dca6a488) ##### [View changes on GitHub](https://github.com/shikijs/shiki/compare/v1.17.7...v1.18.0) ### [`v1.17.7`](https://github.com/shikijs/shiki/releases/tag/v1.17.7) [Compare Source](https://github.com/shikijs/shiki/compare/v1.17.6...v1.17.7) ##### 🚀 Features - Allow customize `tabindex`, close [#​778](https://github.com/shikijs/shiki/issues/778) - by [@​antfu](https://github.com/antfu) in [https://github.com/shikijs/shiki/issues/778](https://github.com/shikijs/shiki/issues/778) [<samp>(52b05)</samp>](https://github.com/shikijs/shiki/commit/52b055d7) - Update grammar - by [@​antfu](https://github.com/antfu) [<samp>(a560b)</samp>](https://github.com/shikijs/shiki/commit/a560bccc) ##### [View changes on GitHub](https://github.com/shikijs/shiki/compare/v1.17.6...v1.17.7) ### [`v1.17.6`](https://github.com/shikijs/shiki/releases/tag/v1.17.6) [Compare Source](https://github.com/shikijs/shiki/compare/v1.17.5...v1.17.6) ##### 🚀 Features - **engine-js**: - Improve js engine by replacing hard-coded recursive reference - by [@​antfu](https://github.com/antfu) [<samp>(b3d49)</samp>](https://github.com/shikijs/shiki/commit/b3d493b9) - Improve js engine handling for markdown - by [@​antfu](https://github.com/antfu) [<samp>(b05d8)</samp>](https://github.com/shikijs/shiki/commit/b05d838d) ##### 🐞 Bug Fixes - Missing named exports for `shiki/wasm` and `@shikijs/wasm-inlined` - by [@​antfu](https://github.com/antfu) [<samp>(3f226)</samp>](https://github.com/shikijs/shiki/commit/3f2269e9) ##### [View changes on GitHub](https://github.com/shikijs/shiki/compare/v1.17.5...v1.17.6) ### [`v1.17.5`](https://github.com/shikijs/shiki/releases/tag/v1.17.5) [Compare Source](https://github.com/shikijs/shiki/compare/v1.17.4...v1.17.5) ##### 🚀 Features - Update grammars - by [@​antfu](https://github.com/antfu) [<samp>(b61e4)</samp>](https://github.com/shikijs/shiki/commit/b61e4e31) - **engine-js**: - Supports contiguous anchor simulation - by [@​antfu](https://github.com/antfu) [<samp>(43ecc)</samp>](https://github.com/shikijs/shiki/commit/43ecce79) - Introduce `simulation` option - by [@​antfu](https://github.com/antfu) [<samp>(adf99)</samp>](https://github.com/shikijs/shiki/commit/adf99f2f) ##### [View changes on GitHub](https://github.com/shikijs/shiki/compare/v1.17.4...v1.17.5) ### [`v1.17.4`](https://github.com/shikijs/shiki/releases/tag/v1.17.4) [Compare Source](https://github.com/shikijs/shiki/compare/v1.17.0...v1.17.4) *No significant changes* ##### [View changes on GitHub](https://github.com/shikijs/shiki/compare/v1.17.3...v1.17.4) </details> <details> <summary>steveukx/git-js (simple-git)</summary> ### [`v3.27.0`](https://github.com/steveukx/git-js/blob/HEAD/simple-git/CHANGELOG.md#3270) [Compare Source](https://github.com/steveukx/git-js/compare/simple-git@3.26.0...simple-git@3.27.0) ##### Minor Changes - [`52f767b`](https://github.com/steveukx/git-js/commit/52f767b): Add `similarity` to the `DiffResultNameStatusFile` interface used when fetching log/diff with the `--name-status` option. - [`739b0d9`](https://github.com/steveukx/git-js/commit/739b0d9): Diff summary includes original name of renamed files when run wiht the `--name-status` option. - [`bc90e7e`](https://github.com/steveukx/git-js/commit/bc90e7e): Fixes an issue with reporting name changes in the `files` array returned by `git.status`. Thank you [@​mark-codesphere](https://github.com/mark-codesphere) for the contribution. ##### Patch Changes - [`03e1c64`](https://github.com/steveukx/git-js/commit/03e1c64): Resolve error in log parsing when fields have empty values. </details> <details> <summary>nirgit/simple-xml-to-json (simple-xml-to-json)</summary> ### [`v1.2.3`](https://github.com/nirgit/simple-xml-to-json/compare/bbff7d47ecac44a277da200fe8eda2ba906ecc53...fd80a141ba383061b202c28916a62046e77b8ef9) [Compare Source](https://github.com/nirgit/simple-xml-to-json/compare/bbff7d47ecac44a277da200fe8eda2ba906ecc53...fd80a141ba383061b202c28916a62046e77b8ef9) </details> <details> <summary>terser/terser (terser)</summary> ### [`v5.33.0`](https://github.com/terser/terser/blob/HEAD/CHANGELOG.md#v5330) [Compare Source](https://github.com/terser/terser/compare/v5.32.0...v5.33.0) - `reduce_vars` improved when dealing with hoisted function definitions ([#​1544](https://github.com/terser/terser/issues/1544)) </details> <details> <summary>privatenumber/tsx (tsx)</summary> ### [`v4.19.1`](https://github.com/privatenumber/tsx/compare/v4.19.0...0329bfc731346d6c8b6055c7f2882e5c3155a7ec) [Compare Source](https://github.com/privatenumber/tsx/compare/v4.19.0...v4.19.1) </details> <details> <summary>vuejs/core (vue)</summary> ### [`v3.5.6`](https://github.com/vuejs/core/blob/HEAD/CHANGELOG.md#356-2024-09-16) [Compare Source](https://github.com/vuejs/core/compare/v3.5.5...v3.5.6) ##### Bug Fixes - **compile-dom:** should be able to stringify mathML ([#​11891](https://github.com/vuejs/core/issues/11891)) ([85c138c](https://github.com/vuejs/core/commit/85c138ced108268f7656b568dfd3036a1e0aae34)) - **compiler-sfc:** preserve old behavior when using withDefaults with desutructure ([8492c3c](https://github.com/vuejs/core/commit/8492c3c49a922363d6c77ef192c133a8fbce6514)), closes [#​11930](https://github.com/vuejs/core/issues/11930) - **reactivity:** avoid exponential perf cost and reduce call stack depth for deeply chained computeds ([#​11944](https://github.com/vuejs/core/issues/11944)) ([c74bb8c](https://github.com/vuejs/core/commit/c74bb8c2dd9e82aaabb0a2a2b368e900929b513b)), closes [#​11928](https://github.com/vuejs/core/issues/11928) - **reactivity:** rely on dirty check only when computed has deps ([#​11931](https://github.com/vuejs/core/issues/11931)) ([aa5dafd](https://github.com/vuejs/core/commit/aa5dafd2b55d42d6a29316a3bc91aea85c676a0b)), closes [#​11929](https://github.com/vuejs/core/issues/11929) - **watch:** `once` option should be ignored by watchEffect ([#​11884](https://github.com/vuejs/core/issues/11884)) ([49fa673](https://github.com/vuejs/core/commit/49fa673493d93b77ddba2165ab6545bae84fd1ae)) - **watch:** unwatch should be callable during SSR ([#​11925](https://github.com/vuejs/core/issues/11925)) ([2d6adf7](https://github.com/vuejs/core/commit/2d6adf78a047eed091db277ffbd9df0822fb0bdd)), closes [#​11924](https://github.com/vuejs/core/issues/11924) ### [`v3.5.5`](https://github.com/vuejs/core/blob/HEAD/CHANGELOG.md#355-2024-09-13) [Compare Source](https://github.com/vuejs/core/compare/v3.5.4...v3.5.5) ##### Bug Fixes - **compiler-core:** fix handling of delimiterOpen in VPre ([#​11915](https://github.com/vuejs/core/issues/11915)) ([706d4ac](https://github.com/vuejs/core/commit/706d4ac1d0210b2d9134b3228280187fe02fc971)), closes [#​11913](https://github.com/vuejs/core/issues/11913) - **compiler-dom:** fix stringify static edge for partially eligible chunks in cached parent ([1d99d61](https://github.com/vuejs/core/commit/1d99d61c1bd77f9ea6743f6214a82add8346a121)), closes [#​11879](https://github.com/vuejs/core/issues/11879) [#​11890](https://github.com/vuejs/core/issues/11890) - **compiler-dom:** should ignore leading newline in <textarea> per spec ([3c4bf76](https://github.com/vuejs/core/commit/3c4bf7627649ec1e3220f8c4e4163c20d2afb367)) - **compiler-sfc:** nested css supports atrule and comment ([#​11899](https://github.com/vuejs/core/issues/11899)) ([0e7bc71](https://github.com/vuejs/core/commit/0e7bc717e6640644f062957ec5031506f0dab215)), closes [#​11896](https://github.com/vuejs/core/issues/11896) - **custom-element:** handle nested customElement mount w/ shadowRoot false ([#​11861](https://github.com/vuejs/core/issues/11861)) ([f2d8019](https://github.com/vuejs/core/commit/f2d801918841e7673ff3f048d0d895592a2f7e23)), closes [#​11851](https://github.com/vuejs/core/issues/11851) [#​11871](https://github.com/vuejs/core/issues/11871) - **hmr:** reload async child wrapped in Suspense + KeepAlive ([#​11907](https://github.com/vuejs/core/issues/11907)) ([10a2c60](https://github.com/vuejs/core/commit/10a2c6053bd30d160d0214bb3566f540187e6874)), closes [#​11868](https://github.com/vuejs/core/issues/11868) - **hydration:** fix mismatch of leading newline in <textarea> and <pre> ([a5f3c2e](https://github.com/vuejs/core/commit/a5f3c2eb4d2e7fae93ff93ce865b269f01cc825e)), closes [#​11873](https://github.com/vuejs/core/issues/11873) [#​11874](https://github.com/vuejs/core/issues/11874) - **reactivity:** properly clean up deps, fix memory leak ([8ea5d6d](https://github.com/vuejs/core/commit/8ea5d6d6981ab7febda0be43c3c92b18869c3a2a)), closes [#​11901](https://github.com/vuejs/core/issues/11901) - **runtime-core:** properly update async component nested in KeepAlive ([#​11917](https://github.com/vuejs/core/issues/11917)) ([7fe6c79](https://github.com/vuejs/core/commit/7fe6c795a1fc7ddcea5ad91a56141561192373ac)), closes [#​11916](https://github.com/vuejs/core/issues/11916) - **TransitionGroup:** not warn unkeyed text children with whitespece preserve ([#​11888](https://github.com/vuejs/core/issues/11888)) ([7571f20](https://github.com/vuejs/core/commit/7571f20bc3d1854377a146f41d211e05bb68cd47)), closes [#​11885](https://github.com/vuejs/core/issues/11885) </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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- 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/toeverything/blocksuite). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
…#1255) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@shikijs/vitepress-twoslash](https://github.com/shikijs/shiki) ([source](https://github.com/shikijs/shiki/tree/HEAD/packages/vitepress-twoslash)) | [`1.17.5` -> `1.18.0`](https://renovatebot.com/diffs/npm/@shikijs%2fvitepress-twoslash/1.17.5/1.18.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@shikijs%2fvitepress-twoslash/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@shikijs%2fvitepress-twoslash/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@shikijs%2fvitepress-twoslash/1.17.5/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@shikijs%2fvitepress-twoslash/1.17.5/1.18.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>shikijs/shiki (@​shikijs/vitepress-twoslash)</summary> ### [`v1.18.0`](https://github.com/shikijs/shiki/releases/tag/v1.18.0) [Compare Source](https://github.com/shikijs/shiki/compare/v1.17.7...v1.18.0) ##### 🚀 Features - **perf**: Wrap json data with `JSON.parse` to speed up rebundling - by [@​antfu](https://github.com/antfu) in [https://github.com/shikijs/shiki/issues/781](https://github.com/shikijs/shiki/issues/781) [<samp>(bbfce)</samp>](https://github.com/shikijs/shiki/commit/bbfceeef) - **twoslash**: Introduce `disableTriggers`, close [#​780](https://github.com/shikijs/shiki/issues/780) - by [@​antfu](https://github.com/antfu) in [https://github.com/shikijs/shiki/issues/780](https://github.com/shikijs/shiki/issues/780) [<samp>(dca6a)</samp>](https://github.com/shikijs/shiki/commit/dca6a488) ##### [View changes on GitHub](https://github.com/shikijs/shiki/compare/v1.17.7...v1.18.0) ### [`v1.17.7`](https://github.com/shikijs/shiki/releases/tag/v1.17.7) [Compare Source](https://github.com/shikijs/shiki/compare/v1.17.6...v1.17.7) ##### 🚀 Features - Allow customize `tabindex`, close [#​778](https://github.com/shikijs/shiki/issues/778) - by [@​antfu](https://github.com/antfu) in [https://github.com/shikijs/shiki/issues/778](https://github.com/shikijs/shiki/issues/778) [<samp>(52b05)</samp>](https://github.com/shikijs/shiki/commit/52b055d7) - Update grammar - by [@​antfu](https://github.com/antfu) [<samp>(a560b)</samp>](https://github.com/shikijs/shiki/commit/a560bccc) ##### [View changes on GitHub](https://github.com/shikijs/shiki/compare/v1.17.6...v1.17.7) ### [`v1.17.6`](https://github.com/shikijs/shiki/releases/tag/v1.17.6) [Compare Source](https://github.com/shikijs/shiki/compare/v1.17.5...v1.17.6) ##### 🚀 Features - **engine-js**: - Improve js engine by replacing hard-coded recursive reference - by [@​antfu](https://github.com/antfu) [<samp>(b3d49)</samp>](https://github.com/shikijs/shiki/commit/b3d493b9) - Improve js engine handling for markdown - by [@​antfu](https://github.com/antfu) [<samp>(b05d8)</samp>](https://github.com/shikijs/shiki/commit/b05d838d) ##### 🐞 Bug Fixes - Missing named exports for `shiki/wasm` and `@shikijs/wasm-inlined` - by [@​antfu](https://github.com/antfu) [<samp>(3f226)</samp>](https://github.com/shikijs/shiki/commit/3f2269e9) ##### [View changes on GitHub](https://github.com/shikijs/shiki/compare/v1.17.5...v1.17.6) </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:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR changes the bundled grammars and themes to use
JSON.parse("{...}")
instead of plain JS object{...}
. This would hugely improve the re-bundling speed and memory usage as the compiler don't need to create many unused AST for the data inside.This should have no effects to the end user usage