0.10.3-pre To 0.10.3
new features:
- config file support '.json','.yao','jsonc'
gou 0.10.3-pre =>0.10.3
sh
git checkout saphana
git checkout -b v0.10.3
git fetch upstream
git merge upstream/main
handle the conflict files
Yao 0.10.3-pre =>0.10.3
sh
git checkout main
git git checkout -b v0.10.3
git fetch upstream
git merge upstream/v0.10.3
handle the conflict files
fallback to 0.10.3-pre
sh
cd yao
git checkout main
cd gou
git checkout saphana
switch to 0.10.3
sh
cd yao
git checkout v0.10.3
cd gou
git checkout v0.10.3
main change in 0.10.3
- studio function not working yet
- 读写文件的超级权限的变化
js
// WriteFile SU root
// 0.10.2
__YAO_SU_ROOT = true;
//0.10.3
__yao_data = { ROOT: true };
获取全局变量与权限
js
const test = () => {
const result = Studio('unit.test.process', 'foo', 99, 0.618);
return {
...result,
__yao_global: __yao_data['DATA'], //全局数据,等于res["Global"]
__yao_sid: __yao_data['SID'], //等于res["Sid"]
__YAO_SU_ROOT: __yao_data['ROOT'], //是否超级权限
};
};
test();