Commit d2166ce3 authored by JC Brand's avatar JC Brand

Remove deprecated API methods

since the next release will be a major one.
parent ee78ec13
...@@ -2,19 +2,21 @@ ...@@ -2,19 +2,21 @@
## 5.0.0 (Unreleased) ## 5.0.0 (Unreleased)
* Bugfix: Don't set `muc_domain` for roomspanel if `locked_muc_domain` is `true`. - Bugfix: Don't set `muc_domain` for roomspanel if `locked_muc_domain` is `true`.
* Bugfix: Modal auto-closes when you open it for a second time. - Bugfix: Modal auto-closes when you open it for a second time.
* Take roster nickname into consideration when rendering messages and chat headings. - Take roster nickname into consideration when rendering messages and chat headings.
* Hide the textarea when a user is muted in a groupchat. - Hide the textarea when a user is muted in a groupchat.
* #1296: `embedded` view mode shows `chatbox-navback` arrow in header - #1296: `embedded` view mode shows `chatbox-navback` arrow in header
* #1532: Converse reloads on enter pressed in the filter box - #1532: Converse reloads on enter pressed in the filter box
### API changes ### API changes
* `_converse.chats.open` and `_converse.rooms.open` now take a `force` - `_converse.chats.open` and `_converse.rooms.open` now take a `force`
parameter to force maximizing (in `overlayed` view mode) or bringing a parameter to force maximizing (in `overlayed` view mode) or bringing a
background chat into the foreground (in `fullscreen` view mode). Previously background chat into the foreground (in `fullscreen` view mode). Previously
this was the default behavior. this was the default behavior.
- `_converse.api.emit` has been removed in favor of [\_converse.api.trigger](https://conversejs.org/docs/html/api/-_converse.api.html#.trigger)
- `_converse.updateSettings` has been removed in favor of [\_converse.api.settings.update](https://conversejs.org/docs/html/api/-_converse.api.settings.html#.update)
## 4.2.0 (2019-04-04) ## 4.2.0 (2019-04-04)
......
...@@ -63445,12 +63445,6 @@ function addPromise(promise) { ...@@ -63445,12 +63445,6 @@ function addPromise(promise) {
_converse.promises[promise] = _converse_headless_utils_core__WEBPACK_IMPORTED_MODULE_11__["default"].getResolveablePromise(); _converse.promises[promise] = _converse_headless_utils_core__WEBPACK_IMPORTED_MODULE_11__["default"].getResolveablePromise();
} }
_converse.emit = function (name) {
_converse.log("(DEPRECATION) " + "_converse.emit has been has been deprecated. " + "Please use `_converse.api.trigger` instead.", strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.WARN);
_converse.api.emit.apply(_converse, arguments);
};
_converse.isUniView = function () { _converse.isUniView = function () {
/* We distinguish between UniView and MultiView instances. /* We distinguish between UniView and MultiView instances.
* *
...@@ -63481,12 +63475,6 @@ function initPlugins() { ...@@ -63481,12 +63475,6 @@ function initPlugins() {
} }
_converse.pluggable.initializePlugins({ _converse.pluggable.initializePlugins({
'updateSettings'() {
_converse.log("(DEPRECATION) " + "The `updateSettings` method has been deprecated. " + "Please use `_converse.api.settings.update` instead.", strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.WARN);
_converse.api.settings.update.apply(_converse, arguments);
},
'_converse': _converse '_converse': _converse
}, whitelist, _converse.blacklisted_plugins); }, whitelist, _converse.blacklisted_plugins);
/** /**
...@@ -64639,15 +64627,6 @@ _converse.api = { ...@@ -64639,15 +64627,6 @@ _converse.api = {
}, },
/**
* Lets you emit (i.e. trigger) events.
* @deprecated since version 4.2.0. Use _converse.api.trigger instead.
* @method _converse.api.emit
*/
'emit'() {
_converse.api.trigger.apply(this, arguments);
},
/** /**
* Lets you trigger events, which can be listened to via * Lets you trigger events, which can be listened to via
* {@link _converse.api.listen.on} or {@link _converse.api.listen.once} * {@link _converse.api.listen.on} or {@link _converse.api.listen.once}
...@@ -307,16 +307,6 @@ function addPromise (promise) { ...@@ -307,16 +307,6 @@ function addPromise (promise) {
_converse.promises[promise] = u.getResolveablePromise(); _converse.promises[promise] = u.getResolveablePromise();
} }
_converse.emit = function (name) {
_converse.log(
"(DEPRECATION) "+
"_converse.emit has been has been deprecated. "+
"Please use `_converse.api.trigger` instead.",
Strophe.LogLevel.WARN
)
_converse.api.emit.apply(_converse, arguments);
};
_converse.isUniView = function () { _converse.isUniView = function () {
/* We distinguish between UniView and MultiView instances. /* We distinguish between UniView and MultiView instances.
* *
...@@ -351,18 +341,10 @@ function initPlugins() { ...@@ -351,18 +341,10 @@ function initPlugins() {
}); });
} }
_converse.pluggable.initializePlugins({ _converse.pluggable.initializePlugins(
'updateSettings' () { {'_converse': _converse},
_converse.log( whitelist, _converse.blacklisted_plugins
"(DEPRECATION) "+ );
"The `updateSettings` method has been deprecated. "+
"Please use `_converse.api.settings.update` instead.",
Strophe.LogLevel.WARN
)
_converse.api.settings.update.apply(_converse, arguments);
},
'_converse': _converse
}, whitelist, _converse.blacklisted_plugins);
/** /**
* Triggered once all plugins have been initialized. This is a useful event if you want to * Triggered once all plugins have been initialized. This is a useful event if you want to
...@@ -1393,15 +1375,6 @@ _converse.api = { ...@@ -1393,15 +1375,6 @@ _converse.api = {
}, },
}, },
/**
* Lets you emit (i.e. trigger) events.
* @deprecated since version 4.2.0. Use _converse.api.trigger instead.
* @method _converse.api.emit
*/
'emit' () {
_converse.api.trigger.apply(this, arguments);
},
/** /**
* Lets you trigger events, which can be listened to via * Lets you trigger events, which can be listened to via
* {@link _converse.api.listen.on} or {@link _converse.api.listen.once} * {@link _converse.api.listen.on} or {@link _converse.api.listen.once}
......
...@@ -41950,12 +41950,6 @@ function addPromise(promise) { ...@@ -41950,12 +41950,6 @@ function addPromise(promise) {
_converse.promises[promise] = _converse_headless_utils_core__WEBPACK_IMPORTED_MODULE_11__["default"].getResolveablePromise(); _converse.promises[promise] = _converse_headless_utils_core__WEBPACK_IMPORTED_MODULE_11__["default"].getResolveablePromise();
} }
_converse.emit = function (name) {
_converse.log("(DEPRECATION) " + "_converse.emit has been has been deprecated. " + "Please use `_converse.api.trigger` instead.", strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.WARN);
_converse.api.emit.apply(_converse, arguments);
};
_converse.isUniView = function () { _converse.isUniView = function () {
/* We distinguish between UniView and MultiView instances. /* We distinguish between UniView and MultiView instances.
* *
...@@ -41986,12 +41980,6 @@ function initPlugins() { ...@@ -41986,12 +41980,6 @@ function initPlugins() {
} }
_converse.pluggable.initializePlugins({ _converse.pluggable.initializePlugins({
'updateSettings'() {
_converse.log("(DEPRECATION) " + "The `updateSettings` method has been deprecated. " + "Please use `_converse.api.settings.update` instead.", strophe_js__WEBPACK_IMPORTED_MODULE_0__["Strophe"].LogLevel.WARN);
_converse.api.settings.update.apply(_converse, arguments);
},
'_converse': _converse '_converse': _converse
}, whitelist, _converse.blacklisted_plugins); }, whitelist, _converse.blacklisted_plugins);
/** /**
...@@ -43144,15 +43132,6 @@ _converse.api = { ...@@ -43144,15 +43132,6 @@ _converse.api = {
}, },
/**
* Lets you emit (i.e. trigger) events.
* @deprecated since version 4.2.0. Use _converse.api.trigger instead.
* @method _converse.api.emit
*/
'emit'() {
_converse.api.trigger.apply(this, arguments);
},
/** /**
* Lets you trigger events, which can be listened to via * Lets you trigger events, which can be listened to via
* {@link _converse.api.listen.on} or {@link _converse.api.listen.once} * {@link _converse.api.listen.on} or {@link _converse.api.listen.once}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment