|
2 | 2 |
|
3 | 3 | > For the complete changelog, please refer to: [Midscene Releases](https://github.com/web-infra-dev/midscene/releases) |
4 | 4 |
|
| 5 | +## v0.30 - 🎯 Cache management upgrade and mobile experience optimization |
| 6 | + |
| 7 | +### 🎯 More flexible cache strategy |
| 8 | + |
| 9 | +v0.30 improves the cache system, allowing you to control cache behavior based on actual needs: |
| 10 | + |
| 11 | +- **Multiple cache modes available**: Supports read-only, write-only, and read-write strategies. For example, use read-only mode in CI environments to reuse cache, and use write-only mode in local development to update cache |
| 12 | +- **Automatic cleanup of unused cache**: Agent can automatically clean up unused cache records when destroyed, preventing cache files from accumulating |
| 13 | +- **Simplified unified configuration**: Cache configuration parameters for CLI and Agent are now unified, no need to remember different configurations |
| 14 | + |
| 15 | +### 📊 Report management convenience |
| 16 | + |
| 17 | +- **Support for merging multiple reports**: In addition to playwright scenarios, all scenarios now support merging multiple automation execution reports into a single file for centralized viewing and sharing of test results |
| 18 | + |
| 19 | +### 📱 Mobile automation optimization |
| 20 | + |
| 21 | +#### iOS platform improvements |
| 22 | +- **Real device support improvement**: Removed simctl check restriction, making iOS real device automation smoother |
| 23 | +- **Auto-adapt device display**: Implemented automatic device pixel ratio detection, ensuring accurate element positioning on different iOS devices |
| 24 | + |
| 25 | +#### Android platform enhancements |
| 26 | +- **Flexible screenshot optimization**: Added `screenshotResizeRatio` option, allowing you to customize screenshot size while ensuring visual recognition accuracy, reducing network transmission and storage overhead |
| 27 | +- **Screen info cache control**: Use `alwaysRefreshScreenInfo` option to control whether to fetch screen information each time, allowing cache reuse in stable environments to improve performance |
| 28 | +- **Direct ADB command execution**: AndroidAgent added `runAdbCommand` method for convenient execution of custom device control commands |
| 29 | + |
| 30 | +#### Cross-platform consistency |
| 31 | +- **ClearInput support on all platforms**: Solves the problem of AI being unable to accurately plan clear input operations across platforms |
| 32 | + |
| 33 | +### 🔧 Feature enhancements |
| 34 | + |
| 35 | +- **Failure classification**: CLI execution results can now distinguish between "skipped failures" and "actual failures", helping locate issue causes |
| 36 | +- **aiInput append mode**: Added `append` option to append input while preserving existing content, suitable for editing scenarios |
| 37 | +- **Chrome extension improvements**: |
| 38 | + - Popup mode preference saved to localStorage, remembering your choice on next open |
| 39 | + - Bridge mode supports auto-connect, reducing manual operations |
| 40 | + - Support for GPT-4o and non-visual language models |
| 41 | + |
| 42 | +### 🛡️ Type safety improvements |
| 43 | + |
| 44 | +- **Zod schema validation**: Introduced type checking for action parameters, detecting parameter errors during development to avoid runtime issues |
| 45 | +- **Number type support**: Fixed `aiInput` support for number type values, making type handling more robust |
| 46 | + |
| 47 | +### 🐞 Bug fixes |
| 48 | + |
| 49 | +- Fixed potential issues caused by Playwright circular dependencies |
| 50 | +- Fixed issue where `aiWaitFor` as the first statement could not generate reports |
| 51 | +- Improved video recorder delay logic to ensure the last frame is captured |
| 52 | +- Optimized report display logic to view both error information and element positioning information simultaneously |
| 53 | +- Fixed issue where `cacheable` option in `aiAction` subtasks was not properly passed |
| 54 | + |
| 55 | +### 📚 Community |
| 56 | + |
| 57 | +- Awesome Midscene section added [midscene-java](./awesome-midscene.md) community project |
| 58 | + |
5 | 59 | ## v0.29 - 📱 iOS platform support added |
6 | 60 |
|
7 | 61 | ### 🚀 iOS platform support added |
|
0 commit comments