history
Advanced tools
Comparing version 5.0.0-beta.0 to 5.0.0-beta.1
'use strict'; | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./cjs/history.min.js'); | ||
} else { | ||
module.exports = require('./cjs/history.js'); | ||
} | ||
module.exports = | ||
process.env.NODE_ENV === 'production' | ||
? require('./build/umd/history.production.js') | ||
: require('./build/umd/history.development.js'); |
{ | ||
"name": "history", | ||
"version": "5.0.0-beta.0", | ||
"version": "5.0.0-beta.1", | ||
"description": "Manage session history with JavaScript", | ||
@@ -9,8 +9,6 @@ "repository": "ReactTraining/history", | ||
"main": "index.js", | ||
"module": "esm/history.js", | ||
"unpkg": "umd/history.js", | ||
"module": "build/history.production.js", | ||
"unpkg": "build/umd/history.production.js", | ||
"files": [ | ||
"cjs", | ||
"esm", | ||
"umd" | ||
"build" | ||
], | ||
@@ -20,2 +18,3 @@ "sideEffects": false, | ||
"build": "rollup -c", | ||
"size": "filesize", | ||
"clean": "git clean -fdX .", | ||
@@ -31,6 +30,7 @@ "lint": "eslint .", | ||
"devDependencies": { | ||
"@ampproject/rollup-plugin-closure-compiler": "0.12.1", | ||
"@babel/core": "^7.1.2", | ||
"@babel/plugin-transform-object-assign": "^7.0.0", | ||
"@babel/plugin-transform-runtime": "^7.1.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@kristoferbaxter/filesize": "0.2.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
@@ -59,4 +59,3 @@ "babel-eslint": "^7.0.0", | ||
"rollup-plugin-replace": "^2.1.0", | ||
"rollup-plugin-size-snapshot": "^0.7.0", | ||
"rollup-plugin-uglify": "^6.0.0", | ||
"rollup-plugin-terser": "5.1.2", | ||
"webpack": "^3.12.0" | ||
@@ -72,3 +71,15 @@ }, | ||
"location" | ||
], | ||
"filesize": [ | ||
{ | ||
"path": "build/history.production.js", | ||
"compression": "none", | ||
"maxSize": "5 kB" | ||
}, | ||
{ | ||
"path": "build/umd/history.production.js", | ||
"compression": "none", | ||
"maxSize": "5.5 kB" | ||
} | ||
] | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
181933
12
2
1329