diff --git a/CHANGELOG.md b/CHANGELOG.md index 81f9e74..20a2000 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.1.2] - 2025-06-08 + +### Fixed +- Prevent stack overflow (RangeError: Maximum call stack size exceeded) when processing recursive or cyclic OpenAPI schemas (e.g., self-referencing objects). +- Added cycle detection to schema mapping, ensuring robust handling of recursive structures. + +## [3.1.1] - 2025-05-26 + +### Added +- Introduced a new executable command-line script for easier usage in Unix-like environments. + +### Changed +- Changed the CLI entry point to use the new `bin/openapi-mcp-generator.js` file. +- Updated build script to ensure the new CLI file has the correct permissions. +- Refactored `index.ts` to streamline argument parsing and error handling. + + ## [3.1.0] - 2025-05-18 ### Added @@ -18,6 +35,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved module structure with better exports - Enhanced detection of module execution context +## [3.0.0] - 2025-04-26 + +### Added +- Streamable HTTP support for OpenAPI MCP generator, enabling efficient handling of large payloads and real-time data transfer. +- Major architectural refactor to support streaming responses and requests. + +### Fixed +- Multiple bugs related to HTTP/HTTPS connection handling, stream closure, and error propagation in streaming scenarios. +- Fixed resource leak issues on server aborts and client disconnects during streaming. + +### Changed +- Major version bump due to breaking changes in API and internal structures to support streaming. +- Updated documentation to reflect new streaming capabilities and usage instructions. +- Enhanced performance and robustness of HTTP/HTTPS transport layers. + ## [2.0.0] - 2025-04-12 ### Added @@ -53,4 +85,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Support for GET, POST, PUT, DELETE methods - Basic error handling - Simple CLI interface -- Basic TypeScript support \ No newline at end of file +- Basic TypeScript support diff --git a/package-lock.json b/package-lock.json index 4b15961..183362a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "openapi-mcp-generator", - "version": "3.1.0", + "version": "3.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "openapi-mcp-generator", - "version": "3.1.0", + "version": "3.1.2", "license": "MIT", "dependencies": { "@apidevtools/swagger-parser": "^10.1.1", @@ -14,7 +14,7 @@ "openapi-types": "^12.1.3" }, "bin": { - "openapi-mcp-generator": "dist/index.js" + "openapi-mcp-generator": "bin/openapi-mcp-generator.js" }, "devDependencies": { "@types/node": "^22.15.2", diff --git a/package.json b/package.json index 77840db..90c1912 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openapi-mcp-generator", - "version": "3.1.1", + "version": "3.1.2", "description": "Generates MCP server code from OpenAPI specifications", "license": "MIT", "author": "Harsha", diff --git a/src/index.ts b/src/index.ts index 54629d5..f222bf5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -72,7 +72,7 @@ program (val) => parseInt(val, 10) ) .option('--force', 'Overwrite existing files without prompting') - .version('3.1.1') // Match package.json version + .version('3.1.2') // Match package.json version .action(options => { runGenerator(options) .catch((error) => {