oak-http-proxy icon indicating copy to clipboard operation
oak-http-proxy copied to clipboard

Error due to outdated dependencies

Open tpart120 opened this issue 1 year ago • 0 comments

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.

tpart120 avatar Dec 06 '24 20:12 tpart120