v7.1.0
markbind-cli
User Facing Changes
Breaking Changes
Also give a brief explanation note about:
- what was the old feature that was made obsolete
- any replacement feature (if any), and
- how the author should modify his website to migrate from the old feature to the replacement feature (if possible).
Custom Plugin File Extensions & Node.js Bump
Old feature that was made obsolete:
Previously, custom plugins written in .js files were always loaded implicitly as CommonJS (CJS) modules, preventing the use of modern ESM packages inside plugins.
Any replacement feature:
MarkBind now explicitly supports both CJS and ESM plugins. Plugin loading now relies on explicit file extensions (.cjs and .mjs) to safely mix module types. Additionally, the minimum required Node.js version is now v22.12.
How authors should modify their website to migrate:
1. Rename existing plugins: Rename any existing CommonJS custom plugin files from myPlugin.js to myPlugin.cjs to guarantee they are processed correctly.
2. Writing new plugins: Use .mjs for new ES Module plugins.
3. Update Node.js: Ensure your local environment and CI/CD deployment pipelines (e.g., GitHub Actions, Netlify) are using Node.js v22.12 or higher.
Features
- Add Dark Mode Support by @yihao03 in #2856
- Add PageFind beta (Full Text Search across Site) by @MoshiMoshiMochi in #2857
- Add commands to pull AI Skills by @yihao03 in #2893
Enhancements
- Upgrade commander to v14 and refresh CLI visuals by @gerteck in #2859
- Add verbose logging (
-voption) functionality by @gerteck in #2860 - Update markbind deploy success log message by @yihao03 in #2852
- Enhance deployment output logs by @gerteck in #2862
- Add support for both CJS/ESM plugins by @Harjun751 in #2876
- Add node preFlight checks to CLI by @Harjun751 in #2892
Fixes
- Fix core logger to log error objects properly by @Harjun751 in #2864
Documentation
- Add JetBrains IDE debug configs by @Harjun751 in #2875
- Update about page on markbind by @gerteck in #2887
Developer Facing Changes
Code Quality
- Migrate CLI output from CJS to ESM by @Harjun751 in #2836
- Migrate Core output from CJS to ESM by @Harjun751 in #2863
- Refactor/pagefind search by @MoshiMoshiMochi in #2879
- Feat/pagefind integrate pages config by @MoshiMoshiMochi in #2880
- Add explicit stack log print to core logger by @gerteck in #2865
- Migrate Core Patches to TypeScript by @yihao03 in #2853
DevOps Changes
- Fix test workflow by @gerteck in #2866
- Fix updatetest script by @Harjun751 in #2877
- Add agent skills for AI coding by @yihao03 in #2804
Dependencies
- Upgrade winston dependency to v3 by @Harjun751 in #2858
Miscellaneous
- Fix regression from PR:
markbind serve -dby @Harjun751 in #2868
Full Changelog: v6.3.1...v7.1.0