@prairielearn/migrations 2.0.21 → 2.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @prairielearn/migrations
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 30d559d: Export `retryFailedBatchedMigrationJobs` function
8
+
3
9
  ## 2.0.21
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { init } from './migrations';
2
- export { BatchedMigrationRow, BatchedMigrationStatus, BatchedMigrationJobRow, BatchedMigrationJobStatus, makeBatchedMigration, initBatchedMigrations, startBatchedMigrations, stopBatchedMigrations, enqueueBatchedMigration, finalizeBatchedMigration, selectAllBatchedMigrations, selectBatchedMigration, selectBatchedMigrationForTimestamp, selectRecentJobsWithStatus, } from './batched-migrations';
2
+ export { BatchedMigrationRow, BatchedMigrationStatus, BatchedMigrationJobRow, BatchedMigrationJobStatus, makeBatchedMigration, initBatchedMigrations, startBatchedMigrations, stopBatchedMigrations, enqueueBatchedMigration, finalizeBatchedMigration, selectAllBatchedMigrations, selectBatchedMigration, selectBatchedMigrationForTimestamp, selectRecentJobsWithStatus, retryFailedBatchedMigrationJobs, } from './batched-migrations';
3
3
  export declare const SCHEMA_MIGRATIONS_PATH: string;
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SCHEMA_MIGRATIONS_PATH = exports.selectRecentJobsWithStatus = exports.selectBatchedMigrationForTimestamp = exports.selectBatchedMigration = exports.selectAllBatchedMigrations = exports.finalizeBatchedMigration = exports.enqueueBatchedMigration = exports.stopBatchedMigrations = exports.startBatchedMigrations = exports.initBatchedMigrations = exports.makeBatchedMigration = exports.init = void 0;
6
+ exports.SCHEMA_MIGRATIONS_PATH = exports.retryFailedBatchedMigrationJobs = exports.selectRecentJobsWithStatus = exports.selectBatchedMigrationForTimestamp = exports.selectBatchedMigration = exports.selectAllBatchedMigrations = exports.finalizeBatchedMigration = exports.enqueueBatchedMigration = exports.stopBatchedMigrations = exports.startBatchedMigrations = exports.initBatchedMigrations = exports.makeBatchedMigration = exports.init = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
8
  var migrations_1 = require("./migrations");
9
9
  Object.defineProperty(exports, "init", { enumerable: true, get: function () { return migrations_1.init; } });
@@ -18,5 +18,6 @@ Object.defineProperty(exports, "selectAllBatchedMigrations", { enumerable: true,
18
18
  Object.defineProperty(exports, "selectBatchedMigration", { enumerable: true, get: function () { return batched_migrations_1.selectBatchedMigration; } });
19
19
  Object.defineProperty(exports, "selectBatchedMigrationForTimestamp", { enumerable: true, get: function () { return batched_migrations_1.selectBatchedMigrationForTimestamp; } });
20
20
  Object.defineProperty(exports, "selectRecentJobsWithStatus", { enumerable: true, get: function () { return batched_migrations_1.selectRecentJobsWithStatus; } });
21
+ Object.defineProperty(exports, "retryFailedBatchedMigrationJobs", { enumerable: true, get: function () { return batched_migrations_1.retryFailedBatchedMigrationJobs; } });
21
22
  exports.SCHEMA_MIGRATIONS_PATH = path_1.default.resolve(__dirname, '..', 'schema-migrations');
22
23
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,2CAAoC;AAA3B,kGAAA,IAAI,OAAA;AAEb,2DAe8B;AAV5B,0HAAA,oBAAoB,OAAA;AACpB,2HAAA,qBAAqB,OAAA;AACrB,4HAAA,sBAAsB,OAAA;AACtB,2HAAA,qBAAqB,OAAA;AACrB,6HAAA,uBAAuB,OAAA;AACvB,8HAAA,wBAAwB,OAAA;AACxB,gIAAA,0BAA0B,OAAA;AAC1B,4HAAA,sBAAsB,OAAA;AACtB,wIAAA,kCAAkC,OAAA;AAClC,gIAAA,0BAA0B,OAAA;AAGf,QAAA,sBAAsB,GAAG,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import path from 'path';\n\nexport { init } from './migrations';\n\nexport {\n BatchedMigrationRow,\n BatchedMigrationStatus,\n BatchedMigrationJobRow,\n BatchedMigrationJobStatus,\n makeBatchedMigration,\n initBatchedMigrations,\n startBatchedMigrations,\n stopBatchedMigrations,\n enqueueBatchedMigration,\n finalizeBatchedMigration,\n selectAllBatchedMigrations,\n selectBatchedMigration,\n selectBatchedMigrationForTimestamp,\n selectRecentJobsWithStatus,\n} from './batched-migrations';\n\nexport const SCHEMA_MIGRATIONS_PATH = path.resolve(__dirname, '..', 'schema-migrations');\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,2CAAoC;AAA3B,kGAAA,IAAI,OAAA;AAEb,2DAgB8B;AAX5B,0HAAA,oBAAoB,OAAA;AACpB,2HAAA,qBAAqB,OAAA;AACrB,4HAAA,sBAAsB,OAAA;AACtB,2HAAA,qBAAqB,OAAA;AACrB,6HAAA,uBAAuB,OAAA;AACvB,8HAAA,wBAAwB,OAAA;AACxB,gIAAA,0BAA0B,OAAA;AAC1B,4HAAA,sBAAsB,OAAA;AACtB,wIAAA,kCAAkC,OAAA;AAClC,gIAAA,0BAA0B,OAAA;AAC1B,qIAAA,+BAA+B,OAAA;AAGpB,QAAA,sBAAsB,GAAG,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import path from 'path';\n\nexport { init } from './migrations';\n\nexport {\n BatchedMigrationRow,\n BatchedMigrationStatus,\n BatchedMigrationJobRow,\n BatchedMigrationJobStatus,\n makeBatchedMigration,\n initBatchedMigrations,\n startBatchedMigrations,\n stopBatchedMigrations,\n enqueueBatchedMigration,\n finalizeBatchedMigration,\n selectAllBatchedMigrations,\n selectBatchedMigration,\n selectBatchedMigrationForTimestamp,\n selectRecentJobsWithStatus,\n retryFailedBatchedMigrationJobs,\n} from './batched-migrations';\n\nexport const SCHEMA_MIGRATIONS_PATH = path.resolve(__dirname, '..', 'schema-migrations');\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prairielearn/migrations",
3
- "version": "2.0.21",
3
+ "version": "2.1.0",
4
4
  "main": "./dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -17,6 +17,7 @@ export {
17
17
  selectBatchedMigration,
18
18
  selectBatchedMigrationForTimestamp,
19
19
  selectRecentJobsWithStatus,
20
+ retryFailedBatchedMigrationJobs,
20
21
  } from './batched-migrations';
21
22
 
22
23
  export const SCHEMA_MIGRATIONS_PATH = path.resolve(__dirname, '..', 'schema-migrations');