Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-preset-env

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-preset-env - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

6

CHANGELOG.md
# Changes to PostCSS Preset Env
### 6.0.1 (September 20, 2018)
- Fixed: Issue with the `system-ui` font family polyfill by replacing
`postcss-font-family-system-ui` with an internal polyfill, at least until the
problem with the original plugin is resolved.
### 6.0.0 (September 20, 2018)

@@ -4,0 +10,0 @@

28

index.cjs.js

@@ -5,2 +5,3 @@ 'use strict';

var postcss = _interopDefault(require('postcss'));
var postcssAttributeCaseInsensitive = _interopDefault(require('postcss-attribute-case-insensitive'));

@@ -18,3 +19,2 @@ var postcssColorFunctionalNotation = _interopDefault(require('postcss-color-functional-notation'));

var postcssFontVariant = _interopDefault(require('postcss-font-variant'));
var postcssFontFamilySystemUi = _interopDefault(require('postcss-font-family-system-ui'));
var postcssGapProperties = _interopDefault(require('postcss-gap-properties'));

@@ -38,4 +38,28 @@ var postcssImageSetPolyfill = _interopDefault(require('postcss-image-set-function'));

var cssdb = _interopDefault(require('cssdb'));
var postcss = _interopDefault(require('postcss'));
var postcssFontFamilySystemUi = postcss.plugin('postcss-system-ui-font', () => root => {
root.walkDecls(propertyRegExp, decl => {
decl.value = decl.value.replace(systemUiMatch, systemUiReplace);
});
});
const propertyRegExp = /(?:^(?:-|\\002d){2})|(?:^font(?:-family)?$)/i;
const whitespace = '[\\f\\n\\r\\x09\\x20]';
const systemUiFamily = ['system-ui',
/* macOS 10.11-10.12 */
'-apple-system',
/* Windows 6+ */
'Segoe UI',
/* Android 4+ */
'Roboto',
/* Ubuntu 10.10+ */
'Ubuntu',
/* Gnome 3+ */
'Cantarell',
/* KDE Plasma 5+ */
'Noto Sans',
/* fallback */
'sans-serif'];
const systemUiMatch = new RegExp(`(^|,|${whitespace}+)(?:system-ui${whitespace}*)(?:,${whitespace}*(?:${systemUiFamily.join('|')})${whitespace}*)?(,|$)`, 'i');
const systemUiReplace = `$1${systemUiFamily.join(', ')}$2`;
var plugins = {

@@ -42,0 +66,0 @@ 'all-property': postcssInitial,

3

package.json
{
"name": "postcss-preset-env",
"version": "6.0.0",
"version": "6.0.1",
"description": "Convert modern CSS into something browsers understand",

@@ -46,3 +46,2 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>",

"postcss-focus-within": "^3.0.0",
"postcss-font-family-system-ui": "^4.1.0",
"postcss-font-variant": "^4.0.0",

@@ -49,0 +48,0 @@ "postcss-gap-properties": "^2.0.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc