Skip to content

v3.0.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@leeyeh leeyeh released this 27 Apr 09:33
· 23 commits to next-dist since this release

Breaking Changes

  • 为了更好的隔离服务,我们为每个应用提供了独立的域名。对于小程序用户,请前往 《小程序域名白名单配置》 更新域名白名单。

  • 创建 Roleacl 参数不再是可选的。在 v2 中,如果不指定,SDK 会自动为其设置一个 public read-only 的默认 acl,在新版中必须显式的指定。

    // 之前的用法
    new AV.Role('admin');
    
    // 新版中等价于
    var acl = new AV.ACL();
    acl.setPublicReadAccess(true);
    new AC.Role('admin', acl);

Features

  • 开放了低抽象级别的 AV.request 方法

  • 增加了 AV.setServerURLs 方法,允许单独配置云函数的域名

    AV.setServerURLs({
      engine: 'http://localhost:3000',
    });

Miscellanies

  • 包含了 v2.1.3-v2.2.1 的新特性与修复。