diff --git a/packages/cli-v3/package.json b/packages/cli-v3/package.json index cc5c216de..47c128771 100644 --- a/packages/cli-v3/package.json +++ b/packages/cli-v3/package.json @@ -126,7 +126,6 @@ "source-map-support": "0.5.21", "std-env": "^3.7.0", "supports-color": "^10.0.0", - "terminal-link": "^3.0.0", "tiny-invariant": "^1.2.0", "tinyexec": "^0.3.1", "tinyglobby": "^0.2.10", diff --git a/packages/cli-v3/src/utilities/terminalLink.ts b/packages/cli-v3/src/utilities/terminalLink.ts index d12c2a82b..ce60d00b5 100644 --- a/packages/cli-v3/src/utilities/terminalLink.ts +++ b/packages/cli-v3/src/utilities/terminalLink.ts @@ -34,6 +34,8 @@ export type TerminalLinkOptions = { const link = terminalLink('My Website', 'https://sindresorhus.com'); console.log(link); ``` + + @deprecated The default fallback is broken in some terminals. Please use `cliLink` instead. */ function terminalLink( text: string, diff --git a/packages/cli-v3/types.d.ts b/packages/cli-v3/types.d.ts deleted file mode 100644 index c6d13651b..000000000 --- a/packages/cli-v3/types.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -declare module "terminal-link" { - export interface Options { - fallback?: ((text: string, url: string) => string) | boolean; - } - - /** - * @deprecated The default fallback is broken in some terminals. Please use `cliLink` instead. - */ - export default function terminalLink(text: string, url: string, options?: Options): string; -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5ff20d804..17d3d9196 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1266,9 +1266,6 @@ importers: supports-color: specifier: ^10.0.0 version: 10.0.0 - terminal-link: - specifier: ^3.0.0 - version: 3.0.0 tiny-invariant: specifier: ^1.2.0 version: 1.3.1 @@ -1280,7 +1277,7 @@ importers: version: 0.2.10 ws: specifier: ^8.18.0 - version: 8.18.0(bufferutil@4.0.9) + version: 8.18.0 xdg-app-paths: specifier: ^8.3.0 version: 8.3.0 @@ -1338,7 +1335,7 @@ importers: version: 5.0.7 ts-essentials: specifier: 10.0.1 - version: 10.0.1(typescript@5.5.4) + version: 10.0.1 tshy: specifier: ^3.0.2 version: 3.0.2 @@ -1347,7 +1344,7 @@ importers: version: 4.17.0 vitest: specifier: ^2.0.5 - version: 2.0.5(@types/node@20.14.14)(supports-color@10.0.0) + version: 2.0.5(supports-color@10.0.0) packages/core: dependencies: @@ -6216,7 +6213,7 @@ packages: '@open-draft/deferred-promise': 2.2.0 '@types/ws': 8.5.12 hono: 4.5.11 - ws: 8.18.0(bufferutil@4.0.9) + ws: 8.18.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -8187,7 +8184,7 @@ packages: '@hono/node-server': ^1.11.1 dependencies: '@hono/node-server': 1.12.2(hono@4.5.11) - ws: 8.18.0(bufferutil@4.0.9) + ws: 8.18.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -20595,6 +20592,7 @@ packages: requiresBuild: true dependencies: node-gyp-build: 4.8.4 + dev: false /buildcheck@0.0.6: resolution: {integrity: sha512-8f9ZJCUXyT1M35Jx7MkBgmBMo3oHTTBIPLiY9xyL0pl3T5RwcPEY8cUHr5LBNfu/fk6c2T4DJZuVM/8ZZT2D2A==} @@ -28388,6 +28386,7 @@ packages: /node-gyp-build@4.8.4: resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==} hasBin: true + dev: false /node-gyp@10.2.0: resolution: {integrity: sha512-sp3FonBAaFe4aYTcFdZUn2NYkbP7xroPGYvQmP4Nl5PxamznItBnNCgjrVTKrEfQynInMsJvZrdmqUnysCJ8rw==} @@ -33701,6 +33700,15 @@ packages: resolution: {integrity: sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==} dev: false + /ts-essentials@10.0.1: + resolution: {integrity: sha512-HPH+H2bkkO8FkMDau+hFvv7KYozzned9Zr1Urn7rRPXMF4mZmCKOq+u4AI1AAW+2bofIOXTuSdKo9drQuni2dQ==} + peerDependencies: + typescript: '>=4.5.0' + peerDependenciesMeta: + typescript: + optional: true + dev: true + /ts-essentials@10.0.1(typescript@5.5.4): resolution: {integrity: sha512-HPH+H2bkkO8FkMDau+hFvv7KYozzned9Zr1Urn7rRPXMF4mZmCKOq+u4AI1AAW+2bofIOXTuSdKo9drQuni2dQ==} peerDependencies: @@ -34993,7 +35001,7 @@ packages: - terser dev: true - /vite-node@2.0.5(@types/node@20.14.14)(supports-color@10.0.0): + /vite-node@2.0.5(supports-color@10.0.0): resolution: {integrity: sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -35002,7 +35010,7 @@ packages: debug: 4.4.0(supports-color@10.0.0) pathe: 1.1.2 tinyrainbow: 1.2.0 - vite: 5.2.7(@types/node@20.14.14) + vite: 5.2.7 transitivePeerDependencies: - '@types/node' - less @@ -35116,6 +35124,41 @@ packages: fsevents: 2.3.3 dev: true + /vite@5.2.7: + resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: 0.20.2 + postcss: 8.5.3 + rollup: 4.36.0 + optionalDependencies: + fsevents: 2.3.3 + dev: true + /vite@5.2.7(@types/node@20.14.14): resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -35320,7 +35363,7 @@ packages: - terser dev: true - /vitest@2.0.5(@types/node@20.14.14)(supports-color@10.0.0): + /vitest@2.0.5(supports-color@10.0.0): resolution: {integrity: sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -35346,7 +35389,6 @@ packages: optional: true dependencies: '@ampproject/remapping': 2.3.0 - '@types/node': 20.14.14 '@vitest/expect': 2.0.5 '@vitest/pretty-format': 2.0.5 '@vitest/runner': 2.0.5 @@ -35362,8 +35404,8 @@ packages: tinybench: 2.9.0 tinypool: 1.0.1 tinyrainbow: 1.2.0 - vite: 5.2.7(@types/node@20.14.14) - vite-node: 2.0.5(@types/node@20.14.14)(supports-color@10.0.0) + vite: 5.2.7 + vite-node: 2.0.5(supports-color@10.0.0) why-is-node-running: 2.3.0 transitivePeerDependencies: - less @@ -35848,6 +35890,18 @@ packages: optional: true dev: false + /ws@8.18.0: + resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + /ws@8.18.0(bufferutil@4.0.9): resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} engines: {node: '>=10.0.0'} @@ -35861,6 +35915,7 @@ packages: optional: true dependencies: bufferutil: 4.0.9 + dev: false /xdg-app-paths@8.3.0: resolution: {integrity: sha512-mgxlWVZw0TNWHoGmXq+NC3uhCIc55dDpAlDkMQUaIAcQzysb0kxctwv//fvuW61/nAAeUBJMQ8mnZjMmuYwOcQ==}