1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Rip out bluebird of a bunch more places, not as much to go :|

This commit is contained in:
Michael Telatynski
2019-11-25 15:38:52 +00:00
parent 1286007b2e
commit edcdeb31ea
10 changed files with 1 additions and 11 deletions

View File

@@ -24,7 +24,6 @@ import './olm-loader';
import sdk from '..'; import sdk from '..';
import testUtils from './test-utils'; import testUtils from './test-utils';
import MockHttpBackend from 'matrix-mock-request'; import MockHttpBackend from 'matrix-mock-request';
import Promise from 'bluebird';
import LocalStorageCryptoStore from '../lib/crypto/store/localStorage-crypto-store'; import LocalStorageCryptoStore from '../lib/crypto/store/localStorage-crypto-store';
import logger from '../src/logger'; import logger from '../src/logger';

View File

@@ -181,7 +181,7 @@ describe("MatrixClient", function() {
event_format: "client", event_format: "client",
}); });
store.storeFilter(filter); store.storeFilter(filter);
client.getFilter(userId, filterId, true).done(function(gotFilter) { client.getFilter(userId, filterId, true).then(function(gotFilter) {
expect(gotFilter).toEqual(filter); expect(gotFilter).toEqual(filter);
done(); done();
}); });

View File

@@ -17,7 +17,6 @@ limitations under the License.
/** @module auto-discovery */ /** @module auto-discovery */
import Promise from 'bluebird';
import logger from './logger'; import logger from './logger';
import { URL as NodeURL } from "url"; import { URL as NodeURL } from "url";

View File

@@ -14,8 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import Promise from 'bluebird';
/** /**
* Check if an IndexedDB database exists. The only way to do so is to try opening it, so * Check if an IndexedDB database exists. The only way to do so is to try opening it, so
* we do that and then delete it did not exist before. * we do that and then delete it did not exist before.

View File

@@ -18,7 +18,6 @@ limitations under the License.
"use strict"; "use strict";
/** @module interactive-auth */ /** @module interactive-auth */
import Promise from 'bluebird';
const url = require("url"); const url = require("url");
const utils = require("./utils"); const utils = require("./utils");

View File

@@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import Promise from 'bluebird';
import logger from '../logger'; import logger from '../logger';
import {defer} from '../utils'; import {defer} from '../utils';

View File

@@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import Promise from 'bluebird';
import LocalIndexedDBStoreBackend from "./indexeddb-local-backend.js"; import LocalIndexedDBStoreBackend from "./indexeddb-local-backend.js";
import logger from '../logger'; import logger from '../logger';

View File

@@ -22,7 +22,6 @@ limitations under the License.
*/ */
const utils = require("../utils"); const utils = require("../utils");
const User = require("../models/user"); const User = require("../models/user");
import Promise from 'bluebird';
/** /**
* Construct a new in-memory data store for the Matrix Client. * Construct a new in-memory data store for the Matrix Client.

View File

@@ -16,7 +16,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict"; "use strict";
import Promise from 'bluebird';
/** /**
* This is an internal module. * This is an internal module.
* @module store/stub * @module store/stub

View File

@@ -17,7 +17,6 @@ limitations under the License.
/** @module timeline-window */ /** @module timeline-window */
import Promise from 'bluebird';
const EventTimeline = require("./models/event-timeline"); const EventTimeline = require("./models/event-timeline");
import logger from './logger'; import logger from './logger';