From 29753143486189ca5c366765499b643e296b2415 Mon Sep 17 00:00:00 2001 From: hunghg255 Date: Tue, 16 Jul 2024 11:30:53 +0700 Subject: [PATCH] docs: update --- docs/.vitepress/components/StabilityLevel.vue | 27 ---- docs/.vitepress/components/WarnBadge.vue | 5 - docs/.vitepress/plugins/markdownTransform.ts | 72 +++++++++ docs/.vitepress/theme/index.ts | 4 - docs/.vitepress/theme/style.css | 2 +- docs/vite.config.ts | 2 + pnpm-lock.yaml | 152 +++++++++++------- 7 files changed, 173 insertions(+), 91 deletions(-) delete mode 100644 docs/.vitepress/components/StabilityLevel.vue delete mode 100644 docs/.vitepress/components/WarnBadge.vue create mode 100644 docs/.vitepress/plugins/markdownTransform.ts diff --git a/docs/.vitepress/components/StabilityLevel.vue b/docs/.vitepress/components/StabilityLevel.vue deleted file mode 100644 index e10ac77..0000000 --- a/docs/.vitepress/components/StabilityLevel.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/docs/.vitepress/components/WarnBadge.vue b/docs/.vitepress/components/WarnBadge.vue deleted file mode 100644 index a72c3da..0000000 --- a/docs/.vitepress/components/WarnBadge.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/docs/.vitepress/plugins/markdownTransform.ts b/docs/.vitepress/plugins/markdownTransform.ts new file mode 100644 index 0000000..bd44883 --- /dev/null +++ b/docs/.vitepress/plugins/markdownTransform.ts @@ -0,0 +1,72 @@ +import type { Plugin } from 'vite' + +export function replacer(code: string, value: string, key: string, insert: 'head' | 'tail' | 'none' = 'none') { + const START = `` + const END = `` + const regex = new RegExp(`${START}[\\s\\S]*?${END}`, 'im') + + const target = value ? `${START}\n\n${value.trim()}\n\n${END}` : `${START}${END}` + + if (!code.match(regex)) { + if (insert === 'none') + return code + else if (insert === 'head') + return `${target}\n\n${code}` + else + return `${code}\n\n${target}` + } + + return code.replace(regex, target) +} + +export function MarkdownTransform(): Plugin { + return { + name: 'js-utils-md-transform', + enforce: 'pre', + async transform(code, id) { + if (!id.match(/\.md\b/)) + return null + + const [pkg, _name, i] = id.split('/').slice(-3); + + if (pkg !== 'reference') + return code; + + const source = await getFunctionMarkdown(_name, i) + + code = replacer(code, source, 'FOOTER', 'tail') + + code = code + .replace(/(# \w+)\n/, `$1\n\n\n`); + + return code + }, + } +} + +const GITHUB_BLOB_URL = 'https://github.com/agiletech-web-dev/js-utils-es/blob/main/src'; +const GITHUB_BLOB_DOCS_URL = 'https://github.com/agiletech-web-dev/js-utils-es/blob/main/docs/reference'; +// https://github.com/agiletech-web-dev/js-utils-es/blob/main/src/array/chunk.ts +// https://github.com/agiletech-web-dev/js-utils-es/blob/main/docs/reference/array/chunk.md + +export async function getFunctionMarkdown(pkg: string, name: string) { + const fileNameTs = name.replace('.md', '.ts'); + const fileNameTestCase = name.replace('.md', '.spec.ts'); + const URL = `${GITHUB_BLOB_URL}/${pkg}/${fileNameTs}`; + const URL_DOCS = `${GITHUB_BLOB_DOCS_URL}/${pkg}/${name}`; + const URL_TEST_CASE = `${GITHUB_BLOB_URL}/${pkg}/${fileNameTestCase}`; + + const links = ([ + ['Source', URL], + ['Docs', URL_DOCS], + ['Test Case', URL_TEST_CASE], + ]) + .filter(i => i) + .map(i => `[${i![0]}](${i![1]})`).join(' • ') + + const sourceSection = `## Source\n\n${links}\n` + + const footer = `\n${sourceSection}` + + return footer; +} diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index bb6ccee..98d55dd 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -2,8 +2,6 @@ import Theme from 'vitepress/theme' import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client' import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client' import type { EnhanceAppContext } from 'vitepress' -import WarnBadge from '../components/WarnBadge.vue' -import StabilityLevel from '../components/StabilityLevel.vue' import Layout from './Layout.vue' import 'uno.css' import './style.css' @@ -14,8 +12,6 @@ export default { ...Theme, Layout, enhanceApp({ app }: EnhanceAppContext) { - app.component('WarnBadge', WarnBadge) - app.component('StabilityLevel', StabilityLevel) app.use(NolebaseGitChangelogPlugin, { mapAuthors: [ { diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index 3fb3e40..164c8f7 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -52,7 +52,7 @@ --vp-c-brand: #ae3ec9; --vp-c-brand-light: #da77f2; --vp-c-brand-lighter: #e599f7; - --vp-c-brand-lightest: ##f3d9fa; + --vp-c-brand-lightest: #f3d9fa; --vp-c-brand-dark: #9c36b5; --vp-c-brand-darker: #862e9c; --vp-c-brand-dimm: rgba(145, 71, 150, 0.08); diff --git a/docs/vite.config.ts b/docs/vite.config.ts index 171da49..21e430d 100644 --- a/docs/vite.config.ts +++ b/docs/vite.config.ts @@ -5,12 +5,14 @@ import { GitChangelog, GitChangelogMarkdownSection, } from '@nolebase/vitepress-plugin-git-changelog/vite' +import { MarkdownTransform } from '.vitepress/plugins/markdownTransform' const githubRepo = 'agiletech-web-dev/js-utils-es' const githubLink: 'https://github.com/agiletech-web-dev/js-utils-es' = `https://github.com/${githubRepo}` export default defineConfig({ plugins: [ + MarkdownTransform(), VueJsx(), Unocss(), GitChangelog({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4dec5cb..1a2c7ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: devDependencies: '@antfu/eslint-config': specifier: ^2.22.0 - version: 2.22.2(@vue/compiler-sfc@3.4.31)(eslint@9.7.0)(typescript@5.5.3)(vitest@1.6.0(@types/node@18.19.39)(less@4.2.0)) + version: 2.22.2(@vue/compiler-sfc@3.4.31)(eslint@9.7.0)(typescript@5.5.3)(vitest@1.6.0(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2)) '@types/node': specifier: ^18.19.33 version: 18.19.39 @@ -34,7 +34,7 @@ importers: version: 0.0.10 vitest: specifier: ^1.5.2 - version: 1.6.0(@types/node@18.19.39)(less@4.2.0) + version: 1.6.0(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) benchmarks: dependencies: @@ -46,7 +46,7 @@ importers: version: 4.17.21 vitest: specifier: ^2.0.2 - version: 2.0.2(@types/node@18.19.39)(less@4.2.0) + version: 2.0.2(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) devDependencies: '@types/lodash': specifier: ^4 @@ -69,31 +69,31 @@ importers: devDependencies: '@nolebase/vitepress-plugin-enhanced-mark': specifier: ^2.2.1 - version: 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + version: 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) '@nolebase/vitepress-plugin-enhanced-readabilities': specifier: ^2.2.1 - version: 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + version: 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) '@nolebase/vitepress-plugin-git-changelog': specifier: ^2.2.2 - version: 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + version: 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) '@nolebase/vitepress-plugin-highlight-targeted-heading': specifier: ^2.2.1 - version: 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + version: 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) '@shikijs/vitepress-twoslash': specifier: ^1.10.3 version: 1.10.3(typescript@5.5.3) '@vitejs/plugin-vue-jsx': specifier: ^4.0.0 - version: 4.0.0(vite@5.3.3(@types/node@18.19.39)(less@4.2.0))(vue@3.4.31(typescript@5.5.3)) + version: 4.0.0(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2))(vue@3.4.31(typescript@5.5.3)) unocss: specifier: ^0.61.3 - version: 0.61.3(postcss@8.4.39)(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)) + version: 0.61.3(postcss@8.4.39)(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2)) vite: specifier: ^5.3.3 - version: 5.3.3(@types/node@18.19.39)(less@4.2.0) + version: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) vitepress: specifier: ^1.3.0 - version: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + version: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) vue: specifier: ^3.4.31 version: 3.4.31(typescript@5.5.3) @@ -768,6 +768,9 @@ packages: resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} + '@jridgewell/source-map@0.3.6': + resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==} + '@jridgewell/sourcemap-codec@1.5.0': resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} @@ -1534,6 +1537,9 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true + buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + builtin-modules@3.3.0: resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} engines: {node: '>=6'} @@ -1674,6 +1680,9 @@ packages: resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} engines: {node: '>=16'} + commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} engines: {node: '>= 6'} @@ -3454,6 +3463,9 @@ packages: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} + source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + source-map@0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} @@ -3598,6 +3610,11 @@ packages: resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==} engines: {node: '>=10'} + terser@5.31.2: + resolution: {integrity: sha512-LGyRZVFm/QElZHy/CPr/O4eNZOZIzsrQ92y4v9UJe/pFJjypje2yI3C2FmPtvUEnhadlSbmG2nXtdcjHOjCfxw==} + engines: {node: '>=10'} + hasBin: true + text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} @@ -4126,7 +4143,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@antfu/eslint-config@2.22.2(@vue/compiler-sfc@3.4.31)(eslint@9.7.0)(typescript@5.5.3)(vitest@1.6.0(@types/node@18.19.39)(less@4.2.0))': + '@antfu/eslint-config@2.22.2(@vue/compiler-sfc@3.4.31)(eslint@9.7.0)(typescript@5.5.3)(vitest@1.6.0(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2))': dependencies: '@antfu/install-pkg': 0.3.3 '@clack/prompts': 0.7.0 @@ -4151,7 +4168,7 @@ snapshots: eslint-plugin-toml: 0.11.1(eslint@9.7.0) eslint-plugin-unicorn: 54.0.0(eslint@9.7.0) eslint-plugin-unused-imports: 4.0.0(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0) - eslint-plugin-vitest: 0.5.4(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3)(vitest@1.6.0(@types/node@18.19.39)(less@4.2.0)) + eslint-plugin-vitest: 0.5.4(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3)(vitest@1.6.0(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2)) eslint-plugin-vue: 9.27.0(eslint@9.7.0) eslint-plugin-yml: 1.14.0(eslint@9.7.0) eslint-processor-vue-blocks: 0.1.2(@vue/compiler-sfc@3.4.31)(eslint@9.7.0) @@ -4690,6 +4707,12 @@ snapshots: '@jridgewell/set-array@1.2.1': {} + '@jridgewell/source-map@0.3.6': + dependencies: + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 + optional: true + '@jridgewell/sourcemap-codec@1.5.0': {} '@jridgewell/trace-mapping@0.3.25': @@ -4716,11 +4739,11 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@nolebase/ui@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3)': + '@nolebase/ui@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3)': dependencies: '@iconify-json/octicon': 1.1.56 less: 4.2.0 - vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) vue: 3.4.31(typescript@5.5.3) transitivePeerDependencies: - '@algolia/client-search' @@ -4750,10 +4773,10 @@ snapshots: - typescript - universal-cookie - '@nolebase/vitepress-plugin-enhanced-mark@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3)': + '@nolebase/vitepress-plugin-enhanced-mark@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3)': dependencies: less: 4.2.0 - vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -4782,13 +4805,13 @@ snapshots: - typescript - universal-cookie - '@nolebase/vitepress-plugin-enhanced-readabilities@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3)': + '@nolebase/vitepress-plugin-enhanced-readabilities@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3)': dependencies: '@iconify-json/carbon': 1.1.36 '@iconify-json/icon-park-outline': 1.1.15 - '@nolebase/ui': 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + '@nolebase/ui': 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) less: 4.2.0 - vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -4817,10 +4840,10 @@ snapshots: - typescript - universal-cookie - '@nolebase/vitepress-plugin-git-changelog@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3)': + '@nolebase/vitepress-plugin-git-changelog@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3)': dependencies: '@iconify-json/octicon': 1.1.56 - '@nolebase/ui': 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + '@nolebase/ui': 2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) colorette: 2.0.20 date-fns: 3.6.0 defu: 6.1.4 @@ -4830,7 +4853,7 @@ snapshots: less: 4.2.0 ora: 8.0.1 uncrypto: 0.1.3 - vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -4859,10 +4882,10 @@ snapshots: - typescript - universal-cookie - '@nolebase/vitepress-plugin-highlight-targeted-heading@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3)': + '@nolebase/vitepress-plugin-highlight-targeted-heading@2.2.2(@algolia/client-search@4.24.0)(@types/node@18.19.39)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3)': dependencies: less: 4.2.0 - vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3) + vitepress: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3) transitivePeerDependencies: - '@algolia/client-search' - '@types/node' @@ -5307,13 +5330,13 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@unocss/astro@0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0))': + '@unocss/astro@0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2))': dependencies: '@unocss/core': 0.61.3 '@unocss/reset': 0.61.3 - '@unocss/vite': 0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)) + '@unocss/vite': 0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2)) optionalDependencies: - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) transitivePeerDependencies: - rollup @@ -5444,7 +5467,7 @@ snapshots: dependencies: '@unocss/core': 0.61.3 - '@unocss/vite@0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0))': + '@unocss/vite@0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2))': dependencies: '@ampproject/remapping': 2.3.0 '@rollup/pluginutils': 5.1.0(rollup@4.18.1) @@ -5456,23 +5479,23 @@ snapshots: chokidar: 3.6.0 fast-glob: 3.3.2 magic-string: 0.30.10 - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) transitivePeerDependencies: - rollup - '@vitejs/plugin-vue-jsx@4.0.0(vite@5.3.3(@types/node@18.19.39)(less@4.2.0))(vue@3.4.31(typescript@5.5.3))': + '@vitejs/plugin-vue-jsx@4.0.0(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2))(vue@3.4.31(typescript@5.5.3))': dependencies: '@babel/core': 7.24.8 '@babel/plugin-transform-typescript': 7.24.8(@babel/core@7.24.8) '@vue/babel-plugin-jsx': 1.2.2(@babel/core@7.24.8) - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) vue: 3.4.31(typescript@5.5.3) transitivePeerDependencies: - supports-color - '@vitejs/plugin-vue@5.0.5(vite@5.3.3(@types/node@18.19.39)(less@4.2.0))(vue@3.4.31(typescript@5.5.3))': + '@vitejs/plugin-vue@5.0.5(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2))(vue@3.4.31(typescript@5.5.3))': dependencies: - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) vue: 3.4.31(typescript@5.5.3) '@vitest/expect@1.6.0': @@ -5797,6 +5820,9 @@ snapshots: node-releases: 2.0.14 update-browserslist-db: 1.1.0(browserslist@4.23.2) + buffer-from@1.1.2: + optional: true + builtin-modules@3.3.0: {} bumpp@9.4.1: @@ -5950,6 +5976,9 @@ snapshots: commander@11.1.0: {} + commander@2.20.3: + optional: true + commander@4.1.1: {} commander@7.2.0: {} @@ -6395,13 +6424,13 @@ snapshots: optionalDependencies: '@typescript-eslint/eslint-plugin': 8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3) - eslint-plugin-vitest@0.5.4(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3)(vitest@1.6.0(@types/node@18.19.39)(less@4.2.0)): + eslint-plugin-vitest@0.5.4(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3)(vitest@1.6.0(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2)): dependencies: '@typescript-eslint/utils': 7.16.0(eslint@9.7.0)(typescript@5.5.3) eslint: 9.7.0 optionalDependencies: '@typescript-eslint/eslint-plugin': 8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.5.3))(eslint@9.7.0)(typescript@5.5.3) - vitest: 1.6.0(@types/node@18.19.39)(less@4.2.0) + vitest: 1.6.0(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) transitivePeerDependencies: - supports-color - typescript @@ -7933,6 +7962,12 @@ snapshots: source-map-js@1.2.0: {} + source-map-support@0.5.21: + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + optional: true + source-map@0.6.1: optional: true @@ -8079,6 +8114,14 @@ snapshots: mkdirp: 1.0.4 yallist: 4.0.0 + terser@5.31.2: + dependencies: + '@jridgewell/source-map': 0.3.6 + acorn: 8.12.1 + commander: 2.20.3 + source-map-support: 0.5.21 + optional: true + text-table@0.2.0: {} thenify-all@1.6.0: @@ -8260,9 +8303,9 @@ snapshots: universalify@2.0.1: {} - unocss@0.61.3(postcss@8.4.39)(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)): + unocss@0.61.3(postcss@8.4.39)(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2)): dependencies: - '@unocss/astro': 0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)) + '@unocss/astro': 0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2)) '@unocss/cli': 0.61.3(rollup@4.18.1) '@unocss/core': 0.61.3 '@unocss/extractor-arbitrary-variants': 0.61.3 @@ -8281,9 +8324,9 @@ snapshots: '@unocss/transformer-compile-class': 0.61.3 '@unocss/transformer-directives': 0.61.3 '@unocss/transformer-variant-group': 0.61.3 - '@unocss/vite': 0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)) + '@unocss/vite': 0.61.3(rollup@4.18.1)(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2)) optionalDependencies: - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) transitivePeerDependencies: - postcss - rollup @@ -8331,13 +8374,13 @@ snapshots: unist-util-stringify-position: 4.0.0 vfile-message: 4.0.2 - vite-node@1.6.0(@types/node@18.19.39)(less@4.2.0): + vite-node@1.6.0(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2): dependencies: cac: 6.7.14 debug: 4.3.5 pathe: 1.1.2 picocolors: 1.0.1 - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) transitivePeerDependencies: - '@types/node' - less @@ -8348,13 +8391,13 @@ snapshots: - supports-color - terser - vite-node@2.0.2(@types/node@18.19.39)(less@4.2.0): + vite-node@2.0.2(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2): dependencies: cac: 6.7.14 debug: 4.3.5 pathe: 1.1.2 tinyrainbow: 1.2.0 - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) transitivePeerDependencies: - '@types/node' - less @@ -8365,7 +8408,7 @@ snapshots: - supports-color - terser - vite@5.3.3(@types/node@18.19.39)(less@4.2.0): + vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2): dependencies: esbuild: 0.21.5 postcss: 8.4.39 @@ -8374,15 +8417,16 @@ snapshots: '@types/node': 18.19.39 fsevents: 2.3.3 less: 4.2.0 + terser: 5.31.2 - vitepress@1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(typescript@5.5.3): + vitepress@1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.39)(less@4.2.0)(postcss@8.4.39)(search-insights@2.15.0)(terser@5.31.2)(typescript@5.5.3): dependencies: '@docsearch/css': 3.6.0 '@docsearch/js': 3.6.0(@algolia/client-search@4.24.0)(search-insights@2.15.0) '@shikijs/core': 1.10.3 '@shikijs/transformers': 1.10.3 '@types/markdown-it': 14.1.1 - '@vitejs/plugin-vue': 5.0.5(vite@5.3.3(@types/node@18.19.39)(less@4.2.0))(vue@3.4.31(typescript@5.5.3)) + '@vitejs/plugin-vue': 5.0.5(vite@5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2))(vue@3.4.31(typescript@5.5.3)) '@vue/devtools-api': 7.3.6 '@vue/shared': 3.4.31 '@vueuse/core': 10.11.0(vue@3.4.31(typescript@5.5.3)) @@ -8391,7 +8435,7 @@ snapshots: mark.js: 8.11.1 minisearch: 7.0.0 shiki: 1.10.3 - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) vue: 3.4.31(typescript@5.5.3) optionalDependencies: postcss: 8.4.39 @@ -8422,7 +8466,7 @@ snapshots: - typescript - universal-cookie - vitest@1.6.0(@types/node@18.19.39)(less@4.2.0): + vitest@1.6.0(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2): dependencies: '@vitest/expect': 1.6.0 '@vitest/runner': 1.6.0 @@ -8441,8 +8485,8 @@ snapshots: strip-literal: 2.1.0 tinybench: 2.8.0 tinypool: 0.8.4 - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) - vite-node: 1.6.0(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) + vite-node: 1.6.0(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 18.19.39 @@ -8455,7 +8499,7 @@ snapshots: - supports-color - terser - vitest@2.0.2(@types/node@18.19.39)(less@4.2.0): + vitest@2.0.2(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2): dependencies: '@ampproject/remapping': 2.3.0 '@vitest/expect': 2.0.2 @@ -8473,8 +8517,8 @@ snapshots: tinybench: 2.8.0 tinypool: 1.0.0 tinyrainbow: 1.2.0 - vite: 5.3.3(@types/node@18.19.39)(less@4.2.0) - vite-node: 2.0.2(@types/node@18.19.39)(less@4.2.0) + vite: 5.3.3(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) + vite-node: 2.0.2(@types/node@18.19.39)(less@4.2.0)(terser@5.31.2) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 18.19.39