From 3adf2fe62514a400cc446b22a002875b18e97997 Mon Sep 17 00:00:00 2001 From: "@dhis2-bot" Date: Thu, 3 Jun 2021 11:56:15 +0000 Subject: [PATCH] chore(release): cut 8.0.0-alpha.8 [skip ci] # [8.0.0-alpha.8](https://github.com/dhis2/cli-utils-cypress/compare/v8.0.0-alpha.7...v8.0.0-alpha.8) (2021-06-03) ### Code Refactoring * simplify cypress-plugin and cli-utils-cypress ([dc58462](https://github.com/dhis2/cli-utils-cypress/commit/dc58462b7e131b5c3aeb49e0f8ba6e520ba89030)) ### BREAKING CHANGES * Drop run and open commands We want to be consistent with how Cypress runs locally and in CI and since we cannot use d2-utils-cypress in CI, we shouldn't run it through d2-utils-cypress locally either. * Change configuration keys to camelCase. - dhis2_username => dhis2Username - dhis2_password => dhis2Password - dhis2_base_url => dhis2BaseUrl - dhis2_datatest_prefix => dhis2DataTestPrefix - dhis2_api_version => dhis2ApiVersion * dhis2_api_stub_mode renamed to networkMode Instead of describing the mode of the plugin, it is a bit easier to understand if we speak in terms of the network: - do we want to capture the network traffic (networkMode=capture), - do we want to stub it (networkMode=stub), - or do we want to run it against a live backend (networkMode=live)? * 'DISABLED' renamed to 'LIVE' To better describe the state of the network when running tests instead of describing the state of the plugin, DISABLED is now LIVE. * isDisabledMode renamed to isLiveMode. Similar to the above, to better describe the state of the network vs. the state of the plugin, replace usages of isDisabledMode with isLiveMode. * 'CAPTURE'|'STUB'|'LIVE' are now lowercase when passed to the environment. Replace networkMode=LIVE with networkMode=live. --- CHANGELOG.md | 37 +++++++++++++++++++ examples/platform-app/package.json | 2 +- .../testing-network-shim-app/package.json | 2 +- package.json | 2 +- packages/cli/package.json | 2 +- packages/cypress-commands/package.json | 2 +- packages/cypress-plugins/package.json | 2 +- 7 files changed, 43 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1111e07d..9d1975be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,40 @@ +# [8.0.0-alpha.8](https://github.com/dhis2/cli-utils-cypress/compare/v8.0.0-alpha.7...v8.0.0-alpha.8) (2021-06-03) + + +### Code Refactoring + +* simplify cypress-plugin and cli-utils-cypress ([dc58462](https://github.com/dhis2/cli-utils-cypress/commit/dc58462b7e131b5c3aeb49e0f8ba6e520ba89030)) + + +### BREAKING CHANGES + +* Drop run and open commands +We want to be consistent with how Cypress runs locally and in CI and +since we cannot use d2-utils-cypress in CI, we shouldn't run it through +d2-utils-cypress locally either. +* Change configuration keys to camelCase. +- dhis2_username => dhis2Username +- dhis2_password => dhis2Password +- dhis2_base_url => dhis2BaseUrl +- dhis2_datatest_prefix => dhis2DataTestPrefix +- dhis2_api_version => dhis2ApiVersion +* dhis2_api_stub_mode renamed to networkMode +Instead of describing the mode of the plugin, it is a bit easier to +understand if we speak in terms of the network: +- do we want to capture the network traffic (networkMode=capture), +- do we want to stub it (networkMode=stub), +- or do we want to run it against a live backend (networkMode=live)? +* 'DISABLED' renamed to 'LIVE' +To better describe the state of the network when running tests instead +of describing the state of the plugin, DISABLED is now LIVE. +* isDisabledMode renamed to isLiveMode. +Similar to the above, to better describe the state of the network vs. +the state of the plugin, replace usages of isDisabledMode with +isLiveMode. +* 'CAPTURE'|'STUB'|'LIVE' are now lowercase when passed +to the environment. +Replace networkMode=LIVE with networkMode=live. + # [8.0.0-alpha.7](https://github.com/dhis2/cli-utils-cypress/compare/v8.0.0-alpha.6...v8.0.0-alpha.7) (2021-06-02) diff --git a/examples/platform-app/package.json b/examples/platform-app/package.json index d8f66c87..af68076a 100644 --- a/examples/platform-app/package.json +++ b/examples/platform-app/package.json @@ -1,6 +1,6 @@ { "name": "platform-app", - "version": "8.0.0-alpha.7", + "version": "8.0.0-alpha.8", "description": "", "license": "BSD-3-Clause", "private": true, diff --git a/examples/testing-network-shim-app/package.json b/examples/testing-network-shim-app/package.json index 52a56e3c..f6d472ce 100644 --- a/examples/testing-network-shim-app/package.json +++ b/examples/testing-network-shim-app/package.json @@ -1,6 +1,6 @@ { "name": "testing-network-shim-app", - "version": "8.0.0-alpha.7", + "version": "8.0.0-alpha.8", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.11.4", diff --git a/package.json b/package.json index d1ad2e56..08081302 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "test:platform-app": "yarn workspace platform-app cy:capture-and-stub", "cy:local": "yarn build && yarn test:network-shim-app && yarn test:platform-app" }, - "version": "8.0.0-alpha.7", + "version": "8.0.0-alpha.8", "devDependencies": { "@babel/core": "^7.12.3", "@babel/preset-env": "^7.12.1", diff --git a/packages/cli/package.json b/packages/cli/package.json index 59d9ac3a..c187b36f 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -10,7 +10,7 @@ "d2-utils-cypress": "./bin/d2-utils-cypress" }, "main": "src/index.js", - "version": "8.0.0-alpha.7", + "version": "8.0.0-alpha.8", "author": "Viktor Varland ", "license": "BSD-3-Clause", "private": false, diff --git a/packages/cypress-commands/package.json b/packages/cypress-commands/package.json index f2a4ad5e..a884acb9 100644 --- a/packages/cypress-commands/package.json +++ b/packages/cypress-commands/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2/cypress-commands", - "version": "8.0.0-alpha.7", + "version": "8.0.0-alpha.8", "description": "Cypress commands for dhis2 related apps", "main": "./build/cjs/index.js", "module": "./build/es/index.js", diff --git a/packages/cypress-plugins/package.json b/packages/cypress-plugins/package.json index 108b9896..6546925b 100644 --- a/packages/cypress-plugins/package.json +++ b/packages/cypress-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@dhis2/cypress-plugins", - "version": "8.0.0-alpha.7", + "version": "8.0.0-alpha.8", "description": "Cypress plugins for dhis2 related apps", "main": "src/index.js", "repository": {