libpkgx icon indicating copy to clipboard operation
libpkgx copied to clipboard

[low] deno std library throwing a warning with newer versions of deno

Open jhheider opened this issue 1 year ago • 2 comments

⚠️  Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.
import data from "./_data.json" assert { type: "json" };
  at https://deno.land/[email protected]/console/unicode_width.ts:4:1

per deno.land:

The Standard Library has been moved to [JSR](https://jsr.io/@std). See [the blog post](https://deno.com/blog/std-on-jsr) for details.

jhheider avatar Sep 19 '24 16:09 jhheider

is this shown at runtime or compile time? Specifically when is this warning shown?

mxcl avatar Sep 25 '24 12:09 mxcl

runtime. see: https://github.com/pkgxdev/pantry/actions/runs/11036300859/job/30654439828

Run pkgxdev/brewkit/audit@v1
Run if ! pkgx --sync; then

Run echo "::group::fetch deno deps"
fetch deno deps
Run ${GITHUB_ACTION_PATH}/audit.ts '{"project":"cnquery.io","version":{"value":"11.23.1","raw":"11.23.1","tag":"v11.23.1"}}'
⚠️  Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.

import data from "./_data.json" assert { type: "json" };

  at https://deno.land/[email protected]/console/unicode_width.ts:4:1

jhheider avatar Sep 25 '24 15:09 jhheider

We now use the jsr

mxcl avatar Jan 17 '25 14:01 mxcl