Skip to content

Commit f41903a

Browse files
authored
同步代码 (#6)
* 修复禁用缓存也会写入缓存文件的BUG * 1.3.9 * Migrate to Jest testing framework and improve code quality - Replace old test files with comprehensive Jest test suite - Add Jest configuration and update ESLint for Jest environment - Enhance error handling with async/await and proper error propagation - Add circular inheritance detection for template safety - Improve parameter handling with argument overloading support - Update copyright and documentation formatting - Add block hide attribute functionality * Fix test file formatting and improve code readability Corrected spacing issues in multiple test files (index.test.js, lockfile.test.js, utils.test.js) to ensure consistent formatting and improved code readability. The changes include removing unnecessary blank lines and standardizing indentation for better maintainability. * Create workflow.yml * Remove GitHub Actions workflow for running tests and uploading coverage The workflow "Run tests and upload coverage" has been deleted as it is no longer needed in the repository. * Update README.md with codecov badge Add codecov badge to README.md to display test coverage status for the Node.js template engine project. * Refactor test cases for clarity and consistency Improved test descriptions across multiple files by: - Standardizing test naming conventions - Making expectations more explicit in assertion messages - Enhancing readability while maintaining test functionality - Adding precision to error handling descriptions These changes help maintain better documentation of test intent and improve long-term test suite maintainability. * Update test cases for layout and helper functionalities Refactor and expand test cases in helper.test.js and layout.test.js to improve coverage of edge cases, including cache locking behavior, block hide mode handling, and inheritance scenarios. Remove outdated/empty test stubs and enhance assertions for more robust validation. * Update test instructions to include running individual test files Added commands to run specific test files individually for better testing flexibility and workflow efficiency. * Add TypeScript support and update package metadata Add index.d.ts for TypeScript definitions, update files list to include TypeScript and documentation files, enhance keywords for better discoverability, and add TypeScript dev dependency. * 2.0.0 * Translate Chinese comments and documentation to English Convert all Chinese text in CLAUDE.md, README.md, source code comments, and test files to English for better international accessibility * Convert to ES modules and modernize codebase - Migrate from CommonJS require/module.exports to ES import/export syntax - Update package.json to use "type": "module" and require Node.js >=18 - Add Babel configuration for Jest testing with ES modules - Update GitHub Actions workflow to test Node.js 18, 20, 22 - Modernize Node.js imports to use node: protocol - Update version to 2.0.0 reflecting breaking changes * 3.0.0 * Bump version to 3.0.0 * Add periods to project description in README files * 3.0.1
2 parents 4cdc3f1 + bcc9af6 commit f41903a

0 file changed

File tree

    0 commit comments

    Comments
     (0)