docs: point to new "Deno 1.x to 2.x Migration Guide" (#22199)

Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
Asher Gomez 2024-02-02 12:32:46 +11:00 committed by GitHub
parent fa91ad91c1
commit 3f4639c330
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 153 additions and 100 deletions

View file

@ -85,7 +85,6 @@ import {
workerRuntimeGlobalProperties,
} from "ext:runtime/98_global_scope_worker.js";
import { SymbolAsyncDispose, SymbolDispose } from "ext:deno_web/00_infra.js";
// deno-lint-ignore prefer-primordials
if (Symbol.dispose) throw "V8 supports Symbol.dispose now, no need to shim it!";
ObjectDefineProperties(Symbol, {
@ -172,6 +171,10 @@ function warnOnDeprecatedApi(apiName, stack, ...suggestions) {
"font-weight: bold;",
);
console.error();
console.error(
"See the Deno 1 to 2 Migration Guide for more information at https://docs.deno.com/runtime/manual/advanced/migrate_deprecations",
);
console.error();
if (stackLines.length > 0) {
console.error("Stack trace:");