Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Dependencies
node_modules/
package-lock.json

# Build output
build/
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@ 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).

## [Unreleased]

### Changed

#### Modernized Codebase
- **Zig 0.15.2+ Support**: Updated all build system templates and examples to Zig 0.15.2+ patterns
- **Modern Build API**: Migrated to `b.path()` for file references instead of `.{ .path = }`
- **Module System**: Updated to use `root_module.addImport()` for cleaner module management
- **Build Analysis**: Enhanced build.zig analysis to detect Zig 0.14+ patterns and provide migration guidance

#### Code Quality
- **Fixed TypeScript Errors**: Resolved all compilation errors (undefined variables, function signature mismatches)
- **Linting Improvements**: Fixed unnecessary escape characters and other linting issues
- **Code Formatting**: Applied Prettier formatting consistently across all source files

#### Documentation
- **Migration Guides**: Added comprehensive migration guidance from Zig 0.12 to 0.15.2
- **Best Practices**: Updated best practices documentation with Zig 0.15.2+ patterns
- **Enhanced Examples**: Updated all code examples to use modern Zig patterns

### Added

#### Build System Features
- **Documentation Generation**: Added `getEmittedDocs()` examples for automated documentation
- **Version Migration**: Added detection and upgrade suggestions for outdated patterns to Zig 0.15.2+

## [0.2.0] - 2024-08-30

### Added
Expand Down
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,33 @@ A powerful Model Context Protocol (MCP) server that provides comprehensive Zig l

<a href="https://glama.ai/mcp/servers/oxiw2bsb15"><img width="380" height="200" src="https://glama.ai/mcp/servers/oxiw2bsb15/badge" alt="Zig Server MCP server" /></a>

## 🚀 What's New in v0.2.0
## 🚀 What's New in v0.2.0+

- **🏗️ Modern Build System Support**: Generate and analyze build.zig files with Zig 0.12+ patterns
- **📦 Dependency Management**: Create build.zig.zon files for modern package management
- **🔧 Enhanced Code Analysis**: Improved optimization suggestions and pattern detection
- **🏗️ Zig 0.15.2+ Support**: Fully updated with modern `b.path()` and `root_module` patterns
- **📦 Enhanced Module System**: Support for latest module system with `root_module.addImport()`
- **🔄 Migration Guidance**: Automated detection and upgrade suggestions for legacy patterns
- **🔧 Enhanced Code Analysis**: Improved optimization suggestions and modern pattern detection
- **🧪 Comprehensive Testing**: 85+ test cases with full coverage reporting
- **⚡ Better Performance**: Modular architecture with improved error handling
- **📚 Extended Documentation**: Build system troubleshooting and best practices guides
- **⚡ Better Code Quality**: Fixed all TypeScript compilation errors and linting issues
- **📚 Extended Documentation**: Complete Zig 0.15.2+ build system guide with migration tips

## 🛠️ Features

### 🏗️ Build System Tools (NEW!)

#### 1. Build System Generation (`generate_build_zig`)
Generate modern build.zig files with Zig 0.12+ patterns:
- Cross-compilation support
- Modern dependency management
Generate modern build.zig files with Zig 0.15.2+ patterns:
- Cross-compilation support with latest target options
- Modern dependency management with build.zig.zon
- Test and documentation integration
- Enhanced module system support

#### 2. Build System Analysis (`analyze_build_zig`)
Analyze existing build files and get modernization recommendations:
- Detect deprecated patterns
- Suggest Zig 0.12+ alternatives
- Suggest Zig 0.15.2+ alternatives
- Identify missing best practices
- Module system migration guidance

#### 3. Dependency Management (`generate_build_zon`)
Generate build.zig.zon files for modern package management:
Expand Down
Loading