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:
|
||||
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",
|
||||
"debug": "deno run -A --inspect src/server.ts",
|
||||
"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",
|
||||
"admin:event": "deno run -A scripts/admin-event.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),
|
||||
{
|
||||
type: 'module',
|
||||
deno: {
|
||||
permissions: {
|
||||
read: [Conf.denoDir, Conf.policy, Conf.dataDir],
|
||||
write: [Conf.dataDir],
|
||||
net: 'inherit',
|
||||
env: false,
|
||||
},
|
||||
},
|
||||
// FIXME: Disabled until Deno 2.0 adds support for `import` permission here.
|
||||
// https://github.com/denoland/deno/issues/26074
|
||||
// deno: {
|
||||
// permissions: {
|
||||
// read: [Conf.denoDir, Conf.policy, Conf.dataDir],
|
||||
// write: [Conf.dataDir],
|
||||
// net: 'inherit',
|
||||
// env: false,
|
||||
// },
|
||||
// },
|
||||
},
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue