Skip to content
Compare
Choose a tag to compare
@roland-reed roland-reed released this 07 Mar 06:09
· 11 commits to master since this release
7cc2f0a
  • 支持 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