mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'deno-2.0.0' into 'main'
Upgrade to Deno v2.0 See merge request soapbox-pub/ditto!538
This commit is contained in:
commit
376fd8a956
5 changed files with 1465 additions and 1333 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
image: denoland/deno:2.0.0-rc.3
|
image: denoland/deno:2.0.0
|
||||||
|
|
||||||
default:
|
default:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
deno 1.46.3
|
deno 2.0.0
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
"nostr:pull": "deno run -A scripts/nostr-pull.ts",
|
"nostr:pull": "deno run -A scripts/nostr-pull.ts",
|
||||||
"debug": "deno run -A --inspect src/server.ts",
|
"debug": "deno run -A --inspect src/server.ts",
|
||||||
"test": "deno test -A --junit-path=./deno-test.xml",
|
"test": "deno test -A --junit-path=./deno-test.xml",
|
||||||
"check": "deno check src/server.ts",
|
"check": "deno check --allow-import src/server.ts",
|
||||||
"nsec": "deno run scripts/nsec.ts",
|
"nsec": "deno run scripts/nsec.ts",
|
||||||
"admin:event": "deno run -A scripts/admin-event.ts",
|
"admin:event": "deno run -A scripts/admin-event.ts",
|
||||||
"admin:role": "deno run -A scripts/admin-role.ts",
|
"admin:role": "deno run -A scripts/admin-role.ts",
|
||||||
|
|
|
||||||
|
|
@ -20,14 +20,16 @@ class PolicyWorker implements NPolicy {
|
||||||
new URL('./policy.worker.ts', import.meta.url),
|
new URL('./policy.worker.ts', import.meta.url),
|
||||||
{
|
{
|
||||||
type: 'module',
|
type: 'module',
|
||||||
deno: {
|
// FIXME: Disabled until Deno 2.0 adds support for `import` permission here.
|
||||||
permissions: {
|
// https://github.com/denoland/deno/issues/26074
|
||||||
read: [Conf.denoDir, Conf.policy, Conf.dataDir],
|
// deno: {
|
||||||
write: [Conf.dataDir],
|
// permissions: {
|
||||||
net: 'inherit',
|
// read: [Conf.denoDir, Conf.policy, Conf.dataDir],
|
||||||
env: false,
|
// write: [Conf.dataDir],
|
||||||
},
|
// net: 'inherit',
|
||||||
},
|
// env: false,
|
||||||
|
// },
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue