Skip to content

v1.4.1: Hardening & Stability

Choose a tag to compare

@github-actions github-actions released this 30 Jul 08:59

Fixed

  • detectSpecFormat fallback: When a file format cannot be determined, it now returns ESpecFormat.Unknown and displays a clear error message, rather than silently falling back to parsing as OpenAPI and generating confusing parser errors.
  • Postman typings: Replaced all usages of any[] in Postman rules with the new IPostmanItem interface, ensuring type safety against malformed collection JSONs.
  • Postman interfaces moved: Moved all Postman type definitions (IPostmanCollection, IPostmanItem, etc.) to the central src/models/index.ts file and added comprehensive TSDocs.
  • Deduce interactive auto-fixer: Hardened smile deduce to abort gracefully if run against unsupported formats (like gRPC, Postman, GraphQL). Added guard checks to prevent crashes when JSON structures lack a paths object.

Tests

  • gRPC stress testing: Added sample-grpc-large.proto, a real-world multi-service fixture with nested types and enums, to ensure protobufjs rules scale gracefully.
  • OpenAPI stress testing: Added sample-openapi-large.yaml with 50 endpoints to ensure fast AST generation and linting.

📦 Installation

npm install -g @mrjacket/smile

View Full CHANGELOG