Skip to content

Commit 2b7382a

Browse files
committed
chore(release): bump version to v2.0.0-beta.4
1 parent a35c9c5 commit 2b7382a

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leancloud-storage",
3-
"version": "2.0.0-beta.3",
3+
"version": "2.0.0-beta.4",
44
"homepage": "https://github.com/leancloud/javascript-sdk",
55
"authors": [
66
"LeanCloud <[email protected]>"

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# 2.0.0-beta.4 (2016-11-11)
2+
### Breaking Changes
3+
* `objectId``createdAt``updatedAt` 现在是只读字段,尝试 set 这些字段时 SDK 会抛出异常
4+
* `object.get('id')``object.set('id', '')` 现在将会正确的读、写数据表中的 `id` 字段(之前映射的是 `objectId`)。你现在依然可以使用 `object.id` 来访问数据的 `objectId`
5+
6+
### Features
7+
* 增加了 `AV.User.loginWithWeapp()``AV.User#linkWithWeapp()` ,支持在微信小程序中登录
8+
* 增加了 `AV.User#isAuthenticated()`,该方法会校验 sessionToken 的有效性, 废弃 `AV.User#authenticated()`
9+
110
## 2.0.0-beta.3 (2016-11-8)
211
### Bug Fixes
312
* 修复了微信小程序在真机上抛 `ReferenceError: Can't find variable: FormData` 异常的问题

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leancloud-storage",
3-
"version": "2.0.0-beta.3",
3+
"version": "2.0.0-beta.4",
44
"main": "./dist/node/index.js",
55
"description": "LeanCloud JavaScript SDK.",
66
"repository": {

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = 'js2.0.0-beta.3';
1+
module.exports = 'js2.0.0-beta.4';

storage.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ declare namespace AV {
508508
static allowCustomUserClass(isAllowed: boolean): void;
509509
static become<T>(sessionToken: string, options?: AuthOptions): Promise<T>;
510510

511+
static loginWithWeapp<T>(): Promise<T>;
511512
static logInWithMobilePhone<T>(mobilePhone: string, password: string, options?: AuthOptions): Promise<T>;
512513
static logInWithMobilePhoneSmsCode<T>(mobilePhone: string, smsCode: string, options?: AuthOptions): Promise<T>;
513514
static signUpOrlogInWithAuthData<T>(data: any, platform: string, options?: AuthOptions): Promise<T>;
@@ -521,9 +522,10 @@ declare namespace AV {
521522
static verifyMobilePhone<T>(code: string, options?: AuthOptions): Promise<T>;
522523
signUp<T>(attrs?: any, options?: AuthOptions): Promise<T>;
523524
logIn<T>(options?: AuthOptions): Promise<T>;
525+
linkWithWeapp<T>(): Promise<T>;
524526
fetch<T>(options?: AuthOptions): Promise<T>;
525527
save<T>(arg1?: any, arg2?: any, arg3?: any): Promise<T>;
526-
authenticated(): boolean;
528+
isAuthenticated(): Promise<boolean>;
527529
isCurrent(): boolean;
528530

529531

0 commit comments

Comments
 (0)