From fe2ab2d874a17620457c1d6ff2bf7fa357ae9cf9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 22 Feb 2026 06:55:19 +0000 Subject: [PATCH] Update dependency strong-mock to v9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit | datasource | package | from | to | | ---------- | ----------- | ----- | ----- | | npm | strong-mock | 8.0.1 | 9.2.0 | ## [v9.2.0](https://github.com/NiGhTTraX/strong-mock/blob/HEAD/CHANGELOG.md#920-2026-02-12) ##### Features - Allow mock name customization ([73c3b1c](https://github.com/NiGhTTraX/strong-mock/commit/73c3b1ceeb62f3e40dbbb10085a9969685397422)) - You can now name mocks with `mock({ name: 'MyCustomMock' })` to help identify them in error messages. ## [v9.1.0](https://github.com/NiGhTTraX/strong-mock/blob/HEAD/CHANGELOG.md#910-2026-01-13) > \[!IMPORTANT]\ > The next major version (v10) will be ESM-only. Since Node 20.19 supports `require(esm)` by default (see [Node 20.19.0 release post](https://nodejs.org/en/blog/release/v20.19.0/#requireesm-is-now-enabled-by-default)), no changes should be required for CJS projects using Node 20.19 or higher. ##### Features - Publish ESM build, alongside CJS ([f1ece16](https://github.com/NiGhTTraX/strong-mock/commit/f1ece162c45ab3c7c2f792fc66ef72811889a461)) - This is in preparation for v10, which will be ESM-only. ESM projects should use the ESM build automatically, while CJS projects will continue to use the CJS build. - Support nesting matchers in `deepEquals` (the default matcher) ([7c243d2](https://github.com/NiGhTTraX/strong-mock/commit/7c243d2665a15e14c81a65b682445239767e4b44)) - Example: `when(() => mockedFn({ foo: It.isNumber() }))` ##### Bug Fixes - Fix diff integration with IDEs for vitest ([f881346](https://github.com/NiGhTTraX/strong-mock/commit/f8813465b30a0f6e8e6abfce87329f98a89344c0)) ##### [9.0.1](https://github.com/NiGhTTraX/strong-mock/compare/v9.0.0...v9.0.1) (2024-11-23) ##### Bug Fixes - **deps:** update dependency jest-diff to \~29.7.0 ([50a3aa8](https://github.com/NiGhTTraX/strong-mock/commit/50a3aa81fd0e742d6f43c061957989bb9e5cd9d0)) - Pretty print nested matchers in `isArray` ([24f9deb](https://github.com/NiGhTTraX/strong-mock/commit/24f9debcfa16653ab14e1df2a5b140e073f5ac2b)) ## [v9.0.1](https://github.com/NiGhTTraX/strong-mock/blob/HEAD/CHANGELOG.md#901-2024-11-23) ## [v9.0.0](https://github.com/NiGhTTraX/strong-mock/blob/HEAD/CHANGELOG.md#900-2024-05-27) This version greatly improves error messages and the matcher API. Check the [migration guide](MIGRATION.md#migrating-to-v9). ```typescript const fn = mock<(x: number, y: number, z: { foo: string }) => number>(); when(() => fn(1, 2, { foo: 'bar' })).thenReturn(42); fn(1, 2, { foo: 'baz' }); ``` | Before | After | | ------------------------------ | ---------------------------- | | ![before](media/before-v9.png) | ![after](media/after-v9.png) | ##### ⚠ BREAKING CHANGES - `isObject` has been replaced by `isPlainObject` and `containsObject` - Merge `isString`'s optional `containing` and `matching` args - Rename the `toJSON` matcher method to `toString` - Don't allow empty partials in `containsObject` ##### Features - Attach actual/expected args to error instance to enable IDE diffs ([7a04a43](https://github.com/NiGhTTraX/strong-mock/commit/7a04a43b47471f2178595a98dec2975e0cf7249e)) - Improve `isArray` diff ([a5aaddd](https://github.com/NiGhTTraX/strong-mock/commit/a5aaddd0a28108dd82d204914b1b5f00a6ac9cca)) - Improve `isNumber` diff ([55647ed](https://github.com/NiGhTTraX/strong-mock/commit/55647ed698323be9008b0e517b405df85299b12c)) - Improve `isObject` diff ([5533bcf](https://github.com/NiGhTTraX/strong-mock/commit/5533bcf6fef6b1275b9ab64c1caf0b6235e1628c)) - Improve `isString` diff ([5c73fbb](https://github.com/NiGhTTraX/strong-mock/commit/5c73fbbe339753bc1838d7e401af14828b8fc070)) - Improve `willCapture` diff ([7d92ce9](https://github.com/NiGhTTraX/strong-mock/commit/7d92ce9ef67cd44aca5707cbf4f268b26605c983)) - Improve colors in UnexpectedCall error message ([f326954](https://github.com/NiGhTTraX/strong-mock/commit/f326954d4284a65ed87794f567accc4875561988)) - Pretty print argument diffs in UnexpectedCall error messages ([ba4f6b5](https://github.com/NiGhTTraX/strong-mock/commit/ba4f6b5df5845fccce78373a509be73fbb9d8aca)) ##### Bug Fixes - Fix `isPartial` allowing unexpected keys ([cc0b881](https://github.com/NiGhTTraX/strong-mock/commit/cc0b88196c008040d1ec0ecb8b77d7e4baad9ba6)) - Fix `isPartial` not working with interfaces ([169b336](https://github.com/NiGhTTraX/strong-mock/commit/169b336a4bcaef95e404dc098e0725ae71a6a229)) - `isObject` now correctly fails for `null` and `undefined` ([9b50fe4](https://github.com/NiGhTTraX/strong-mock/commit/9b50fe48caeaafc5036085db596204a362795e3b)) - Fix `It` docstrings ([df7f91a](https://github.com/NiGhTTraX/strong-mock/commit/df7f91a3f3f991894470c8ca759b069d82819fa0)) - Handle non string keys in `isObject` ([87cb768](https://github.com/NiGhTTraX/strong-mock/commit/87cb7684ad248e2761195963f8f69857a5124cbd)) --- package.json | 2 +- pnpm-lock.yaml | 24 +++++++----------------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index a0409f2..255f6ae 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "prettier": "3.8.1", "react": "17.0.2", "react-dom": "17.0.2", - "strong-mock": "~8.0.1", + "strong-mock": "~9.2.0", "stylelint": "17.3.0", "stylelint-config-recommended": "18.0.0", "stylelint-config-styled-components": "0.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2291259..806ad53 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -115,8 +115,8 @@ importers: specifier: 3.8.1 version: 3.8.1 strong-mock: - specifier: ~8.0.1 - version: 8.0.1 + specifier: ~9.2.0 + version: 9.2.0 stylelint: specifier: 17.3.0 version: 17.3.0(typescript@5.9.3) @@ -3222,10 +3222,6 @@ packages: resolution: {integrity: sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-matcher-utils@29.3.1: - resolution: {integrity: sha512-fkRMZUAScup3txIKfMe3AIZZmPEjWEdsPJFK3AIy5qRohWqQFg1qrmKfYXR9qEkNc7OdAu2N4KPHibEmy4HPeQ==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - jest-matcher-utils@29.7.0: resolution: {integrity: sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -4268,8 +4264,8 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - strong-mock@8.0.1: - resolution: {integrity: sha512-4dtV6JNBaohZTVOMNkJtY1O60GXA9XWSvQIl5lX0obm44ptXuvK5v1uL5rA9C+fLqnsGL5eYHrXFPU5eMEj4RQ==} + strong-mock@9.2.0: + resolution: {integrity: sha512-YUN/5UFjVK3CJkWFIJ8fEk/+dePdkMG4YU1pYddF1d6+gVLmBJuH+Va6Q6zlY/5GQAEcQqGEqQcbDBrHm/vM9g==} stylelint-config-recommended@18.0.0: resolution: {integrity: sha512-mxgT2XY6YZ3HWWe3Di8umG6aBmWmHTblTgu/f10rqFXnyWxjKWwNdjSWkgkwCtxIKnqjSJzvFmPT5yabVIRxZg==} @@ -8630,13 +8626,6 @@ snapshots: '@jest/get-type': 30.1.0 pretty-format: 30.2.0 - jest-matcher-utils@29.3.1: - dependencies: - chalk: 4.1.2 - jest-diff: 29.7.0 - jest-get-type: 29.6.3 - pretty-format: 29.7.0 - jest-matcher-utils@29.7.0: dependencies: chalk: 4.1.2 @@ -9968,9 +9957,10 @@ snapshots: strip-json-comments@3.1.1: {} - strong-mock@8.0.1: + strong-mock@9.2.0: dependencies: - jest-matcher-utils: 29.3.1 + jest-diff: 30.2.0 + jest-matcher-utils: 30.2.0 lodash: 4.17.21 stylelint-config-recommended@18.0.0(stylelint@17.3.0(typescript@5.9.3)):