velocious 1.0.86 → 1.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "velocious": "bin/velocious.js"
4
4
  },
5
5
  "name": "velocious",
6
- "version": "1.0.86",
6
+ "version": "1.0.87",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "lint": "eslint",
@@ -301,7 +301,7 @@ export default class VelociousDatabaseMigrator {
301
301
  const migrationClass = await requireMigration()
302
302
 
303
303
  if (!migrationClass || typeof migrationClass !== "function") {
304
- throw new Error(`Migration ${migration.file} must export a default migration class`)
304
+ throw new Error(`Migration ${migration.file} must export a default migration class. Type: ${typeof migrationClass}`)
305
305
  }
306
306
 
307
307
  const migrationDatabaseIdentifiers = migrationClass.getDatabaseIdentifiers() || ["default"]
@@ -900,10 +900,10 @@ class VelociousDatabaseRecord {
900
900
  }
901
901
 
902
902
  /**
903
- * @returns {Promise<Array<InstanceType<typeof this>>>}
903
+ * @returns {Query}
904
904
  */
905
- static async all() {
906
- return await this._newQuery()
905
+ static all() {
906
+ return this._newQuery()
907
907
  }
908
908
 
909
909
  /**
@@ -150,7 +150,7 @@ export default class VelociousEnvironmentsHandlerBrowser extends Base {
150
150
 
151
151
  /**
152
152
  * @param {string} filePath
153
- * @template T extends import ("../migration/index.js").default
153
+ * @template T extends import("../migration/index.js").default
154
154
  * @returns {Promise<T>}
155
155
  */
156
156
  requireMigration = async (filePath) => {