Cordis 4.0.0-rc.10 #135
shigma
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Breaking Changes
EntryTree.write()is replaced byEntryTree.commit(change: EntryChange). A subclass receives oneEntryChangeper tree-side mutation, carrying the entry id, its group, the new options, and the previous ones.Notable Changes
This release improves
@cordisjs/plugin-hmrin several areas:ctx.hmr.watch()lets a plugin hook its own files into the watcher and decide what a change does.loader.internal.The reconciliation between the config file and the runtime tree in
@cordisjs/plugin-includeis redesigned:patcheson the include entry.Features
ctx.hmr.watch()(feat(hmr): support hmr.watch() #128)Bug Fixes
next()calls from a waterfall listener (fix(core): guard waterfall continuations #44)不兼容变更
EntryTree.write()由EntryTree.commit(change: EntryChange)取代。树上每发生一次变更,子类会收到一个EntryChange,其中包含条目 id、所属分组、新的 options 以及此前的 options。重要变更
本次更新对
@cordisjs/plugin-hmr进行了多方面的优化:ctx.hmr.watch()允许插件把自己的文件接入监听,并定制文件变化时的行为。loader.internal的情况下使用配置热更新。我们重新设计了
@cordisjs/plugin-include中配置文件与运行时配置树之间的 reconciliation 机制:patches中。新特性
ctx.hmr.watch()(feat(hmr): support hmr.watch() #128)问题修复
next()(fix(core): guard waterfall continuations #44)Packages
This discussion was created from the release Cordis 4.0.0-rc.10.
All reactions