google / sxg-rs

A set of tools for generating signed exchanges at serve time.
Apache License 2.0
83 stars 20 forks source link

Update TypeScript dependencies #411

Closed renovate-bot closed 1 year ago

renovate-bot commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@cloudflare/workers-types 3.17.0 -> 3.18.0 age adoption passing confidence
@types/node (source) 16.11.66 -> 16.18.3 age adoption passing confidence
esbuild 0.15.11 -> 0.15.13 age adoption passing confidence
fastify (source) 4.9.1 -> 4.9.2 age adoption passing confidence
jasmine-core (source) 4.4.0 -> 4.5.0 age adoption passing confidence
jsdom 20.0.1 -> 20.0.2 age adoption passing confidence
tslib (source) 2.4.0 -> 2.4.1 age adoption passing confidence

Release Notes

cloudflare/workers-types ### [`v3.18.0`](https://togithub.com/cloudflare/workers-types/blob/HEAD/CHANGELOG.md#​3180) [Compare Source](https://togithub.com/cloudflare/workers-types/compare/v3.17.0...v3.18.0) ##### Minor Changes - [#​307](https://togithub.com/cloudflare/workers-types/pull/307) [`0721beb`](https://togithub.com/cloudflare/workers-types/commit/0721bebe14bcf4f70e90d24f147dcd805a3f4d5e) Thanks [@​autodecl-bot](https://togithub.com/apps/autodecl-bot)! - Updated auto-generated types @​ 2022-10-21 ##### Patch Changes - [#​301](https://togithub.com/cloudflare/workers-types/pull/301) [`17b6d16`](https://togithub.com/cloudflare/workers-types/commit/17b6d16e2b7d0e8605ae0ed2e704336ef89c2c47) Thanks [@​caass](https://togithub.com/caass)! - Improve the `IncomingRequestCfProperties` type. Previously, this type was based on our docs, which didn't include some fields. Now we've gone through the code that generates these fields and ensured that every property matches up. Additionally, we added examples and documentation for almost everything, so it should be more clear exactly what a certain property is or isn't.
evanw/esbuild ### [`v0.15.13`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​01513) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.12...v0.15.13) - Add support for the TypeScript 4.9 `satisfies` operator ([#​2509](https://togithub.com/evanw/esbuild/pull/2509)) TypeScript 4.9 introduces a new operator called `satisfies` that lets you check that a given value satisfies a less specific type without casting it to that less specific type and without generating any additional code at run-time. It looks like this: ```ts const value = { foo: 1, bar: false } satisfies Record console.log(value.foo.toFixed(1)) // TypeScript knows that "foo" is a number here ``` Before this existed, you could use a cast with `as` to check that a value satisfies a less specific type, but that removes any additional knowledge that TypeScript has about that specific value: ```ts const value = { foo: 1, bar: false } as Record console.log(value.foo.toFixed(1)) // TypeScript no longer knows that "foo" is a number ``` You can read more about this feature in [TypeScript's blog post for 4.9](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9-rc/#the-satisfies-operator) as well as [the associated TypeScript issue for this feature](https://togithub.com/microsoft/TypeScript/issues/47920). This feature was implemented in esbuild by [@​magic-akari](https://togithub.com/magic-akari). - Fix watch mode constantly rebuilding if the parent directory is inaccessible ([#​2640](https://togithub.com/evanw/esbuild/issues/2640)) Android is unusual in that it has an inaccessible directory in the path to the root, which esbuild was not originally built to handle. To handle cases like this, the path resolution layer in esbuild has a hack where it treats inaccessible directories as empty. However, esbuild's watch implementation currently triggers a rebuild if a directory previously encountered an error but the directory now exists. The assumption is that the previous error was caused by the directory not existing. Although that's usually the case, it's not the case for this particular parent directory on Android. Instead the error is that the directory previously existed but was inaccessible. This discrepancy between esbuild's path resolution layer and its watch mode was causing watch mode to rebuild continuously on Android. With this release, esbuild's watch mode instead checks for an error status change in the `readdir` file system call, so watch mode should no longer rebuild continuously on Android. - Apply a fix for a rare deadlock with the JavaScript API ([#​1842](https://togithub.com/evanw/esbuild/issues/1842), [#​2485](https://togithub.com/evanw/esbuild/issues/2485)) There have been reports of esbuild sometimes exiting with an "all goroutines are asleep" deadlock message from the Go language runtime. This issue hasn't made much progress until recently, where a possible cause was discovered (thanks to [@​jfirebaugh](https://togithub.com/jfirebaugh) for the investigation). This release contains a possible fix for that possible cause, so this deadlock may have been fixed. The fix cannot be easily verified because the deadlock is non-deterministic and rare. If this was indeed the cause, then this issue only affected the JavaScript API in situations where esbuild was already in the process of exiting. In detail: The underlying cause is that Go's [`sync.WaitGroup`](https://pkg.go.dev/sync#WaitGroup) API for waiting for a set of goroutines to finish is not fully thread-safe. Specifically it's not safe to call `Add()` concurrently with `Wait()` when the wait group counter is zero due to a data race. This situation could come up with esbuild's JavaScript API when the host JavaScript process closes the child process's stdin and the child process (with no active tasks) calls `Wait()` to check that there are no active tasks, at the same time as esbuild's watchdog timer calls `Add()` to add an active task (that pings the host to see if it's still there). The fix in this release is to avoid calling `Add()` once we learn that stdin has been closed but before we call `Wait()`. ### [`v0.15.12`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​01512) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.11...v0.15.12) - Fix minifier correctness bug with single-use substitutions ([#​2619](https://togithub.com/evanw/esbuild/issues/2619)) When minification is enabled, esbuild will attempt to eliminate variables that are only used once in certain cases. For example, esbuild minifies this code: ```js function getEmailForUser(name) { let users = db.table('users'); let user = users.find({ name }); let email = user?.get('email'); return email; } ``` into this code: ```js function getEmailForUser(e){return db.table("users").find({name:e})?.get("email")} ``` However, this transformation had a bug where esbuild did not correctly consider the "read" part of binary read-modify-write assignment operators. For example, it's incorrect to minify the following code into `bar += fn()` because the call to `fn()` might modify `bar`: ```js const foo = fn(); bar += foo; ``` In addition to fixing this correctness bug, this release also improves esbuild's output in the case where all values being skipped over are primitives: ```js function toneMapLuminance(r, g, b) { let hdr = luminance(r, g, b) let decay = 1 / (1 + hdr) return 1 - decay } ``` Previous releases of esbuild didn't substitute these single-use variables here, but esbuild will now minify this to the following code starting with this release: ```js function toneMapLuminance(e,n,a){return 1-1/(1+luminance(e,n,a))} ```
fastify/fastify ### [`v4.9.2`](https://togithub.com/fastify/fastify/releases/tag/v4.9.2) [Compare Source](https://togithub.com/fastify/fastify/compare/v4.9.1...v4.9.2) #### What's Changed - types: Add missing context types by [@​kibertoad](https://togithub.com/kibertoad) in [https://github.com/fastify/fastify/pull/4352](https://togithub.com/fastify/fastify/pull/4352) - Revert "fix(logger): lost setBindings type in FastifyBaseLogger" by [@​climba03003](https://togithub.com/climba03003) in [https://github.com/fastify/fastify/pull/4355](https://togithub.com/fastify/fastify/pull/4355) **Full Changelog**: https://github.com/fastify/fastify/compare/v4.9.1...v4.9.2
jasmine/jasmine ### [`v4.5.0`](https://togithub.com/jasmine/jasmine/releases/tag/v4.5.0) [Compare Source](https://togithub.com/jasmine/jasmine/compare/v4.4.0...v4.5.0) Please see the [release notes](https://togithub.com/jasmine/jasmine/blob/main/release_notes/4.5.0.md).
jsdom/jsdom ### [`v20.0.2`](https://togithub.com/jsdom/jsdom/blob/HEAD/Changelog.md#​2002) [Compare Source](https://togithub.com/jsdom/jsdom/compare/20.0.1...20.0.2) - Fixed `xhr.abort()` to no longer give an exception when the constructed `XMLHttpRequest` was invalid. (whamtet) - Fixed `event.getModifierState()` on `MouseEvent` and `KeyboardEvent` instances to properly consult the `ctrlKey`, `altKey`, `metaKey`, and `shiftKey` properties of the event. (juzerzarif) - Fixed custom element creation to not be affected by any modifications to the `window.customElements` property. (bicknellr)
Microsoft/tslib ### [`v2.4.1`](https://togithub.com/microsoft/tslib/releases/tag/2.4.1) [Compare Source](https://togithub.com/Microsoft/tslib/compare/2.4.0...2.4.1) This release contains [fixes for early `return`s and `throw`s invoked on generators](https://togithub.com/microsoft/tslib/pull/186).

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR has been generated by Mend Renovate. View repository job log here.