summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-04-11 07:26:35 +1000
committerGitHub <noreply@github.com>2024-04-10 17:26:35 -0400
commitc6f1107e9c8835389479f4f2d80d3539d23df41e (patch)
tree4fdf2e9c02d23364cae0aab9021d1655274d1d5c /runtime/js
parent7c5745a204637f12e53e62821c6e7e91fee21fbe (diff)
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.
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/13_buffer.js10
1 files changed, 5 insertions, 5 deletions
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) {