keep-a-changelog
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -9,2 +9,9 @@ <!-- deno-fmt-ignore-file --> | ||
## [2.3.0] - 2023-05-25 | ||
### Added | ||
- New option `--create`, to create unreleased versions [#31]. | ||
### Fixed | ||
- Allow empty values for `--release` option | ||
## [2.2.1] - 2023-01-25 | ||
@@ -48,3 +55,5 @@ ### Fixed | ||
[#30]: https://github.com/oscarotero/keep-a-changelog/issues/30 | ||
[#31]: https://github.com/oscarotero/keep-a-changelog/issues/31 | ||
[2.3.0]: https://github.com/oscarotero/keep-a-changelog/compare/v2.2.1...v2.3.0 | ||
[2.2.1]: https://github.com/oscarotero/keep-a-changelog/compare/v2.2.0...v2.2.1 | ||
@@ -51,0 +60,0 @@ [2.2.0]: https://github.com/oscarotero/keep-a-changelog/compare/v2.1.0...v2.2.0 |
#!/usr/bin/env node | ||
import "./_dnt.polyfills.js"; | ||
import * as dntShim from "./_dnt.shims.js"; | ||
import { join } from "./deps/deno.land/std@0.173.0/path/mod.js"; | ||
import { join } from "./deps/deno.land/std@0.189.0/path/mod.js"; | ||
import { Changelog, parser, Release } from "./mod.js"; | ||
import { parse as parseFlag } from "./deps/deno.land/std@0.173.0/flags/mod.js"; | ||
import { parse as parseFlag } from "./deps/deno.land/std@0.189.0/flags/mod.js"; | ||
import { parse as parseIni } from "./deps/deno.land/x/ini@v2.1.0/mod.js"; | ||
@@ -13,2 +13,3 @@ const argv = parseFlag(dntShim.Deno.args, { | ||
release: null, | ||
create: null, | ||
url: null, | ||
@@ -18,3 +19,3 @@ https: true, | ||
}, | ||
string: ["file", "format", "release", "url"], | ||
string: ["file", "format", "url"], | ||
boolean: ["https", "init", "latest-release", "quiet"], | ||
@@ -60,2 +61,6 @@ }); | ||
} | ||
if (argv.create) { | ||
const version = typeof argv.create === "string" ? argv.create : undefined; | ||
changelog.addRelease(new Release(version)); | ||
} | ||
if (!changelog.url) { | ||
@@ -62,0 +67,0 @@ if (argv.url) { |
{ | ||
"module": "./esm/mod.js", | ||
"main": "./script/mod.js", | ||
"types": "./types/mod.d.ts", | ||
"bin": { | ||
@@ -9,3 +8,3 @@ "changelog": "./esm/bin.js" | ||
"name": "keep-a-changelog", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "Node package to parse and generate changelogs following the [keepachangelog](http://keepachangelog.com/en/1.0.0/) format.", | ||
@@ -29,10 +28,4 @@ "homepage": "https://github.com/oscarotero/keep-a-changelog#readme", | ||
".": { | ||
"import": { | ||
"types": "./types/mod.d.ts", | ||
"default": "./esm/mod.js" | ||
}, | ||
"require": { | ||
"types": "./types/mod.d.ts", | ||
"default": "./script/mod.js" | ||
} | ||
"import": "./esm/mod.js", | ||
"require": "./script/mod.js" | ||
} | ||
@@ -44,8 +37,8 @@ }, | ||
"dependencies": { | ||
"@deno/shim-deno": "~0.12.0" | ||
"@deno/shim-deno": "~0.16.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.9", | ||
"chalk": "^4.1.2" | ||
"picocolors": "^1.0.0" | ||
} | ||
} |
@@ -25,3 +25,3 @@ # Changelog | ||
```js | ||
import { parser } from "https://deno.land/x/changelog@v2.0.0/mod.ts"; | ||
import { parser } from "https://deno.land/x/changelog@v2.2.1/mod.ts"; | ||
@@ -41,3 +41,3 @@ //Parse a changelog file | ||
Release, | ||
} from "https://deno.land/x/changelog@v2.0.0/mod.ts"; | ||
} from "https://deno.land/x/changelog@v2.2.1/mod.ts"; | ||
@@ -165,2 +165,7 @@ const changelog = new Changelog("My project") | ||
If your "Unreleased" section has no version, you can specify it as an argument: | ||
```sh | ||
changelog --release 2.0.0 | ||
``` | ||
And return the latest released version: | ||
@@ -167,0 +172,0 @@ |
@@ -29,5 +29,5 @@ #!/usr/bin/env node | ||
const dntShim = __importStar(require("./_dnt.shims.js")); | ||
const mod_js_1 = require("./deps/deno.land/std@0.173.0/path/mod.js"); | ||
const mod_js_1 = require("./deps/deno.land/std@0.189.0/path/mod.js"); | ||
const mod_js_2 = require("./mod.js"); | ||
const mod_js_3 = require("./deps/deno.land/std@0.173.0/flags/mod.js"); | ||
const mod_js_3 = require("./deps/deno.land/std@0.189.0/flags/mod.js"); | ||
const mod_js_4 = require("./deps/deno.land/x/ini@v2.1.0/mod.js"); | ||
@@ -39,2 +39,3 @@ const argv = (0, mod_js_3.parse)(dntShim.Deno.args, { | ||
release: null, | ||
create: null, | ||
url: null, | ||
@@ -44,3 +45,3 @@ https: true, | ||
}, | ||
string: ["file", "format", "release", "url"], | ||
string: ["file", "format", "url"], | ||
boolean: ["https", "init", "latest-release", "quiet"], | ||
@@ -86,2 +87,6 @@ }); | ||
} | ||
if (argv.create) { | ||
const version = typeof argv.create === "string" ? argv.create : undefined; | ||
changelog.addRelease(new mod_js_2.Release(version)); | ||
} | ||
if (!changelog.url) { | ||
@@ -88,0 +93,0 @@ if (argv.url) { |
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
533698
134
13282
187
+ Added@deno/shim-deno@0.16.1(transitive)
- Removed@deno/shim-deno@0.12.0(transitive)
Updated@deno/shim-deno@~0.16.1