Skip to content

Releases: JSONbored/safemocker

v0.2.0

27 Dec 08:53
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

[0.2.0] - 2025-12-27

Added

  • enhance GitHub Actions workflow to extract specific changelog section for releases by @JSONbored
  • add output schema validation to action handlers and update package structure for CommonJS by @JSONbored
  • add git-cliff configuration for automated changelog generation and enhance CI workflows by @JSONbored
  • enhance auto-release workflow to support manual version bump types and improve detection logic by @JSONbored
  • implement version calculation and validation in auto-release workflow for improved version management by @JSONbored
  • update Jest configuration to use v8 coverage provider for improved performance and avoid instrumentation conflicts; refactor helper exports to prevent coverage issues by @JSONbored
  • enhance Jest configuration for improved coverage tracking and add tests for output schema validation and default values in action clients by @JSONbored
  • improve changelog generation in auto-release workflow by checking for existing entries and updating version sections by @JSONbored
  • prepare for release by updating changelog and workflows (#1) by @JSONbored in #1
  • enhance git-cliff GitHub integration and npm trusted publishing (#2) by @JSONbored in #2

Changed

  • update auto-release and release workflows to improve version tagging and push process, ensuring commit verification before tagging by @JSONbored
  • migrate version bumping to git-cliff by @JSONbored
  • rename workflows and fix commit counting with comprehensive debugging by @JSONbored

Fixed

  • update auto-release workflow to use pnpm for executing git-cliff, ensuring consistent environment for changelog generation by @JSONbored
  • remove empty env block from release.yml workflow by @JSONbored
  • update workflows and cliff.toml for improved commit message handling (#3) by @JSONbored in #3

New Contributors

  • @github-actions[bot] made their first contribution in #

Statistics

  • 16 commits in this release

  • 16 conventional commits

  • 4 linked issues/PRs

  • 4 days since last release

v0.1.0

23 Dec 10:17
a70e37d

Choose a tag to compare

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

[0.1.0] - 2025-12-23

Added

  • Initial release of safemocker
  • Type-safe mocking for next-safe-action v8
  • Jest and Vitest adapter support
  • Comprehensive middleware replication (auth, rate limiting, metadata validation)
  • Helper factories for common patterns (createAuthedActionClient, createCompleteActionClient, etc.)
  • Full TypeScript support with proper type inference
  • Comprehensive test suite (110 tests, all passing)
  • Example files demonstrating various usage patterns:
    • Basic user management actions
    • Complex content management with discriminated unions
    • Nested validation, partial updates, batch operations
  • Complete documentation with Jest and Vitest integration guides
  • Support for all next-safe-action v8 action client API features

Features

  • ✅ Input validation with Zod v4
  • ✅ Middleware chain execution matching real next-safe-action behavior
  • ✅ Context passing and merging (next({ ctx: ... }) format)
  • ✅ Proper SafeActionResult structure (data, serverError, fieldErrors, validationErrors)
  • ✅ Production vs development error handling
  • ✅ Authentication middleware (authedAction, optionalAuthAction)
  • ✅ Rate limiting middleware
  • ✅ Metadata validation middleware
  • ✅ Dual CJS/ESM builds for Jest and Vitest compatibility

Full Changelog: https://github.com/JSONbored/safemocker/commits/v0.1.0