From 400eb14d064e300329cdeb6bf416a5f16ed0bfe1 Mon Sep 17 00:00:00 2001 From: Ubugeeei Date: Sat, 7 Mar 2026 16:11:55 +0900 Subject: [PATCH 1/2] chore: migrate to oxfmt --- .github/scripts/tag-alert-blocks.js | 6 +- .oxfmtrc.json | 9 + .prettierignore | 1 - .prettierrc | 6 - .vitepress/theme/styles/index.css | 14 +- .vitepress/theme/styles/inline-demo.css | 3 +- .vitepress/theme/styles/style-guide.css | 6 +- .vitepress/theme/styles/vue-mastery.css | 4 +- netlify.toml | 6 +- package.json | 1 + pnpm-lock.yaml | 217 ++++++ src/about/privacy.md | 2 - src/api/api.data.ts | 4 +- src/api/application.md | 3 - src/api/built-in-components.md | 2 - src/api/built-in-directives.md | 8 - src/api/built-in-special-attributes.md | 3 - src/api/built-in-special-elements.md | 2 - src/api/component-instance.md | 10 +- .../composition-api-dependency-injection.md | 2 +- src/api/composition-api-helpers.md | 9 +- src/api/composition-api-lifecycle.md | 44 +- src/api/custom-elements.md | 2 - src/api/custom-renderer.md | 12 +- src/api/general.md | 1 - src/api/options-composition.md | 4 +- src/api/options-lifecycle.md | 5 - src/api/options-misc.md | 2 - src/api/options-state.md | 4 - src/api/reactivity-advanced.md | 1 - src/api/reactivity-core.md | 4 - src/api/reactivity-utilities.md | 13 +- src/api/render-function.md | 6 +- src/api/sfc-css-features.md | 2 +- src/api/sfc-script-setup.md | 7 +- src/api/sfc-spec.md | 4 +- src/api/ssr.md | 1 - src/ecosystem/themes/themes.json | 2 +- .../src/attribute-bindings/App/options.js | 2 +- .../src/attribute-bindings/App/style.css | 2 +- .../src/attribute-bindings/App/template.html | 3 +- src/examples/src/cells/Cell/style.css | 5 +- src/examples/src/cells/Cell/template.html | 2 +- .../src/circle-drawer/App/composition.js | 12 +- src/examples/src/circle-drawer/App/style.css | 2 +- .../src/circle-drawer/App/template.html | 9 +- .../src/conditionals-and-loops/App/options.js | 2 +- src/examples/src/counter/App/options.js | 2 +- src/examples/src/counter/App/template.html | 3 +- src/examples/src/crud/App/composition.js | 8 +- src/examples/src/crud/App/template.html | 6 +- .../src/fetching-data/App/template.html | 19 +- src/examples/src/flight-booker/App/options.js | 2 +- src/examples/src/flight-booker/App/style.css | 2 +- .../src/flight-booker/App/template.html | 4 +- src/examples/src/form-bindings/App/options.js | 2 +- .../src/form-bindings/App/template.html | 18 +- src/examples/src/grid/App/template.html | 7 +- src/examples/src/grid/Grid/template.html | 12 +- src/examples/src/handling-input/App/style.css | 5 +- src/examples/src/hello-world/App/options.js | 2 +- .../src/hello-world/App/template.html | 2 +- src/examples/src/modal/Modal/template.html | 7 +- .../simple-component/TodoItem/template.html | 2 +- src/examples/src/svg/App/template.html | 4 +- .../temperature-converter/App/template.html | 4 +- src/examples/src/timer/App/style.css | 2 +- src/examples/src/timer/App/template.html | 8 +- src/examples/src/tree/App/style.css | 2 +- src/examples/src/tree/TreeItem/template.html | 12 +- src/glossary/index.md | 129 ++-- src/guide/best-practices/accessibility.md | 21 +- src/guide/best-practices/performance.md | 2 - src/guide/built-ins/keep-alive.md | 1 + src/guide/built-ins/transition.md | 10 +- src/guide/components/async.md | 21 +- src/guide/components/attrs.md | 2 +- src/guide/components/events.md | 2 +- src/guide/components/props.md | 4 +- src/guide/components/slots.md | 6 +- src/guide/essentials/computed.md | 9 +- src/guide/essentials/forms.md | 3 +- src/guide/essentials/list.md | 2 +- .../essentials/reactivity-fundamentals.md | 1 + src/guide/essentials/template-refs.md | 2 +- src/guide/extras/render-function.md | 53 +- src/guide/extras/ways-of-using-vue.md | 2 +- src/guide/extras/web-components.md | 7 +- src/guide/introduction.md | 1 - src/guide/quick-start.md | 5 +- src/guide/reusability/custom-directives.md | 1 - src/guide/scaling-up/routing.md | 10 +- src/guide/scaling-up/ssr.md | 1 - src/guide/scaling-up/tooling.md | 7 +- src/guide/typescript/overview.md | 1 - src/partners/components/type.ts | 2 +- src/public/rom3.min.js | 647 +++++++++++++++++- src/style-guide/rules-recommended.md | 19 +- src/tutorial/src/step-11/description.md | 1 - src/tutorial/src/step-3/App/template.html | 3 +- src/tutorial/src/step-5/App/template.html | 2 +- .../src/step-5/_hint/App/template.html | 2 +- src/tutorial/src/step-7/App/template.html | 2 +- src/tutorial/src/step-8/App/template.html | 4 +- .../src/step-8/_hint/App/template.html | 4 +- src/tutorial/tutorial.data.ts | 10 +- 106 files changed, 1240 insertions(+), 365 deletions(-) create mode 100644 .oxfmtrc.json delete mode 100644 .prettierignore delete mode 100644 .prettierrc diff --git a/.github/scripts/tag-alert-blocks.js b/.github/scripts/tag-alert-blocks.js index 720b785d5b..0b11cd646a 100644 --- a/.github/scripts/tag-alert-blocks.js +++ b/.github/scripts/tag-alert-blocks.js @@ -24,10 +24,10 @@ async function isUsingAlertBlock(base = 'origin/master') { result .trim() .split(/\r?\n/) - .map(file => + .map((file) => run(`git diff ${base} -- ${file}`) - .then(diff => ALERT_BLOCK.test(diff)) - .then(usesAlertBlock => (usesAlertBlock ? file : '')) + .then((diff) => ALERT_BLOCK.test(diff)) + .then((usesAlertBlock) => (usesAlertBlock ? file : '')) ) ) ).filter(Boolean) diff --git a/.oxfmtrc.json b/.oxfmtrc.json new file mode 100644 index 0000000000..4dd61055e3 --- /dev/null +++ b/.oxfmtrc.json @@ -0,0 +1,9 @@ +{ + "$schema": "./node_modules/oxfmt/configuration_schema.json", + "semi": false, + "singleQuote": true, + "trailingComma": "none", + "printWidth": 75, + "sortPackageJson": false, + "ignorePatterns": ["*.vue"] +} diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 65a7d0588f..0000000000 --- a/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -*.vue diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 2ecc4f4932..0000000000 --- a/.prettierrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "semi": false, - "singleQuote": true, - "trailingComma": "none", - "printWidth": 75 -} diff --git a/.vitepress/theme/styles/index.css b/.vitepress/theme/styles/index.css index 8bd6bb8cfe..10eebebbfa 100644 --- a/.vitepress/theme/styles/index.css +++ b/.vitepress/theme/styles/index.css @@ -1,7 +1,7 @@ -@import "./pages.css"; -@import "./badges.css"; -@import "./options-boxes.css"; -@import "./inline-demo.css"; -@import "./utilities.css"; -@import "./style-guide.css"; -@import "./vars.css"; +@import './pages.css'; +@import './badges.css'; +@import './options-boxes.css'; +@import './inline-demo.css'; +@import './utilities.css'; +@import './style-guide.css'; +@import './vars.css'; diff --git a/.vitepress/theme/styles/inline-demo.css b/.vitepress/theme/styles/inline-demo.css index 21e088e087..6f5746dc24 100644 --- a/.vitepress/theme/styles/inline-demo.css +++ b/.vitepress/theme/styles/inline-demo.css @@ -1,5 +1,4 @@ -.vt-doc a[href^="https://play.vuejs.org"]:before -{ +.vt-doc a[href^='https://play.vuejs.org']:before { content: '▶'; width: 20px; height: 20px; diff --git a/.vitepress/theme/styles/style-guide.css b/.vitepress/theme/styles/style-guide.css index 6fc03a26ca..1f0abb6005 100644 --- a/.vitepress/theme/styles/style-guide.css +++ b/.vitepress/theme/styles/style-guide.css @@ -4,7 +4,9 @@ padding: 1.6em 1.6em 0.1px; position: relative; border: 1px solid transparent; - transition: background-color 0.25s ease, border-color 0.25s ease; + transition: + background-color 0.25s ease, + border-color 0.25s ease; } .vt-doc .style-example h3 { @@ -62,4 +64,4 @@ .vt-doc summary { width: fit-content; cursor: pointer; -} \ No newline at end of file +} diff --git a/.vitepress/theme/styles/vue-mastery.css b/.vitepress/theme/styles/vue-mastery.css index d14bf556e9..d1845b34ad 100644 --- a/.vitepress/theme/styles/vue-mastery.css +++ b/.vitepress/theme/styles/vue-mastery.css @@ -2,7 +2,9 @@ background-color: var(--vt-c-bg-soft); border-radius: 8px; padding: 8px 16px 8px 8px; - transition: color 0.5s, background-color 0.5s; + transition: + color 0.5s, + background-color 0.5s; } .vue-mastery-link a { diff --git a/netlify.toml b/netlify.toml index 2d26e96dcb..b584b69581 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build.environment] - NODE_VERSION = "24" +NODE_VERSION = "24" [build] - publish = ".vitepress/dist" - command = "pnpm run build" +publish = ".vitepress/dist" +command = "pnpm run build" diff --git a/package.json b/package.json index 509c381e75..de4b0aa5a8 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@types/markdown-it": "^14.1.2", "@types/node": "^24.0.0", "oxc-minify": "^0.111.0", + "oxfmt": "^0.36.0", "typescript": "^5.9.3", "vitepress-plugin-group-icons": "^1.7.1", "vitepress-plugin-llms": "^0.0.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ddf192d325..a086211e5e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,6 +42,9 @@ importers: oxc-minify: specifier: ^0.111.0 version: 0.111.0 + oxfmt: + specifier: ^0.36.0 + version: 0.36.0 typescript: specifier: ^5.9.3 version: 5.9.3 @@ -514,6 +517,128 @@ packages: '@oxc-project/types@0.111.0': resolution: {integrity: sha512-bh54LJMafgRGl2cPQ/QM+tI5rWaShm/wK9KywEj/w36MhiPKXYM67H2y3q+9pr4YO7ufwg2AKdBAZkhHBD8ClA==} + '@oxfmt/binding-android-arm-eabi@0.36.0': + resolution: {integrity: sha512-Z4yVHJWx/swHHjtr0dXrBZb6LxS+qNz1qdza222mWwPTUK4L790+5i3LTgjx3KYGBzcYpjaiZBw4vOx94dH7MQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxfmt/binding-android-arm64@0.36.0': + resolution: {integrity: sha512-3ElCJRFNPQl7jexf2CAa9XmAm8eC5JPrIDSjc9jSchkVSFTEqyL0NtZinBB2h1a4i4JgP1oGl/5G5n8YR4FN8Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxfmt/binding-darwin-arm64@0.36.0': + resolution: {integrity: sha512-nak4znWCqIExKhYSY/mz/lWsqWIpdsS7o0+SRzXR1Q0m7GrMcG1UrF1pS7TLGZhhkf7nTfEF7q6oZzJiodRDuw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxfmt/binding-darwin-x64@0.36.0': + resolution: {integrity: sha512-V4GP96thDnpKx6ADnMDnhIXNdtV+Ql9D4HUU+a37VTeVbs5qQSF/s6hhUP1b3xUqU7iRcwh72jUU2Y12rtGHAw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxfmt/binding-freebsd-x64@0.36.0': + resolution: {integrity: sha512-/xapWCADfI5wrhxpEUjhI9fnw7MV5BUZizVa8e24n3VSK6A3Y1TB/ClOP1tfxNspykFKXp4NBWl6NtDJP3osqQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxfmt/binding-linux-arm-gnueabihf@0.36.0': + resolution: {integrity: sha512-1lOmv61XMFIH5uNm27620kRRzWt/RK6tdn250BRDoG9W7OXGOQ5UyI1HVT+SFkoOoKztBiinWgi68+NA1MjBVQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm-musleabihf@0.36.0': + resolution: {integrity: sha512-vMH23AskdR1ujUS9sPck2Df9rBVoZUnCVY86jisILzIQ/QQ/yKUTi7tgnIvydPx7TyB/48wsQ5QMr5Knq5p/aw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm64-gnu@0.36.0': + resolution: {integrity: sha512-Hy1V+zOBHpBiENRx77qrUTt5aPDHeCASRc8K5KwwAHkX2AKP0nV89eL17hsZrE9GmnXFjsNmd80lyf7aRTXsbw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-arm64-musl@0.36.0': + resolution: {integrity: sha512-SPGLJkOIHSIC6ABUQ5V8NqJpvYhMJueJv26NYqfCnwi/Mn6A61amkpJJ9Suy0Nmvs+OWESJpcebrBUbXPGZyQQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-ppc64-gnu@0.36.0': + resolution: {integrity: sha512-3EuoyB8x9x8ysYJjbEO/M9fkSk72zQKnXCvpZMDHXlnY36/1qMp55Nm0PrCwjGO/1pen5hdOVkz9WmP3nAp2IQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-gnu@0.36.0': + resolution: {integrity: sha512-MpY3itLwpGh8dnywtrZtaZ604T1m715SydCKy0+qTxetv+IHzuA+aO/AGzrlzUNYZZmtWtmDBrChZGibvZxbRQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-musl@0.36.0': + resolution: {integrity: sha512-mmDhe4Vtx+XwQPRPn/V25+APnkApYgZ23q+6GVsNYY98pf3aU0aI3Me96pbRs/AfJ1jIiGC+/6q71FEu8dHcHw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-s390x-gnu@0.36.0': + resolution: {integrity: sha512-AYXhU+DmNWLSnvVwkHM92fuYhogtVHab7UQrPNaDf1sxadugg9gWVmcgJDlIwxJdpk5CVW/TFvwUKwI432zhhA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-x64-gnu@0.36.0': + resolution: {integrity: sha512-H16QhhQ3usoakMleiAAQ2mg0NsBDAdyE9agUgfC8IHHh3jZEbr0rIKwjEqwbOHK5M0EmfhJmr+aGO/MgZPsneA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-x64-musl@0.36.0': + resolution: {integrity: sha512-EFFGkixA39BcmHiCe2ECdrq02D6FCve5ka6ObbvrheXl4V+R0U/E+/uLyVx1X65LW8TA8QQHdnbdDallRekohw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-openharmony-arm64@0.36.0': + resolution: {integrity: sha512-zr/t369wZWFOj1qf06Z5gGNjFymfUNDrxKMmr7FKiDRVI1sNsdKRCuRL4XVjtcptKQ+ao3FfxLN1vrynivmCYg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxfmt/binding-win32-arm64-msvc@0.36.0': + resolution: {integrity: sha512-FxO7UksTv8h4olzACgrqAXNF6BP329+H322323iDrMB5V/+a1kcAw07fsOsUmqNrb9iJBsCQgH/zqcqp5903ag==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxfmt/binding-win32-ia32-msvc@0.36.0': + resolution: {integrity: sha512-OjoMQ89H01M0oLMfr/CPNH1zi48ZIwxAKObUl57oh7ssUBNDp/2Vjf7E1TQ8M4oj4VFQ/byxl2SmcPNaI2YNDg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxfmt/binding-win32-x64-msvc@0.36.0': + resolution: {integrity: sha512-MoyeQ9S36ZTz/4bDhOKJgOBIDROd4dQ5AkT9iezhEaUBxAPdNX9Oq0jD8OSnCj3G4wam/XNxVWKMA52kmzmPtQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + '@rolldown/binding-android-arm64@1.0.0-rc.2': resolution: {integrity: sha512-AGV80viZ4Hil4C16GFH+PSwq10jclV9oyRFhD+5HdowPOCJ+G+99N5AClQvMkUMIahTY8cX0SQpKEEWcCg6fSA==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1065,6 +1190,11 @@ packages: resolution: {integrity: sha512-tooT6OU4dv8esdLxpELcBYc3R3zN+Bn0llM58RP8djBrxN57l7E5KqfTFq035kEaYl58C0fEgsOEL9G6zO6oQA==} engines: {node: ^20.19.0 || >=22.12.0} + oxfmt@0.36.0: + resolution: {integrity: sha512-/ejJ+KoSW6J9bcNT9a9UtJSJNWhJ3yOLSBLbkoFHJs/8CZjmaZVZAJe4YgO1KMJlKpNQasrn/G9JQUEZI3p0EQ==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + package-manager-detector@1.3.0: resolution: {integrity: sha512-ZsEbbZORsyHuO00lY1kV3/t72yp6Ysay6Pd17ZAlNGuGwmWDLCJxFpRs0IzfXfj1o4icJOkUEioexFHzyPurSQ==} @@ -1162,6 +1292,10 @@ packages: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} + tinypool@2.1.0: + resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==} + engines: {node: ^20.0.0 || >=22.0.0} + trim-lines@3.0.1: resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} @@ -1661,6 +1795,63 @@ snapshots: '@oxc-project/types@0.111.0': {} + '@oxfmt/binding-android-arm-eabi@0.36.0': + optional: true + + '@oxfmt/binding-android-arm64@0.36.0': + optional: true + + '@oxfmt/binding-darwin-arm64@0.36.0': + optional: true + + '@oxfmt/binding-darwin-x64@0.36.0': + optional: true + + '@oxfmt/binding-freebsd-x64@0.36.0': + optional: true + + '@oxfmt/binding-linux-arm-gnueabihf@0.36.0': + optional: true + + '@oxfmt/binding-linux-arm-musleabihf@0.36.0': + optional: true + + '@oxfmt/binding-linux-arm64-gnu@0.36.0': + optional: true + + '@oxfmt/binding-linux-arm64-musl@0.36.0': + optional: true + + '@oxfmt/binding-linux-ppc64-gnu@0.36.0': + optional: true + + '@oxfmt/binding-linux-riscv64-gnu@0.36.0': + optional: true + + '@oxfmt/binding-linux-riscv64-musl@0.36.0': + optional: true + + '@oxfmt/binding-linux-s390x-gnu@0.36.0': + optional: true + + '@oxfmt/binding-linux-x64-gnu@0.36.0': + optional: true + + '@oxfmt/binding-linux-x64-musl@0.36.0': + optional: true + + '@oxfmt/binding-openharmony-arm64@0.36.0': + optional: true + + '@oxfmt/binding-win32-arm64-msvc@0.36.0': + optional: true + + '@oxfmt/binding-win32-ia32-msvc@0.36.0': + optional: true + + '@oxfmt/binding-win32-x64-msvc@0.36.0': + optional: true + '@rolldown/binding-android-arm64@1.0.0-rc.2': optional: true @@ -2235,6 +2426,30 @@ snapshots: '@oxc-minify/binding-win32-ia32-msvc': 0.111.0 '@oxc-minify/binding-win32-x64-msvc': 0.111.0 + oxfmt@0.36.0: + dependencies: + tinypool: 2.1.0 + optionalDependencies: + '@oxfmt/binding-android-arm-eabi': 0.36.0 + '@oxfmt/binding-android-arm64': 0.36.0 + '@oxfmt/binding-darwin-arm64': 0.36.0 + '@oxfmt/binding-darwin-x64': 0.36.0 + '@oxfmt/binding-freebsd-x64': 0.36.0 + '@oxfmt/binding-linux-arm-gnueabihf': 0.36.0 + '@oxfmt/binding-linux-arm-musleabihf': 0.36.0 + '@oxfmt/binding-linux-arm64-gnu': 0.36.0 + '@oxfmt/binding-linux-arm64-musl': 0.36.0 + '@oxfmt/binding-linux-ppc64-gnu': 0.36.0 + '@oxfmt/binding-linux-riscv64-gnu': 0.36.0 + '@oxfmt/binding-linux-riscv64-musl': 0.36.0 + '@oxfmt/binding-linux-s390x-gnu': 0.36.0 + '@oxfmt/binding-linux-x64-gnu': 0.36.0 + '@oxfmt/binding-linux-x64-musl': 0.36.0 + '@oxfmt/binding-openharmony-arm64': 0.36.0 + '@oxfmt/binding-win32-arm64-msvc': 0.36.0 + '@oxfmt/binding-win32-ia32-msvc': 0.36.0 + '@oxfmt/binding-win32-x64-msvc': 0.36.0 + package-manager-detector@1.3.0: {} path-browserify@1.0.1: {} @@ -2344,6 +2559,8 @@ snapshots: fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 + tinypool@2.1.0: {} + trim-lines@3.0.1: {} tslib@2.8.1: diff --git a/src/about/privacy.md b/src/about/privacy.md index eb3ea55cea..174b066bdd 100644 --- a/src/about/privacy.md +++ b/src/about/privacy.md @@ -21,11 +21,9 @@ We do **not** collect or store any type of personal data, whether through our we We may collect anonymized data via 3rd party services integrated in our websites: - **Visitor data to our websites.** Our website analytics is powered by [Fathom Analytics](https://usefathom.com/), which doesn't use cookies and complies with the GDPR, ePrivacy (including PECR), COPPA and CCPA. Using this privacy-friendly website analytics software, your IP address is only briefly processed, and we (running this website) have no way of identifying you. As per the CCPA, your personal information is de-identified. You can read more about this on Fathom Analytics' website. - - Fathom Analytics' Privacy Policy: https://usefathom.com/legal/privacy - **Usage data of the search functionality.** Our search functionality is powered by [Algolia DocSearch](https://docsearch.algolia.com/), which does not perform any type of user tracking or fingerprinting, and does not use cookies. Algolia services are GDPR compliant, CCPA compliant, and TRUSTe Certified. - - Algolia's privacy policy: https://www.algolia.com/policies/privacy/ - Algolia's security and privacy compliance: https://www.algolia.com/distributed-secure/security-compliance/ diff --git a/src/api/api.data.ts b/src/api/api.data.ts index 5c4f023b35..c16abb40ed 100644 --- a/src/api/api.data.ts +++ b/src/api/api.data.ts @@ -112,7 +112,7 @@ const headersCache = new Map< export default { // Declare files that should trigger Hot Module Replacement (HMR) watch: './*.md', - + // Load API data and process sidebar items load(): APIGroup[] { // Generate the API group data by processing the sidebar configuration @@ -121,7 +121,7 @@ export default { anchor: slugify(group.text), // Generate anchor for the group title items: group.items.map((item) => ({ ...item, // Spread the original item properties - headers: parsePageHeaders(item.link), // Parse the headers from the item's markdown link + headers: parsePageHeaders(item.link) // Parse the headers from the item's markdown link })) })) } diff --git a/src/api/application.md b/src/api/application.md index 8374b351ee..587bb52689 100644 --- a/src/api/application.md +++ b/src/api/application.md @@ -379,7 +379,6 @@ Assign a global handler for uncaught errors propagating from within the applicat The error handler receives three arguments: the error, the component instance that triggered the error, and an information string specifying the error source type. It can capture errors from the following sources: - - Component renders - Event handlers - Lifecycle hooks @@ -493,7 +492,6 @@ Adjusts template whitespace handling behavior. - **Details** Vue removes / condenses whitespace characters in templates to produce more efficient compiled output. The default strategy is "condense", with the following behavior: - 1. Leading / ending whitespace characters inside an element are condensed into a single space. 2. Whitespace characters between elements that contain newlines are removed. 3. Consecutive whitespace characters in text nodes are condensed into a single space. @@ -661,7 +659,6 @@ Force unhandled errors to be thrown in production mode. - **Details** By default, errors thrown inside a Vue application but not explicitly handled have different behavior between development and production modes: - - In development, the error is thrown and can possibly crash the application. This is to make the error more prominent so that it can be noticed and fixed during development. - In production, the error will only be logged to the console to minimize the impact to end users. However, this may prevent errors that only happen in production from being caught by error monitoring services. diff --git a/src/api/built-in-components.md b/src/api/built-in-components.md index 462f1c1eba..448ca94629 100644 --- a/src/api/built-in-components.md +++ b/src/api/built-in-components.md @@ -79,7 +79,6 @@ Provides animated transition effects to a **single** element or component. ``` - **Events** - - `@before-enter` - `@before-leave` - `@enter` @@ -338,7 +337,6 @@ Used for orchestrating nested async dependencies in a component tree. ``` - **Events** - - `@resolve` - `@pending` - `@fallback` diff --git a/src/api/built-in-directives.md b/src/api/built-in-directives.md index 57ad4dd055..72c71afea1 100644 --- a/src/api/built-in-directives.md +++ b/src/api/built-in-directives.md @@ -81,7 +81,6 @@ Denote the "else block" for `v-if` or a `v-if` / `v-else-if` chain. - **Does not expect expression** - **Details** - - Restriction: previous sibling element must have `v-if` or `v-else-if`. - Can be used on `