Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency @whatwg-node/server to v0.9.65 (#11819)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@whatwg-node/server](https://github.com/ardatan/whatwg-node) ([source](https://github.com/ardatan/whatwg-node/tree/HEAD/packages/server)) | [`0.9.49` -> `0.9.65`](https://renovatebot.com/diffs/npm/@whatwg-node%2fserver/0.9.49/0.9.65) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@whatwg-node%2fserver/0.9.65?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@whatwg-node%2fserver/0.9.65?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@whatwg-node%2fserver/0.9.49/0.9.65?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@whatwg-node%2fserver/0.9.49/0.9.65?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>ardatan/whatwg-node (@​whatwg-node/server)</summary> ### [`v0.9.65`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0965) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.64...@whatwg-node/server@0.9.65) ##### Patch Changes - [#​1926](https://github.com/ardatan/whatwg-node/pull/1926) [`bae5de1`](https://github.com/ardatan/whatwg-node/commit/bae5de158dd2fa3472d69ca7486ea68940d43c74) Thanks [@​ardatan](https://github.com/ardatan)! - While calling `handleNodeRequest` or `handleNodeRequestAndResponse`, `waitUntil` is not added automatically as in `requestListener` for Node.js integration. This change adds `waitUntil` into the `serverContext` if not present. Fixes the issue with Fastify integration that uses the mentioned methods ### [`v0.9.64`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0964) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.63...@whatwg-node/server@0.9.64) ##### Patch Changes - [#​1899](https://github.com/ardatan/whatwg-node/pull/1899) [`a84e84a`](https://github.com/ardatan/whatwg-node/commit/a84e84aa5c14f23c30637ccd290a099a39c445a1) Thanks [@​ardatan](https://github.com/ardatan)! - - New `onDispose` hook which is alias of `Symbol.asyncDispose` for Explicit Resource Management - Registration of the server adapter's disposal to the global process termination listener is now opt-in and configurable. ```ts const plugin: ServerAdapterPlugin = { onDispose() { console.log('Server adapter is disposed') } } const serverAdapter = createServerAdapter(() => new Response('Hello world!'), { plugins: [plugin], // Register the server adapter's disposal to the global process termination listener // Then the server adapter will be disposed when the process exit signals only in Node.js! disposeOnProcessTerminate: true }) await serverAdapter.dispose() // Prints 'Server adapter is disposed' ``` ### [`v0.9.63`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0963) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.62...@whatwg-node/server@0.9.63) ##### Patch Changes - [`c75e6e3`](https://github.com/ardatan/whatwg-node/commit/c75e6e39207664c7a33fcb1ba0f211774e0c7c97) Thanks [@​ardatan](https://github.com/ardatan)! - Export \`DisposableSymbols\` for disposable plugins ### [`v0.9.62`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0962) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.61...@whatwg-node/server@0.9.62) ##### Patch Changes - [#​1880](https://github.com/ardatan/whatwg-node/pull/1880) [`95e5ce4`](https://github.com/ardatan/whatwg-node/commit/95e5ce4a32e51b8727b31ea711903e7924c8e47e) Thanks [@​EmrysMyrddin](https://github.com/EmrysMyrddin)! - Docs for hooks ### [`v0.9.61`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0961) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.60...@whatwg-node/server@0.9.61) ##### Patch Changes - [#​1872](https://github.com/ardatan/whatwg-node/pull/1872) [`7fb47d8`](https://github.com/ardatan/whatwg-node/commit/7fb47d8e6a988658089315970d5662f5bf6bcb1f) Thanks [@​ardatan](https://github.com/ardatan)! - Wait for remaining promises during `asyncDispose` correctly The `asyncDispose` function should wait for all remaining promises to resolve before returning. This ensures that the server is fully disposed of before the function returns. ```ts import { createServerAdapter } from '@​whatwg-node/server' const deferred = Promise.withResolvers() const adapter = createServerAdapter((req, ctx) => { ctx.waitUntil(deferred.promise) return new Response('Hello, world!') }) const res = await adapter.fetch('http://example.com') console.assert(res.status === 200) console.assert((await res.text()) === 'Hello, world!') let disposed = false adapter[Symbol.asyncDispose]().then(() => { disposed = true }) console.assert(!disposed) deferred.resolve() console.assert(disposed) ``` ### [`v0.9.60`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0960) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.59...@whatwg-node/server@0.9.60) ##### Patch Changes - [#​1838](https://github.com/ardatan/whatwg-node/pull/1838) [`8947888`](https://github.com/ardatan/whatwg-node/commit/894788854a212932fffde7a52e88c21cd696c6db) Thanks [@​ardatan](https://github.com/ardatan)! - Respect SIGTERM as termination event ### [`v0.9.59`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0959) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.58...@whatwg-node/server@0.9.59) ##### Patch Changes - [`b4ab548`](https://github.com/ardatan/whatwg-node/commit/b4ab548cf11a0ec641e1800690684176eecad74b) Thanks [@​ardatan](https://github.com/ardatan)! - Remove SIGTERM from termination events to prevent hangs, and always add disposable stack to the termination events ### [`v0.9.58`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0958) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.57...@whatwg-node/server@0.9.58) ##### Patch Changes - [`5a9098c`](https://github.com/ardatan/whatwg-node/commit/5a9098cdc2984c4ad80e136fc93250a97145852e) Thanks [@​ardatan](https://github.com/ardatan)! - Fix on plugin types ### [`v0.9.57`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0957) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.56...@whatwg-node/server@0.9.57) ##### Patch Changes - [`e88ab4a`](https://github.com/ardatan/whatwg-node/commit/e88ab4a826184c05d006620bbd3ef20942ea83d9) Thanks [@​ardatan](https://github.com/ardatan)! - dependencies updates: - Added dependency [`@whatwg-node/disposablestack@^0.0.5` ↗︎](https://www.npmjs.com/package/@​whatwg-node/disposablestack/v/0.0.5) (to `dependencies`) - [`e88ab4a`](https://github.com/ardatan/whatwg-node/commit/e88ab4a826184c05d006620bbd3ef20942ea83d9) Thanks [@​ardatan](https://github.com/ardatan)! - New Explicit Resource Management feature for the server adapters; [Learn more](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html) - `Symbol.dispose` and `Symbol.asyncDispose` hooks When the server adapter plugin has these hooks, it is added to the disposable stack of the server adapter. When the server adapter is disposed, those hooks are triggered - `disposableStack` in the server adapter The shared disposable stack that will be triggered when `Symbol.asyncDispose` is called. - Automatic disposal on Node and Node-compatible environments Even if the server adapter is not disposed explicitly, the disposal logic will be triggered on the process termination (SIGINT, SIGTERM etc) - ctx.waitUntil relation If it is an environment does not natively provide `waitUntil`, the unresolved passed promises will be resolved by the disposable stack. ### [`v0.9.56`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0956) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.55...@whatwg-node/server@0.9.56) ##### Patch Changes - [#​1814](https://github.com/ardatan/whatwg-node/pull/1814) [`54c244d`](https://github.com/ardatan/whatwg-node/commit/54c244d99757c1469ee226e54baffe7b5b0924c7) Thanks [@​ardatan](https://github.com/ardatan)! - Small improvements for Bun support ### [`v0.9.55`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0955) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.54...@whatwg-node/server@0.9.55) ##### Patch Changes - [#​1799](https://github.com/ardatan/whatwg-node/pull/1799) [`7d1f0ff`](https://github.com/ardatan/whatwg-node/commit/7d1f0ff4675911ecb249d609d200fd69f77e8d94) Thanks [@​ardatan](https://github.com/ardatan)! - Avoid polluting the original object in case of \`Object.create\` ### [`v0.9.54`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0954) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.53...@whatwg-node/server@0.9.54) ##### Patch Changes - [#​1790](https://github.com/ardatan/whatwg-node/pull/1790) [`c7d49b1`](https://github.com/ardatan/whatwg-node/commit/c7d49b1dad95412b99126c289a44b1fbf3473a65) Thanks [@​ardatan](https://github.com/ardatan)! - Handle request abort correctly with AbortSignal ### [`v0.9.53`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0953) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.52...@whatwg-node/server@0.9.53) ##### Patch Changes - Updated dependencies \[[`6c006e1`](https://github.com/ardatan/whatwg-node/commit/6c006e12eaa6705cdf20b7b43cccc44a1f7ea185)]: - [@​whatwg-node/fetch](https://github.com/whatwg-node/fetch)[@​0](https://github.com/0).10.0 ### [`v0.9.52`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0952) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.51...@whatwg-node/server@0.9.52) ##### Patch Changes - [`323a519`](https://github.com/ardatan/whatwg-node/commit/323a5191a93c8a0a614077f89a2197b9c087a969) Thanks [@​ardatan](https://github.com/ardatan)! - Allow other libs to redefine `Request`'s properties ### [`v0.9.51`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0951) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.50...@whatwg-node/server@0.9.51) ##### Patch Changes - [#​1644](https://github.com/ardatan/whatwg-node/pull/1644) [`637185f`](https://github.com/ardatan/whatwg-node/commit/637185f5c992ccabff13b185d4e14f09680228da) Thanks [@​renovate](https://github.com/apps/renovate)! - Respect given fetchAPI - Updated dependencies \[]: - [@​whatwg-node/fetch](https://github.com/whatwg-node/fetch)[@​0](https://github.com/0).9.23 ### [`v0.9.50`](https://github.com/ardatan/whatwg-node/blob/HEAD/packages/server/CHANGELOG.md#0950) [Compare Source](https://github.com/ardatan/whatwg-node/compare/@whatwg-node/server@0.9.49...@whatwg-node/server@0.9.50) ##### Patch Changes - [`9281e02`](https://github.com/ardatan/whatwg-node/commit/9281e021282a43a3dda8c8a5c9647d340b28698e) Thanks [@​ardatan](https://github.com/ardatan)! - Improvements with uWS Body handling - Updated dependencies \[[`77dd1c3`](https://github.com/ardatan/whatwg-node/commit/77dd1c3acde29aeb828b6eb37b6fbdbb47a16c57)]: - [@​whatwg-node/fetch](https://github.com/whatwg-node/fetch)[@​0](https://github.com/0).9.22 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/redwoodjs/redwood). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44MC4wIiwidXBkYXRlZEluVmVyIjoiMzkuODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
- Loading branch information