From c6f1107e9c8835389479f4f2d80d3539d23df41e Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 11 Apr 2024 07:26:35 +1000 Subject: chore: update references to `deno_std` to use JSR (#23239) There are more uses of `deno.land/std` in the codebase, but for URL parsing purposes rather than network calls or documentation. --- runtime/js/13_buffer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'runtime/js/13_buffer.js') diff --git a/runtime/js/13_buffer.js b/runtime/js/13_buffer.js index cac1a6694..ae57fcb16 100644 --- a/runtime/js/13_buffer.js +++ b/runtime/js/13_buffer.js @@ -48,7 +48,7 @@ class Buffer { internals.warnOnDeprecatedApi( "new Deno.Buffer()", new Error().stack, - "Use `Buffer` from `https://deno.land/std/io/buffer.ts` instead.", + "Use `Buffer` from `https://jsr.io/@std/io/doc/buffer/~` instead.", ); if (ab == null) { this.#buf = new Uint8Array(0); @@ -238,7 +238,7 @@ async function readAll(r) { internals.warnOnDeprecatedApi( "Deno.readAll()", new Error().stack, - "Use `readAll()` from `https://deno.land/std/io/read_all.ts` instead.", + "Use `readAll()` from `https://jsr.io/@std/io/doc/read-all/~` instead.", ); const buf = new Buffer(); await buf.readFrom(r); @@ -249,7 +249,7 @@ function readAllSync(r) { internals.warnOnDeprecatedApi( "Deno.readAllSync()", new Error().stack, - "Use `readAllSync()` from `https://deno.land/std/io/read_all.ts` instead.", + "Use `readAllSync()` from `https://jsr.io/@std/io/doc/read-all/~` instead.", ); const buf = new Buffer(); buf.readFromSync(r); @@ -260,7 +260,7 @@ async function writeAll(w, arr) { internals.warnOnDeprecatedApi( "Deno.writeAll()", new Error().stack, - "Use `writeAll()` from `https://deno.land/std/io/write_all.ts` instead.", + "Use `writeAll()` from `https://jsr.io/@std/io/doc/write-all/~` instead.", ); let nwritten = 0; while (nwritten < arr.length) { @@ -272,7 +272,7 @@ function writeAllSync(w, arr) { internals.warnOnDeprecatedApi( "Deno.writeAllSync()", new Error().stack, - "Use `writeAllSync()` from `https://deno.land/std/io/write_all.ts` instead.", + "Use `writeAllSync()` from `https://jsr.io/@std/io/doc/write-all/~` instead.", ); let nwritten = 0; while (nwritten < arr.length) { -- cgit v1.2.3