@prairielearn/migrations 1.2.1 → 1.2.2

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,13 @@
1
1
  # @prairielearn/migrations
2
2
 
3
+ ## 1.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [16d0068d8]
8
+ - @prairielearn/postgres@1.7.0
9
+ - @prairielearn/named-locks@1.3.2
10
+
3
11
  ## 1.2.1
4
12
 
5
13
  ### Patch Changes
@@ -1 +1 @@
1
- export {};
1
+ export default function migrate(): Promise<void>;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const postgres_1 = require("@prairielearn/postgres");
4
- module.exports = async function migrate() {
4
+ async function migrate() {
5
5
  await (0, postgres_1.queryAsync)("INSERT INTO users (name) VALUES ('Test User')", {});
6
- };
6
+ }
7
+ exports.default = migrate;
7
8
  //# sourceMappingURL=20230407210430_insert_user.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"20230407210430_insert_user.js","sourceRoot":"","sources":["../../../src/migrations/fixtures/20230407210430_insert_user.ts"],"names":[],"mappings":";;AAAA,qDAAoD;AAEpD,MAAM,CAAC,OAAO,GAAG,KAAK,UAAU,OAAO;IACrC,MAAM,IAAA,qBAAU,EAAC,+CAA+C,EAAE,EAAE,CAAC,CAAC;AACxE,CAAC,CAAC"}
1
+ {"version":3,"file":"20230407210430_insert_user.js","sourceRoot":"","sources":["../../../src/migrations/fixtures/20230407210430_insert_user.ts"],"names":[],"mappings":";;AAAA,qDAAoD;AAErC,KAAK,UAAU,OAAO;IACnC,MAAM,IAAA,qBAAU,EAAC,+CAA+C,EAAE,EAAE,CAAC,CAAC;AACxE,CAAC;AAFD,0BAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prairielearn/migrations",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "./dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,13 +20,13 @@
20
20
  "mocha": "^10.2.0",
21
21
  "ts-node": "^10.9.1",
22
22
  "typescript": "^5.0.4",
23
- "typescript-cp": "^0.1.7"
23
+ "typescript-cp": "^0.1.8"
24
24
  },
25
25
  "dependencies": {
26
26
  "@prairielearn/error": "^1.0.1",
27
27
  "@prairielearn/logger": "^1.0.0",
28
- "@prairielearn/named-locks": "^1.3.1",
29
- "@prairielearn/postgres": "^1.6.1",
28
+ "@prairielearn/named-locks": "^1.3.2",
29
+ "@prairielearn/postgres": "^1.7.0",
30
30
  "fs-extra": "^11.1.1",
31
31
  "serialize-error": "^8.1.0",
32
32
  "zod": "^3.21.4"
@@ -1,5 +1,5 @@
1
1
  import { queryAsync } from '@prairielearn/postgres';
2
2
 
3
- module.exports = async function migrate() {
3
+ export default async function migrate() {
4
4
  await queryAsync("INSERT INTO users (name) VALUES ('Test User')", {});
5
- };
5
+ }