Releases: tinystruct/tinystruct
Releases · tinystruct/tinystruct
v1.7.1
v1.7.0
v1.6.9
v1.6.8
v1.6.7
v1.6.6
v1.6.5
v1.6.4
v1.6.3
v1.6.2
Release Notes for tinystruct v1.6.2
New Features and Improvements
1. Model Context Protocol (MCP) Enhancements
- Added new MCP specification with standardized protocol version 1.0.0
- Implemented core features including base, lifecycle, resources, SSE, and JSON-RPC support
- Added session state management for better connection handling
- Improved error handling and response standardization
2. Security Improvements
- Enhanced SQL injection detection in DatabaseOperator
- Improved URL validation and security checks
- Added better error handling for database connections
- Implemented retry mechanism for database operations
3. Resource Management
- Implemented proper resource cleanup using AutoCloseable interface
- Enhanced connection pooling for database operations
- Improved file handling and stream processing
- Better memory management for large operations
4. Cross-Platform Support
- Enhanced command execution support for both Windows and Linux
- Improved path handling for different operating systems
- Better platform detection using Platform utility class
- Native image support for improved performance
5. Dependency Updates
- Updated various dependencies to their latest stable versions:
- BouncyCastle to 1.80
- Jakarta Mail to 2.0.1
- Jakarta Servlet to 6.1.0
- Netty to 4.1.119.Final
- SQLite to 3.49.1.0
- H2 to 2.3.232
- Mockito to 5.16.1
- Tomcat Embed to 10.1.39
6. Code Quality Improvements
- Removed deprecated method usage (Runtime.exec, URL constructor)
- Enhanced error handling and logging
- Improved code organization and documentation
- Better parameter validation
7. Performance Optimizations
- Implemented buffered writing for better I/O performance
- Enhanced template processing
- Improved database connection management
- Better memory usage in string operations
8. Developer Experience
- Enhanced error messages and logging
- Improved documentation
- Better debugging support
- More consistent API design
Bug Fixes
- Fixed URL validation issues
- Resolved platform-specific command execution problems
- Fixed resource cleanup issues
- Addressed memory leaks in long-running operations
Breaking Changes
Pattern Initialization Changes
- The pattern initialization system has been completely refactored to provide better URL pattern matching and parameter handling
- Changed how URL patterns are processed and matched, affecting existing route definitions
- Modified the priority system for pattern matching, which may affect the order in which routes are matched
- Updated the pattern group handling system, which may affect how routes are organized and matched
Action Registry Changes
- Modified the ActionRegistry class to use a new pattern matching system
- Changed how actions are registered and matched against URLs
- Updated the parameter type handling system
- Modified the way pattern priorities are calculated
System Requirements
- Java 11 or higher
- Maven 3.6 or higher
- Support for both Windows and Linux environments
Installation
<dependency>
<groupId>org.tinystruct</groupId>
<artifactId>tinystruct</artifactId>
<version>1.6.2</version>
<classifier>jar-with-dependencies</classifier>
</dependency>
This release focuses on improving security, performance, and cross-platform compatibility while maintaining backward compatibility. The addition of the MCP specification provides a standardized protocol for client-server communication, making it easier to build distributed applications.