Skip to content

Releases: Kledenai/mathcheck

v1.0.3 - Structural Refinement

19 Apr 23:12

Choose a tag to compare

[1.0.3] - 2025-04-19

Fixed

  • Updated package.json to support both ESM and CJS using exports field and type: module.
  • Updated Jest config to support ESM with --experimental-vm-modules.
  • Adjusted tsconfig.json for compatibility with new build setup.
  • Migrated build system to tsup for faster and modern bundling.
  • Improved GitHub Actions workflow for release publishing.
  • Refactored core imports to use import type syntax.
  • New tsup.config.ts file.

v1.0.2 - ESM Compatibility Fix

24 Feb 15:15

Choose a tag to compare

[1.0.2] - 2025-02-24

Fixed

  • Resolved ESM/CommonJS compatibility issue:
    • Updated tsconfig.json to use "module": "ESNext" instead of "CommonJS" for proper ESM support.
    • Set "target": "ES2020" to enable modern JavaScript features.
    • Enabled TypeScript declaration generation with "declaration": true.
  • Fixed export syntax in compiled JavaScript files:
    • Ensured that TypeScript outputs proper ESM exports using export {} syntax instead of exports. object.

v1.0.1 - Minor Improvements

23 Feb 07:05

Choose a tag to compare

[1.0.1] - 2025-02-23

Fixed

  • Replaced MathExpression from an interface to a type alias of string.
    • Reason: Simplified usage by allowing mathematical expressions to be passed directly as a string instead of requiring an object.
    • Benefit: Makes the code cleaner and more intuitive, enhancing flexibility when passing mathematical expressions.

v1.0.0 - First Stable Release

23 Feb 06:00

Choose a tag to compare

[1.0.0] - 2025-02-23

Added

  • Initial release of MathCheck, a lightweight mathematical expression validator, simplifier, and LaTeX converter written in TypeScript.
  • Core functionality to:
    • ✅ Validate mathematical expressions for syntax correctness, balanced parentheses, and invalid characters.
    • ➗ Simplify valid mathematical expressions and return computed results.
    • 📄 Convert mathematical expressions into properly formatted LaTeX.
  • TypeScript type definitions for ValidationResult, SimplificationResult, and LatexConversionResult.
  • Example usage and API documentation in the README.
  • ESLint configuration for TypeScript code quality.
  • Jest setup for unit testing all core functionalities.
  • License (MIT).
  • Scripts for building, linting, and testing in package.json.

Fixed

  • Resolved issues with LaTeX conversion handling of special characters and parentheses.
  • Addressed edge cases for mathematical operations that return NaN (e.g., division by zero).

Notes

  • Initial release includes full validation, simplification, and LaTeX conversion functionalities.
  • Future updates will focus on adding support for advanced mathematical operations, custom error handling, and extended LaTeX formatting features.