![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
postcss-fixes
Advanced tools
PostCSS pack to fix known Browser Bugs, making it easier to write your CSS according to the official W3C Syntax.
postcss-fixes differs from cssnext by doing only transformations for stable CSS Features, whereas cssnext is more progressively tries to implement features, which aren't official W3C recommendations yet and could therefore change/break in the future. Another alternative is oldie, which is Internet Explorer only, however.
:nth-child(n)::before {
flex: 1;
opacity: .5;
height: 2.5rem;
width: 10vmin;
}
:nth-child(1n):before {
flex: 1 1 0%; /* fix some flexbox issues */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* opacity for IE */
opacity: .5;
height: 40px; /* rem to px fallback */
height: 2.5rem;
width: 10vm;
width: 10vmin;
}
Hint: An opinionated config for these plugins is used, to make them more future-safe
postcss-fixes is recommended to be used in conjunction with autoprefixer and cssnano (optimizations)
/* for developement */
postcss([
require('postcss-fixes')(),
require('autoprefixer')()
])
/* for production */
postcss([
require('postcss-fixes')(),
require('autoprefixer')(),
require('cssnano')({
'safe': true, // I would recommend using cssnano only in safe mode
'calc': false // calc is no longer necessary, as it is already done by postcss-fixes due to precision rounding reasons
})
])
See PostCSS docs for examples for your environment (e.g. if you are using a task runner like grunt, gulp, broccoli, webpack, etc.).
preset
recommended
(default)safe
fixes-only
fallbacks-only
enable-all
disable-all
This would look like this:
postcss([
require('postcss-fixes')({ preset: 'safe' }) // do only very safe transformations
])
FAQs
PostCSS plugin pack to fix known Browser Bugs.
The npm package postcss-fixes receives a total of 694 weekly downloads. As such, postcss-fixes popularity was classified as not popular.
We found that postcss-fixes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.