All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added
properties.autoKeywordmetric - Added
mediaQueries.features.deprecatedmetric - Added
mediaQueries.types.deprecatedmetric - Added
properties.uniqueRatiometric - Added
properties.shorthandsRatiometric - Added
atRules.descriptorsmetric - Added
units.unknownmetric
- Reorganized
properties.explicitDefaultingKeywordsto:
properties {
inheritKeyword,
initialKeyword,
revertKeyword,
unsetKeyword,
}
- Renamed
.styleSheetSizemetric to.size - Renamed
stylesheetSizeflag tosize
- Corrected handling of declarations in at-rules
- Added counting of functions in at-rules params and declarations
- Corrected colors matching
- Corrected all functions matching
- Corrected units matching
- Corrected performance hacks matching
- Corrected named timing functions matching
- Corrected explicit defaulting keywords matching
- Reduce module install size
- Fixed typo and unexpected behavior of
selectorsUsageflag whenoptionsargument is not an object
- Added
rules.withoutTrailingSemicolonmetric - Added
comments.sizeRatioPercentmetric - Added
selectors.sizeRatioPercentmetric - Added
declarations.sizeRatioPercentmetric - Added
dataUris.sizeRatioPercentmetric - Added
selectors.attributesUsagemetric - Added
attributesUsageflag - Added
importsmetric - Added
widthsmetric - Added
widthsflag - Added
heightsmetric - Added
heightsflag - Added
selectors.specificity.highest10metric - Added
selectors.maxPerRuleListmetric - Added
keyframes.definedAnimationsmetric - Added
animations.withoutDefinitionsmetric
- Corrected
selectors.specificity.averagemetric - Corrected
selectors.uniquemetric counting whenselectorsUsageflag isfalse - Corrected
transitionandanimationlonghand handling - Corrected vendor-prefixed
transition-andanimation-properties handling - Corrected counting of vendor prefixes it
@supportsat-rule - Corrected
declarations.inAtRulescounting whendeclarationsflag is set tofalse
- Fixed counting of comma-separated media queries
- Fixed counting of invalid named timing functions in
transitions.invalidTimingFunctionsandanimations.invalidTimingFunctions - Fixed counting of
stepsandframestiming functions infunctions,transitions.timingFunctions,transitions.invalidTimingFunctions,animations.timingFunctions,animations.invalidTimingFunctions - Fixed case-insensitive counting of system colors,
currentColors andtransparentcolors - Added missed
discreteandrangemedia features - Added missed
future,current,drop,focus-visible,local-link,nth-col,nth-last-col,past,playing,paused,something,target-within,user-invalidpseudo classes
- Fixed counting of
rgb(),rgba(),hsl(),hsla(),hwb()functions with whitespace syntax - Fixed counting of
rgb(),rgba(),hsl(),hsla(),hwb()functions with decimal numbers and exponential notations - Fixed counting of data URIs with
<svg>syntax - Added missed
-moz-border-top-colorsand-moz-border-left-colorsfor handling as colorable properties - Added missed
stop-color,flood-colorandlighting-colorfor handling as colorable properties
- Added
propertiesoption - Added
displaysoption - Added
positionsoption - Added
zIndicesoption - Added
floatsoption - Added
borderRadiusesoption - Added
letterSpacingsoption - Added
fontSizes.keywordsmetric:
keywords: {
total,
unique,
usage,
}
- Simplified all options flag names
- Reorganized
atRules.unknownto:
unknown: {
total,
unique,
usage,
}
- Reorganized
mediaQueries.typesto:
types: {
total,
unique,
usage,
}
- Reorganized
vendorPrefixes.unknownto:
unknown: {
total,
unique,
usage,
}
- Reorganized
unitsto:
units: {
total,
unique,
usage,
excessive: {
total,
unique,
usage,
},
},
- Reorganized
selectorsspecificity metrics to:
selectors: {
specificity: {
total,
highest,
highestSelector,
average,
graphData,
}
}
- Reorganized
selectorslength metrics to:
selectors: {
length: {
total,
longest,
longestSelector,
average,
}
}
- Reorganized
declarationslength metrics to:
declarations: {
length: {
total,
longest,
longestDeclaration,
average,
},
}
- Reorganized
dataUrislength metrics to:
dataUris: {
length: {
total,
longest,
longestDataUri,
average,
},
}
- Reorganized
commentslength metrics to:
comments: {
length: {
total,
longest,
shortest,
average,
},
}
- Renamed
styleSheetSizemetrics to:
styleSheetSize: {
source,
gzipSource,
}
- Fixed bugs with incorrect selectors specificity calculations
- Fixed considering variables or
calcfunctions inz-indexvalues as invalid - Fixed inconsistent flags location
- Added
keyframes.longestStepsChainAnimation - Added
keyframes.shortestStepsChainAnimation - Added
filtersmetrics and new flagcollectFiltersData
filters: {
total,
unique,
usage,
}
- Renamed
mediaQueries.onlyKeywordstomediaQueries.onlyKeyword - Renamed
*.vendorPrefixedto*.prefixed - Reorganized
mediaQueries.featuresto:
features: {
total,
unique,
vendorPrefixed,
usage,
}
- Fixed bug with incorrect
transitions.invalidTimingFunctionsandanimations.invalidTimingFunctionscounting - Fixed
declarations.uniqueRatiocalculation
- Added
declarations.uniqueRatiometric - Added
declarations.totalByteLengthmetric - Added
declarations.longestByteLengthmetric - Added
declarations.longestByteLengthDeclarationmetric - Added
declarations.averageByteLengthmetric - Added
declarations.sizeRatiometric - Added
animations.totalmetric - Added
animations.uniquemetric - Added
animations.usagemetric - Added
functions.vendorPrefixedmetric - Added
background-imageto colorable properties
- Excluded @font-face descriptors from handling as declarations
- Corrected counting of vendor-prefixed functions
- Set
collectSpecificityGraphDataflag tofalseby default - Set
collectUniqueDeclarationsListflag tofalseby default
- Fixed
isNumberpredicate function