Skip to content

Commit

Permalink
build: update Deno libs to [email protected], Deno 1.40.3
Browse files Browse the repository at this point in the history
  • Loading branch information
srackham committed Feb 6, 2024
1 parent 6bf101e commit cce0e94
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
deno-version: [1.37.0]
deno-version: [1.40.3]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
file system _mtimes_ are used directly (see
[mtime comparison considered harmful](https://apenwarr.ca/log/20181113)).

**Status**: Tested with Deno 1.29.4 running on Github CI the following
**Status**: Tested with Deno 1.40.3 running on Github CI the following
platforms: `ubuntu-latest`, `macos-latest`, `windows-latest`. See also the
[changelog](CHANGELOG.md).

Expand All @@ -30,7 +30,7 @@ A drakefile is a TypeScript module that:
### Example drakefile

```typescript
import { desc, run, task } from "https://deno.land/x/drake@v1.6.0/mod.ts";
import { desc, run, task } from "https://deno.land/x/drake@v1.7.0/mod.ts";

desc("Minimal Drake task");
task("hello", [], function () {
Expand Down Expand Up @@ -76,14 +76,14 @@ module can be imported from:
- [deno.land](https://deno.land/x/drake) (Deno's third party modules registry).
For example:

import { desc, run, task } from "https://deno.land/x/drake@v1.6.0/mod.ts";
import { desc, run, task } from "https://deno.land/x/drake@v1.7.0/mod.ts";

- [nest.land](https://nest.land/package/drake) (a blockchain based Deno modules
registry).\
**NOTE**: Drake version numbers in `nest.land` URLs are not prefixed with a
'v' character:

import { desc, run, task } from "https://x.nest.land/drake@1.6.0/mod.ts";
import { desc, run, task } from "https://x.nest.land/drake@1.7.0/mod.ts";

Some Drake APIs are useful in non-drakefiles, use `lib.ts` (not `mod.ts`) to
import them into non-drakefile modules.
Expand Down
2 changes: 1 addition & 1 deletion egg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "drake",
"description": "Drake is a Make-like task runner for Deno",
"version": "1.6.0",
"version": "1.7.0",
"stable": true,
"files": [
"mod.ts",
Expand Down
4 changes: 2 additions & 2 deletions examples/dynamic-tasks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as path from "https://deno.land/std@0.213.0/path/mod.ts";
import * as path from "https://deno.land/std@0.214.0/path/mod.ts";
import {
desc,
env,
Expand All @@ -7,7 +7,7 @@ import {
run,
sh,
task,
} from "https://deno.land/x/drake@v1.6.0/mod.ts";
} from "https://deno.land/x/drake@v1.7.0/mod.ts";
// } from "../mod.ts";

desc("command-line usage");
Expand Down
4 changes: 2 additions & 2 deletions examples/minimal-drakefile.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { desc, run, task } from "https://deno.land/x/drake@v1.6.0/mod.ts";
// import { desc, run, task } from "https://x.nest.land/drake@1.6.0/mod.ts";
import { desc, run, task } from "https://deno.land/x/drake@v1.7.0/mod.ts";
// import { desc, run, task } from "https://x.nest.land/drake@1.7.0/mod.ts";

desc("Minimal Drake task");
task("hello", [], function () {
Expand Down
6 changes: 3 additions & 3 deletions lib/deps.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * as colors from "https://deno.land/std@0.213.0/fmt/colors.ts";
export { walkSync } from "https://deno.land/std@0.213.0/fs/walk.ts";
export * as path from "https://deno.land/std@0.213.0/path/mod.ts";
export * as colors from "https://deno.land/std@0.214.0/fmt/colors.ts";
export { walkSync } from "https://deno.land/std@0.214.0/fs/walk.ts";
export * as path from "https://deno.land/std@0.214.0/path/mod.ts";
2 changes: 1 addition & 1 deletion lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { colors, path, walkSync } from "./deps.ts";
import { env } from "./env.ts";

const DRAKE_VERS = "1.6.0";
const DRAKE_VERS = "1.7.0";

/** Returns the Drake version number string. */
export function vers(): string {
Expand Down
4 changes: 2 additions & 2 deletions tests/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export {
assertRejects,
assertStringIncludes,
assertThrows,
} from "https://deno.land/std@0.213.0/assert/mod.ts";
export * as path from "https://deno.land/std@0.213.0/path/mod.ts";
} from "https://deno.land/std@0.214.0/assert/mod.ts";
export * as path from "https://deno.land/std@0.214.0/path/mod.ts";
2 changes: 1 addition & 1 deletion tests/utils_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Deno.test("shCaptureTest", async function () {
assert(error.includes("a-nonexistent-command"));

const cat =
`deno eval "import { copy } from 'https://deno.land/std@0.213.0/io/copy.ts'; copy(Deno.stdin, Deno.stdout)"`;
`deno eval "import { copy } from 'https://deno.land/std@0.214.0/io/copy.ts'; copy(Deno.stdin, Deno.stdout)"`;
({ code, output, error } = await shCapture(cat, { input: "Hello" }));
assertEquals([code, output, error], [0, "Hello", ""]);

Expand Down

0 comments on commit cce0e94

Please sign in to comment.