Skip to content

Commit 2294ef2

Browse files
authored
chore(release): v2.1.0 (#445)
1 parent 3687237 commit 2294ef2

File tree

6 files changed

+23
-5
lines changed

6 files changed

+23
-5
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.1",
3+
"version": "2.1.0",
44
"homepage": "https://github.com/leancloud/javascript-sdk",
55
"authors": [
66
"LeanCloud <[email protected]>"

changelog.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 2.0.1 (2017-01-20)
2+
### Bug Fixes
3+
* 修复了 `File#toJSON` 序列化结果中缺失 objectId 等字段的问题
4+
* 修复了使用 `Query#containsAll``Query#containedIn``Query#notContainedIn` 方法传入大数组时查询结果可能为空的问题
5+
* 修复了文件上传失败后 _File 表中仍有可能残留无效文件记录的问题
6+
7+
### Features
8+
* 增加了 `User#refreshSessionToken` 方法用于刷新用户的 sessionToken
9+
* 增加了 `Query#scan` 方法用于遍历 Class
10+
* 应用内社交模块增加了 `Status.resetUnreadCount` 方法用于重置未读消息数
11+
112
## 2.0.1 (2017-01-12)
213
### Bug Fixes
314
* 修复了在 Node.js 中向国内节点上传文件抛异常的问题
@@ -104,7 +115,7 @@
104115

105116
### Bug Fixes
106117
* 修复了在进行以下操作时可能出现 `URI too long` 异常的问题
107-
* 使用 `Query#containsAll``Qeruy#containedIn``Query#notContainedIn` 方法时传入了一个大数组
118+
* 使用 `Query#containsAll``Query#containedIn``Query#notContainedIn` 方法时传入了一个大数组
108119
* 使用 `Object.destroyAll` 方法批量删除大量对象
109120
* 修复了 `Object.set(key, value)` 方法可能会改变(mutate)`value` 的问题
110121
* 修复了查询结果中 File 没有被正确解析的问题
@@ -144,7 +155,7 @@
144155

145156
### Bug Fixes
146157
* 修复了在进行以下操作时可能出现 `URI too long` 异常的问题
147-
* 使用 `Query#containsAll``Qeruy#containedIn``Query#notContainedIn` 方法时传入了一个大数组
158+
* 使用 `Query#containsAll``Query#containedIn``Query#notContainedIn` 方法时传入了一个大数组
148159
* 使用 `Object.destroyAll` 方法批量删除大量对象
149160
* 修复了在 React Native 及小程序中使用 `AV.setProduction` 方法会导致后续操作引起 crash 的问题
150161
* 修复了 `Object.set(key, value)` 方法可能会改变(mutate)`value` 的问题

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.1",
3+
"version": "2.1.0",
44
"main": "./dist/node/index.js",
55
"description": "LeanCloud JavaScript SDK.",
66
"repository": {

src/query.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ module.exports = function(AV) {
290290
/**
291291
* scan a Query. masterKey required.
292292
*
293+
* @since 2.1.0
293294
* @param {String} orderedBy
294295
* @param {Number} batchSize
295296
* @return {AsyncIterator.<AV.Object>}

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = '2.0.1';
1+
module.exports = '2.1.0';

storage.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
interface AsyncIterator<T> {
2+
next(): Promise<IteratorResult<T>>
3+
}
4+
15
declare namespace AV {
26

37
export var applicationId: string;
@@ -448,6 +452,7 @@ declare namespace AV {
448452
withinKilometers(key: string, point: GeoPoint, maxDistance: number): Query;
449453
withinMiles(key: string, point: GeoPoint, maxDistance: number): Query;
450454
withinRadians(key: string, point: GeoPoint, maxDistance: number): Query;
455+
scan<T>(options?:{ orderedBy?: string, batchSize?: number }, authOptions?: AuthOptions): AsyncIterator<T>
451456
}
452457

453458
export namespace Query {
@@ -529,6 +534,7 @@ declare namespace AV {
529534

530535
setPassword(password: string, options?: AuthOptions): boolean;
531536
getSessionToken(): string;
537+
refreshSessionToken(options?: AuthOptions): Promise<User>;
532538

533539
getRoles(options?: AuthOptions): Promise<Role>;
534540
}

0 commit comments

Comments
 (0)