Skip to content

Releases: vureact-js/core

Release v1.6.0

13 Apr 02:15
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v1.6.0 (2026-04-13)

✨ Features

  • Add SFC metadata collection: Collect props, emits, and options metadata during parsing
  • Add useAttrs transformation: Convert Vue useAttrs() to React props; automatically assert as Record type in TypeScript to isolate original props type hints
  • Add TypeScript intersection type support: Automatically append Record intersection type to props when useAttrs is used to ensure type integrity

🐞 Bug Fixes

  • Fix import injection conflicting with top comments, align comments and import statements
  • Fix incorrect migration of <template> nodes with specific directives
  • Fix :key not properly transferred from <template> node to its first child
  • Fix function fields in SFC top-level TypeScript declarations incorrectly converted to ReactNode type

🚀 Optimizations

  • Refactor script metadata collection logic; modularize for better maintainability and extensibility

Full Changelog: v1.5.2...v1.6.0

Release v1.5.2

08 Apr 07:12
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v1.5.2 (2026-04-08)

🐞 Bug Fixes

  • Fixed non-functional output from incomplete traditional <script> syntax conversion; now throws clear compile-time error

🚀 Optimizations

  • Removed incomplete handling logic for traditional syntax to prevent runtime errors

Full Changelog: v1.5.1...v1.5.2

Release v1.5.1

04 Apr 10:40
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v1.5.1 (2026-04-04)

🐞 Bug Fixes

  • Fixed messy comment alignment in output; optimized code generation
  • Fixed missing import quotes when Babel minified is off; adjusted config handling
  • Fixed incorrect static hoisting of non-const simple literals; refined hoisting logic
  • Fixed collision between injected top imports and top comments; adjusted injection logic

🚀 Optimizations

  • Removed unused @vr special comments from output
  • Disabled default script minification to preserve readability

Full Changelog: v1.5.0...v1.5.1

Release v1.5.0

30 Mar 13:01
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v1.5.0

2026-03-30

✨ 新增功能

  • 新增 output.packageJson 选项:支持对产物 package.json 内容进行自定义配置,提供更灵活的产物包管理

🐞 修复问题

  • 修复部分事件名未规范化与事件处理函数包裹问题:改进事件处理逻辑,确保事件名格式统一
  • 修复非 SFC 脚本文件未跳过 slot 顶层类型改写问题:优化类型处理逻辑,避免对非 SFC 文件进行不必要的类型改写
  • 修复脚本文件被注入 React.memo 导入的问题:改进导入注入逻辑,避免错误注入不必要的 React API
  • 修复初始化 Vite 失败但终端进程未结束问题:改进错误处理流程,确保进程在失败时正确退出
  • 修复脚本文件被注入 dir 工具包导入的问题:优化导入分析,避免注入不必要的工具包导入
  • 修复适配器把同名局部变量识别为 Vue API 的问题:改进 Vue API 识别逻辑,避免与局部变量冲突
  • 修复 HTML 的动态属性值为字符串类型时,格式转换错误的问题:改进属性值处理,确保字符串类型正确转换
  • 修复 HTML 的 data-* 为动态属性时,未转换成小驼峰格式:改进动态属性处理,确保 data-* 属性正确转换为小驼峰格式
  • 修复 HTML 属性值为模板字面量时,被编译为纯文本的问题:改进属性值处理逻辑,确保模板字面量正确保留

🚀 优化改进

  • 不再对 SFC style 块的 @import 发出警告:简化样式处理,减少不必要的警告信息
  • 对不支持处理的 Vue API 发出错误提醒:提供更明确的错误提示,帮助用户识别不支持的 API
  • 对于使用从 Vue 导入的类型接口都替换为 any:简化类型处理,避免类型兼容性问题
  • 优化需要运行时 import 注入的处理逻辑:改进运行时导入注入机制,提升编译效率
  • vue-router 导入不再删除,映射为 @vureact-router 且保留类型导入:改进路由导入处理,确保类型完整性
  • 提升运行时适配包的版本号至当前最新:保持运行时包与编译器版本同步
  • 优化作用域样式 ID 注入逻辑:避免向纯结构元素等不需要样式的元素注入 scopeId

Full Changelog: v1.4.0...v1.5.0

Release v1.4.0

22 Mar 14:19
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v1.4.0

2026-03-22

✨ Features

  • Added React product entry file injection of route provider: Automatically inject route provider into compiled React projects to simplify route configuration
  • Added file lock read/write mechanism: Implemented cross-process file locks based on proper-lockfile to resolve data inconsistency issues in concurrent compilation scenarios
  • Added support for specifying Vite and React versions in bootstrapVite options: Allows users to customize the installed versions of Vite and React
  • Added automatic removal of workspace products after full compilation failure: Automatically cleans incomplete outputs when compilation fails to keep the workspace clean
  • Added support for TypeScript-typed vureact configuration files: Supports vureact.config.ts configuration files to provide better type hints
  • Added batch cache update functionality: Optimized cache management to support batch updating and cleaning of cache records
  • Added SetupManager architecture: Refactored compiler manager dependency injection to provide clearer dependency management
  • Added configuration loader and merger: Separated configuration loading logic to support more flexible configuration merging strategies

🐞 Bug Fixes

  • Fixed project build failure caused by uninitialized Vite: Improved Vite initialization process with better error handling
  • Fixed imprecise internal dependency collection for top-level variable declarations optimized to useMemo: Improved dependency analyzer to only collect referenced root variables
  • Fixed top-level variable declarations optimized to useMemo not being recognized as collectible dependencies when used elsewhere: Optimized dependency identification logic
  • Fixed compiler CLI options always overriding user configurations: Improved configuration merging strategy where CLI options only override necessary path-related configurations
  • Fixed JSON parsing errors during initial compilation: Improved cache file reading with better error recovery
  • Fixed data inconsistency caused by multiple processes operating on the same file in concurrent compilation scenarios: Ensured data consistency through file lock mechanism
  • Fixed partial cache data loss during each full compilation, leading to invalid incremental compilation: Improved cache persistence logic
  • Fixed workspace directory not being created when Vite initialization is disabled: Ensured workspace directory is always created correctly
  • Fixed static asset copying not being optimized with caching during each compilation: Improved asset manager cache logic
  • Fixed corresponding product files not being deleted after removing original style files: Enhanced cleanup manager to support style file cleanup
  • Fixed cache records not being updated after deleting files and recompiling: Improved cache update mechanism
  • Fixed repeated build showing processed file count even when static assets have no changes, and unchanged assets not being counted in cache: Optimized asset processing statistics
  • Fixed failure to synchronously delete corresponding product files and cache records after deleting style files: Improved style file cleanup process

🚀 Optimizations

  • Optimized external imports to no longer be collected as dependencies: Reduced unnecessary dependency collection to improve compilation performance
  • Optimized internal function dependency collection to no longer unconditionally collect all external functions: Only collect analyzed functions to reduce misjudgment
  • Optimized dependency collection for object access patterns by adding an optional chaining layer of protection: Prevent runtime crashes caused by null value access
  • Optimized CLI to only retain necessary path-related options: Simplified CLI interface and removed behavior-related configurations
  • Optimized cache maintenance process for static assets: Improved asset cache management to enhance performance
  • Optimized CLI statistics after full compilation: Provided clearer compilation statistics reports
  • Optimized dependency analyzer: Refactored route configuration to improve compilation quality and reduce unnecessary useCallback wrapping
  • Optimized compiler architecture: Introduced modular types and functional configurations to improve code maintainability

♻️ Removals

  • Removed the function of automatically outputting route adaptation guides in project engineering: Simplified output, as route configuration is now implemented via injected providers
  • Removed all behavior-related configuration options from CLI: Simplified CLI interface, retaining only necessary path configurations
  • Removed compiler templates directory: Deleted unused route configuration template files
  • Removed a large number of verbose comments and simplified class/method documentation: Kept code concise and improved readability

Full Changelog: v1.3.0...v1.4.0

Release v1.3.0

17 Mar 15:42
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

[1.3.0] - 2026-03-17

Added

  • 新增 CLI 更新检查功能,启动时自动检查新版本
  • 新增路由配置说明文档,使用路由时自动生成配置指南
  • 新增对 update-notifier 依赖的支持

Fixed

  • 修复 v-for 循环中 ref 变量访问,自动添加 .value 后缀
  • 修复事件调用转换,统一改为可选调用(onClick?.()
  • 修复依赖分析中的可选链保护,避免 ref.value 访问导致的运行时错误
  • 修复缓存管理,避免存储样式源码,减少缓存体积
  • 修复 CLI 构建配置,确保正确的 shebang 注入

Changed

  • 优化示例项目结构,移除旧的示例项目
  • 更新 README 文档,改进项目描述和徽章布局
  • 优化编译管线执行流程,改进错误处理和进度显示

Full Changelog: v1.2.1...v1.3.0

Release v1.2.1

15 Mar 07:48
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

[1.2.1] - 2026-03-15

Fixed

  • 修复 provide 转换逻辑,改进 Provider 组件的属性处理
  • 修复事件调用转换,统一将事件调用变为可选的(onClick?.()
  • 修复 v-model 转换中的事件名生成逻辑
  • 修复模板中 templateslot 出口节点不应注入 scopeId 的问题
  • 修复插槽作用域参数类型定义,支持包含连字符等非法标识符的字段
  • 修复 ReactNode 等类型导入,确保正确添加 type 修饰符
  • 修复 Vue Router 历史模式 API 的适配映射
  • 修复 emit 事件名格式化,支持 update:xxx -> onUpdateXxx 转换
  • 修复 provide 处理顺序,确保在重命名之前收集并移除原始调用
  • 修复样式作用域属性注入逻辑,避免在特定节点上错误注入

Full Changelog: v1.2.0...v1.2.1

Release v1.2.0

06 Mar 15:26
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

[1.2.0] - 2026-03-06

Added

  • 新增对 defineExpose 宏 API 的转换处理
  • 新增使用 defineExpose 的场景下,通过 React.forwardRef 包装组件
  • 优化 API 适配处理
  • 优化对组件 ref 的处理

Full Changelog: v1.1.1...v1.2.0

Release v1.1.1

05 Mar 12:06
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

v1.1.1 - 2026-03-05

修复

  • 修复当样式预处理启用时,样式文件里导入的 .less/.scss 文件后缀没有替换成 .css

Full Changelog: v1.1.0...v1.1.1

Release v1.1.0

05 Mar 07:35
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

[1.1.0] - 2026-03-05

Added

  • 新增单独对 style 文件的编译处理,如 .less.sass
  • 支持对文件内 import 的样式文件,如 .scss 等替换成 .css

Full Changelog: v1.0.4...v1.1.0