Skip to content

Commit

Permalink
Remove Temporal polyfill
Browse files Browse the repository at this point in the history
Maybe deno deploy supports this now?
  • Loading branch information
brookback committed May 18, 2024
1 parent 3cb71cd commit 48f1c51
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion api/model/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const noteOf = (fileName: string, input: NoteInput): Note => {
input.zonedDateTime,
),
location: input.location,
timezone: input.zonedDateTime.timeZoneId.toString(),
timezone: input.zonedDateTime.timeZone.toString(),
tags: input.tags,
},
};
Expand Down
1 change: 0 additions & 1 deletion api/server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// deno run --allow-env --allow-net --allow-read --allow-write --location https://johan.im api/server.ts
import { createApp } from './app.ts';
import { createServices } from './services/index.ts';
import 'temporal-polyfill/global';

const app = createApp(createServices());

Expand Down
6 changes: 2 additions & 4 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
"lume/": "https://deno.land/x/[email protected]/",
"html_entities": "https://deno.land/x/[email protected]/mod.js",
"slug": "https://deno.land/x/[email protected]/mod.ts",
"temporal-polyfill": "https://esm.sh/[email protected]",
"temporal-polyfill/global": "https://esm.sh/[email protected]/global",
"cooklang": "https://esm.sh/@cooklang/[email protected]"
},
"tasks": {
"lume": "echo \"import 'lume/cli.ts'\" | deno run --unstable-temporal -A -",
"build": "deno task lume",
"serve": "deno task build -s",
"test": "export IOS_SHORTCUT_TOKEN=aaa && export MAC_SHORTCUT_TOKEN=aaa && export ROOT_URL=https://johan.im && TEST=1 deno test --allow-env --location https://johan.im",
"api": "deno run --allow-env --allow-net --allow-read --allow-write --location https://johan.im --watch api/server.ts",
"test": "export IOS_SHORTCUT_TOKEN=aaa && export MAC_SHORTCUT_TOKEN=aaa && export ROOT_URL=https://johan.im && TEST=1 deno test --allow-env --location https://johan.im --unstable-temporal",
"api": "deno run --allow-env --unstable-temporal --allow-net --allow-read --allow-write --location https://johan.im --watch api/server.ts",
"api:deploy": "deployctl deploy --env-file=.env.api"
},
"compilerOptions": {
Expand Down
1 change: 0 additions & 1 deletion test/add-media.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { assertEquals } from 'std/assert/mod.ts';
import { assertSpyCall, assertSpyCalls, spy } from 'std/testing/mock.ts';
import { createApp } from '../api/app.ts';
import { mock } from './_mock.ts';
import 'temporal-polyfill/global';

const BASE_URL = 'http://localhost:8000';

Expand Down
1 change: 0 additions & 1 deletion test/auth.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { assertEquals, assertMatch } from 'std/assert/mod.ts';
import { createApp } from '../api/app.ts';
import { mock } from './_mock.ts';
import 'temporal-polyfill/global';

const BASE_URL = 'http://localhost:8000';

Expand Down
1 change: 0 additions & 1 deletion test/book.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { createApp } from '../api/app.ts';
import { mock, spy } from './_mock.ts';
import * as Yaml from 'std/yaml/mod.ts';
import { assertMatch } from 'std/assert/assert_match.ts';
import 'temporal-polyfill/global';

const BASE_URL = 'http://localhost:8000';

Expand Down
1 change: 0 additions & 1 deletion test/check-auth.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { assertEquals } from 'std/assert/mod.ts';
import { createApp } from '../api/app.ts';
import { mock } from './_mock.ts';
import 'temporal-polyfill/global';

const BASE_URL = 'http://localhost:8000';

Expand Down
1 change: 0 additions & 1 deletion test/current-track.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { createApp } from '../api/app.ts';
import { mock } from './_mock.ts';
import * as Yaml from 'std/yaml/mod.ts';
import { assertSpyCall, assertSpyCalls } from 'std/testing/mock.ts';
import 'temporal-polyfill/global';
import { assertMatch } from 'std/assert/assert_match.ts';

const BASE_URL = 'http://localhost:8000';
Expand Down
1 change: 0 additions & 1 deletion test/link.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { assertSpyCall, assertSpyCalls } from 'std/testing/mock.ts';
import { createApp } from '../api/app.ts';
import * as Yaml from 'std/yaml/mod.ts';
import { mock, spy } from './_mock.ts';
import 'temporal-polyfill/global';

const BASE_URL = 'http://localhost:8000';

Expand Down
1 change: 0 additions & 1 deletion test/post-note.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { assertEquals, assertMatch } from 'std/assert/mod.ts';
import { assertSpyCall, assertSpyCalls, spy } from 'std/testing/mock.ts';
import { createApp } from '../api/app.ts';
import { mock } from './_mock.ts';
import 'temporal-polyfill/global';

const BASE_URL = 'http://localhost:8000';

Expand Down

0 comments on commit 48f1c51

Please sign in to comment.