Skip to content

Feat/release 1.0.0#10

Open
andrecrjr wants to merge 72 commits into
mainfrom
feat/release-1.0.0
Open

Feat/release 1.0.0#10
andrecrjr wants to merge 72 commits into
mainfrom
feat/release-1.0.0

Conversation

@andrecrjr
Copy link
Copy Markdown
Owner

No description provided.

andrecrjr and others added 30 commits April 9, 2026 14:25
- Added a new column `query_params` to the `mock_responses` table to store query parameters as JSONB.
- Updated migration files to reflect the new schema.
- Enhanced the mock matcher utility to support query parameter matching.
- Implemented tests for query parameter handling in API mocks, including GET, POST, and PUT requests.
- Ensured existing functionality remains intact while introducing new matching logic for query parameters.
- Introduced `variants` and `wildcardRequireMatch` fields in mock response schema.
- Updated components and types to handle variants in mock creation and editing.
- Enhanced mock serving logic to select appropriate variant based on captured keys from the URL.
- Implemented tests for variant selection and wildcard matching behavior.
- Added migration scripts to update the database schema for new fields.
- Add Advanced Options tab alongside Manual JSON and From Schema
- Move Wildcard Variants section from left column to Advanced Options tab
- Increase textarea height (200px) and padding for better editing space
- Auto-select Advanced Options tab when match type is wildcard
- Show helpful message when match type is not wildcard

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Add '*' wildcard catch-all variant support in mock-matcher
- Exact key match takes priority, falls back to '*' variant if no match
- Add unit tests for wildcard fallback behavior
- Update docs page with new wildcard variant documentation

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Create _meta.js for documentation index configuration.
- Add index.mdx as the main entry point for Mockzilla documentation.
- Update docker-compose.yaml to include content and mdx-components.
- Implement mdx-components.tsx to extend MDX components for documentation.
- Modify next.config.ts for consistent formatting.
- Update package.json to include new dependencies for MDX and Nextra.
- Create theme.config.tsx for Nextra theme configuration.
…ication

- Convert all 7 doc sections from TSX to MDX in content/docs/
- Register SchemaTesterDialog + shadcn components in mdx-components.tsx
- Apply Mockzilla theme classes to docsv2 layout
- Parse _meta.js for ordered sidebar
- Fix frontmatter parsing with gray-matter
- Verify all pages render, sidebar correct, zero console errors
- Fix DocsThemeConfig type error (Nextra v4 incompatibility)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Add remark-gfm plugin for GFM tables, strikethrough, task lists
- Add @tailwindcss/typography plugin for prose styling
- Pass remarkPlugins to MDXRemote options

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
andrecrjr and others added 30 commits April 24, 2026 18:02
- Added tools for listing, creating, updating, and deleting folders.
- Implemented mock management tools including creation, listing, updating, and deletion.
- Introduced workflow management tools for creating, updating, and deleting workflow scenarios and transitions.
- Added logging tools for retrieving and clearing application logs.
- Enhanced path resolver utility to support complex JSONPath-like queries.
- Introduced new workflow types and effects for state management and database interactions.
- Added unit tests for engine effects, match conditions, and path resolver functionality.
- Updated package dependencies and types for improved compatibility and performance.
refactor: optimize JSON Schema Faker configuration to prevent multiple setups

chore: add test script to package.json for bun

test: enhance API import tests with required fields and cleanup

test: update variant override dynamic tests to avoid global pollution

test: improve schema generator unit tests with additional property checks
…nctionality

- Enhance OpenAPI import tests to cover edge cases including trailing slashes, multiple examples, fallback cases, and error handling.
- Expand API mocks tests to include various scenarios for GET, PUT, DELETE methods, and error responses.
- Introduce new unit tests for logger functionality, ensuring proper logging behavior and handling of malformed entries.
- Add tests for schema generation, including template replacement and error handling for invalid schemas.
- Implement edge case tests for interpolation, effects, and matching logic in the engine.
- Improve utility tests to ensure robust clipboard handling and error scenarios.
…ation

- Added `replaceTemplates` function to handle both JSON and plain text interpolation using Handlebars.
- Enhanced `interpolation.ts` to support Handlebars logic and helpers.
- Updated `processor.ts` to utilize `replaceTemplates` for response body processing.
- Refactored `handlers.ts` to enrich context for Handlebars and support dynamic responses.
- Created new `handlebars.ts` file to define Handlebars helpers for faker, logic, and date manipulation.
- Added tests for complex Handlebars interpolation scenarios and workflow responses.
- Introduced new documentation for creating stateful workflows and using Handlebars in Mockzilla.
- Updated package dependencies to include Handlebars and its types.
…twork latency and AI "thinking" time

- Introduced `delay` parameter in mock responses to simulate response times.
- Updated documentation to include new delay functionality and its use cases.
- Added tutorial on saving tokens by mocking AI responses with dynamic data and latency.
- Enhanced existing guides to reflect the Spec-Mock Driven philosophy and its benefits.
- Implemented tests for new features, ensuring proper functionality of delay in mock serving.
Co-authored-by: Copilot <copilot@github.com>
- Updated type definitions for database transactions and various function parameters to enhance type safety.
- Changed imports from 'path' and 'fs' to 'node:path' and 'node:fs' for consistency with Node.js best practices.
- Removed unused imports and variables to clean up the code.
- Improved error handling in Handlebars helpers and other utility functions.
- Updated test cases to reflect changes in type definitions and ensure type safety.
- Removed deprecated ESLint configuration file.
- Enhanced the clarity of mock implementations in tests by specifying types.
…lows; enhance seeding for Stripe Checkout Pro
…ndling and support for Swagger 2.0; improve UI with alert dialogs for folder deletion
…and maintainability

- Removed all tool registrations from `lib/mcp/server.ts` and created separate files for folders, mocks, logs, and workflows.
- Each tool registration now imports the necessary handlers dynamically to reduce initial load.
- Updated TypeScript configuration to target ES2024 and adjusted include/exclude paths for better project structure.
- Deleted unused code from `lib/mcp/handlers.ts` and removed unnecessary exports.
…organization

- Introduced shared schemas for mock variants, conditions, effects, and workflow scenarios.
- Consolidated workflow transition and scenario schemas into a single file for better structure.
- Updated tools for managing folders, logs, mocks, and workflows to utilize new schemas.
- Simplified tool registration by merging similar functionalities under unified management tools.
- Enhanced descriptions and input schemas for clarity and consistency across tools.
- Added semantic release dependencies to package.json:
  - @semantic-release/changelog
  - @semantic-release/commit-analyzer
  - @semantic-release/git
  - @semantic-release/npm
  - @semantic-release/release-notes-generator
- Created .releaserc.json for semantic release configuration, specifying:
  - Main branch for releases
  - Plugins for commit analysis, release notes generation, changelog management, and git integration
  - Configuration to prevent npm publishing
…onent

- Refactored ThemeProvider to use useCallback and useMemo for better performance.
- Moved theme application logic into a callback function and updated useEffect dependencies.
- Introduced a new Toaster component that utilizes the Sonner library for notifications.
- Updated package.json to use Next.js version 16.2.6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant