Skip to content

Releases: YMFE/qreact

[email protected]

12 Apr 12:37
c0e6c24
Compare
Choose a tag to compare
  • 修复移动端下 IME 导致的 change 事件触发问题

[email protected]

10 Apr 10:27
513e259
Compare
Choose a tag to compare
  • 修复 IE 8 下为 input 指定 type 出错的问题
  • 更新编译打包代码

[email protected]

30 Mar 10:58
00c239a
Compare
Choose a tag to compare
  • 修复特定条件下无法更新的问题
  • 移除所有 console.log, console.warn

[email protected]

26 Mar 04:06
90feb7d
Compare
Choose a tag to compare
  • React.Fragment 支持 key 属性
  • 修正有生命周期的无状态组件的更新 BUG
  • 实现 React.createRefReact.forwardRef
  • 实现 createResourcecreateSubscription 这两个处理狀态的新包,放于 lib
  • var 集体更改为 let / const
  • 修复用户自定义错误无法抛出的错误

[email protected]

07 Mar 06:09
7cc2f0a
Compare
Choose a tag to compare
  • 支持 React v16.3 的 createContext
  • 添加大量 React.Fragment 测试,修正一些边缘的 BUG
  • 升级 diff 机制,由新旧 vnode 进行比较,改成 fiber 与新 vnode 进行比较,用新 vnode 的数据更新 fiber 与视图
  • 添加 input[type=search]onChange 事件支持
  • 修正传送门在 [email protected] 的一个边缘 BUG(重复插入两次,导致文本节点消失)
  • 属性名与方法名大改动,与 React v16 的 Fiber 靠近
    • vnode.vtype --> fiber.tag
    • instance.__isStateless --> fiber._isStateless
    • updater --> fiber
    • updater.vnode --> fiber._reactInternalFiber
    • updater.willReceive --> fiber._willReceive
    • updater.children --> fiber._children
    • updater.isMounted() --> fiber._isMounted()
    • updater.insertCarrier --> fiber._mountCarrier
    • updater.insertPoint --> fiber._mountPoint
    • updater.parentContext --> fiber._unmaskedContext
    • getChildContext --> getUnmaskedContext
    • getContextByTypes --> getMaskedContext
    • CompositeUpdater.js --> ComponentFiber.js
    • DOMUpdater.js --> HostFiber.js

[email protected]

07 Feb 07:13
2e69c63
Compare
Choose a tag to compare
  • 修复了 IE8 及以下浏览器的 focus/blur 问题
  • 修复了 IE8 及以下浏览器的 onchange 事件由于采用 onproperty 实现而导致的无限循环问题
  • 修复了 diffProps 无法修改 input 元素的 type 属性的问题,改为在 createElement 方法中立即添加 type 属性

[email protected]

02 Feb 07:26
1bc96a9
Compare
Choose a tag to compare
  • 简化 focus / blur 事件的实现,IE7-8 的实现更加精简了
  • 修正 wheel 事件的属性计算方式,与官方保持一致
  • 为了支持 react-hot-loader, vnode.updater.vnode 更名为 vnode.updater._reactInnerFiber, vtype 更名为 tag
  • 测试工具与调试工具进行了部分属性调整

[email protected]

01 Feb 06:41
9d12b3a
Compare
Choose a tag to compare
  • 修正 componentWillReceiveProps 的执行条件,修改 _disposed 开关的位置
  • 修正焦点系统,它只会在 browser.jsinsertElementremoveElement 中执行
  • 修正 focus/blur 事件的绑定方式,捕获时需要屏蔽内部的事件
  • 修正 insertElement 中多执行一次无效的 DOM 插入操作及 CompositeUpdater.hydrateinsertElement 传参错误

[email protected]

31 Jan 02:52
0f3b920
Compare
Choose a tag to compare
  • 添加了 componentWillReceiveProps 的触发条件,只有 context 对象和 Vnode 不一样才会触发该钩子

[email protected]

26 Jan 04:26
94a8f1e
Compare
Choose a tag to compare
  • props.children 现在可以是函数类型