Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency dev.mokkery to v2.6.1 #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 8, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
dev.mokkery (source) 2.1.1 -> 2.6.1 age adoption passing confidence

Release Notes

lupuuss/Mokkery (dev.mokkery)

v2.6.1: 2.6.1

Changelog:

🐛 Bug fixes
  • #​66 Fix compilation crash on mocking type with constructor that has generic parameter

v2.6.0: 2.6.0

Changelog:

⚠️ Breaking changes
  • Now minimum Kotlin version is 2.1.0.
🐛 Bug fixes
  • #​48 Fix compatibility broken by Kotlin 2.1.0
🚧 Known issues
  • #​63 signal 11: Segmentation fault when using matchers with methods accepting Objective-C types

v2.5.1: 2.5.1

Changelog:

✨ Improvements
  • #​19 Preserve generic arguments for a mocked type so that MockMode.autofill and MockMode.autoUnit work better with generics, especially lambdas.
  • The Gradle plugin warns about potential Kotlin version incompatibilities whenever the major or minor version is higher than the version Mokkery was compiled against. Warning can be disabled by Gradle properties flag dev.mokkery.versionWarnings=false
🐛 Bug fixes
  • Fix MockMany identifier to remove unnecessary type parameter information.
  • Fix Intelij internal error when integrating with Mokkery frontend plugin.
    IntelliJ integration with K2 frontend plugins is currently enabled by default only for first-party plugins (e.g., kotlinx.serialization, Compose). Integration with third-party plugins is experimental and requires disabling the kotlin.k2.only.bundled.compiler.plugins.enabled flag in the IDE registry (Shift + Shift and search for Registry) .

v2.5.0: 2.5.0

Changelog:

🚀 Features
  • #​34 Now it is possible to intercept mock calls with MokkeryCallInterceptor. Currently, it allows intercepting just before returning an answer. Use MokkeryCallInterceptor.beforeAnswering.register to register interceptor.
  • Add predefined interceptors: MokkeryCallListener, MokkeryCallLogger
🐛 Bug fixes
  • Fix compilation crash when using a type with mixed function and type scope parameters
  • #​54 Rename mock internal members to avoid clashes with mocked type members
  • [JVM] Fix ClassCastException whenever trying to mock function that returns Array of generic type.
  • Fix properties super calls for indirect super types were not generated.
  • #​53 Add null check before accessing getter
  • Make IR generated fields private (causes a warning in Kotlin 2.1.0)
  • Restore mock names to contain fully qualified names
♻️ Deprecations
  • allowIndirectSuperCalls is scheduled for removal
🌳 Dependencies
  • Bump atomicfu to 0.26.0
  • Bump Kotlin to 2.0.21

v2.4.0: 2.4.0

Changelog:

🚀 Features
  • New ApplicationRule.All that applies Mokkery for all source sets in a project. Applicable when mocks are extracted to separate project.
  • Adds Wasm-WASI support for mokkery-coroutines
🐛 Bug fixes
  • Adds missing watchosArm32 support
  • #​43 Fix kotlin.IllegalStateException: KClass for Objective-C classes is not supported yet
  • #​44 Fix ClassCastException when mocking a suspending call with default argument on Kotlin Native
🌳 Dependencies
  • Bump atomicfu to 0.25.0
  • Bump kotlinx.coroutines to 1.9.0

v2.3.0: 2.3.0

Changelog:

Since 2.3.0, Mokkery Gradle plugin is also published to Maven Central (previously it was only published to Gradle Plugin Portal).

🚀 Features
  • New answer - callsCatching #​33
  • It's no longer required for classes to have no-args constructor - now it's only required for the constructor to be public #​5
🐛 Bug fixes
  • Fix compatibility broken by Kotlin 2.0.20 #​9, #​24
  • Add missing dependency builder overload for KotlinDependencyHandler #​32
  • Fix crash when mocking type with method that returns a value class with generic argument

v2.2.0: 2.2.0

Changelog:

Features
  • New answers: returnsBy, returnsSuccessBy, returnsFailureBy, throwsBy.
  • New module dev.mokkery:mokkery-coroutines:2.2.0 with coroutine utils. It can be added as a regular dependency. Currently, it only contains kotlinx-coroutines specific answers:
    • everySuspend {...} awaits deferred - waits for a given Deferred and returns its result.
    • everySuspend {...} awaits { deferred } - waits for a Deferred provided by the lambda on each call and returns its result.
    • everySuspend {...} awaits cancellation - waits for a cancellation.
    • everySuspend {...} awaits all(deferred1, deferred2) - waits for all Deferred instances and returns results as List.
    • everySuspend {...} awaits receive(from = channel) - waits for a next element from channel and returns it.
    • everySuspend {...} awaits send(to = channel) { ... } - waits for an element being sent to a Channel.
    • everySuspend {...} awaits delayed(...) - delays for a specified duration and returns a specified value.
Improvements
  • Mokkery no longer depends internally on kotlinx-coroutines. It results in suspend functions being now supported for Wasm WASI!
Dependencies
  • Bumps Kotlin to 2.0.10
Bug fixes
  • Fixes Wasm failing on mocking classes #​25

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/mokkery branch from 6f60146 to cb82e11 Compare August 23, 2024 19:12
@renovate renovate bot changed the title chore(deps): update dependency dev.mokkery to v2.2.0 chore(deps): update dependency dev.mokkery to v2.3.0 Aug 23, 2024
@renovate renovate bot force-pushed the renovate/mokkery branch from cb82e11 to 5b58be6 Compare October 6, 2024 18:41
@renovate renovate bot changed the title chore(deps): update dependency dev.mokkery to v2.3.0 chore(deps): update dependency dev.mokkery to v2.4.0 Oct 6, 2024
@renovate renovate bot changed the title chore(deps): update dependency dev.mokkery to v2.4.0 chore(deps): update dependency dev.mokkery to v2.5.0 Nov 4, 2024
@renovate renovate bot force-pushed the renovate/mokkery branch from 5b58be6 to 5f6c95f Compare November 4, 2024 18:26
@renovate renovate bot force-pushed the renovate/mokkery branch from 5f6c95f to 2beff6e Compare November 12, 2024 20:39
@renovate renovate bot changed the title chore(deps): update dependency dev.mokkery to v2.5.0 chore(deps): update dependency dev.mokkery to v2.5.1 Nov 12, 2024
@renovate renovate bot force-pushed the renovate/mokkery branch from 2beff6e to 874657d Compare November 28, 2024 22:12
@renovate renovate bot changed the title chore(deps): update dependency dev.mokkery to v2.5.1 chore(deps): update dependency dev.mokkery to v2.6.0 Nov 28, 2024
@renovate renovate bot force-pushed the renovate/mokkery branch from 874657d to 6da254a Compare December 15, 2024 15:18
@renovate renovate bot changed the title chore(deps): update dependency dev.mokkery to v2.6.0 chore(deps): update dependency dev.mokkery to v2.6.1 Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants