Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
leancloud
/
adapters
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
1
Code
Issues
2
Pull requests
17
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Motivation
Jump to bottom
Lee Yeh edited this page
Jul 9, 2020
·
2 revisions
在 LeanCloud 我们现在有三个 SDK(storage、realtime、play),他们都支持多个平台。只要其中一个平台的 API 有更新,我们就得升级三个 SDK 并更新版本号,这是机械重复的工作。我们之前抽象了
https://github.com/leancloud/weapp-polyfill
来在三个 SDK 之间共享一部分代码,但是 SDK 对 polyfill 依然是依赖关系,「升级」的重复工作仍然存在。
我们支持的平台越多,这种与特性平台相关的升级就会越来频繁,很快我们的 SDK 就会更新到 v3.103.4。更糟糕的是如果某个平台 API 发生了对我们有影响的 breaking change,我们的 SDK 也需要升大版本(比如 React Native deprecate 了内置的 AsyncStorage)。这些升级会导致 SDK 真正有意义的更新信息在版本号里得不到体现。
我们没有精力去维护所有市面上的平台,所以我们需要把 adapters 这一层协议标准化并公开出来让用户能方便的自行去实现 platform-adapters,这个标准化的结果就是 @leancloud/adapter-types。
Wiki pages
Pages
2
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Motivation
Clone this wiki locally
You can’t perform that action at this time.