Skip to content

Commit

Permalink
Update dependencies (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleJune authored Jul 31, 2022
1 parent 6aaa591 commit b967340
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Migrate

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

```ts
// Import from Deno's third party module registry
import { PostgresMigrate } from "https://deno.land/x/[email protected].3/postgres.ts";
import { PostgresMigrate } from "https://deno.land/x/[email protected].4/postgres.ts";
// Import from GitHub
import { PostgresMigrate } "https://raw.githubusercontent.com/udibo/migrate/0.2.3/postgres.ts";
import { PostgresMigrate } "https://raw.githubusercontent.com/udibo/migrate/0.2.4/postgres.ts";
```
## Usage
Expand All @@ -34,7 +34,7 @@ To use the command line interface, you must create a script that will initialize
the Migrate instance and call the run command from [cli.ts](cli.ts). An example
can be found [here](#postgres-cli).
See [deno docs](https://doc.deno.land/https/deno.land/x/[email protected].3/cli.ts)
See [deno docs](https://doc.deno.land/https/deno.land/x/[email protected].4/cli.ts)
for more information.
#### Command: init
Expand Down Expand Up @@ -160,7 +160,7 @@ different ways to use the migrate module. Only one is required to use the
migrate tool.
See
[deno docs](https://doc.deno.land/https/deno.land/x/[email protected].3/postgres.ts)
[deno docs](https://doc.deno.land/https/deno.land/x/[email protected].4/postgres.ts)
for more information.
#### Postgres script
Expand Down
4 changes: 2 additions & 2 deletions cli_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ it(
const { migrate } = this;
await migrate.connect();
await migrate.load();
await migrate.client.queryArray
`UPDATE migration SET path = ${"1_old_name.sql"}, applied_at = now() WHERE id = ${1}`;
await migrate.client
.queryArray`UPDATE migration SET path = ${"1_old_name.sql"}, applied_at = now() WHERE id = ${1}`;
const migrations = await migrate.getUnapplied();
await migrate.apply(migrations[0]);
await migrate.end();
Expand Down
16 changes: 8 additions & 8 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export { parse } from "https://deno.land/std@0.142.0/flags/mod.ts";
export type { Args } from "https://deno.land/std@0.142.0/flags/mod.ts";
export { parse } from "https://deno.land/std@0.150.0/flags/mod.ts";
export type { Args } from "https://deno.land/std@0.150.0/flags/mod.ts";

export { walk } from "https://deno.land/std@0.142.0/fs/walk.ts";
export type { WalkEntry } from "https://deno.land/std@0.142.0/fs/walk.ts";
export { walk } from "https://deno.land/std@0.150.0/fs/walk.ts";
export type { WalkEntry } from "https://deno.land/std@0.150.0/fs/walk.ts";

export {
dirname,
Expand All @@ -11,9 +11,9 @@ export {
relative,
resolve,
toFileUrl,
} from "https://deno.land/std@0.142.0/path/mod.ts";
} from "https://deno.land/std@0.150.0/path/mod.ts";

export { readLines } from "https://deno.land/std@0.142.0/io/buffer.ts";
export { StringReader } from "https://deno.land/std@0.142.0/io/readers.ts";
export { readLines } from "https://deno.land/std@0.150.0/io/buffer.ts";
export { StringReader } from "https://deno.land/std@0.150.0/io/readers.ts";

export { delay } from "https://deno.land/std@0.142.0/async/delay.ts";
export { delay } from "https://deno.land/std@0.150.0/async/delay.ts";
4 changes: 2 additions & 2 deletions postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ export class PostgresMigrate<GenerateOptions = unknown>
await clientOrTransaction.queryArray(text, args);
}
}
clientOrTransaction.queryArray
`UPDATE migration SET applied_path = ${migration.path}, applied_at = now() WHERE id = ${migration.id}`;
clientOrTransaction
.queryArray`UPDATE migration SET applied_path = ${migration.path}, applied_at = now() WHERE id = ${migration.id}`;
}

async apply(migration: Migration): Promise<void> {
Expand Down
4 changes: 2 additions & 2 deletions postgres_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export {
Client,
Transaction,
TransactionError,
} from "https://deno.land/x/[email protected].0/mod.ts";
export type { ClientOptions } from "https://deno.land/x/[email protected].0/mod.ts";
} from "https://deno.land/x/[email protected].1/mod.ts";
export type { ClientOptions } from "https://deno.land/x/[email protected].1/mod.ts";
2 changes: 1 addition & 1 deletion test.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM denoland/deno:1.22.2
FROM denoland/deno:1.24.1
WORKDIR /app

# Install wait utility
Expand Down
10 changes: 5 additions & 5 deletions test_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ export {
assertRejects,
assertStrictEquals,
assertThrows,
} from "https://deno.land/std@0.142.0/testing/asserts.ts";
} from "https://deno.land/std@0.150.0/testing/asserts.ts";

export { ensureDir } from "https://deno.land/std@0.142.0/fs/ensure_dir.ts";
export { ensureDir } from "https://deno.land/std@0.150.0/fs/ensure_dir.ts";

export { describe, it } from "https://deno.land/std@0.142.0/testing/bdd.ts";
export { describe, it } from "https://deno.land/std@0.150.0/testing/bdd.ts";

export {
assertSpyCall,
assertSpyCalls,
spy,
stub,
} from "https://deno.land/std@0.142.0/testing/mock.ts";
} from "https://deno.land/std@0.150.0/testing/mock.ts";

export { FakeTime } from "https://deno.land/std@0.142.0/testing/time.ts";
export { FakeTime } from "https://deno.land/std@0.150.0/testing/time.ts";

0 comments on commit b967340

Please sign in to comment.