Update Deno Version in the Docker image to version 1.45.2 and update the @supabase/supabase-js dependency specified in the import_map.json
file.
NOTES:
The current recommended approach for managing dependencies is using a deno.json file, which is currently not working locally and returns
the following error:
serving the request with supabase/functions/add-or-update-source-v1
worker boot error: failed to create the graph: Relative import path "@supabase/supabase-js" not prefixed with / or ./ or ../
at file:///Users/ricoberger/Documents/GitHub/feeddeck/feeddeck/supabase/functions/add-or-update-source-v1/index.ts:1:30
worker boot error: failed to create the graph: Relative import path "@supabase/supabase-js" not prefixed with / or ./ or ../
at file:///Users/ricoberger/Documents/GitHub/feeddeck/feeddeck/supabase/functions/add-or-update-source-v1/index.ts:1:30
InvalidWorkerCreation: worker boot error: failed to create the graph: Relative import path "@supabase/supabase-js" not prefixed with / or ./ or ../
at file:///Users/ricoberger/Documents/GitHub/feeddeck/feeddeck/supabase/functions/add-or-update-source-v1/index.ts:1:30
at async UserWorker.create (ext:sb_user_workers/user_workers.js:139:15)
at async Object.handler (file:///root/index.ts:157:22)
at async respond (ext:sb_core_main_js/js/http.js:197:14) {
name: "InvalidWorkerCreation"
}
When using Deno v2 the dependencies via the deno.json file are
working. To enable Deno v2 the following must be set in the config.toml file:
Once Deno v2 is supported in the hosted platform, we should switch
from the import_map.json to deno.json to manage dependencies and
update the existing dependencies.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/feeddeck/feeddeck/pull/242
**Author:** [@ricoberger](https://github.com/ricoberger)
**Created:** 4/19/2025
**Status:** ✅ Merged
**Merged:** 4/19/2025
**Merged by:** [@ricoberger](https://github.com/ricoberger)
**Base:** `main` ← **Head:** `update-deno-version-to-1.45.2`
---
### 📝 Commits (2)
- [`bb2130b`](https://github.com/feeddeck/feeddeck/commit/bb2130b2a51b80e41ff939f2cb58852322292995) Update Deno Version to 1.45.2
- [`fdd672f`](https://github.com/feeddeck/feeddeck/commit/fdd672fb7f52a1092071c0f241cb6f2b13760328) Fix Errors
### 📊 Changes
**17 files changed** (+599 additions, -615 deletions)
<details>
<summary>View changed files</summary>
📝 `supabase/functions/_cmd/Dockerfile` (+1 -2)
📝 `supabase/functions/_cmd/cmd.ts` (+35 -29)
📝 `supabase/functions/_cmd/scheduler/scheduler.ts` (+37 -42)
📝 `supabase/functions/_cmd/worker/worker.ts` (+26 -28)
📝 `supabase/functions/_shared/feed/utils/getAndParseFeed.ts` (+25 -24)
📝 `supabase/functions/_shared/feed/utils/uploadFile.ts` (+38 -22)
📝 `supabase/functions/add-or-update-source-v1/index.ts` (+77 -89)
📝 `supabase/functions/add-source-v1/index.ts` (+84 -92)
📝 `supabase/functions/delete-user-v1/index.ts` (+34 -33)
📝 `supabase/functions/generate-magic-link-v1/index.ts` (+24 -22)
📝 `supabase/functions/import_map.json` (+1 -1)
📝 `supabase/functions/profile-v1/index.ts` (+79 -84)
📝 `supabase/functions/profile-v2/index.ts` (+40 -42)
📝 `supabase/functions/revenuecat-webhooks-v1/index.ts` (+45 -53)
📝 `supabase/functions/stripe-create-billing-portal-link-v1/index.ts` (+17 -15)
📝 `supabase/functions/stripe-create-checkout-session-v1/index.ts` (+17 -15)
📝 `supabase/functions/stripe-webhooks-v1/index.ts` (+19 -22)
</details>
### 📄 Description
Update Deno Version in the Docker image to version 1.45.2 and update the
`@supabase/supabase-js` dependency specified in the `import_map.json`
file.
**NOTES:**
- The current recommended approach for managing dependencies is using a
`deno.json` file, which is currently not working locally and returns
the following error:
```
serving the request with supabase/functions/add-or-update-source-v1
worker boot error: failed to create the graph: Relative import path "@supabase/supabase-js" not prefixed with / or ./ or ../
at file:///Users/ricoberger/Documents/GitHub/feeddeck/feeddeck/supabase/functions/add-or-update-source-v1/index.ts:1:30
worker boot error: failed to create the graph: Relative import path "@supabase/supabase-js" not prefixed with / or ./ or ../
at file:///Users/ricoberger/Documents/GitHub/feeddeck/feeddeck/supabase/functions/add-or-update-source-v1/index.ts:1:30
InvalidWorkerCreation: worker boot error: failed to create the graph: Relative import path "@supabase/supabase-js" not prefixed with / or ./ or ../
at file:///Users/ricoberger/Documents/GitHub/feeddeck/feeddeck/supabase/functions/add-or-update-source-v1/index.ts:1:30
at async UserWorker.create (ext:sb_user_workers/user_workers.js:139:15)
at async Object.handler (file:///root/index.ts:157:22)
at async respond (ext:sb_core_main_js/js/http.js:197:14) {
name: "InvalidWorkerCreation"
}
```
- When using Deno v2 the dependencies via the `deno.json` file are
working. To enable Deno v2 the following must be set in the
`config.toml` file:
```
[edge_runtime]
deno_version = 2
```
- Deno v2 is currently only supported locally, see
https://supabase.com/blog/supabase-edge-functions-deploy-dashboard-deno-2-1#deno-21-preview
- Once Deno v2 is supported in the hosted platform, we should switch
from the `import_map.json` to `deno.json` to manage dependencies and
update the existing dependencies.
<!--
Keep PR title verbose enough and add prefix telling about what source it touches e.g "[rss] Add feature xyz" or if the
the PR is not realated to a source use "[core]", e.g. "[core] Fix xyz".
If you add a breaking change within your PR you should add ":warning:" to the title,
e.g. ":warning: [core] My breaking change"
-->
<!--
Description of what have been changed. Please also reference an issue, when available.
-->
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/242
Author: @ricoberger
Created: 4/19/2025
Status: ✅ Merged
Merged: 4/19/2025
Merged by: @ricoberger
Base:
main← Head:update-deno-version-to-1.45.2📝 Commits (2)
bb2130bUpdate Deno Version to 1.45.2fdd672fFix Errors📊 Changes
17 files changed (+599 additions, -615 deletions)
View changed files
📝
supabase/functions/_cmd/Dockerfile(+1 -2)📝
supabase/functions/_cmd/cmd.ts(+35 -29)📝
supabase/functions/_cmd/scheduler/scheduler.ts(+37 -42)📝
supabase/functions/_cmd/worker/worker.ts(+26 -28)📝
supabase/functions/_shared/feed/utils/getAndParseFeed.ts(+25 -24)📝
supabase/functions/_shared/feed/utils/uploadFile.ts(+38 -22)📝
supabase/functions/add-or-update-source-v1/index.ts(+77 -89)📝
supabase/functions/add-source-v1/index.ts(+84 -92)📝
supabase/functions/delete-user-v1/index.ts(+34 -33)📝
supabase/functions/generate-magic-link-v1/index.ts(+24 -22)📝
supabase/functions/import_map.json(+1 -1)📝
supabase/functions/profile-v1/index.ts(+79 -84)📝
supabase/functions/profile-v2/index.ts(+40 -42)📝
supabase/functions/revenuecat-webhooks-v1/index.ts(+45 -53)📝
supabase/functions/stripe-create-billing-portal-link-v1/index.ts(+17 -15)📝
supabase/functions/stripe-create-checkout-session-v1/index.ts(+17 -15)📝
supabase/functions/stripe-webhooks-v1/index.ts(+19 -22)📄 Description
Update Deno Version in the Docker image to version 1.45.2 and update the
@supabase/supabase-jsdependency specified in theimport_map.jsonfile.
NOTES:
deno.jsonfile, which is currently not working locally and returnsthe following error:
deno.jsonfile areworking. To enable Deno v2 the following must be set in the
config.tomlfile:Deno v2 is currently only supported locally, see
https://supabase.com/blog/supabase-edge-functions-deploy-dashboard-deno-2-1#deno-21-preview
Once Deno v2 is supported in the hosted platform, we should switch
from the
import_map.jsontodeno.jsonto manage dependencies andupdate the existing dependencies.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.