From eca16fc05d26255df3280906c36d7f0e5b05c6e9 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 15 Oct 2020 22:48:52 -0700 Subject: [PATCH 1/3] fix(exports): node 13.0 and 13.1 require the dotted object form _with_ a string fallback (#93) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit package.json’s "engines" field claims yargs-parser supports node >= 10; node v13.0 and v13.1 are included in this semver range. This change is required to be able to require() from yargs-parser successfully in these versions. See https://github.com/yargs/yargs/pull/1776 --- package.json | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 3e4c421b..0b39e22f 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,15 @@ "version": "7.0.2", "description": "easily create complex multi-column command-line-interfaces", "main": "build/index.cjs", - "exports": [ - { - "import": "./index.mjs", - "require": "./build/index.cjs" - }, - "./build/index.cjs" - ], + "exports": { + ".": [ + { + "import": "./index.mjs", + "require": "./build/index.cjs" + }, + "./build/index.cjs" + ] + }, "type": "module", "module": "./index.mjs", "scripts": { From 02f7bb5704a24bc4108d3806f074c218edaf963e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 15 Oct 2020 22:49:23 -0700 Subject: [PATCH 2/3] chore(deps): update dependency gts to v3 (#90) Co-authored-by: Renovate Bot --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0b39e22f..07dad45e 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "eslint": "^7.6.0", "eslint-plugin-import": "^2.22.0", "eslint-plugin-node": "^11.1.0", - "gts": "^2.0.2", + "gts": "^3.0.0", "mocha": "^8.1.1", "rimraf": "^3.0.2", "rollup": "^2.23.1", From 2acc5a283846a71b38c0365dc694f18aee3947df Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 16 Oct 2020 08:43:31 -0700 Subject: [PATCH 3/3] chore: release 7.0.3 (#94) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0c2c587..d5edd567 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [7.0.3](https://www.github.com/yargs/cliui/compare/v7.0.2...v7.0.3) (2020-10-16) + + +### Bug Fixes + +* **exports:** node 13.0 and 13.1 require the dotted object form _with_ a string fallback ([#93](https://www.github.com/yargs/cliui/issues/93)) ([eca16fc](https://www.github.com/yargs/cliui/commit/eca16fc05d26255df3280906c36d7f0e5b05c6e9)) + ### [7.0.2](https://www.github.com/yargs/cliui/compare/v7.0.1...v7.0.2) (2020-10-14) diff --git a/package.json b/package.json index 07dad45e..2ce57a89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cliui", - "version": "7.0.2", + "version": "7.0.3", "description": "easily create complex multi-column command-line-interfaces", "main": "build/index.cjs", "exports": {