denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.17k stars 623 forks source link

Usage of deprecated Deno APIs #2276

Closed mikelpint closed 6 months ago

mikelpint commented 7 months ago

Hello there,

I have noticed that after upgrading to Deno v1.40.1 several warnings regarding the usage of deprecated Deno APIs appear.

Here is the terminal output after I try to start the server:

%cwarning: %cUse of deprecated "Deno.TcpConn.rid" API. This API will be removed in Deno 2.
undefined
Stack trace:
  at ext:deno_node/internal_binding/tcp_wrap.ts:295:14
undefined
%chint: Use `Deno.TcpConn` instance methods instead.
%chint: It appears this API is used by a remote dependency. Try upgrading to the latest version of that dependency.
undefined
%cwarning: %cUse of deprecated "Deno.TcpConn.rid" API. This API will be removed in Deno 2.
undefined
%chint: Use `Deno.TcpConn` instance methods instead.
undefined
%cwarning: %cUse of deprecated "Deno.TcpConn.rid" API. This API will be removed in Deno 2.
undefined
%chint: Use `Deno.TcpConn` instance methods instead.
undefined
The manifest has been generated for 46 routes and 50 islands.
%cwarning: %cUse of deprecated "Deno.TlsConn.rid" API. This API will be removed in Deno 2.
undefined
%chint: Use `Deno.TlsConn` instance methods instead.
undefined
%cwarning: %cUse of deprecated "Deno.TlsConn.rid" API. This API will be removed in Deno 2.
undefined
%chint: Use `Deno.TlsConn` instance methods instead.
undefined
%cwarning: %cUse of deprecated "Deno.TlsConn.rid" API. This API will be removed in Deno 2.
undefined
%chint: Use `Deno.TlsConn` instance methods instead.
undefined

The messages do not really bother me but I just though I should notify somebody about the issue.

marvinhagemeister commented 7 months ago

Filed an upstream issue https://github.com/evanw/esbuild/issues/3609

itsfuad commented 7 months ago

I'm getting this message.

warning: Use of deprecated "Deno.serveHttp()" API. This API will be removed in Deno 2. Run again with DENO_VERBOSE_WARNINGS=1 to get more details.

marvinhagemeister commented 7 months ago

@itsfuad Are you using the latest Fresh version 1.6.3 or are you on an older one?

marvinhagemeister commented 6 months ago

Closing as this is resolved in newer Fresh versions.