From c36567875a6ca2499a4660332a93d390bdb465b7 Mon Sep 17 00:00:00 2001 From: czlonkowski <56956555+czlonkowski@users.noreply.github.com> Date: Wed, 30 Jul 2025 15:43:48 +0200 Subject: [PATCH] chore: bump version to 2.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update package.json version from 2.7.23 to 2.8.0 - Update README.md test count from 1,182 to 1,356 tests - Add comprehensive CHANGELOG entry for v2.8.0 - Document all test improvements and fixes from PR #104 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- README.md | 10 +++++----- docs/CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 44 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 287cf6a..bebb9db 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![GitHub stars](https://img.shields.io/github/stars/czlonkowski/n8n-mcp?style=social)](https://github.com/czlonkowski/n8n-mcp) -[![Version](https://img.shields.io/badge/version-2.7.23-blue.svg)](https://github.com/czlonkowski/n8n-mcp) +[![Version](https://img.shields.io/badge/version-2.8.0-blue.svg)](https://github.com/czlonkowski/n8n-mcp) [![npm version](https://img.shields.io/npm/v/n8n-mcp.svg)](https://www.npmjs.com/package/n8n-mcp) [![codecov](https://codecov.io/gh/czlonkowski/n8n-mcp/graph/badge.svg?token=YOUR_TOKEN)](https://codecov.io/gh/czlonkowski/n8n-mcp) -[![Tests](https://img.shields.io/badge/tests-1182%20passing-brightgreen.svg)](https://github.com/czlonkowski/n8n-mcp/actions) +[![Tests](https://img.shields.io/badge/tests-1356%20passing-brightgreen.svg)](https://github.com/czlonkowski/n8n-mcp/actions) [![n8n version](https://img.shields.io/badge/n8n-v1.103.2-orange.svg)](https://github.com/n8n-io/n8n) [![Docker](https://img.shields.io/badge/docker-ghcr.io%2Fczlonkowski%2Fn8n--mcp-green.svg)](https://github.com/czlonkowski/n8n-mcp/pkgs/container/n8n-mcp) [![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/VY6UOG?referralCode=n8n-mcp) @@ -700,7 +700,7 @@ docker run --rm ghcr.io/czlonkowski/n8n-mcp:latest --version ## 🧪 Testing -The project includes a comprehensive test suite with **1,182 tests** ensuring code quality and reliability: +The project includes a comprehensive test suite with **1,356 tests** ensuring code quality and reliability: ```bash # Run all tests @@ -720,8 +720,8 @@ npm run test:bench # Performance benchmarks ### Test Suite Overview -- **Total Tests**: 1,182 (99.5% passing) - - **Unit Tests**: 933 tests across 30 files +- **Total Tests**: 1,356 (100% passing) + - **Unit Tests**: 1,107 tests across 44 files - **Integration Tests**: 249 tests across 14 files - **Execution Time**: ~2.5 minutes in CI - **Test Framework**: Vitest (for speed and TypeScript support) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 793c10c..b7981c0 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -5,6 +5,44 @@ 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). +## [2.8.0] - 2025-07-30 + +### Added +- **Enhanced Test Suite**: Expanded test coverage from 1,182 to 1,356 tests + - **Unit Tests**: Increased from 933 to 1,107 tests across 44 files (was 30) + - Added comprehensive edge case testing for all validators + - Split large test files for better organization and maintainability + - Added test documentation for common patterns and edge cases + - Improved test factory patterns for better test data generation + +### Fixed +- **All Test Failures**: Achieved 100% test pass rate (was 99.5%) + - Fixed logger tests by properly setting DEBUG environment variable + - Fixed MSW configuration tests with proper environment restoration + - Fixed workflow validator tests by adding proper connections between nodes + - Fixed TypeScript compilation errors with explicit type annotations + - Fixed ValidationResult mocks to include all required properties + - Fixed environment variable handling in tests for better isolation + +### Enhanced +- **Test Organization**: Restructured test files for better maintainability + - Split config-validator tests into 4 focused files: basic, edge-cases, node-specific, security + - Added dedicated edge case test files for all validators + - Improved test naming convention to "should X when Y" pattern + - Better test isolation with proper setup/teardown + +### Documentation +- **Test Documentation**: Added comprehensive test guides + - Created test documentation files for common patterns + - Updated test counts in README.md to reflect new test suite + - Added edge case testing guidelines + +### CI/CD +- **GitHub Actions**: Fixed permission issues + - Added proper permissions for test, benchmark-pr, and publish workflows + - Fixed status write permissions for benchmark comparisons + - Note: Full permissions will take effect after merge to main branch + ## [2.7.23] - 2025-07-30 ### Added diff --git a/package.json b/package.json index 422fdd0..616e9e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n8n-mcp", - "version": "2.7.23", + "version": "2.8.0", "description": "Integration between n8n workflow automation and Model Context Protocol (MCP)", "main": "dist/index.js", "bin": {