New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@anansi/browserslist-config

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anansi/browserslist-config - npm Package Compare versions

Comparing version 0.0.6 to 1.0.0

18

CHANGELOG.md

@@ -6,2 +6,20 @@ # Change Log

## [1.0.0](https://github.com/ntucker/anansi/compare/@anansi/browserslist-config@0.0.6...@anansi/browserslist-config@1.0.0) (2020-04-21)
### ⚠ 💥 BREAKING CHANGES
* Requires browserslist >4.12 and node>8
### 🚀 Features
* Browserslist environments ([315d206](https://github.com/ntucker/anansi/commit/315d206ace5ae316129d687a4868c096fa41be0f))
### 📝 Documentation
* Add environment information to readme ([9b1653b](https://github.com/ntucker/anansi/commit/9b1653b03e10b12b4c87475d341a60b86ae1a9a4))
### [0.0.6](https://github.com/ntucker/anansi/compare/@anansi/browserslist-config@0.0.5...@anansi/browserslist-config@0.0.6) (2019-12-11)

@@ -8,0 +26,0 @@

28

index.js

@@ -1,9 +0,19 @@

const env =
process.env.NODE_ENV === 'development' ? 'development' : 'production';
const config = {
production: ['last 2 versions', 'not < 0.05%', 'not dead', 'not op_mini all'],
development: ['last 1 Chrome versions', 'last 1 Firefox versions'],
};
module.exports = config[env];
module.exports = {
defaults: [
"> 1%",
"Firefox ESR",
"not dead",
"not ie<12",
"not OperaMini all"
],
legacy: [
"> 0.5%",
"Firefox ESR",
"not dead",
"not ie<11",
"not safari<12.1",
"not OperaMini all"
],
development: ['last 1 Chrome versions', 'last 1 Firefox versions'],
test: ['current node'],
}
{
"name": "@anansi/browserslist-config",
"version": "0.0.6",
"version": "1.0.0",
"description": "Support modern browsers",

@@ -19,5 +19,5 @@ "main": "index.js",

"engines": {
"node": ">=6.15.1"
"node": ">=8.9.0"
},
"gitHead": "d57fc1b32d6a33e548c99edb4b3f09cb6add3309"
"gitHead": "fb6ec3ff8b89726d0653f80e51189cd9124a15ea"
}
# Anansi browserlist-config
Sensible [modern browser](https://browserl.ist/?q=last+2+versions%2C+not+%3C+0.05%25%2C+not+dead%2C+not+op_mini+all) support for prod, [`latest firefox & chrome`](http://browserl.ist/?q=last+1+Chrome+versions%2C+last+1+Firefox+versions)
Sensible [modern browser](https://browserl.ist/?q=%3E+1%25%2C+Firefox+ESR%2C+not+dead%2C+not+ie%3C12%2C+not+OperaMini+all) support for prod, [`latest firefox & chrome`](http://browserl.ist/?q=last+1+Chrome+versions%2C+last+1+Firefox+versions)
for dev.

@@ -17,1 +17,10 @@

```
## Environments
Set via `BROWSERSLIST_ENV` or `env` or `NODE_ENV` environmental variables.
- [default](https://browserl.ist/?q=%3E+1%25%2C+Firefox+ESR%2C+not+dead%2C+not+ie%3C12%2C+not+OperaMini+all)
- [legacy](https://browserl.ist/?q=%3E+0.5%25%2CFirefox+ESR%2Cnot+dead%2Cnot+ie%3C11%2Cnot+safari%3C12.1%2Cnot+OperaMini+all)
- [development](http://browserl.ist/?q=last+1+Chrome+versions%2C+last+1+Firefox+versions)
- [test](https://browserl.ist/?q=current+node)
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