Skip to content
LeanCloud JavaScript SDK
JavaScript Other
Branch: master
Clone or download

Latest commit

Latest commit a45a50c Jun 5, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo chore(demo): log errors Mar 9, 2020
recordings chore: remove unwanted file & update .gitignore Apr 22, 2020
script chore(release): remvoe bower versoin checking as bower is not support… Nov 20, 2019
src chore(release): v4.6.1 Jun 5, 2020
test fix(user): update sessionToken after call updatePassword (#603) Apr 23, 2020
webpack refactor: build UA with platform info provided by adapters May 28, 2020
.babelrc fix: inject PLATFORM env variables into the node build Jun 5, 2020
.editorconfig feat(Cache): implement Cache May 8, 2016
.eslintrc.js Upload file in U.S. region by fileToken and s3. (#310) Jun 24, 2016
.gitignore chore(release): v4.6.0 (#610) May 28, 2020
.jsdocrc.json chore(docs): upgrade jsdoc to v3.4 Sep 19, 2016
.npmignore chore(pkg): do not pack docs Mar 18, 2020
.travis.yml test: make some tests fast and independent of real backend (#579) Sep 23, 2019
LICENSE chore: add a license copy Sep 23, 2016
README.md chore(release): v4.4.0 Mar 17, 2020
changelog.md
core.d.ts feat: add 2 new entries (core & core-live-query) Mar 17, 2020
core.js fix: seperate Node.js-only features from the core build May 26, 2020
live-query-core.d.ts fix: distribute pre-bundled core builds Apr 3, 2020
live-query-core.js fix: seperate Node.js-only features from the core build May 26, 2020
live-query.d.ts fix(ts): add ts definitions for live query entry Jun 12, 2018
live-query.js fix: seperate Node.js-only features from the core build May 26, 2020
package-lock.json chore(release): v4.6.1 Jun 5, 2020
package.json chore(release): v4.6.1 Jun 5, 2020
storage.d.ts feat(user): add definition of loginWithMiniApp May 19, 2020

README.md

LeanCloud JavaScript SDK

npm gzip size Build Status Codecov Known Vulnerabilities

JavaScript SDK for LeanCloud.

安装

// npm 安装
npm install leancloud-storage --save
// npm 安装 2.x 版本
npm install leancloud-storage@2 --save

文档

支持

  • 如果你发现了新的 bug,或者有新的 feature request,请新建一个 issue
  • 在使用过程中遇到了问题时
    • 如果你是商用版用户,请新建一个工单。
    • 也可以在 论坛 提问、讨论。

贡献

如果你希望为这个项目贡献代码,请按以下步骤进行:

  • fork 这个项目
  • npm install 安装相关依赖
  • 开发和调试
  • 确保测试全部通过 npm run test,浏览器环境打开 test/test.html
  • 提交并发起 Pull Request

项目的目录结构说明如下:

├── dist                               // 编译之后生成的文件将会在此目录下
│   ├── av.js                          // 浏览器版本
│   ├── av-min.js
│   ├── av-weapp.js                    // 小程序版本
│   ├── av-weapp-min.js
│   ├── node                           // 目录中为生成的 nodejs 版本代码
│   └── ...
├── src
│   ├── index.js                          // node.js 环境入口文件
│   └── ...
└── test                               // 单元测试

发布流程

  1. 遵循 semver 提升版本号
    • src/version.js
    • package.json
  2. 对照 commit 历史写 changelog
  3. 提交当前所有改动
  4. 等待持续集成 pass
  5. 使用 GitHub 基于 dist 分支发布一个 release
  6. Fetch and checkout remote dist branch 并确认该提交的内容是即将发布的版本
  7. npm publish(npm publish,需 npm 协作者身份),如果是 pre-release 版本需要带 next tag
You can’t perform that action at this time.