Skip to content

Commit 6aaa591

Browse files
authored
Update dependencies (#5)
* Update dependencies * Bump version * Update dependencies * Update std
1 parent 9135bb8 commit 6aaa591

File tree

12 files changed

+261
-197
lines changed

12 files changed

+261
-197
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest]
11-
deno: [v1.x, canary]
11+
deno: [v1.x]
1212
fail-fast: true
1313
services:
1414
postgres:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Migrate
22

3-
[![version](https://img.shields.io/badge/release-0.2.2-success)](https://deno.land/x/migrate@0.2.2)
3+
[![version](https://img.shields.io/badge/release-0.2.3-success)](https://deno.land/x/migrate@0.2.3)
44
[![CI](https://github.com/udibo/migrate/workflows/CI/badge.svg)](https://github.com/udibo/migrate/actions?query=workflow%3ACI)
55
[![codecov](https://codecov.io/gh/udibo/migrate/branch/main/graph/badge.svg?token=8Q7TSUFWUY)](https://codecov.io/gh/udibo/migrate)
66
[![license](https://img.shields.io/github/license/udibo/migrate)](https://github.com/udibo/migrate/blob/master/LICENSE)
@@ -21,9 +21,9 @@ Currently migrate is only implemented for Postgres. The main entrypoint is
2121

2222
```ts
2323
// Import from Deno's third party module registry
24-
import { PostgresMigrate } from "https://deno.land/x/migrate@0.2.2/postgres.ts";
24+
import { PostgresMigrate } from "https://deno.land/x/migrate@0.2.3/postgres.ts";
2525
// Import from GitHub
26-
import { PostgresMigrate } "https://raw.githubusercontent.com/udibo/migrate/0.2.2/postgres.ts";
26+
import { PostgresMigrate } "https://raw.githubusercontent.com/udibo/migrate/0.2.3/postgres.ts";
2727
```
2828
2929
## Usage
@@ -34,7 +34,7 @@ To use the command line interface, you must create a script that will initialize
3434
the Migrate instance and call the run command from [cli.ts](cli.ts). An example
3535
can be found [here](#postgres-cli).
3636
37-
See [deno docs](https://doc.deno.land/https/deno.land/x/migrate@0.2.2/cli.ts)
37+
See [deno docs](https://doc.deno.land/https/deno.land/x/migrate@0.2.3/cli.ts)
3838
for more information.
3939
4040
#### Command: init
@@ -160,7 +160,7 @@ different ways to use the migrate module. Only one is required to use the
160160
migrate tool.
161161
162162
See
163-
[deno docs](https://doc.deno.land/https/deno.land/x/migrate@0.2.2/postgres.ts)
163+
[deno docs](https://doc.deno.land/https/deno.land/x/migrate@0.2.3/postgres.ts)
164164
for more information.
165165
166166
#### Postgres script

basic_test.ts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { delay, resolve } from "./deps.ts";
22
import { PostgresMigrate } from "./postgres.ts";
3-
import { assertEquals, test, TestSuite } from "./test_deps.ts";
3+
import { assertEquals, describe, it } from "./test_deps.ts";
44
import {
55
cleanupInit,
66
exampleMigrationsDir,
@@ -9,14 +9,14 @@ import {
99
} from "./test_postgres.ts";
1010
import "./basic.ts";
1111

12-
const applyTests = new TestSuite({
12+
const applyTests = describe<InitializedMigrateTest>({
1313
name: "apply",
14-
async beforeEach(context: InitializedMigrateTest) {
15-
context.migrate = new PostgresMigrate({
14+
async beforeEach() {
15+
this.migrate = new PostgresMigrate({
1616
...options,
1717
migrationsDir: exampleMigrationsDir,
1818
});
19-
const { migrate } = context;
19+
const { migrate } = this;
2020
await cleanupInit(migrate);
2121
try {
2222
await migrate.connect();
@@ -27,15 +27,16 @@ const applyTests = new TestSuite({
2727
await migrate.end();
2828
}
2929
},
30-
async afterEach({ migrate }: InitializedMigrateTest) {
31-
await migrate.end();
30+
async afterEach() {
31+
await this.migrate.end();
3232
},
3333
});
3434

35-
test(
35+
it(
3636
applyTests,
3737
"creates migration table and applies all migrations",
38-
async ({ migrate }) => {
38+
async function () {
39+
const { migrate } = this;
3940
const process = Deno.run({
4041
cmd: [
4142
resolve(migrate.migrationsDir, "../migrate_basic.ts"),
@@ -70,7 +71,8 @@ Done
7071
},
7172
);
7273

73-
test(applyTests, "applies unapplied migrations", async ({ migrate }) => {
74+
it(applyTests, "applies unapplied migrations", async function () {
75+
const { migrate } = this;
7476
await migrate.connect();
7577
await migrate.init();
7678
await migrate.load();
@@ -113,7 +115,8 @@ Done
113115
}
114116
});
115117

116-
test(applyTests, "no unapplied migrations", async ({ migrate }) => {
118+
it(applyTests, "no unapplied migrations", async function () {
119+
const { migrate } = this;
117120
await migrate.connect();
118121
await migrate.init();
119122
await migrate.load();

0 commit comments

Comments
 (0)