Skip to content

Commit

Permalink
fix: deno 1.4.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Sep 19, 2020
1 parent 0c46a07 commit 85c3bc7
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 33 deletions.
2 changes: 1 addition & 1 deletion config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReleasePlugin } from "./plugin.ts";
import type { ReleasePlugin } from "./plugin.ts";

export interface ReleaseConfig {
plugins: ReleasePlugin[];
Expand Down
21 changes: 11 additions & 10 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
export * as log from "https://deno.land/x/branch@0.0.2/mod.ts";
export { wait, Spinner } from "https://deno.land/x/wait@0.1.6/mod.ts";
export * as log from "https://deno.land/x/branch@0.1.2/mod.ts";
export { wait, Spinner } from "https://deno.land/x/wait@0.1.7/mod.ts";

export type { Commit as CCCommit } from "https://deno.land/x/commit@0.1.5/mod.ts";
export {
parse as ccparse,
Commit as CCCommit,
} from "https://deno.land/x/commit@0.1.3/mod.ts";
} from "https://deno.land/x/commit@0.1.5/mod.ts";

export * as semver from "https://deno.land/x/semver@v1.0.0/mod.ts";
export * as ini from "https://deno.land/x/ini@v2.1.0/mod.ts";

export * as colors from "https://deno.land/std@0.67.0/fmt/colors.ts";
export * as colors from "https://deno.land/std@0.70.0/fmt/colors.ts";

export { readLines } from "https://deno.land/std@0.67.0/io/mod.ts";
export { decode, encode } from "https://deno.land/std@0.67.0/encoding/utf8.ts";
export { join } from "https://deno.land/std@0.67.0/path/mod.ts";
export { exists, ensureFile } from "https://deno.land/std@0.67.0/fs/mod.ts";
export { delay } from "https://deno.land/std@0.67.0/async/delay.ts";
export { readLines } from "https://deno.land/std@0.70.0/io/mod.ts";
export { decode, encode } from "https://deno.land/std@0.70.0/encoding/utf8.ts";
export { join } from "https://deno.land/std@0.70.0/path/mod.ts";
export { exists, ensureFile } from "https://deno.land/std@0.70.0/fs/mod.ts";
export { delay } from "https://deno.land/std@0.70.0/async/delay.ts";
18 changes: 9 additions & 9 deletions plugin.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ReleaseConfig } from "./config.ts";
import { Action } from "./release.ts";
import { Repo } from "./src/repo.ts";
import type { ReleaseConfig } from "./config.ts";
import type { Action } from "./release.ts";
import type { Repo } from "./src/repo.ts";

export * as store from "./src/store.ts";
export type { ReleaseConfig } from "./config.ts";
export type { Action } from "./release.ts";
export type { Repo } from "./src/repo.ts";
export type { Tag } from "./src/tags.ts";
export type { Commit } from "./src/commits.ts";

export { ReleaseConfig } from "./config.ts";
export { Action } from "./release.ts";
export { Repo } from "./src/repo.ts";
export { Tag } from "./src/tags.ts";
export { Commit } from "./src/commits.ts";
export * as store from "./src/store.ts";

export interface ReleasePlugin {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion plugins/changelog/deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { join } from "https://deno.land/std@0.66.0/path/mod.ts";
export { join } from "https://deno.land/std@0.70.0/path/mod.ts";
2 changes: 1 addition & 1 deletion plugins/changelog/mod.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { join } from "./deps.ts";

import { ReleasePlugin, ReleaseConfig, Action, Repo } from "../../plugin.ts";
import type { ReleasePlugin, ReleaseConfig, Action, Repo } from "../../plugin.ts";
import {
Document,
Filter,
Expand Down
8 changes: 4 additions & 4 deletions plugins/github/deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * as log from "https://deno.land/x/branch@0.0.2/mod.ts";
export { readLines } from "https://deno.land/std@0.66.0/io/mod.ts";
export { decode, encode } from "https://deno.land/std@0.66.0/encoding/utf8.ts";
export * as log from "https://deno.land/x/branch@0.1.2/mod.ts";
export { readLines } from "https://deno.land/std@0.70.0/io/mod.ts";
export { decode, encode } from "https://deno.land/std@0.70.0/encoding/utf8.ts";

export { delay } from "https://deno.land/std@0.66.0/async/delay.ts";
export { delay } from "https://deno.land/std@0.70.0/async/delay.ts";
2 changes: 1 addition & 1 deletion plugins/github/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
import * as gh from "./api.ts";
import { ReleaseError } from "../../src/error.ts";

const logger = log.prefix("gh");
const logger = log.create("gh");

export const github = <ReleasePlugin> {
name: "GitHub",
Expand Down
4 changes: 2 additions & 2 deletions release.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { log, colors, semver, wait, delay } from "./deps.ts";

import { ReleaseConfig } from "./config.ts";
import type { ReleaseConfig } from "./config.ts";
import { fetchRepo, Repo } from "./src/repo.ts";
import { ezgit } from "./src/git.ts";

import { github } from "./plugins/github/mod.ts";
import { changelog } from "./plugins/changelog/mod.ts";
import { zen } from "./zen.ts";

const logger = log.prefix("r");
const logger = log.create("r");

const VERSION = "0.1.2";

Expand Down
6 changes: 3 additions & 3 deletions src/changelog.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Repo } from "./repo.ts";
import { Commit } from "./commits.ts";
import { Tag } from "./tags.ts";
import type { Repo } from "./repo.ts";
import type { Commit } from "./commits.ts";
import type { Tag } from "./tags.ts";

export interface Filter {
type: string;
Expand Down
2 changes: 1 addition & 1 deletion src/commits.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ccparse, CCCommit } from "../deps.ts";

import { git } from "./git.ts";
import { Tag } from "./tags.ts";
import type { Tag } from "./tags.ts";
import { ReleaseError } from "./error.ts";

export interface RawCommit {
Expand Down

0 comments on commit 85c3bc7

Please sign in to comment.