Skip to content
This repository was archived by the owner on May 31, 2026. It is now read-only.

v12.0.0

Choose a tag to compare

@mshima mshima released this 28 Feb 06:29
· 27 commits to master since this release

πŸš€ mem-fs-editor v12 – Release Notes

πŸ”„ Major Internal Rewrite

The internal implementation of mem-fs-editor has been almost completely rewritten.

What this means:

  • Cleaner and more maintainable internal architecture
  • Improved consistency across core operations
  • Better separation of concerns
  • Stronger foundation for future enhancements
  • Reduced technical debt

πŸ”§ templateOptions Refactoring

The templateOptions parameter, previously the 4th argument of methods such as copyTpl, has been moved inside the options object (the 4th and only options parameter).

Before:

copyTpl(
  'file.js.ejs',
  'file.js',
  data,
  { delimiter: '?' },
  { someOption: true }
);

After:

copyTpl(
  'file.js.ejs',
  'file.js',
  data,
  {
    someOption: true,
    transformOptions: { delimiter: '?' }
  }
);

🎯 Why This Change?

  • templateOptions is not commonly used
  • Improves API clarity and readability
  • Reduces ambiguity around parameter ordering