Luca Casonato
f483996658
feat(unstable): no config npm:@opentelemetry/api integration ( #27541 )
...
After this PR, one does not need to import `jsr:@deno/otel` anymore.
2025-01-06 17:00:32 +01:00
Luca Casonato
4b35ba6b13
feat(unstable): replace SpanExporter with TracerProvider ( #27473 )
2025-01-06 14:28:29 +01:00
Kitson Kelly
7cabd02c59
fix(kv): improve backoff error message and inline documentation ( #27537 )
...
Ref: #27536
2025-01-04 00:04:14 +01:00
Kenta Moriuchi
8fb073d7b4
chore: Happy New Year 2025 ( #27509 )
2024-12-31 19:12:39 +00:00
Kenta Moriuchi
4330ef553f
fix(streams): reject string
in ReadableStream.from
type ( #25116 )
...
WebIDL `async iterable<T>` type rejects `string`
Ref https://github.com/whatwg/webidl/pull/1397 , #24623
2024-11-26 19:42:54 +00:00
David Sherret
be10901dfc
docs: fix casing of Wasm ( #26954 )
2024-11-21 01:02:58 +00:00
Leo Kettmeir
628816448e
refactor: update deno_doc, use prismjs, remove internal reference html generation logic ( #26885 )
2024-11-19 08:56:04 -08:00
Luca Casonato
594a99817c
feat(runtime): remove public OTEL trace API ( #26854 )
...
This PR removes the public Deno.tracing.Span API.
We are not confident we can ship an API that is
better than the `@opentelemetry/api` API, because
V8 CPED does not support us using `using` to
manage span context. If this changes, we can
revisit this decision. For now, users wanting
custom spans can instrument their code using
the `@opentelemetry/api` API and `@deno/otel`.
This PR also speeds up the OTEL trace generation
by a 30% by using Uint8Array instead of
strings for the trace ID and span ID.
2024-11-18 23:55:22 +00:00
Bartek Iwańczuk
a1bcdf17a5
feat(jupyter): Add Deno.jupyter.image
API ( #26284 )
...
This commit adds `Deno.jupyter.image` API to display PNG and JPG images:
```
const data = Deno.readFileSync("./my-image.jpg");
Deno.jupyter.image(data);
Deno.jupyter.image("./my-image.jpg");
```
2024-11-16 15:13:50 +00:00
snek
aa546189be
feat: OpenTelemetry Tracing API and Exporting ( #26710 )
...
Initial import of OTEL code supporting tracing. Metrics soon to come.
Implements APIs for https://jsr.io/@deno/otel so that code using
OpenTelemetry.js just works tm.
There is still a lot of work to do with configuration and adding
built-in tracing to core APIs, which will come in followup PRs.
---------
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-11-13 10:38:46 +00:00
Łukasz Czerniawski
7becd83a38
feat(ext/fs): add ctime to Deno.stats and use it in node compat layer ( #24801 )
...
This PR fixes #24453 , by introducing a ctime (using ctime for UNIX and
ChangeTime for Windows) to Deno.stats.
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-11-13 13:35:04 +09:00
Scott Twiname
d55e30f418
fix(types): missing import
permission on PermissionOptionsObject
( #26627 )
2024-11-04 18:20:34 +00:00
Leo Kettmeir
5a1943cd95
fix: better error for Deno.UnsafeWindowSurface, correct HttpClient name, cleanup unused code ( #25833 )
2024-09-24 07:04:52 -07:00
David Sherret
33f169beb9
chore: add code generation for @types/deno ( #25545 )
2024-09-23 19:18:52 +00:00
Divy Srivastava
0cb00a6e89
BREAKING(webgpu/unstable): move width
and height
options to UnsafeWindowSurface
constructor ( #24200 )
...
Fixes https://github.com/denoland/deno/issues/23508
`width` and `height` are required to configure the wgpu surface because
Deno is headless and depends on user to create a window. The options
were non-standard extension of `GPUCanvasConfiguration#configure`.
This PR adds a required options parameter with the `width` and `height`
options to `Deno.UnsafeWindowSurface` constructor.
```typescript
// Old, non-standard extension of GPUCanvasConfiguration
const surface = new Deno.UnsafeWindowSurface("x11", displayHandle, windowHandle);
const context = surface.getContext();
context.configure({ width: 600, height: 800, /* ... */ });
```
```typescript
// New
const surface = new Deno.UnsafeWindowSurface({
system: "x11",
windowHandle,
displayHandle,
width: 600,
height: 800,
});
const context = surface.getContext();
context.configure({ /* ... */ });
```
2024-09-22 09:10:54 +05:30
Yusuke Tanaka
f88a9e7467
fix(dts): stabilize fetch
declaration for use with Deno.HttpClient
( #25683 )
...
This commit stabilizes the `fetch` function declaration for use with
`Deno.HttpClient` and moves it from `lib.deno.unstable.d.ts` to
`lib.deno.shared_globals.d.ts`.
`Deno.HttpClient` was stabilized in #25569 , but the associated override
declaration for `fetch` is still marked as experimental. This should
also be stabilized now and moved to a different d.ts file.
2024-09-17 23:38:21 -07:00
Asher Gomez
51d926ac30
chore(fs): undeprecate Deno.FsWatcher.prototype.return()
( #25623 )
2024-09-17 07:57:53 +10:00
Luca Casonato
8fa92228bb
fix(types): simplify mtls related types ( #25658 )
...
Instead of two overloads for `Deno.connectTls` and
`Deno.createHttpClient`, there is now just one.
2024-09-16 14:35:55 +02:00
Aapo Alasuutari
f8547e2617
BREAKING(ext/ffi): remove deprecated UnsafeFnPointer
constructor type with untyped Deno.PointerObject
parameter ( #25577 )
2024-09-16 22:08:36 +10:00
David Sherret
af2d992ecd
feat: TypeScript 5.6 and npm:@types/node@22
( #25614 )
2024-09-14 11:58:47 +01:00
Nathan Whitaker
7477c2d706
feat(serve): Support second parameter in deno serve ( #25606 )
...
Closes #24099
2024-09-12 23:32:28 +00:00
Asher Gomez
0a4a8c730b
BREAKING(io): remove Deno.Seeker[Sync]
( #25551 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-12 13:07:16 +00:00
Victor Turansky
025e4bdaac
fix(ext/webgpu): sync category comment ( #25580 )
...
Signed-off-by: Victor Turansky <victor.turansky@gmail.com>
2024-09-12 10:59:05 +10:00
Asher Gomez
8476bbff9a
feat: stabilize Deno.createHttpClient()
( #25569 )
...
Closes #25518
2024-09-12 10:46:48 +10:00
Asher Gomez
ace1202227
BREAKING(net): remove Deno.ConnectTlsOptions.{certChain,certFile,privateKey}
and Deno.ListenTlsOptions.certChain,certFile,keyFile}
( #25525 )
...
Towards #22079
2024-09-10 21:55:42 +00:00
Kenta Moriuchi
e522f4b65a
BREAKING(temporal/unstable): Remove obsoleted Temporal APIs part 2 ( #25505 )
...
Mainly I removed `Temporal.Calendar` and `Temporal.TimeZone` and
replaced them to APIs that handle calendar and timezone as strings.
https://github.com/tc39/proposal-temporal/pull/2925
Related #24836
2024-09-10 21:36:43 +00:00
Asher Gomez
a69b1e699e
BREAKING(fs): remove Deno.FsFile.prototype.rid
( #25499 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-11 07:19:34 +10:00
Luca Casonato
7bfcb4dd10
feat(cli): use NotCapable error for permission errors ( #25431 )
...
Closes #7394
---------
Co-authored-by: snek <snek@deno.com>
2024-09-10 11:12:24 -07:00
Leo Kettmeir
c2f97494f7
refactor: move WebGPU, FFI and FS typings from unstable to stable ( #25488 )
...
Closes #25377
2024-09-10 05:04:59 -07:00
Asher Gomez
a445ebd74f
BREAKING(fs): remove Deno.fsync[Sync]()
( #25448 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-09 22:39:56 +00:00
Asher Gomez
aadcf3346c
BREAKING(io): remove Deno.{Reader,Writer}[Sync]
and Deno.Closer
( #25524 )
2024-09-10 07:07:12 +10:00
Kenta Moriuchi
d9b5bccdea
fix: Float16Array type ( #25506 )
2024-09-09 22:47:33 +02:00
Asher Gomez
39f2704bd7
BREAKING(fs): remove Deno.fdatasync[Sync]()
( #25520 )
2024-09-09 21:09:57 +10:00
Asher Gomez
5bac4075c3
chore: soft-remove Deno.{stdin,stderr,stdout}.rid
( #25479 )
...
Towards #22079
2024-09-07 08:37:35 +10:00
Asher Gomez
dcf155516b
BREAKING(fs): disallow new Deno.FsFile()
( #25478 )
...
Towards #22079
2024-09-06 18:28:42 +10:00
Asher Gomez
d8f3123c36
BREAKING(buffer): remove Deno.Buffer
( #25441 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-06 18:28:05 +10:00
Asher Gomez
7937ae3f2f
chore(net): soft-remove Deno.serveHttp()
( #25451 )
...
Towards #22079
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-09-06 08:15:00 +10:00
Asher Gomez
7d95c5c062
BREAKING(fs): remove Deno.funlock[Sync]()
( #25442 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-05 11:23:37 +00:00
Asher Gomez
c73b4a0877
BREAKING(fs): remove Deno.seek[Sync]()
( #25449 )
...
Towards #22079
2024-09-05 20:37:28 +10:00
Asher Gomez
105c2e336a
BREAKING(fs): remove Deno.FsWatcher.prototype.rid
( #25444 )
...
Towards #22079
2024-09-05 16:23:28 +10:00
Asher Gomez
713ed065e7
BREAKING(fs): remove Deno.File
( #25447 )
...
Towards #22079
2024-09-05 16:22:47 +10:00
Asher Gomez
195b17ae12
BREAKING(types): soft-remove Deno.run()
( #25403 )
...
Towards #22079
2024-09-05 08:45:55 +10:00
Asher Gomez
31ecc09b5a
BREAKING(io): remove Deno.read[Sync]()
( #25409 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 09:34:40 +00:00
Asher Gomez
4c3b17b547
BREAKING(io): remove Deno.write[Sync]()
( #25408 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 08:57:34 +00:00
Asher Gomez
3d36cbd056
BREAKING(fs): remove Deno.ftruncate[Sync]()
( #25412 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 08:53:43 +00:00
Asher Gomez
ac33fc2892
chore(tty): soft-remove Deno.isatty()
( #25410 )
...
Towards #22079
2024-09-04 18:12:11 +10:00
Asher Gomez
072bf5d379
BREAKING(buffer): remove Deno.writeAll[Sync]()
( #25407 )
2024-09-04 17:16:48 +10:00
Asher Gomez
b72d1a7256
BREAKING(fs): remove Deno.fstat[Sync]()
( #25351 )
...
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 01:28:15 +00:00
Caleb Cox
203428ea14
docs(serve): fix default Deno.serve
hostname ( #25392 )
...
Update the docs for `Deno.serve` to reflect that the default hostname is
`0.0.0.0`, not `127.0.0.1`.
2024-09-03 17:53:42 +02:00
Asher Gomez
03d8e474d7
BREAKING(io): remove Deno.copy()
( #25345 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-03 10:46:13 +00:00