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

purgecss

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purgecss - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

6

CHANGELOG.md
# Changelog
# v1.4.0 - 2019-09-01
* Merged https://github.com/FullHuman/purgecss/commit/bc9f3b5b9d670832f0d1cca7bc7facfb253fb60b, ensure classes beginning with numbers are properly purged
* Merged https://github.com/FullHuman/purgecss/pull/214, fix font-face processing
* update dependencies
# v1.3.0 - 2019-04-20

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

6

lib/purgecss.es.js

@@ -786,2 +786,6 @@ import fs from 'fs';

if (node.parent && node.parent.type === 'atrule' && node.parent.name === 'keyframes') {
return;
}
var keepSelector = true;

@@ -808,3 +812,3 @@ node.selector = selectorParser(function (selectorsParsed) {

if (SELECTOR_STANDARD_TYPES.includes(type) && typeof value !== 'undefined' && /^\d/g.test(value) === false) {
if (SELECTOR_STANDARD_TYPES.includes(type) && typeof value !== 'undefined') {
selectorsInRule.push(value);

@@ -811,0 +815,0 @@ } else if (type === 'tag' && !/[+]|n|-|(even)|(odd)|^from$|^to$|^\d/.test(value)) {

@@ -790,2 +790,6 @@ 'use strict';

if (node.parent && node.parent.type === 'atrule' && node.parent.name === 'keyframes') {
return;
}
var keepSelector = true;

@@ -812,3 +816,3 @@ node.selector = selectorParser(function (selectorsParsed) {

if (SELECTOR_STANDARD_TYPES.includes(type) && typeof value !== 'undefined' && /^\d/g.test(value) === false) {
if (SELECTOR_STANDARD_TYPES.includes(type) && typeof value !== 'undefined') {
selectorsInRule.push(value);

@@ -815,0 +819,0 @@ } else if (type === 'tag' && !/[+]|n|-|(even)|(odd)|^from$|^to$|^\d/.test(value)) {

31

package.json
{
"name": "purgecss",
"version": "1.3.0",
"version": "1.4.0",
"description": "Remove unused css selectors.",

@@ -51,25 +51,24 @@ "main": "./lib/purgecss.js",

"postcss-selector-parser": "^6.0.0",
"yargs": "^13.2.2"
"yargs": "^14.0.0"
},
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/preset-env": "^7.4.3",
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-flow": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.0",
"babel-jest": "^24.7.1",
"babel-jest": "^24.9.0",
"codacy-coverage": "^3.4.0",
"eslint": "^5.16.0",
"eslint-plugin-flowtype": "^3.6.1",
"flow-bin": "^0.97.0",
"jest": "^24.7.0",
"prettier": "^1.17.0",
"regenerator-runtime": "^0.13.0",
"rollup": "^1.10.0",
"rollup-plugin-babel": "^4.3.1",
"eslint": "^6.3.0",
"eslint-plugin-flowtype": "^4.2.0",
"flow-bin": "^0.106.3",
"jest": "^24.9.0",
"prettier": "^1.18.2",
"regenerator-runtime": "^0.13.3",
"rollup": "^1.20.3",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-flow": "^1.1.1",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-resolve": "^4.2.3",
"rollup-watch": "^4.3.1"
"rollup-plugin-node-resolve": "^5.2.0"
},

@@ -76,0 +75,0 @@ "engines": {

@@ -1,2 +0,2 @@

# Purgecss
# PurgeCSS

@@ -14,6 +14,6 @@ [![Build Status](https://travis-ci.org/FullHuman/purgecss.svg?branch=master)](https://travis-ci.org/FullHuman/purgecss)

<p align="center">
<img src="./.assets/logo.png" height="200" width="200" alt="Purgecss logo"/>
<img src="./.assets/logo.png" height="200" width="200" alt="PurgeCSS logo"/>
</p>
## What is purgecss?
## What is PurgeCSS?

@@ -24,3 +24,3 @@ When you are building a website, chances are that you are using a css framework

This is where Purgecss comes into play. Purgecss analyzes your content and your
This is where PurgeCSS comes into play. PurgeCSS analyzes your content and your
css files. Then it matches the selectors used in your files with the one in your

@@ -32,3 +32,3 @@ content files. It removes unused selectors from your css, resulting in smaller

You can find the purgecss documentation
You can find the PurgeCSS documentation
[on this website](https://www.purgecss.com).

@@ -118,7 +118,7 @@

Purgecss use [SemVer](http://semver.org/) for versioning.
PurgeCSS use [SemVer](http://semver.org/) for versioning.
## Acknowledgment
Purgecss was originally thought as the v2 of purifycss. And because of it, it is
PurgeCSS was originally thought as the v2 of purifycss. And because of it, it is
greatly inspired by it.\

@@ -125,0 +125,0 @@ Some of the plugins such as purgecss-webpack-plugin are based on the purifycss plugin.\

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