Repository navigation
Cordis 4.0.0-rc.12 #240
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
[Service.resolveConfig](base?, head?)is replaced by[Service.resolveIntercept]().Config.mergehook is replaced by overriding[Service.mergeIntercept](...values).Service.configtype marker is replaced byService.metadata.ctx.rootis replaced byctx[Context.root].@cordisjs/plugin-includeparses config files withyamlinstead ofjs-yaml. Scalars follow the YAML 1.2 core schema, so binary integers such as0b101are now read as strings.Notable Changes
file:line:column:namethat fails to import withERR_MODULE_NOT_FOUNDis located.cordisnow use explicit file extensions, so projects usingmoduleResolution: NodeNextcan consume them without errors (build: add explicit extensions to relative imports #125).Features
AggregateErrorthrown byctx.parallel()(feat(core): describe the failing event in parallel AggregateError #205)Bug Fixes
DISPOSED(fix(core): settle disposed fibers to DISPOSED #133)http(s)scheme (feat(create): reject a registry without an http(s) scheme #199)node_modulesand dot paths on Windows (fix(hmr): ignore nested paths on Windows #197)base(fix(hmr): accept a drive-letter path forbase#208)path(fix(include): accept an absolute path forpath#200)不兼容变更
[Service.resolveConfig](base?, head?)由[Service.resolveIntercept]()取代。Config.merge钩子由重写[Service.mergeIntercept](...values)取代。Service.config由Service.metadata取代。ctx.root改为ctx[Context.root]。@cordisjs/plugin-include改用yaml而非js-yaml解析配置文件。标量按 YAML 1.2 core schema 解析,因此0b101这类二进制整数现在读作字符串。重要变更
file:line:column的形式指向配置文件中出错的位置:name导入失败(ERR_MODULE_NOT_FOUND)时给出位置。cordis的类型声明改用显式文件扩展名,使用moduleResolution: NodeNext的项目可以正常引用 (build: add explicit extensions to relative imports #125)。新特性
ctx.parallel()抛出的AggregateError会注明失败的事件 (feat(core): describe the failing event in parallel AggregateError #205)问题修复
DISPOSED状态 (fix(core): settle disposed fibers to DISPOSED #133)http(s)协议的 registry (feat(create): reject a registry without an http(s) scheme #199)node_modules和点开头路径 (fix(hmr): ignore nested paths on Windows #197)base支持盘符路径 (fix(hmr): accept a drive-letter path forbase#208)path支持绝对盘符路径 (fix(include): accept an absolute path forpath#200)Packages
This discussion was created from the release Cordis 4.0.0-rc.12.
All reactions