@parcel/utils
Advanced tools
Comparing version 2.12.0 to 2.13.0
{ | ||
"name": "@parcel/utils", | ||
"version": "2.12.0", | ||
"version": "2.13.0", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -20,3 +20,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">= 12.0.0" | ||
"node": ">= 16.0.0" | ||
}, | ||
@@ -37,9 +37,9 @@ "targets": { | ||
"dependencies": { | ||
"@parcel/codeframe": "2.12.0", | ||
"@parcel/diagnostic": "2.12.0", | ||
"@parcel/logger": "2.12.0", | ||
"@parcel/markdown-ansi": "2.12.0", | ||
"@parcel/rust": "2.12.0", | ||
"@parcel/codeframe": "2.13.0", | ||
"@parcel/diagnostic": "2.13.0", | ||
"@parcel/logger": "2.13.0", | ||
"@parcel/markdown-ansi": "2.13.0", | ||
"@parcel/rust": "2.13.0", | ||
"@parcel/source-map": "^2.1.1", | ||
"chalk": "^4.1.0", | ||
"chalk": "^4.1.2", | ||
"nullthrows": "^1.1.1" | ||
@@ -56,3 +56,3 @@ }, | ||
"json5": "^2.2.0", | ||
"lru-cache": "^6.0.0", | ||
"lru-cache": "^10.0.0", | ||
"micromatch": "^4.0.4", | ||
@@ -62,3 +62,2 @@ "node-forge": "^1.2.1", | ||
"open": "^7.0.3", | ||
"random-int": "^1.0.0", | ||
"snarkdown": "^2.0.0", | ||
@@ -74,3 +73,3 @@ "strip-ansi": "^6.0.0", | ||
}, | ||
"gitHead": "2059029ee91e5f03a273b0954d3e629d7375f986" | ||
"gitHead": "a53f8f3ba1025c7ea8653e9719e0a61ef9717079" | ||
} |
// @flow | ||
import path from 'path'; | ||
import type {FileSystem} from '@parcel/fs'; | ||
import type {FileSystem} from '@parcel/types'; | ||
import {fuzzySearch} from './schema'; | ||
@@ -144,3 +144,3 @@ import {relativePath} from './path'; | ||
return fuzzySearch(potentialFiles, fileSpecifier).slice(0, 2); | ||
return fuzzySearch(potentialFiles.sort(), fileSpecifier).slice(0, 2); | ||
} |
@@ -10,3 +10,3 @@ // @flow | ||
import {parse as toml} from '@iarna/toml'; | ||
import LRU from 'lru-cache'; | ||
import {LRUCache} from 'lru-cache'; | ||
@@ -23,3 +23,3 @@ export type ConfigOutput = {| | ||
const configCache = new LRU<FilePath, ConfigOutput>({max: 500}); | ||
const configCache = new LRUCache<FilePath, ConfigOutput>({max: 500}); | ||
const resolveCache = new Map(); | ||
@@ -101,3 +101,3 @@ | ||
loadConfig.clear = () => { | ||
configCache.reset(); | ||
configCache.clear(); | ||
resolveCache.clear(); | ||
@@ -104,0 +104,0 @@ }; |
@@ -89,1 +89,2 @@ // @flow strict-local | ||
export {default as stripAnsi} from 'strip-ansi'; | ||
export {detectSVGOVersion} from './svgo'; |
// @flow | ||
import assert from 'assert'; | ||
import randomInt from 'random-int'; | ||
@@ -69,3 +68,3 @@ import PromiseQueue from '../src/PromiseQueue'; | ||
assert(running <= maxConcurrent); | ||
await Promise.resolve(randomInt(1, 10)); //sleep(randomInt(1, 10)); | ||
await Promise.resolve(Math.floor(Math.random() * 10) + 1); | ||
running--; | ||
@@ -72,0 +71,0 @@ }), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3760845
16
70
41015
+ Added@parcel/codeframe@2.13.0(transitive)
+ Added@parcel/diagnostic@2.13.0(transitive)
+ Added@parcel/events@2.13.0(transitive)
+ Added@parcel/logger@2.13.0(transitive)
+ Added@parcel/markdown-ansi@2.13.0(transitive)
+ Added@parcel/rust@2.13.0(transitive)
- Removed@parcel/codeframe@2.12.0(transitive)
- Removed@parcel/diagnostic@2.12.0(transitive)
- Removed@parcel/events@2.12.0(transitive)
- Removed@parcel/logger@2.12.0(transitive)
- Removed@parcel/rust@2.12.0(transitive)
Updated@parcel/codeframe@2.13.0
Updated@parcel/diagnostic@2.13.0
Updated@parcel/logger@2.13.0
Updated@parcel/markdown-ansi@2.13.0
Updated@parcel/rust@2.13.0
Updatedchalk@^4.1.2