Skip to content

Releases: Kolos65/Mockable

Mockable 0.0.12

18 Nov 09:06
Compare
Choose a tag to compare

What's Changed

  • fix: use legacy issue-reporting package name for compatibility by @Kolos65 in #84

Full Changelog: 0.0.11...0.0.12

Mockable 0.0.11

30 Sep 07:10
Compare
Choose a tag to compare

What's Changed

  • Keep escaping closure attribute in mocks in #71
  • Support nonisolated keyword in #80
  • Use fully qualified identifiers in mocks to fix name collisions in #81
  • Protocols inheriting from NSObjectProtocol will now result in NSObject subclass mocks
  • Support Swift Testing and remove the MockableTest target by adding swift-issue-reporting in #82

Breaking Changes

  • The Mockable protocol (used for auto-mocking in relaxed mode) was renamed to Mocked to avoid collision with the module name in #81
  • The need for theMockableTest test support target was eliminated by adding swift-issue-reporting in #82

Full Changelog: 0.0.10...0.0.11

Mockable 0.0.10

02 Aug 17:18
Compare
Choose a tag to compare

What's Changed

  • Add support for actor protocols by @Kolos65 in #62
  • Point SwiftSyntax package at swiftlang org by @ianthetechie in #66
  • Add availability to mocks when parametrized protocols found in requirements by @Kolos65 in #68

New Contributors

Full Changelog: 0.0.9...0.0.10

Mockable 0.0.9

28 Jun 12:57
Compare
Choose a tag to compare

What's Changed

  • Depend on exact SwiftLint version by @Kolos65 in #50
  • Support all swift-syntax versions up to 510 by @Kolos65 in #51
  • Remove back tick from names in enum case specifiers by @Kolos65 in #52
  • Excluding private modifiers for mock members by @hainayanda in #49
  • Support sendable conformance by @Kolos65 in #58

Full Changelog: 0.0.8...0.0.9

Mockable 0.0.8

29 Apr 11:00
Compare
Choose a tag to compare

What's Changed

  • Rename MockService to MockableService to avoid name collision by @gaelfoppolo in #43

New Contributors

Full Changelog: 0.0.7...0.0.8

Mockable 0.0.7

07 Apr 19:27
Compare
Choose a tag to compare

What's Changed

  • Replace iOS 15 only Combine API with custom implementation #40 fixed in #42

Full Changelog: 0.0.6...0.0.7

Mockable 0.0.6

05 Apr 15:41
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • Literal expressible type based mocker policies removed and replaced by .relaxedMockable
  • getterCalled(count:) and setterCalled(count:) renamed to getCalled(_:) and setCalled(_:)
  • called(count:) renamed to called(_:)

New Contributors

Full Changelog: 0.0.5...0.0.6

Mockable 0.0.5

02 Apr 17:22
Compare
Choose a tag to compare

What's Changed

  • Major refactor of the macro implementation in #32
  • Added relaxed mode to enable implicit mocking of voids, optionals and more in #34

Fixes

  • Synchronize mutations in Mocker to avoid race conditions: #30 issue fixed in #31

Full Changelog: 0.0.4...0.0.5

Mockable 0.0.4

20 Mar 07:48
Compare
Choose a tag to compare

What's Changed

  • Add instructions to the README to explain how to use it with Tuist by @pepicrft in #21
  • Add support for attributed requirements (like @available(iOS 15, *)) in #27
  • Refactor mocker so the order of return values is not changed in #27
  • Move given() and when() helpers from MockableTest to Mockable so they can be used in non-test targets (for example in SwiftUI previews) in #27

Breaking Changes

  • Explicit mocking of void functions is now required, see details in #28

New Contributors

Full Changelog: 0.0.3...0.0.4

Mockable 0.0.3

02 Mar 17:35
Compare
Choose a tag to compare

What's Changed

  • Updated Package.swift manifest to exclude dev dependencies at package user side in #5
  • Added workflows for testing PRs in #6
  • Renamed Scope enum to MockerScope to avoid name-collisions in #20

Full Changelog: 0.0.2...0.0.3