v0.2.0
What's New in Version 0.2.0
Features
- Restricting Spyable Usage
- Introducing the ability to limit the usage of Spyable's generated code to specific targets, addressing the concern of unwanted use in production code.
- You can now use the
behindPreprocessorFlag
parameter in the@Spyable
annotation to wrap the macro expansion in a preprocessor macro, such as#if DEBUG
, restricting its use where the specified flag is not defined.Example generated code:@Spyable(behindPreprocessorFlag: "DEBUG") protocol MyService { func fetchData() async }
#if DEBUG class MyServiceSpy: MyService { // ... spy implementation } #endif
- This provides more control over where Spyable's generated code can be used, allowing you to, for instance, limit it to test targets only.
Bug Fixes
- Deprecation Warnings
- Fixed deprecation warnings contributed by @dafurman.
- Other various fixes and refactorings to enhance code quality.
New Contributors
- Welcome to our new contributors:
- @dafurman, who made their first contribution in PR #48.
- @ankithTao, who made their first contribution in PR #66.
For a detailed list of changes, please check the Full Changelog.