summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)Author
2022-06-21chore(ext/ffi): simplify FFI types (#14920)Aapo Alasuutari
This commit simplifies the TypeScript types used for interacting with Deno FFI. The basis is that types are now first grouped into logical wholes, NativeNumberType, NativeBigIntType etc. These wholes are combined into the NativeType and NativeResultType general types. Additionally, this PR removes the { function: { parameters: [], result: "void" } } type declaration from parameters (and result types. Now functions are merely passed and returned as "function".
2022-06-20BREAKING(ext/ffi): Remove `Deno.UnsafePointer` indirection (#14915)Divy Srivastava
2022-06-20chore(ext/crypto): update webcrypto deps (#14452)Divy Srivastava
2022-06-20feat(ext/ffi): Callbacks (#14663)Aapo Alasuutari
This commit adds support for unstable FFI callbacks. A callback is registered using the `Deno.UnsafeCallback` API. The backing memory for the callback can be disposed of using `Deno.UnsafeCallback#close`. It is not safe to pass the callback after calling close. Callbacks from other than the isolate thread are not supported. Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com> Co-authored-by: Bert Belder <bertbelder@gmail.com>
2022-06-19fix(ext/fetch): add `accept-language` default header to fetch (#14882)Mark Ladyshau
2022-06-17fix(ext/web): add EventTarget brand checking (#14637)Colin Ihrig
This commit adds brand checking to EventTarget. It also fixes a bug where deno would crash if an abort signal was aborted on the global addEventListener().
2022-06-17fix(ext/web): handle rid=0 in TextDecoder#decode (#14894)Luca Casonato
2022-06-16fix: make Performance global an EventTargetcjihrig
This commit updates the Performance global to extend EventTarget.
2022-06-151.23.0 (#14878)denobot
* 1.23.0 * docs(Releases.md): update a few items for 1.23 * docs(Releases.md): revert bad formatting Co-authored-by: aslilac <aslilac@users.noreply.github.com> Co-authored-by: McKayla Washburn <mckayla@hey.com>
2022-06-15chore: upgrade various deps (#14876)Ryan Dahl
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-15fix(url): properly indent when inspecting URLs (#14867)cjihrig
This commit updates the custom inspect function for URL objects to pass the inspect options through so that the context is propagated and the resulting indentation is correct. Fixes: https://github.com/denoland/deno/issues/14171
2022-06-15fix(console): constrol inspect() indent with option (#14867)cjihrig
This commit updates the Deno.inspect() logic to use the indentLevel option to control indentation instead of passing around separate indent/level parameters internally. Refs: https://github.com/denoland/deno/issues/8099 Refs: https://github.com/denoland/deno/issues/14171
2022-06-14feature(web): enable deflate-raw compression format (#14863)Kayla Washburn
2022-06-13Remove unstable Deno.sleepSync (#14719)Ryan Dahl
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-13feat(console): pass options and depth to custom inspects (#14855)Colin Ihrig
This commit updates Deno.inspect() to pass inspect options and the current inspect depth to custom inspect functions. Refs: https://github.com/denoland/deno/issues/8099 Refs: https://github.com/denoland/deno/issues/14171
2022-06-09chore: Forward v1.22.3 to main (#14835)Colin Ihrig
* 1.22.3 (#14832) * chore: pin swc versions to fix cargo publish Co-authored-by: denobot <33910674+denobot@users.noreply.github.com> Co-authored-by: cjihrig <cjihrig@users.noreply.github.com> Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-08fix(http/upgradewebsocket): check for open state for idle timeout (#14813)Leo Kettmeir
2022-06-08feat(ext/ffi): support passing and returning bigints (#14523)Elias Sjögreen
2022-06-08feat(ext/crypto): export elliptic keys as "raw" (#14764)diachedelic
This commit adds support for the "raw" format when exporting public ECDH/ECDSA keys via the SubtleCrypto.exportKey method.
2022-06-07refactor(core): Move Deno.core bindings to ops (#14793)Nayeem Rahman
2022-06-07fix(ext/fetch): remove deprecation of `URL` in deno `fetch` (#14769)Mark Ladyshau
2022-06-06fix: Format non-error exceptions (#14604)Nayeem Rahman
This commit adds "Deno.core.setFormatExceptionCallback" which can be used to provide custom formatting for errors. It is useful in cases when user throws something that is non-Error (eg. a string, plain object, etc).
2022-06-02chore: Forward v1.22.2 to main (#14785)Bartek Iwańczuk
2022-06-02fix(ext/crypto): adjust `getRandomValues` types (#14714)Mark Ladyshau
2022-06-01feat: update to TypeScript 4.7 (#14242)Kitson Kelly
2022-05-271.22.1Kitson Kelly
Co-authored-by: Kitson Kelly <me@kitsonkelly.com> Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
2022-05-26fix(core): rethrow exception during structured cloning serialization (#14671)Mark Ladyshau
- Introduced optional callback for Deno.core.serialize API, that returns cloning error if there is one. - Removed try/catch in seralize structured clone function and throw error from callback. - Removed "Object with a getter that throws" assertion from WPT.
2022-05-25fix(fmt): prevent infinite loop when formatting certain binary expressions ↵David Sherret
(#14725)
2022-05-23fix(ext/websocket): WebSocket dispatch single close event (#13443)Leo Kettmeir
2022-05-181.22.0 (#14657)denobot
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-05-18fix: add types for `Response.json` (#14655)Luca Casonato
2022-05-18perf(ext/http): faster accept-encoding parsing (#14654)Aaron O'Mullan
2022-05-18chore: update rustls (#14647)Luca Casonato
This fixes thevery annoying "Received a ServerHelloDone handshake message while expecting [CertificateRequest]" debug log from rustls.
2022-05-18fix(ext/tls): ability to ignore IP-address certificate errors (#14610)Aleksei Kosyrev
2022-05-18fix(ext/http): no response body reader when cancelling during shutdown (#14653)Divy Srivastava
2022-05-17chore: fix failing bench (#14644)Bartek Iwańczuk
2022-05-17perf(ext/web): Add fast path for non-streaming TextDecoder (#14217)randomicon00
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-05-17fix(ext/http): error on invalid headers (#14642)Aaron O'Mullan
Minor regression/change-in-behaviour from #14552 that filtered out invalid http headers in rust vs error-ing back to JS
2022-05-17fix(ext/http): skip auto-compression if content-encoding present (#14641)Aaron O'Mullan
Regression from #14552
2022-05-16fix(ext/web): throw if listener and signal are null (#14601)Colin Ihrig
This commit fixes a failing WPT test by making EventTarget's addEventListener() method throw if both the listener and the signal option are null. Fixes: https://github.com/denoland/deno/issues/14593
2022-05-16feat(ext/net): add `CAA` DNS record support in Deno.resolveDns() API (#14624)Craig Morten
2022-05-15feat(ext/net): support NAPTR records in Deno.resolveDns() API (#14613)Craig Morten
2022-05-15feat(ext/net): support full `SOA` record interface (#14617)Craig Morten
2022-05-15Revert "core: don't include_str extension js code (#10786)" (#14614)Aaron O'Mullan
This reverts commit 10e50a120744de71d6915af4ae93f8231607573d Alternative to #13217, IMO the tradeoffs made by #10786 aren't worth it. It breaks abstractions (crates being self-contained, deno_core without snapshotting etc...) and causes pain points / gotchas for both embedders & devs for a relatively minimal gain in incremental build time ... Closes #11030
2022-05-14feat(ext/net): add support for SOA records in Deno.resolveDns() API (#14534)Thanapat Chotipun
2022-05-13feat(ext/web): add performance.toJSON (#14548)Geert-Jan Zwiers
2022-05-13feat(ext/web): implement static `Response.json` (#14566)Luca Casonato
This commit adds support for the static `Response.json` method.
2022-05-13fix(ext/http): make serveHttp compress for Accept-Encoding: deflate, gzip ↵Andy Kurnia
(#14525)
2022-05-13feat(serde_v8): bytes::Bytes support (#14412)Aaron O'Mullan
2022-05-13chore(runtime): Make some ops in ext and runtime infallible. (#14589)Andreu Botella
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>