File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# 更新日志
22
3+ ## v1.0.0 (rc 2016/05/16)
4+
5+ * 支持新的初始化方式。
6+ * 更新至 JavaScript SDK 1.0.0-rc8.
7+ * 彻底废弃了 currentUser.
8+ * 默认启用与 Promise/A+ 兼容的错误处理逻辑。
9+ * 将中间件拆分到了单独的文件。
10+ * AV.Cloud.run 支持 remote 参数。
11+ * AV.Cloud.define 支持 fetchUser 参数。
12+
13+ 详见文档 [ 升级到云引擎 Node.js SDK 1.0] ( https://leancloud.cn/docs/leanengine-node-sdk-upgrade-1.html ) 。
14+
315## v0.4.0 (2016/02/01)
416
517### Bug Fixes
Original file line number Diff line number Diff line change 11The MIT License (MIT)
22
3- Copyright (c) <year> <copyright holders>
3+ Copyright (c) 2016 LeanCloud
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1- # leanengine-node-sdk
1+ # LeanEngine Node.js SDK
22
33[ ![ Build Status] ( https://travis-ci.org/leancloud/leanengine-node-sdk.svg?branch=master )] ( https://travis-ci.org/leancloud/leanengine-node-sdk )
44
5- LeanEngine Node.js SDK
6-
75## 安装
86
7+ 0.x 版本:
8+
9+ ``` bash
10+ npm install leanengine --save
11+ ```
12+
13+ 1.x 版本([ 升级到云引擎 Node.js SDK 1.0] ( https://leancloud.cn/docs/leanengine-node-sdk-upgrade-1.html ) ):
14+
915``` bash
10- npm install leanengine
16+ npm install leanengine@next --save
1117```
1218
1319## 文档
1420
15- 开发指南: https://leancloud.cn/docs/leanengine_guide-node.html
21+ * 快速入门:< https://leancloud.cn/docs/leanengine_quickstart.html >
22+ * 网站托管开发指南:< https://leancloud.cn/docs/leanengine_webhosting_guide-node.html >
23+ * 云函数开发指南:< https://leancloud.cn/docs/leanengine_cloudfunction_guide-node.html >
24+ * 云引擎命令行工具使用详解:< https://leancloud.cn/docs/leanengine_cli.html >
1625
17- 示例: https://github.com/leancloud/node-js-getting-started
26+ ## 项目示例
27+
28+ * 上手示例:< https://github.com/leancloud/node-js-getting-started >
29+ * Todo 列表示例:< https://github.com/leancloud/leanengine-todo-demo >
30+ * 微信公众平台:< https://leancloud.cn/docs/webhosting_weixin.html >
31+ * 微博 OAuth 授权验证:< https://leancloud.cn/docs/webhosting_oauth.html >
1832
1933## 更新日志
2034
@@ -31,4 +45,3 @@ npm install leanengine
3145许可协议: MIT
3246
3347作者: wchen (wchen@leancloud.rocks )
34-
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ var connect = require('connect'),
1111var _ = AV . _ ;
1212
1313if ( process . env . LC_API_SERVER ) {
14- AV . serverURL = process . env . LC_API_SERVER ;
14+ AV . _config . APIServerURL = process . env . LC_API_SERVER ;
1515}
16+
1617var NODE_ENV = process . env . NODE_ENV || 'development' ;
1718AV . Cloud . __prod = NODE_ENV === 'production' ? 1 : 0 ;
1819
@@ -356,7 +357,7 @@ var prepareRequestObject = function(options) {
356357 /* User from client */
357358 currentUser : currentUser ,
358359
359- sessionToken : currentUser && currentUser . getSessionToken ( )
360+ sessionToken : ( currentUser && currentUser . getSessionToken ( ) ) || req . sessionToken
360361 } ;
361362} ;
362363
Original file line number Diff line number Diff line change 11{
22 "name" : " leanengine" ,
3- "version" : " 1.0.0-beta.1 " ,
3+ "version" : " 1.0.0-rc " ,
44 "description" : " LeanCloud LeanEngine Node.js SDK." ,
55 "repository" : {
66 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments