Skip to content

Commit

Permalink
Use Deno 1.23 (was 1.16)
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Jul 11, 2022
1 parent 45409fe commit b66bdb7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deno-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
strategy:
matrix:
deno-version:
- v1.15
- v1.16
- v1.23
- canary
fail-fast: false # run each branch to completion

Expand Down Expand Up @@ -48,7 +47,7 @@ jobs:
restore-keys: deno-https/v1-

- name: Check entrypoint
run: time deno cache server.ts
run: time deno cache --check=all server.ts

- name: Run any tests
run: time deno test
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM denoland/deno:alpine-1.16.4
FROM denoland/deno:alpine-1.23.3
RUN apk add --no-cache graphviz
ADD fonts/ /usr/share/fonts/truetype/

WORKDIR /src
ADD deps.ts .
RUN deno cache deps.ts
RUN deno cache --check=all deps.ts
ADD . .
RUN deno cache server.ts
RUN deno cache --check=all server.ts
ENTRYPOINT ["deno","run","--allow-env","--allow-net=0.0.0.0,api.github.com,cdn.deno.land,registry.npmjs.org","--allow-run=deno,dot","--allow-read=.","server.ts"]
4 changes: 2 additions & 2 deletions lib/module-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export class ModuleMap {
return;
}

const depEdges = info.dependencies.flatMap(x => [
const depEdges = info.dependencies?.flatMap(x => [
x.code?.specifier ?? '',
x.type?.specifier ?? '',
].filter(x => x));
].filter(x => x)) ?? [];
if (info.typesDependency?.dependency.specifier) {
depEdges.push(info.typesDependency.dependency.specifier);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface DenoModuleError {
}
export type DenoModule = {
specifier: string;
dependencies: DenoDependency[];
dependencies?: DenoDependency[];
typesDependency?: {
specifier: string;
dependency: { specifier: string }; // also the span
Expand Down
2 changes: 1 addition & 1 deletion server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno run --allow-read=. --allow-net=0.0.0.0 --allow-run=deno,dot --allow-env=PORT
#!/usr/bin/env -S deno run --check=all --allow-read=. --allow-net=0.0.0.0 --allow-run=deno,dot --allow-env=PORT

import { http } from "./deps.ts";
import { serveFont, servePublic, serveTemplatedHtml } from './lib/request-handling.ts';
Expand Down

0 comments on commit b66bdb7

Please sign in to comment.