perf-marks
Advanced tools
Comparing version 1.12.1 to 1.12.2
@@ -10,2 +10,8 @@ # Change Log | ||
## [1.12.2][] - 2020-08-01 | ||
### Fixed | ||
- Fixing UMD bundle by using Rollup. Typescript was required in the package and one of the TS functions is required in the bundle. | ||
## [1.12.1][] - 2020-07-31 | ||
@@ -303,5 +309,7 @@ | ||
[1.12.0]: https://github.com/willmendesneto/perf-marks/tree/v1.12.0 | ||
[unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.12.1...HEAD | ||
[1.12.1]: https://github.com/willmendesneto/perf-marks/tree/v1.12.1 | ||
[Unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.12.1...HEAD | ||
[1.12.1]: https://github.com/willmendesneto/perf-marks/tree/v1.12.1 | ||
[Unreleased]: https://github.com/willmendesneto/perf-marks/compare/v1.12.2...HEAD | ||
[1.12.2]: https://github.com/willmendesneto/perf-marks/tree/v1.12.2 |
{ | ||
"name": "perf-marks", | ||
"version": "1.12.1", | ||
"version": "1.12.2", | ||
"author": "Will Mendes <willmendesneto@gmail.com>", | ||
@@ -50,2 +50,3 @@ "description": "The simplest and lightweight solution for User Timing API in Javascript.", | ||
"rollup": "^2.9.1", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"ts-jest": "^26.0.0", | ||
@@ -66,3 +67,3 @@ "ts-node": "^8.10.1", | ||
"build": "npm-run-all --parallel build:es2015 build:cjs build:esm && yarn build:umd", | ||
"build:umd": "rollup dist/esm/index.js --format umd --name PerfMarks -o dist/umd/perf-marks.js && yarn build:umd:min", | ||
"build:umd": "rollup --config && yarn build:umd:min", | ||
"build:umd:min": "uglifyjs --compress --mangle --comments -o dist/umd/perf-marks.min.js -- dist/umd/perf-marks.js && gzip dist/umd/perf-marks.min.js -c > dist/umd/perf-marks.min.js.gz", | ||
@@ -96,7 +97,7 @@ "build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015", | ||
"path": "./dist/umd/perf-marks.js", | ||
"maxSize": "2.6KB" | ||
"maxSize": "3.5KB" | ||
}, | ||
{ | ||
"path": "./dist/umd/perf-marks.min.js", | ||
"maxSize": "1.07KB" | ||
"maxSize": "1.42KB" | ||
}, | ||
@@ -103,0 +104,0 @@ { |
@@ -1,46 +0,14 @@ | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import resolve from 'rollup-plugin-node-resolve'; | ||
// import sourceMaps from 'rollup-plugin-sourcemaps'; | ||
// import typescript from 'rollup-plugin-typescript2'; | ||
import { browser, module } from './package.json'; | ||
// const pkg = require('./package.json'); | ||
// const config = (tsconfigOverride = {}) => ({ | ||
// input: `src/index.ts`, | ||
// // Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') | ||
// // external: pkg.dependencies, | ||
// watch: { | ||
// include: 'src/**', | ||
// }, | ||
// plugins: [ | ||
// // Compile TypeScript files | ||
// typescript({ | ||
// useTsconfigDeclarationDir: true, | ||
// tsconfigOverride: { include: ['src'], ...tsconfigOverride }, | ||
// }), | ||
// // Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs) | ||
// commonjs(), | ||
// // Allow node_modules resolution, so you can use 'external' to control | ||
// // which external modules to include in the bundle | ||
// // https://github.com/rollup/rollup-plugin-node-resolve#usage | ||
// resolve(), | ||
// ], | ||
// }); | ||
// export default [ | ||
// { | ||
// output: [{ file: pkg.browser, name: 'PerfMarks', format: 'umd', sourcemap: true }], | ||
// }, | ||
// ]; | ||
const config = { | ||
input: 'dist/cjs/index.js', | ||
input: module, | ||
output: { | ||
file: 'dist/umd/perf-marks.js', | ||
file: browser, | ||
format: 'umd', | ||
name: 'PerfMarks', | ||
}, | ||
plugins: [commonjs(), resolve()], | ||
plugins: [resolve()], | ||
}; | ||
export default config; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
87737
86
1565
28