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

autoprefixer

Package Overview
Dependencies
Maintainers
1
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefixer - npm Package Compare versions

Comparing version 10.0.0 to 10.0.1

5

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 10.0.1
* Fix PostCSS 8.1 compatability.
* Add our OpenCollective to `package.json`.
* Clean up code (by Sukka).
## 10.0 “Alis volat propriis”

@@ -5,0 +10,0 @@ * Removed support for Node.js 6.x, 8.x, 11.x.

10

lib/autoprefixer.js

@@ -29,3 +29,3 @@ let browserslist = require('browserslist')

let cache = {}
let cache = new Map()

@@ -107,7 +107,7 @@ function timeCapsule (result, prefixes) {

if (!cache[key]) {
cache[key] = new Prefixes(d.prefixes, browsers, options)
if (!cache.has(key)) {
cache.set(key, new Prefixes(d.prefixes, browsers, options))
}
return cache[key]
return cache.get(key)
}

@@ -125,3 +125,3 @@

return {
Root (root) {
Once (root) {
timeCapsule(result, prefixes)

@@ -128,0 +128,0 @@ if (options.remove !== false) {

@@ -68,3 +68,3 @@ let vendor = require('./vendor')

let declsCache = {}
let declsCache = new Map()

@@ -271,10 +271,7 @@ class Prefixes {

decl (prop) {
let decl = declsCache[prop]
if (!declsCache.has(prop)) {
declsCache.set(prop, Declaration.load(prop))
}
if (decl) {
return decl
} else {
declsCache[prop] = Declaration.load(prop)
return declsCache[prop]
}
return declsCache.get(prop)
}

@@ -281,0 +278,0 @@

@@ -11,3 +11,3 @@ let { list } = require('postcss')

super(name, prefixes, all)
this.regexpCache = {}
this.regexpCache = new Map()
}

@@ -37,12 +37,11 @@

regexp (prefix) {
if (this.regexpCache[prefix]) {
return this.regexpCache[prefix]
if (!this.regexpCache.has(prefix)) {
let name = prefix ? this.prefixed(prefix) : this.name
this.regexpCache.set(
prefix,
new RegExp(`(^|[^:"'=])${utils.escapeRegexp(name)}`, 'gi')
)
}
let name = prefix ? this.prefixed(prefix) : this.name
this.regexpCache[prefix] = new RegExp(
`(^|[^:"'=])${utils.escapeRegexp(name)}`,
'gi'
)
return this.regexpCache[prefix]
return this.regexpCache.get(prefix)
}

@@ -49,0 +48,0 @@

@@ -18,9 +18,3 @@ let { list } = require('postcss')

uniq (array) {
let filtered = []
for (let i of array) {
if (!filtered.includes(i)) {
filtered.push(i)
}
}
return filtered
return [...new Set(array)]
},

@@ -27,0 +21,0 @@

{
"name": "autoprefixer",
"version": "10.0.0",
"version": "10.0.1",
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",

@@ -18,4 +18,4 @@ "engines": {

"funding": {
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/autoprefixer"
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},

@@ -26,7 +26,7 @@ "author": "Andrey Sitnik <andrey@sitnik.ru>",

"peerDependencies": {
"postcss": "^8.0.2"
"postcss": "^8.1.0"
},
"dependencies": {
"browserslist": "^4.14.2",
"caniuse-lite": "^1.0.30001131",
"browserslist": "^4.14.5",
"caniuse-lite": "^1.0.30001137",
"colorette": "^1.2.1",

@@ -33,0 +33,0 @@ "normalize-range": "^0.1.2",

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