From 80d0e0ff7032c54a0f9d4c62bcc8351464bf9452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Wed, 22 Jan 2025 16:31:17 +0900 Subject: [PATCH] chore(deps): replace micromatch with picomatch (#4505) --- package.json | 4 ++-- pnpm-lock.yaml | 29 +++++++++++----------------- src/node/plugins/staticDataPlugin.ts | 2 +- 3 files changed, 14 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 580f92b3..c51e252f 100644 --- a/package.json +++ b/package.json @@ -138,9 +138,9 @@ "@types/markdown-it-attrs": "^4.1.3", "@types/markdown-it-container": "^2.0.10", "@types/markdown-it-emoji": "^3.0.1", - "@types/micromatch": "^4.0.9", "@types/minimist": "^1.2.5", "@types/node": "^22.10.7", + "@types/picomatch": "^3.0.2", "@types/postcss-prefix-selector": "^1.16.3", "@types/prompts": "^2.4.9", "chokidar": "^4.0.3", @@ -161,13 +161,13 @@ "markdown-it-container": "^4.0.0", "markdown-it-emoji": "^3.0.0", "markdown-it-mathjax3": "^4.3.2", - "micromatch": "^4.0.8", "minimist": "^1.2.8", "nanoid": "^5.0.9", "ora": "^8.1.1", "p-map": "^7.0.3", "path-to-regexp": "^6.3.0", "picocolors": "^1.1.1", + "picomatch": "^4.0.2", "pkg-dir": "^8.0.0", "playwright-chromium": "^1.49.1", "polka": "^1.0.0-next.28", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index be2dd95d..33fc3990 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -140,15 +140,15 @@ importers: '@types/markdown-it-emoji': specifier: ^3.0.1 version: 3.0.1 - '@types/micromatch': - specifier: ^4.0.9 - version: 4.0.9 '@types/minimist': specifier: ^1.2.5 version: 1.2.5 '@types/node': specifier: ^22.10.7 version: 22.10.7 + '@types/picomatch': + specifier: ^3.0.2 + version: 3.0.2 '@types/postcss-prefix-selector': specifier: ^1.16.3 version: 1.16.3 @@ -209,9 +209,6 @@ importers: markdown-it-mathjax3: specifier: ^4.3.2 version: 4.3.2 - micromatch: - specifier: ^4.0.8 - version: 4.0.8 minimist: specifier: ^1.2.8 version: 1.2.8 @@ -230,6 +227,9 @@ importers: picocolors: specifier: ^1.1.1 version: 1.1.1 + picomatch: + specifier: ^4.0.2 + version: 4.0.2 pkg-dir: specifier: ^8.0.0 version: 8.0.0 @@ -904,9 +904,6 @@ packages: '@tokenizer/token@0.3.0': resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==} - '@types/braces@3.0.5': - resolution: {integrity: sha512-SQFof9H+LXeWNz8wDe7oN5zu7ket0qwMu5vZubW4GCJ8Kkeh6nBWUz87+KTz/G3Kqsrp0j/W253XJb3KMEeg3w==} - '@types/cross-spawn@6.0.6': resolution: {integrity: sha512-fXRhhUkG4H3TQk5dBhQ7m/JDdSNHKwR2BBia62lhwEIq9xGiQKLxd6LymNhn47SjXhsUEPmxi+PKw2OkW4LLjA==} @@ -958,9 +955,6 @@ packages: '@types/mdurl@2.0.0': resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==} - '@types/micromatch@4.0.9': - resolution: {integrity: sha512-7V+8ncr22h4UoYRLnLXSpTxjQrNUXtWHGeMPRJt1nULXI57G9bIcpyrHlmrQ7QK24EyyuXvYcSSWAM8GA9nqCg==} - '@types/minimist@1.2.5': resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} @@ -976,6 +970,9 @@ packages: '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} + '@types/picomatch@3.0.2': + resolution: {integrity: sha512-n0i8TD3UDB7paoMMxA3Y65vUncFJXjcUf7lQY7YyKGl6031FNjfsLs6pdLFCy2GNFxItPJG8GvvpbZc2skH7WA==} + '@types/postcss-prefix-selector@1.16.3': resolution: {integrity: sha512-YZLPWRkJIrYjwaqojVDXzaRCAEYslRAm8Shznwwn+ZFA4iKQR4LZlS3d+ZMVteFz4iyQnngZZG7k/GIzV1f3mQ==} @@ -3329,8 +3326,6 @@ snapshots: '@tokenizer/token@0.3.0': {} - '@types/braces@3.0.5': {} - '@types/cross-spawn@6.0.6': dependencies: '@types/node': 22.10.7 @@ -3393,10 +3388,6 @@ snapshots: '@types/mdurl@2.0.0(patch_hash=ztuyknm7z4pyl4jot5hljjv5bm)': {} - '@types/micromatch@4.0.9': - dependencies: - '@types/braces': 3.0.5 - '@types/minimist@1.2.5': {} '@types/ms@2.1.0': {} @@ -3409,6 +3400,8 @@ snapshots: '@types/normalize-package-data@2.4.4': {} + '@types/picomatch@3.0.2': {} + '@types/postcss-prefix-selector@1.16.3': dependencies: postcss: 8.5.1 diff --git a/src/node/plugins/staticDataPlugin.ts b/src/node/plugins/staticDataPlugin.ts index 9d640927..6e420ec2 100644 --- a/src/node/plugins/staticDataPlugin.ts +++ b/src/node/plugins/staticDataPlugin.ts @@ -1,4 +1,4 @@ -import { isMatch } from 'micromatch' +import { isMatch } from 'picomatch' import path, { dirname, resolve } from 'node:path' import { glob } from 'tinyglobby' import {