diff --git a/.github/workflows/deploy_to_npm.yml b/.github/workflows/deploy_to_npm.yml index ecd3790..ac70864 100644 --- a/.github/workflows/deploy_to_npm.yml +++ b/.github/workflows/deploy_to_npm.yml @@ -54,6 +54,11 @@ jobs: ref: ${{ needs.open-release.outputs.TAG }} fetch-depth: 0 + - name: Configure Git User + run: | + git config user.email "cowwoc2020@gmail.com" + git config user.name "Gili Tzabari" + - name: Install node uses: actions/setup-node@v4 with: diff --git a/README.md b/README.md index d925764..0cf7ede 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ [![npm version](https://badge.fury.io/js/%40cowwoc%2Frequirements.svg)](https://badge.fury.io/js/%40cowwoc%2Frequirements) [![build-status](https://github.com/cowwoc/requirements.js/workflows/Build/badge.svg)](https://github.com/cowwoc/requirements.js/actions?query=workflow%3ABuild) -# checklist Requirements API +# checklist Requirements API -[![API](https://img.shields.io/badge/api_docs-5B45D5.svg)](https://cowwoc.github.io/requirements.js/4.0.3/docs/api/) +[![API](https://img.shields.io/badge/api_docs-5B45D5.svg)](https://cowwoc.github.io/requirements.js/4.0.4/docs/api/) [![Changelog](https://img.shields.io/badge/changelog-A345D5.svg)](docs/Changelog.md) [![java](https://img.shields.io/badge/other%20languages-java-457FD5.svg)](../../../requirements.java) @@ -18,13 +18,13 @@ A [fluent API](https://en.m.wikipedia.org/docs/Fluent_interface) for enforcing To get started, add this dependency: ```shell -npm install --save @cowwoc/requirements@4.0.3 +npm install --save @cowwoc/requirements@4.0.4 ``` or [pnpm](https://pnpm.io/): ```shell -pnpm add @cowwoc/requirements@4.0.3 +pnpm add @cowwoc/requirements@4.0.4 ``` ## Usage Example @@ -146,11 +146,11 @@ This library offers the following features: Designed for discovery using your favorite IDE's auto-complete feature. The main entry points are: -* [requireThat(value, name)](https://cowwoc.github.io/requirements.js/4.0.3/docs/api/module-DefaultRequirements.html#~requireThat) +* [requireThat(value, name)](https://cowwoc.github.io/requirements.js/4.0.4/docs/api/module-DefaultRequirements.html#~requireThat) for method preconditions. -* [assertThat(value, name)](https://cowwoc.github.io/requirements.js/4.0.3/docs/api/module-DefaultRequirements.html#~assertThat) +* [assertThat(value, name)](https://cowwoc.github.io/requirements.js/4.0.4/docs/api/module-DefaultRequirements.html#~assertThat) for [class invariants, method postconditions and private methods](docs/Features.md#assertion-support). -* [checkIf(value, name)](https://cowwoc.github.io/requirements.js/4.0.3/docs/api/module-DefaultRequirements.html#~checkIf) +* [checkIf(value, name)](https://cowwoc.github.io/requirements.js/4.0.4/docs/api/module-DefaultRequirements.html#~checkIf) for multiple failures and customized error handling. See the [API documentation](https://cowwoc.github.io/requirements.java/10.0/docs/api/) for more details. diff --git a/docs/Features.md b/docs/Features.md index aee5c09..969694f 100644 --- a/docs/Features.md +++ b/docs/Features.md @@ -99,7 +99,7 @@ requireThat(nameToAge, "nameToAge"). ## String diff When -a [String comparison](https://cowwoc.github.io/requirements.js/4.0.3/docs/api/ObjectVerifier.html#isEqualTo) +a [String comparison](https://cowwoc.github.io/requirements.js/4.0.4/docs/api/ObjectVerifier.html#isEqualTo) fails, the library outputs a diff of the values being compared. Depending on the terminal capability, you will see a [textual](Textual_Diff.md) or a colored diff. diff --git a/docs/String_Diff.md b/docs/String_Diff.md index 5f3e4af..4b31bdd 100644 --- a/docs/String_Diff.md +++ b/docs/String_Diff.md @@ -1,5 +1,5 @@ When -a [String comparison](https://cowwoc.github.io/requirements.js/4.0.3/docs/api/ObjectVerifier.html#isEqualTo) +a [String comparison](https://cowwoc.github.io/requirements.js/4.0.4/docs/api/ObjectVerifier.html#isEqualTo) fails, the library outputs a [diff](https://en.wikipedia.org/wiki/Diff) of the values being compared. Depending on the terminal capability, you will see a [Textual](Textual_Diff.md) or [Colored](Colored_Diff.md) diff --git a/package.json b/package.json index e3a3133..85e070e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cowwoc/requirements", - "version": "4.0.3", + "version": "4.0.4", "keywords": [ "preconditions", "postconditions",