no-deprecated-deno-api
NOTE: this rule is part of the
recommended
rule set.Enable full set in
deno.json
:{ "lint": { "rules": { "tags": ["recommended"] } } }
Enable full set using the Deno CLI:
deno lint --rules-tags=recommended
This rule can be explictly included to or excluded from the rules present in the current tag by adding it to the
include
or exclude
array in deno.json
:{ "lint": { "rules": { "include": ["no-deprecated-deno-api"], "exclude": ["no-deprecated-deno-api"] } } }
Warns the usage of the deprecated - Deno APIs.
The following APIs will be removed from the Deno.*
namespace but have newer
APIs to migrate to. See the
Deno 1.x to 2.x Migration Guide
for migration instructions.
Deno.Buffer
Deno.Closer
Deno.close()
Deno.Conn.rid
Deno.copy()
Deno.customInspect
Deno.File
Deno.fstatSync()
Deno.fstat()
Deno.FsWatcher.rid
Deno.ftruncateSync()
Deno.ftruncate()
Deno.futimeSync()
Deno.futime()
Deno.isatty()
Deno.Listener.rid
Deno.ListenTlsOptions.certFile
Deno.ListenTlsOptions.keyFile
Deno.readAllSync()
Deno.readAll()
Deno.Reader
Deno.ReaderSync
Deno.readSync()
Deno.read()
Deno.run()
Deno.seekSync()
Deno.seek()
Deno.serveHttp()
Deno.Server
Deno.shutdown
Deno.stderr.rid
Deno.stdin.rid
Deno.stdout.rid
Deno.TlsConn.rid
Deno.UnixConn.rid
Deno.writeAllSync()
Deno.writeAll()
Deno.Writer
Deno.WriterSync
Deno.writeSync()
Deno.write()
new Deno.FsFile()
The following APIs will be removed from the Deno.*
namespace without
replacement.
Deno.resources()
Deno.metrics()