Skip to content

Issue with Deno 2.x #53

Description

@lviggiani

I'm getting the following error with Deno 2.x

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/media_types@v3.0.3/mod.ts:32:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions