postgres icon indicating copy to clipboard operation
postgres copied to clipboard

upgrade for deno2, publish to jsr https://jsr.io/@y0/postgres

Open i18nsite opened this issue 9 months ago • 1 comments

fix https://github.com/porsager/postgres/issues/839

deno2 & jsr : https://deno.com/blog/jsr_open_beta

publish method

  1. get token for https://jsr.io/account/tokens

export DENO_AUTH_TOKENS=

  1. npm run deno:publish

test

deno add jsr:@y0/postgres

crate mod.js

import postgres from '@y0/postgres'
const pg = postgres(process.env.PG_URL)
console.log( await pg`SELECT 1` )

deno -A mod.js

i18nsite avatar Feb 12 '25 10:02 i18nsite

Hi @i18nsite! Nice work. What about fixing transpile.deno.js as in e.g. https://github.com/porsager/postgres/pull/771?

olecom avatar Mar 13 '25 12:03 olecom