[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

chore: replace fast-glob with tinyglobby (#6274)

authored by

Superchupu and committed by
GitHub
(Sep 6, 2024, 2:49 PM +0200) c321a3fd 02825649

+70 -403
+1 -1
package.json
··· 52 52 "changelogithub": "^0.13.9", 53 53 "esbuild": "^0.23.0", 54 54 "eslint": "^9.9.0", 55 - "fast-glob": "^3.3.2", 56 55 "magic-string": "^0.30.11", 57 56 "pathe": "^1.1.2", 58 57 "rimraf": "^6.0.1", ··· 60 59 "rollup-plugin-dts": "^6.1.1", 61 60 "rollup-plugin-esbuild": "^6.1.1", 62 61 "rollup-plugin-license": "^3.5.2", 62 + "tinyglobby": "^0.2.5", 63 63 "tsx": "^4.17.0", 64 64 "typescript": "^5.5.4", 65 65 "vite": "^5.4.0",
+19 -28
pnpm-lock.yaml
··· 83 83 eslint: 84 84 specifier: ^9.9.0 85 85 version: 9.9.0(jiti@1.21.6) 86 - fast-glob: 87 - specifier: ^3.3.2 88 - version: 3.3.2 89 86 magic-string: 90 87 specifier: ^0.30.11 91 88 version: 0.30.11 ··· 107 104 rollup-plugin-license: 108 105 specifier: ^3.5.2 109 106 version: 3.5.2(rollup@4.20.0) 107 + tinyglobby: 108 + specifier: ^0.2.5 109 + version: 0.2.5 110 110 tsx: 111 111 specifier: ^4.17.0 112 112 version: 4.17.0 ··· 153 153 '@vitejs/plugin-vue': 154 154 specifier: ^5.1.2 155 155 version: 5.1.2(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0))(vue@3.4.37(typescript@5.5.4)) 156 - fast-glob: 157 - specifier: ^3.3.2 158 - version: 3.3.2 159 156 https-localhost: 160 157 specifier: ^4.7.1 161 158 version: 4.7.1 159 + tinyglobby: 160 + specifier: ^0.2.5 161 + version: 0.2.5 162 162 unocss: 163 163 specifier: ^0.62.0 164 164 version: 0.62.0(postcss@8.4.40)(rollup@4.20.0)(vite@5.4.0(@types/node@22.5.2)(terser@5.22.0)) ··· 749 749 '@vitest/utils': 750 750 specifier: workspace:* 751 751 version: link:../utils 752 - fast-glob: 753 - specifier: ^3.3.2 754 - version: 3.3.2 755 752 fflate: 756 753 specifier: ^0.8.2 757 754 version: 0.8.2 ··· 764 761 sirv: 765 762 specifier: ^2.0.4 766 763 version: 2.0.4 764 + tinyglobby: 765 + specifier: ^0.2.5 766 + version: 0.2.5 767 767 tinyrainbow: 768 768 specifier: ^1.2.0 769 769 version: 1.2.0 ··· 1032 1032 expect-type: 1033 1033 specifier: ^0.19.0 1034 1034 version: 0.19.0 1035 - fast-glob: 1036 - specifier: ^3.3.2 1037 - version: 3.3.2 1038 1035 find-up: 1039 1036 specifier: ^6.3.0 1040 1037 version: 6.3.0 ··· 1071 1068 strip-literal: 1072 1069 specifier: ^2.1.0 1073 1070 version: 2.1.0 1071 + tinyglobby: 1072 + specifier: ^0.2.5 1073 + version: 0.2.5 1074 1074 ws: 1075 1075 specifier: ^8.18.0 1076 1076 version: 8.18.0 ··· 8583 8583 tinyexec@0.3.0: 8584 8584 resolution: {integrity: sha512-tVGE0mVJPGb0chKhqmsoosjsS+qUnJVGJpZgsHYQcGoPlG3B51R3PouqTgEGH2Dc9jjFyOqOpix6ZHNMXp1FZg==} 8585 8585 8586 - tinyglobby@0.2.0: 8587 - resolution: {integrity: sha512-+clyYQfAnNlt5a1x7CCQ6RLuTIztDfDAl6mAANvqRUlz6sVy5znCzJOhais8G6oyUyoeeaorLopO3HptVP8niA==} 8588 - engines: {node: '>=12.0.0'} 8589 - 8590 - tinyglobby@0.2.2: 8591 - resolution: {integrity: sha512-mZ2sDMaySvi1PkTp4lTo1In2zjU+cY8OvZsfwrDrx3YGRbXPX1/cbPwCR9zkm3O/Fz9Jo0F1HNgIQ1b8BepqyQ==} 8586 + tinyglobby@0.2.5: 8587 + resolution: {integrity: sha512-Dlqgt6h0QkoHttG53/WGADNh9QhcjCAIZMTERAVhdpmIBEejSuLI9ZmGKWzB7tweBjlk30+s/ofi4SLmBeTYhw==} 8592 8588 engines: {node: '>=12.0.0'} 8593 8589 8594 8590 tinyhighlight@0.3.2: ··· 12333 12329 magic-string: 0.30.11 12334 12330 pathe: 1.1.2 12335 12331 perfect-debounce: 1.0.0 12336 - tinyglobby: 0.2.2 12332 + tinyglobby: 0.2.5 12337 12333 transitivePeerDependencies: 12338 12334 - rollup 12339 12335 - supports-color ··· 12366 12362 css-tree: 2.3.1 12367 12363 magic-string: 0.30.11 12368 12364 postcss: 8.4.40 12369 - tinyglobby: 0.2.2 12365 + tinyglobby: 0.2.5 12370 12366 transitivePeerDependencies: 12371 12367 - supports-color 12372 12368 ··· 12462 12458 '@unocss/transformer-directives': 0.62.0 12463 12459 chokidar: 3.6.0 12464 12460 magic-string: 0.30.11 12465 - tinyglobby: 0.2.2 12461 + tinyglobby: 0.2.5 12466 12462 vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) 12467 12463 transitivePeerDependencies: 12468 12464 - rollup ··· 17933 17929 17934 17930 tinyexec@0.3.0: {} 17935 17931 17936 - tinyglobby@0.2.0: 17937 - dependencies: 17938 - fdir: 6.2.0(picomatch@4.0.2) 17939 - picomatch: 4.0.2 17940 - 17941 - tinyglobby@0.2.2: 17932 + tinyglobby@0.2.5: 17942 17933 dependencies: 17943 17934 fdir: 6.2.0(picomatch@4.0.2) 17944 17935 picomatch: 4.0.2 ··· 18441 18432 dependencies: 18442 18433 debug: 4.3.6 18443 18434 pretty-bytes: 6.1.1 18444 - tinyglobby: 0.2.0 18435 + tinyglobby: 0.2.5 18445 18436 vite: 5.4.0(@types/node@22.5.2)(terser@5.22.0) 18446 18437 workbox-build: 7.1.0(@types/babel__core@7.20.5) 18447 18438 workbox-window: 7.1.0
+1 -1
docs/package.json
··· 25 25 "@vite-pwa/assets-generator": "^0.2.4", 26 26 "@vite-pwa/vitepress": "^0.5.0", 27 27 "@vitejs/plugin-vue": "^5.1.2", 28 - "fast-glob": "^3.3.2", 29 28 "https-localhost": "^4.7.1", 29 + "tinyglobby": "^0.2.5", 30 30 "unocss": "^0.62.0", 31 31 "unplugin-vue-components": "^0.27.4", 32 32 "vite": "^5.2.8",
+2 -2
scripts/release.ts
··· 1 1 #!/usr/bin/env zx 2 2 3 3 import { versionBump } from 'bumpp' 4 - import glob from 'fast-glob' 4 + import { glob } from 'tinyglobby' 5 5 import { $ } from 'zx' 6 6 7 7 try { 8 - const packages = await glob(['package.json', './packages/*/package.json']) 8 + const packages = await glob(['package.json', './packages/*/package.json'], { expandDirectories: false }) 9 9 10 10 console.log('Bumping versions in packages:', packages.join(', '), '\n') 11 11
+1 -1
packages/ui/package.json
··· 48 48 }, 49 49 "dependencies": { 50 50 "@vitest/utils": "workspace:*", 51 - "fast-glob": "^3.3.2", 52 51 "fflate": "^0.8.2", 53 52 "flatted": "^3.3.1", 54 53 "pathe": "^1.1.2", 55 54 "sirv": "^2.0.4", 55 + "tinyglobby": "^0.2.5", 56 56 "tinyrainbow": "^1.2.0" 57 57 }, 58 58 "devDependencies": {
+3 -324
packages/vitest/LICENSE.md
··· 57 57 58 58 --------------------------------------- 59 59 60 - ## @nodelib/fs.scandir 61 - License: MIT 62 - Repository: https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir 63 - 64 - > The MIT License (MIT) 65 - > 66 - > Copyright (c) Denis Malinochkin 67 - > 68 - > Permission is hereby granted, free of charge, to any person obtaining a copy 69 - > of this software and associated documentation files (the "Software"), to deal 70 - > in the Software without restriction, including without limitation the rights 71 - > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 72 - > copies of the Software, and to permit persons to whom the Software is 73 - > furnished to do so, subject to the following conditions: 74 - > 75 - > The above copyright notice and this permission notice shall be included in all 76 - > copies or substantial portions of the Software. 77 - > 78 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 79 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 80 - > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 81 - > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 82 - > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 83 - > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 84 - > SOFTWARE. 85 - 86 - --------------------------------------- 87 - 88 - ## @nodelib/fs.stat 89 - License: MIT 90 - Repository: https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.stat 91 - 92 - > The MIT License (MIT) 93 - > 94 - > Copyright (c) Denis Malinochkin 95 - > 96 - > Permission is hereby granted, free of charge, to any person obtaining a copy 97 - > of this software and associated documentation files (the "Software"), to deal 98 - > in the Software without restriction, including without limitation the rights 99 - > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 100 - > copies of the Software, and to permit persons to whom the Software is 101 - > furnished to do so, subject to the following conditions: 102 - > 103 - > The above copyright notice and this permission notice shall be included in all 104 - > copies or substantial portions of the Software. 105 - > 106 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 107 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 108 - > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 109 - > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 110 - > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 111 - > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 112 - > SOFTWARE. 113 - 114 - --------------------------------------- 115 - 116 - ## @nodelib/fs.walk 117 - License: MIT 118 - Repository: https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk 119 - 120 - > The MIT License (MIT) 121 - > 122 - > Copyright (c) Denis Malinochkin 123 - > 124 - > Permission is hereby granted, free of charge, to any person obtaining a copy 125 - > of this software and associated documentation files (the "Software"), to deal 126 - > in the Software without restriction, including without limitation the rights 127 - > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 128 - > copies of the Software, and to permit persons to whom the Software is 129 - > furnished to do so, subject to the following conditions: 130 - > 131 - > The above copyright notice and this permission notice shall be included in all 132 - > copies or substantial portions of the Software. 133 - > 134 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 135 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 136 - > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 137 - > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 138 - > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 139 - > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 140 - > SOFTWARE. 141 - 142 - --------------------------------------- 143 - 144 60 ## @sinonjs/commons 145 61 License: BSD-3-Clause 146 62 Repository: git+https://github.com/sinonjs/commons.git ··· 669 585 670 586 --------------------------------------- 671 587 672 - ## fast-glob 588 + ## fdir 673 589 License: MIT 674 - By: Denis Malinochkin 675 - Repository: mrmlnc/fast-glob 676 - 677 - > The MIT License (MIT) 678 - > 679 - > Copyright (c) Denis Malinochkin 680 - > 681 - > Permission is hereby granted, free of charge, to any person obtaining a copy 682 - > of this software and associated documentation files (the "Software"), to deal 683 - > in the Software without restriction, including without limitation the rights 684 - > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 685 - > copies of the Software, and to permit persons to whom the Software is 686 - > furnished to do so, subject to the following conditions: 687 - > 688 - > The above copyright notice and this permission notice shall be included in all 689 - > copies or substantial portions of the Software. 690 - > 691 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 692 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 693 - > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 694 - > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 695 - > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 696 - > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 697 - > SOFTWARE. 698 - 699 - --------------------------------------- 700 - 701 - ## fastq 702 - License: ISC 703 - By: Matteo Collina 704 - Repository: git+https://github.com/mcollina/fastq.git 705 - 706 - > Copyright (c) 2015-2020, Matteo Collina <matteo.collina@gmail.com> 707 - > 708 - > Permission to use, copy, modify, and/or distribute this software for any 709 - > purpose with or without fee is hereby granted, provided that the above 710 - > copyright notice and this permission notice appear in all copies. 711 - > 712 - > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 713 - > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 714 - > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 715 - > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 716 - > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 717 - > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 718 - > OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 590 + By: thecodrr 591 + Repository: git+https://github.com/thecodrr/fdir.git 719 592 720 593 --------------------------------------- 721 594 ··· 834 707 835 708 --------------------------------------- 836 709 837 - ## glob-parent 838 - License: ISC 839 - By: Gulp Team, Elan Shanker, Blaine Bublitz 840 - Repository: gulpjs/glob-parent 841 - 842 - > The ISC License 843 - > 844 - > Copyright (c) 2015, 2019 Elan Shanker 845 - > 846 - > Permission to use, copy, modify, and/or distribute this software for any 847 - > purpose with or without fee is hereby granted, provided that the above 848 - > copyright notice and this permission notice appear in all copies. 849 - > 850 - > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 851 - > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 852 - > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 853 - > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 854 - > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 855 - > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 856 - > IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 857 - 858 - --------------------------------------- 859 - 860 - ## is-extglob 861 - License: MIT 862 - By: Jon Schlinkert 863 - Repository: jonschlinkert/is-extglob 864 - 865 - > The MIT License (MIT) 866 - > 867 - > Copyright (c) 2014-2016, Jon Schlinkert 868 - > 869 - > Permission is hereby granted, free of charge, to any person obtaining a copy 870 - > of this software and associated documentation files (the "Software"), to deal 871 - > in the Software without restriction, including without limitation the rights 872 - > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 873 - > copies of the Software, and to permit persons to whom the Software is 874 - > furnished to do so, subject to the following conditions: 875 - > 876 - > The above copyright notice and this permission notice shall be included in 877 - > all copies or substantial portions of the Software. 878 - > 879 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 880 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 881 - > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 882 - > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 883 - > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 884 - > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 885 - > THE SOFTWARE. 886 - 887 - --------------------------------------- 888 - 889 710 ## is-fullwidth-code-point 890 711 License: MIT 891 712 By: Sindre Sorhus ··· 900 721 > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 901 722 > 902 723 > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 903 - 904 - --------------------------------------- 905 - 906 - ## is-glob 907 - License: MIT 908 - By: Jon Schlinkert, Brian Woodward, Daniel Perez 909 - Repository: micromatch/is-glob 910 - 911 - > The MIT License (MIT) 912 - > 913 - > Copyright (c) 2014-2017, Jon Schlinkert. 914 - > 915 - > Permission is hereby granted, free of charge, to any person obtaining a copy 916 - > of this software and associated documentation files (the "Software"), to deal 917 - > in the Software without restriction, including without limitation the rights 918 - > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 919 - > copies of the Software, and to permit persons to whom the Software is 920 - > furnished to do so, subject to the following conditions: 921 - > 922 - > The above copyright notice and this permission notice shall be included in 923 - > all copies or substantial portions of the Software. 924 - > 925 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 926 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 927 - > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 928 - > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 929 - > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 930 - > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 931 - > THE SOFTWARE. 932 724 933 725 --------------------------------------- 934 726 ··· 1079 871 > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 1080 872 > 1081 873 > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1082 - 1083 - --------------------------------------- 1084 - 1085 - ## merge2 1086 - License: MIT 1087 - Repository: git@github.com:teambition/merge2.git 1088 - 1089 - > The MIT License (MIT) 1090 - > 1091 - > Copyright (c) 2014-2020 Teambition 1092 - > 1093 - > Permission is hereby granted, free of charge, to any person obtaining a copy 1094 - > of this software and associated documentation files (the "Software"), to deal 1095 - > in the Software without restriction, including without limitation the rights 1096 - > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1097 - > copies of the Software, and to permit persons to whom the Software is 1098 - > furnished to do so, subject to the following conditions: 1099 - > 1100 - > The above copyright notice and this permission notice shall be included in all 1101 - > copies or substantial portions of the Software. 1102 - > 1103 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1104 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1105 - > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1106 - > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1107 - > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1108 - > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1109 - > SOFTWARE. 1110 874 1111 875 --------------------------------------- 1112 876 ··· 1322 1086 1323 1087 --------------------------------------- 1324 1088 1325 - ## queue-microtask 1326 - License: MIT 1327 - By: Feross Aboukhadijeh 1328 - Repository: git://github.com/feross/queue-microtask.git 1329 - 1330 - > The MIT License (MIT) 1331 - > 1332 - > Copyright (c) Feross Aboukhadijeh 1333 - > 1334 - > Permission is hereby granted, free of charge, to any person obtaining a copy of 1335 - > this software and associated documentation files (the "Software"), to deal in 1336 - > the Software without restriction, including without limitation the rights to 1337 - > use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 1338 - > the Software, and to permit persons to whom the Software is furnished to do so, 1339 - > subject to the following conditions: 1340 - > 1341 - > The above copyright notice and this permission notice shall be included in all 1342 - > copies or substantial portions of the Software. 1343 - > 1344 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1345 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 1346 - > FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 1347 - > COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 1348 - > IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1349 - > CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1350 - 1351 - --------------------------------------- 1352 - 1353 1089 ## resolve-pkg-maps 1354 1090 License: MIT 1355 1091 By: Hiroki Osame ··· 1393 1129 > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 1394 1130 > 1395 1131 > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1396 - 1397 - --------------------------------------- 1398 - 1399 - ## reusify 1400 - License: MIT 1401 - By: Matteo Collina 1402 - Repository: git+https://github.com/mcollina/reusify.git 1403 - 1404 - > The MIT License (MIT) 1405 - > 1406 - > Copyright (c) 2015 Matteo Collina 1407 - > 1408 - > Permission is hereby granted, free of charge, to any person obtaining a copy 1409 - > of this software and associated documentation files (the "Software"), to deal 1410 - > in the Software without restriction, including without limitation the rights 1411 - > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1412 - > copies of the Software, and to permit persons to whom the Software is 1413 - > furnished to do so, subject to the following conditions: 1414 - > 1415 - > The above copyright notice and this permission notice shall be included in all 1416 - > copies or substantial portions of the Software. 1417 - > 1418 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1419 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1420 - > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1421 - > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1422 - > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1423 - > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1424 - > SOFTWARE. 1425 - 1426 - --------------------------------------- 1427 - 1428 - ## run-parallel 1429 - License: MIT 1430 - By: Feross Aboukhadijeh 1431 - Repository: git://github.com/feross/run-parallel.git 1432 - 1433 - > The MIT License (MIT) 1434 - > 1435 - > Copyright (c) Feross Aboukhadijeh 1436 - > 1437 - > Permission is hereby granted, free of charge, to any person obtaining a copy of 1438 - > this software and associated documentation files (the "Software"), to deal in 1439 - > the Software without restriction, including without limitation the rights to 1440 - > use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 1441 - > the Software, and to permit persons to whom the Software is furnished to do so, 1442 - > subject to the following conditions: 1443 - > 1444 - > The above copyright notice and this permission notice shall be included in all 1445 - > copies or substantial portions of the Software. 1446 - > 1447 - > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1448 - > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 1449 - > FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 1450 - > COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 1451 - > IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1452 - > CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1453 1132 1454 1133 --------------------------------------- 1455 1134
+1 -1
packages/vitest/package.json
··· 190 190 "chai-subset": "^1.6.0", 191 191 "cli-truncate": "^4.0.0", 192 192 "expect-type": "^0.19.0", 193 - "fast-glob": "^3.3.2", 194 193 "find-up": "^6.3.0", 195 194 "flatted": "^3.3.1", 196 195 "get-tsconfig": "^4.7.6", ··· 203 202 "prompts": "^2.4.2", 204 203 "strip-ansi": "^7.1.0", 205 204 "strip-literal": "^2.1.0", 205 + "tinyglobby": "^0.2.5", 206 206 "ws": "^8.18.0" 207 207 } 208 208 }
+2 -4
packages/vitest/rollup.config.js
··· 8 8 import commonjs from '@rollup/plugin-commonjs' 9 9 import json from '@rollup/plugin-json' 10 10 import license from 'rollup-plugin-license' 11 + import { globSync } from 'tinyglobby' 11 12 import c from 'tinyrainbow' 12 - import fg from 'fast-glob' 13 13 import { defineConfig } from 'rollup' 14 14 15 15 const require = createRequire(import.meta.url) ··· 198 198 preserveSymlinks: false, 199 199 }), 200 200 ) 201 - const licenseFile = fg.sync(`${pkgDir}/LICENSE*`, { 202 - caseSensitiveMatch: false, 203 - })[0] 201 + const [licenseFile] = globSync([`${pkgDir}/(LICENSE)|(license)*`], { expandDirectories: false }) 204 202 if (licenseFile) { 205 203 licenseText = fs.readFileSync(licenseFile, 'utf-8') 206 204 }
+2 -2
packages/ui/node/reporter.ts
··· 3 3 import { promisify } from 'node:util' 4 4 import { gzip, constants as zlibConstants } from 'node:zlib' 5 5 import { basename, dirname, relative, resolve } from 'pathe' 6 + import { globSync } from 'tinyglobby' 6 7 import c from 'tinyrainbow' 7 - import fg from 'fast-glob' 8 8 import { stringify } from 'flatted' 9 9 import type { 10 10 File, ··· 111 111 await fs.writeFile(metaFile, data, 'base64') 112 112 const ui = resolve(distDir, 'client') 113 113 // copy ui 114 - const files = fg.sync('**/*', { cwd: ui }) 114 + const files = globSync(['**/*'], { cwd: ui, expandDirectories: false }) 115 115 await Promise.all( 116 116 files.map(async (f) => { 117 117 if (f === 'index.html') {
+2 -2
test/cli/test/fails.test.ts
··· 1 1 import { resolve } from 'pathe' 2 - import fg from 'fast-glob' 2 + import { glob } from 'tinyglobby' 3 3 import { expect, it } from 'vitest' 4 4 5 5 import { runVitest } from '../../test-utils' 6 6 7 7 const root = resolve(__dirname, '../fixtures/fails') 8 - const files = await fg('**/*.test.ts', { cwd: root, dot: true }) 8 + const files = await glob(['**/*.test.ts'], { cwd: root, dot: true, expandDirectories: false }) 9 9 10 10 it.each(files)('should fail %s', async (file) => { 11 11 const { stderr } = await runVitest({
+2 -2
test/cli/test/stacktraces.test.ts
··· 1 1 import { resolve } from 'pathe' 2 - import fg from 'fast-glob' 2 + import { glob } from 'tinyglobby' 3 3 import { describe, expect, it } from 'vitest' 4 4 5 5 import { runVitest } from '../../test-utils' ··· 9 9 10 10 describe('stacktraces should respect sourcemaps', async () => { 11 11 const root = resolve(__dirname, '../fixtures/stacktraces') 12 - const files = await fg('*.test.*', { cwd: root }) 12 + const files = await glob(['*.test.*'], { cwd: root, expandDirectories: false }) 13 13 14 14 for (const file of files) { 15 15 it(file, async () => {
+2 -2
test/typescript/test/runner.test.ts
··· 1 1 import { resolve } from 'pathe' 2 - import fg from 'fast-glob' 2 + import { glob } from 'tinyglobby' 3 3 import { describe, expect, it } from 'vitest' 4 4 5 5 import { runVitest } from '../../test-utils' 6 6 7 7 describe('should fail', async () => { 8 8 const root = resolve(__dirname, '../failing') 9 - const files = await fg('*.test-d.*', { cwd: root }) 9 + const files = await glob(['*.test-d.*'], { cwd: root, expandDirectories: false }) 10 10 11 11 it('typecheck files', async () => { 12 12 const { stderr } = await runVitest({
+2 -2
packages/browser/src/client/vite.config.ts
··· 2 2 import fs from 'node:fs' 3 3 import { defineConfig } from 'vite' 4 4 import { resolve } from 'pathe' 5 - import fg from 'fast-glob' 5 + import { globSync } from 'tinyglobby' 6 6 7 7 export default defineConfig({ 8 8 server: { ··· 51 51 await waitFor(() => fs.existsSync(ui)) 52 52 clearTimeout(timeout) 53 53 54 - const files = fg.sync('**/*', { cwd: ui }) 54 + const files = globSync(['**/*'], { cwd: ui, expandDirectories: false }) 55 55 56 56 if (fs.existsSync(browser)) { 57 57 fs.rmSync(browser, { recursive: true })
+5 -6
packages/vitest/src/node/workspace.ts
··· 1 1 import { promises as fs } from 'node:fs' 2 2 import { tmpdir } from 'node:os' 3 3 import { rm } from 'node:fs/promises' 4 - import fg from 'fast-glob' 5 4 import mm from 'micromatch' 6 5 import { 7 6 dirname, ··· 18 17 } from 'vite' 19 18 import { ViteNodeRunner } from 'vite-node/client' 20 19 import { ViteNodeServer } from 'vite-node/server' 20 + import { glob } from 'tinyglobby' 21 21 import type { Typechecker } from '../typecheck/typechecker' 22 22 import { deepMerge, nanoid } from '../utils/base' 23 23 import { setup } from '../api/setup' ··· 296 296 } 297 297 298 298 async globFiles(include: string[], exclude: string[], cwd: string) { 299 - const globOptions: fg.Options = { 299 + return glob(include, { 300 + absolute: true, 300 301 dot: true, 301 302 cwd, 302 303 ignore: exclude, 303 - } 304 - 305 - const files = await fg(include, globOptions) 306 - return files.map(file => resolve(cwd, file)) 304 + expandDirectories: false, 305 + }) 307 306 } 308 307 309 308 async isTargetFile(id: string, source?: string): Promise<boolean> {
+21 -21
test/cli/test/__snapshots__/list.test.ts.snap
··· 1 1 // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html 2 2 3 3 exports[`basic output shows error 1`] = ` 4 - "Error: top level error 5 - ❯ top-level-error.test.ts:1:7 6 - 1| throw new Error('top level error') 7 - | ^ 8 - 2| 9 - 10 - Error: describe error 4 + "Error: describe error 11 5 ❯ describe-error.test.ts:4:9 12 6 2| 13 7 3| describe('describe error', () => { ··· 15 9 | ^ 16 10 5| 17 11 6| it('wont run', () => { 12 + 13 + Error: top level error 14 + ❯ top-level-error.test.ts:1:7 15 + 1| throw new Error('top level error') 16 + | ^ 17 + 2| 18 18 19 19 " 20 20 `; ··· 60 60 `; 61 61 62 62 exports[`json output shows error 1`] = ` 63 - "Error: top level error 64 - ❯ top-level-error.test.ts:1:7 65 - 1| throw new Error('top level error') 66 - | ^ 67 - 2| 68 - 69 - Error: describe error 63 + "Error: describe error 70 64 ❯ describe-error.test.ts:4:9 71 65 2| 72 66 3| describe('describe error', () => { ··· 74 68 | ^ 75 69 5| 76 70 6| it('wont run', () => { 71 + 72 + Error: top level error 73 + ❯ top-level-error.test.ts:1:7 74 + 1| throw new Error('top level error') 75 + | ^ 76 + 2| 77 77 78 78 " 79 79 `; 80 80 81 81 exports[`json with a file output shows error 1`] = ` 82 - "Error: top level error 83 - ❯ top-level-error.test.ts:1:7 84 - 1| throw new Error('top level error') 85 - | ^ 86 - 2| 87 - 88 - Error: describe error 82 + "Error: describe error 89 83 ❯ describe-error.test.ts:4:9 90 84 2| 91 85 3| describe('describe error', () => { ··· 93 87 | ^ 94 88 5| 95 89 6| it('wont run', () => { 90 + 91 + Error: top level error 92 + ❯ top-level-error.test.ts:1:7 93 + 1| throw new Error('top level error') 94 + | ^ 95 + 2| 96 96 97 97 " 98 98 `;
+4 -4
packages/vitest/src/node/workspace/resolveWorkspace.ts
··· 1 1 import { existsSync, promises as fs } from 'node:fs' 2 2 import { isMainThread } from 'node:worker_threads' 3 3 import { dirname, relative, resolve } from 'pathe' 4 + import { type GlobOptions, glob } from 'tinyglobby' 4 5 import { mergeConfig } from 'vite' 5 - import fg from 'fast-glob' 6 6 import type { Vitest } from '../core' 7 7 import type { UserConfig, UserWorkspaceConfig, WorkspaceProjectConfiguration } from '../types/config' 8 8 import type { WorkspaceProject } from '../workspace' ··· 198 198 } 199 199 200 200 if (workspaceGlobMatches.length) { 201 - const globOptions: fg.Options = { 201 + const globOptions: GlobOptions = { 202 202 absolute: true, 203 203 dot: true, 204 204 onlyFiles: false, 205 - markDirectories: true, 206 205 cwd: vitest.config.root, 206 + expandDirectories: false, 207 207 ignore: ['**/node_modules/**', '**/*.timestamp-*'], 208 208 } 209 209 210 - const workspacesFs = await fg(workspaceGlobMatches, globOptions) 210 + const workspacesFs = await glob(workspaceGlobMatches, globOptions) 211 211 212 212 await Promise.all(workspacesFs.map(async (filepath) => { 213 213 // directories are allowed with a glob like `packages/*`