From 3bde9fa862458c74c43ff4a862778565f1ffb329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Grie=C3=9Fhaber?= Date: Tue, 2 Apr 2024 13:07:05 +0200 Subject: [PATCH] fix: deprecation warning for not using fine-grained unstable flags --- .vscode/launch.json | 3 ++- Dockerfile | 6 ++++-- deno.jsonc | 4 ++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 3d1e4fc..0c16f0d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,7 +13,8 @@ "runtimeExecutable": "deno", "runtimeArgs": [ "run", - "--unstable", + "--unstable-http", + "--unstable-kv", "--inspect-wait", "--allow-all" ], diff --git a/Dockerfile b/Dockerfile index 8fab2ee..f305084 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,10 @@ RUN deno cache main.ts ENTRYPOINT [] CMD deno run \ -# unstable flag is needed for Deno.connect to a Unix Socket (lib/universal-http.ts) - --unstable \ +# flag is needed for Deno.connect to a Unix Socket (lib/universal-http.ts) + --unstable-http \ +# flag is needed for unstable KV storage + --unstable-kv \ # /var/run/dolce/ => lockfile directory --allow-read="./templates,/var/run/dolce/,${DOCKER_HOST},${DOLCE_CUSTOM_TEMPLATE_PATH}" \ # /var/run/dolce/ => lockfile directory diff --git a/deno.jsonc b/deno.jsonc index 0620f83..0eb03c5 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,4 +1,8 @@ { + "unstable": [ + "http", + "kv" + ], "tasks": { "dev": "DOLCE_LOG_LEVEL=DEBUG deno run --unstable-http --allow-read=/var/run/docker.sock,./templates,/var/run/dolce/ --allow-write=/var/run/docker.sock,/var/run/dolce/ --allow-env --allow-run --watch main.ts", "bmp": "deno run --allow-read=. --allow-write=. --allow-run=git https://deno.land/x/bmp@v0.2.0/cli.ts",