Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error due to outdated dependencies #8

Open
tpart120 opened this issue Dec 6, 2024 · 0 comments
Open

Error due to outdated dependencies #8

tpart120 opened this issue Dec 6, 2024 · 0 comments

Comments

@tpart120
Copy link

tpart120 commented Dec 6, 2024

Issue

Setup:

  • Deno Version: 2.0.4
  • v8 Version: 12.9.202.13-rusty
  • Typescript Version: 5.6.2
  • Oak HTTP Proxy Version: 2.3.0
  • Oak Version: 17.1.3

Details

Deno gives me an error, likely because oak-http-proxy has outdated dependencies:

error: Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.

import db from "https://raw.githubusercontent.com/jshttp/mime-db/v1.52.0/db.json" assert {
  type: "json",
};

at https://deno.land/x/[email protected]/mod.ts:32:1

Steps to reproduce:

import { Application, Router } from "https://deno.land/x/[email protected]/mod.ts"
import { proxy } from "https://deno.land/x/[email protected]/mod.ts";

Import oak_http_proxy 2.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant