postgres icon indicating copy to clipboard operation
postgres copied to clipboard

Deno v2.0 Deno.errors.PermissionDenied -> Deno.errors.NotCapable

Open elmeunick9 opened this issue 1 year ago • 0 comments

The new version of Deno introduces some changes to the permission system, see.

Notably the introduction of Deno.errors.NotCapable breaks createParams here.

try {
    pgEnv = getPgEnv(); 
} catch (e) {
    if (e instanceof Deno.errors.PermissionDenied) {
        has_env_access = false;
    } else {
        throw e;
    }
}

I guess for backwards compatibility we should keep both?

  • deno-postgres version: 0.19.3
  • deno version: 2.0-rc

elmeunick9 avatar Sep 27 '24 13:09 elmeunick9