Skip to content

DataHub 2.0

Compare
Choose a tag to compare
@zhangyuheng zhangyuheng released this 09 Aug 09:34
· 272 commits to master since this release
ac0d5b0

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

**⚠️Note: DataHub 2's underlying service changes are no longer compatible with 1.x data formats. **

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
}
 

不兼容处理

⚠️注意: DataHub 2 的底层服务变更,不再兼容 1.x 的数据格式。

已有的归档数据可以通过如下命令行进行升级:

$ ./node_modules/.bin/datahub-migrate-1-to-2 -s ./data

如果你用到 switchScene,请继续阅读

支持 method 属性,具体见 datahub-nodejs-sdk 文档。