diff --git a/CHANGELOG.md b/CHANGELOG.md index cbd6520..65c3ec0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [1.1.2] - 2020-10-16 +## [1.3.0] - 2020-10-24 + +### Added +- Clean `utm_*` queries. + +### Fixed +- Fix `decodeURI` error. + +## [1.2.1] - 2020-10-17 + +### Fixed +- Handle JSDOM error. + +## [1.2.0] - 2020-10-16 ### Added - Add timeout option support. diff --git a/package.json b/package.json index d4c0959..d730dd3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wabarc/cairn", - "version": "1.2.1", + "version": "1.3.0", "description": "Node package and CLI tool for saving web page as single HTML file", "main": "dist/cairn.js", "types": "dist/cairn.d.ts", diff --git a/src/cli.ts b/src/cli.ts index 8aab9de..4362b5a 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -67,11 +67,12 @@ class Handler { private parser() { const program = new Command(); + const version = process.env.npm_package_version || '0.0.1'; program .name('cairn') .usage('[options] url1 [url2]...[urlN]') - .version('1.0.0', '-v, --version', 'output the current version') + .version(version, '-v, --version', 'output the current version') .description('CLI tool for saving web page as single HTML file'); program.option('-o, --output ', 'path to save archival result');