-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(deps): update dependency @whatwg-node/server to v0.9.65 #11819
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I had to update how we're calling |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Tobbe
added a commit
that referenced
this pull request
Jan 16, 2025
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>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9.49
->0.9.65
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
ardatan/whatwg-node (@whatwg-node/server)
v0.9.65
Compare Source
Patch Changes
#1926
bae5de1
Thanks @ardatan! - While calling
handleNodeRequest
orhandleNodeRequestAndResponse
,waitUntil
is not added automatically as inrequestListener
forNode.js integration. This change adds
waitUntil
into theserverContext
if not present.Fixes the issue with Fastify integration that uses the mentioned methods
v0.9.64
Compare Source
Patch Changes
#1899
a84e84a
Thanks @ardatan! - - New
onDispose
hook which is alias ofSymbol.asyncDispose
for Explicit Resource Managementopt-in and configurable.
v0.9.63
Compare Source
Patch Changes
c75e6e3
Thanks @ardatan! - Export `DisposableSymbols` for disposable
plugins
v0.9.62
Compare Source
Patch Changes
95e5ce4
Thanks @EmrysMyrddin! - Docs for hooks
v0.9.61
Compare Source
Patch Changes
#1872
7fb47d8
Thanks @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.
v0.9.60
Compare Source
Patch Changes
8947888
Thanks @ardatan! - Respect SIGTERM as termination event
v0.9.59
Compare Source
Patch Changes
b4ab548
Thanks @ardatan! - Remove SIGTERM from termination events to prevent
hangs, and always add disposable stack to the termination events
v0.9.58
Compare Source
Patch Changes
5a9098c
Thanks @ardatan! - Fix on plugin types
v0.9.57
Compare Source
Patch Changes
e88ab4a
Thanks @ardatan! - dependencies updates:
@whatwg-node/disposablestack@^0.0.5
↗︎(to
dependencies
)e88ab4a
Thanks @ardatan! - New Explicit Resource Management feature for the
server adapters;
Learn more
Symbol.dispose
andSymbol.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 whenSymbol.asyncDispose
is called.disposed explicitly, the disposal logic will be triggered on the process termination (SIGINT,
SIGTERM etc)
waitUntil
, theunresolved passed promises will be resolved by the disposable stack.
v0.9.56
Compare Source
Patch Changes
54c244d
Thanks @ardatan! - Small improvements for Bun support
v0.9.55
Compare Source
Patch Changes
7d1f0ff
Thanks @ardatan! - Avoid polluting the original object in case of
`Object.create`
v0.9.54
Compare Source
Patch Changes
c7d49b1
Thanks @ardatan! - Handle request abort correctly with AbortSignal
v0.9.53
Compare Source
Patch Changes
[
6c006e1
]:v0.9.52
Compare Source
Patch Changes
323a519
Thanks @ardatan! - Allow other libs to redefine
Request
'sproperties
v0.9.51
Compare Source
Patch Changes
#1644
637185f
Thanks @renovate! - Respect given fetchAPI
Updated dependencies []:
v0.9.50
Compare Source
Patch Changes
9281e02
Thanks @ardatan! - Improvements with uWS Body handling
Updated dependencies
[
77dd1c3
]: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.
This PR was generated by Mend Renovate. View the repository job log.