Deprecate weibo.

This commit is contained in:
laosb
2017-01-31 15:15:19 +08:00
parent d1cd0ab0f3
commit de4bb33cd8
3 changed files with 20 additions and 18 deletions

View File

@@ -2,6 +2,8 @@
[Source code of released version](https://github.com/meteor/meteor/tree/master/packages/weibo) | [Source code of development version](https://github.com/meteor/meteor/tree/devel/packages/weibo)
***
** Deprecated, use weibo-oauth instead**
An implementation of the Weibo OAuth flow. See the [project
page](https://www.meteor.com/accounts) on Meteor Accounts for more
details.
details.

View File

@@ -0,0 +1,11 @@
console.warn();
console.warn('This package (weibo) has been deprecated.');
console.warn(
"To use the `Weibo` symbol, use the `weibo-oauth` package " +
"and import from it."
);
console.warn(
"If you need the Blaze OAuth configuration UI, add " +
"`weibo-config-ui` alongside `accounts-ui`."
);
console.warn();

View File

@@ -1,22 +1,11 @@
Package.describe({
summary: "Weibo OAuth flow",
version: '1.1.9'
summary: "DEPRECATED - Use weibo-oauth instead - Weibo OAuth flow",
version: '1.2.0'
});
Package.onUse(function(api) {
api.use('oauth2', ['client', 'server']);
api.use('oauth', ['client', 'server']);
api.use('http', ['server']);
api.use('templating@1.2.13', 'client');
api.use('random', 'client');
api.use('service-configuration', ['client', 'server']);
api.export('Weibo');
api.addFiles(
['weibo_configure.html', 'weibo_configure.js'],
'client');
api.addFiles('weibo_server.js', 'server');
api.addFiles('weibo_client.js', 'client');
api.use('weibo-oauth');
api.use('weibo-config-ui', 'client');
api.imply('weibo-oauth');
api.addFiles('deprecation_notice.js');
});