DataHub 2.0
DataHub 2.x Upgrade Guide
Dependency update
Upgrade the version number to 2
{
"macaca-datahub": "2",
"macaca-wd": "2", // If you use this module to write unit tests, please upgrade to 2
}
Incompatible processing
**
Existing archive data can be upgraded via the following command line:
$ ./node_modules/.bin/datahub-migrate-1-to-2 -s ./data
If you use switchScene, please read on
The method property is supported, as described in the datahub-nodejs-sdk documentation.
依赖更新
将版本号升级到 2
{
"macaca-datahub": "2",
"macaca-wd": "2", // 如果你用到该模块写单元测试,请升级到 2
}
不兼容处理
已有的归档数据可以通过如下命令行进行升级:
$ ./node_modules/.bin/datahub-migrate-1-to-2 -s ./data
如果你用到 switchScene,请继续阅读
支持 method 属性,具体见 datahub-nodejs-sdk 文档。