build(deps): update dependencies within their major versions (#12)

### Description

This PR implements phase 1 of the dependency upgrade plan in
[destan/toolbox#4](https://github.com/destan/toolbox/pull/4): updates
within major versions, including Vue core.

Changes from the plan:

- Update `vue` from 3.3.4 to 3.5.44. Align `@vue/compiler-sfc` (3.2.47)
and `@vue/runtime-dom` (3.3.4) with it.
- Update `naive-ui` from 2.35.0 to 2.45.3 and `@vue/test-utils` from
2.3.2 to 2.5.1.
- Update the 21 packages in the plan's phase 1 table to their latest
version within the major version.
- Update the 0.x packages `@vicons/material` and `@vicons/tabler` to
0.13.0, `country-code-lookup` to 0.2.2, `randexp` to 0.6.1, and
`unicode-emoji-json` to 0.9.0.
- Remove `@types/dompurify` and `@types/figlet`. npm marks both
deprecated because `dompurify` and `figlet` ship their own types.

Changes beyond the plan.
[destan/toolbox#4](https://github.com/destan/toolbox/pull/4) records
them in commit `01a509d`.

- **Keep the `@unhead/vue>@vueuse/shared` override.** `@vueuse/head`
1.0.0 depends on `@unhead/vue` 0.5.1, which imports `resolveUnref` from
`@vueuse/shared`. Without the override, pnpm resolved `@vueuse/shared`
15.0.0, and the build failed: `"resolveUnref" is not exported by
@vueuse/shared`. Phase 5 replaces `@vueuse/head` and removes the
override.
- **Update `typescript` from 5.2.2 to 5.4.5, and `vue-tsc` from 1.8.1 to
1.8.27.** The Vue 3.5 type definitions use `NoInfer`, which TypeScript
5.2 does not provide, so `vue-tsc` failed. `vue-tsc` 1.8.27 crashed on
TypeScript 5.5.4, 5.6.3, 5.7.3, 5.8.3, and 5.9.3. TypeScript 5.4.5 is
the newest release that works with it. Phase 4 moves to `vue-tsc` 3 and
TypeScript 6 or 7.
- **Guard the command palette Enter handler.** Pressing Enter with no
matching option passed `undefined` to `activateOption`, which threw a
`TypeError` on `const { closeOnSelect } = option`. The Vue 3.5 types
exposed this bug.
- **Read the string obfuscator inputs with `toValue` from `vue`.** The
`get` function of `@vueuse/core` 10 does not accept the Vue 3.5
`MaybeRef` type. `toValue` reads refs and plain values the same way.

### Verification

I ran these steps on Node 26.13.0 with pnpm 9.15.9, on top of `main` at
`ee2e5ba`:

| Step | Result |
|---|---|
| `pnpm install` | Passed. No peer dependency warnings. `main` reports
3, all caused by Vue 3.3.4. |
| `pnpm lint` | Passed with the same 3 UnoCSS ordering warnings as
`main`. |
| `pnpm test` | 138 of 138 tests passed. |
| `pnpm typecheck` | Passed. |
| `pnpm build` | Passed. |
| `pnpm audit` | 6 critical, 81 high, 59 moderate, 17 low. `main`
reports 6, 90, 63, 17. |

Unverified:

- The E2E tests on Chromium, Firefox, and WebKit. The E2E workflow on
this PR confirms them.
- The tools whose library changed, in the Cloudflare preview deployment.
The main ones are the phone parser (`country-code-lookup`,
`libphonenumber-js`), the regex tester (`randexp`), the emoji picker
(`unicode-emoji-json`), the string obfuscator, the IBAN validator
(`ibantools`), the QR code generators (`qrcode`), the XML formatter
(`xml-formatter`), and the command palette.

### Additional context

`pnpm build` regenerated `components.d.ts` with icons that the committed
file was missing. This drift exists on `main`, so this PR does not
include it. Phase 2 regenerates the file.

---

### What is the purpose of this pull request?

- [ ] Bug fix
- [ ] New Feature
- [ ] Documentation update
- [x] Other

---
_Generated by [Claude
Code](https://claude.ai/code/session_01PEUYi2Ve581PMqxiDbPpuS)_

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Destan Sarpkaya 2026-11-04 21:43:54 +01:00 • committed by GitHub
parent 85183068cc
commit daad0a3264
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 890 additions and 1106 deletions

View file

@ -44,14 +44,13 @@
"@it-tools/oggen": "^1.3.0",
"@regexper/render": "^1.0.0",
"@sindresorhus/slugify": "^2.2.1",
"@tabler/icons-vue": "^3.20.0",
"@tabler/icons-vue": "^3.50.0",
"@tiptap/pm": "2.1.6",
"@tiptap/starter-kit": "2.1.6",
"@tiptap/vue-3": "2.0.3",
"@types/figlet": "^1.5.8",
"@types/markdown-it": "^13.0.7",
"@vicons/material": "^0.12.0",
"@vicons/tabler": "^0.12.0",
"@types/markdown-it": "^14.2.0",
"@vicons/material": "^0.13.0",
"@vicons/tabler": "^0.13.0",
"@vueuse/core": "^10.3.0",
"@vueuse/head": "^1.0.0",
"@vueuse/router": "^10.0.0",
@ -59,8 +58,8 @@
"change-case": "^4.1.2",
"colord": "^2.10.0",
"composerize-ts": "^0.6.2",
"country-code-lookup": "^0.1.0",
"cron-validator": "^1.3.1",
"country-code-lookup": "^0.2.2",
"cron-validator": "^1.4.0",
"cronstrue": "^2.26.0",
"crypto-js": "^4.2.0",
"date-fns": "^2.29.3",
@ -70,77 +69,76 @@
"figlet": "^1.12.0",
"figue": "^1.2.0",
"fuse.js": "^6.6.2",
"highlight.js": "^11.7.0",
"highlight.js": "^11.12.0",
"iarna-toml-esm": "^3.0.5",
"ibantools": "^4.3.3",
"js-base64": "^3.7.6",
"ibantools": "^4.5.4",
"js-base64": "^3.9.6",
"json5": "^2.2.3",
"jwt-decode": "^3.1.2",
"libphonenumber-js": "^1.10.28",
"libphonenumber-js": "^1.13.15",
"lodash": "^4.18.1",
"markdown-it": "^14.3.3",
"marked": "^10.0.0",
"mathjs": "^11.9.1",
"mime-types": "^2.1.35",
"monaco-editor": "^0.43.0",
"naive-ui": "^2.35.0",
"netmask": "^2.0.2",
"naive-ui": "^2.45.3",
"netmask": "^2.1.1",
"node-forge": "^1.4.3",
"oui-data": "^1.0.10",
"pdf-signature-reader": "^1.4.2",
"pdf-signature-reader": "^1.4.3",
"pinia": "^2.0.34",
"plausible-tracker": "^0.3.8",
"qrcode": "^1.5.1",
"randexp": "^0.5.3",
"plausible-tracker": "^0.3.9",
"qrcode": "^1.5.4",
"randexp": "^0.6.1",
"sql-formatter": "^13.0.0",
"ua-parser-js": "^1.0.35",
"ulid": "^2.3.0",
"unicode-emoji-json": "^0.4.0",
"unicode-emoji-json": "^0.9.0",
"unplugin-auto-import": "^0.16.4",
"uuid": "^9.0.0",
"vue": "^3.3.4",
"vue": "^3.5.44",
"vue-i18n": "^9.14.5",
"vue-router": "^4.1.6",
"vue-shadow-dom": "^4.2.0",
"vue-tsc": "^1.8.1",
"vue-tsc": "^1.8.27",
"vuedraggable": "^4.1.0",
"xml-formatter": "^3.3.2",
"xml-formatter": "^3.7.0",
"xml-js": "^1.6.11",
"yaml": "^2.9.1"
},
"devDependencies": {
"@antfu/eslint-config": "^0.41.0",
"@iconify-json/mdi": "^1.1.50",
"@iconify-json/mdi": "^1.2.3",
"@intlify/unplugin-vue-i18n": "^2.0.0",
"@playwright/test": "1.64.1",
"@rushstack/eslint-patch": "^1.2.0",
"@tsconfig/node18": "^18.2.0",
"@types/bcryptjs": "^2.4.2",
"@types/crypto-js": "^4.1.1",
"@types/dompurify": "^3.0.5",
"@types/crypto-js": "^4.2.2",
"@types/jsdom": "^21.0.0",
"@types/lodash": "^4.14.192",
"@types/lodash": "^4.17.27",
"@types/mime-types": "^2.1.1",
"@types/netmask": "^2.0.0",
"@types/netmask": "^2.0.6",
"@types/node": "^18.15.11",
"@types/node-forge": "^1.3.2",
"@types/qrcode": "^1.5.0",
"@types/node-forge": "^1.3.14",
"@types/qrcode": "^1.5.6",
"@types/ua-parser-js": "^0.7.36",
"@types/uuid": "^9.0.0",
"@unocss/eslint-config": "^0.57.0",
"@vitejs/plugin-vue": "^4.3.2",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"@vue/compiler-sfc": "^3.2.47",
"@vue/runtime-dom": "^3.3.4",
"@vue/test-utils": "^2.3.2",
"@vue/compiler-sfc": "^3.5.44",
"@vue/runtime-dom": "^3.5.44",
"@vue/test-utils": "^2.5.1",
"@vue/tsconfig": "^0.4.0",
"consola": "^3.0.2",
"consola": "^3.4.2",
"eslint": "^8.47.0",
"hygen": "^6.2.11",
"jsdom": "^22.0.0",
"less": "^4.1.3",
"prettier": "^3.0.0",
"typescript": "~5.2.0",
"less": "^4.9.1",
"prettier": "^3.9.10",
"typescript": "~5.4.5",
"unocss": "^0.65.1",
"unocss-preset-scrollbar": "^0.2.1",
"unplugin-icons": "^0.17.0",

1911
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -64,7 +64,9 @@ function handleKeydown(event: KeyboardEvent) {
.nth(selectedOptionIndex.value)
.value();
activateOption(option);
if (option) {
activateOption(option);
}
}
}

View file

@ -1,5 +1,4 @@
import { get } from '@vueuse/core';
import { type MaybeRef, computed } from 'vue';
import { type MaybeRef, computed, toValue } from 'vue';
export { obfuscateString, useObfuscateString };
@ -24,12 +23,12 @@ function useObfuscateString(
) {
return computed(() => obfuscateString(
get(str),
toValue(str),
{
replacementChar: get(config.replacementChar),
keepFirst: get(config.keepFirst),
keepLast: get(config.keepLast),
keepSpace: get(config.keepSpace),
replacementChar: toValue(config.replacementChar),
keepFirst: toValue(config.keepFirst),
keepLast: toValue(config.keepLast),
keepSpace: toValue(config.keepSpace),
},
));
}