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 #374

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
@types/node (source) 16.11.58 -> 16.11.59 age adoption passing confidence
esbuild 0.15.7 -> 0.15.8 age adoption passing confidence
fastify (source) 4.5.3 -> 4.6.0 age adoption passing confidence
karma (source) 6.4.0 -> 6.4.1 age adoption passing confidence

Release Notes

evanw/esbuild ### [`v0.15.8`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0158) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.15.7...v0.15.8) - Fix JSX name collision edge case ([#​2534](https://togithub.com/evanw/esbuild/issues/2534)) Code generated by esbuild could have a name collision in the following edge case: - The JSX transformation mode is set to `automatic`, which causes `import` statements to be inserted - An element uses a `{...spread}` followed by a `key={...}`, which uses the legacy `createElement` fallback imported from `react` - Another import uses a name that ends with `react` such as `@remix-run/react` - The output format has been set to CommonJS so that `import` statements are converted into require calls In this case, esbuild previously generated two variables with the same name `import_react`, like this: ```js var import_react = require("react"); var import_react2 = require("@​remix-run/react"); ``` That bug is fixed in this release. The code generated by esbuild no longer contains a name collision. - Fall back to WebAssembly on Android ARM ([#​1556](https://togithub.com/evanw/esbuild/issues/1556), [#​1578](https://togithub.com/evanw/esbuild/issues/1578), [#​2335](https://togithub.com/evanw/esbuild/issues/2335), [#​2526](https://togithub.com/evanw/esbuild/issues/2526)) Go's compiler supports trivial cross-compiling to almost all platforms without installing any additional software other than the Go compiler itself. This has made it very easy for esbuild to publish native binary executables for many platforms. However, it strangely doesn't support cross-compiling to Android ARM without installing the Android build tools. So instead of publishing a native esbuild binary executable to npm, this release publishes a WebAssembly fallback build. This is essentially the same as the `esbuild-wasm` package but it's installed automatically when you install the `esbuild` package on Android ARM. So packages that depend on the `esbuild` package should now work on Android ARM. This change has not yet been tested end-to-end because I don't have a 32-bit Android ARM device myself, but in theory it should work. This inherits the drawbacks of WebAssembly including significantly slower performance than native as well as potentially also more severe memory usage limitations and lack of certain features (e.g. `--serve`). If you want to use a native binary executable of esbuild on Android ARM, you may be able to build it yourself from source after installing the Android build tools. - Attempt to better support Yarn's `ignorePatternData` feature ([#​2495](https://togithub.com/evanw/esbuild/issues/2495)) Part of resolving paths in a project using Yarn's Plug'n'Play feature involves evaluating a regular expression in the `ignorePatternData` property of `.pnp.data.json`. However, it turns out that the particular regular expressions generated by Yarn use some syntax that works with JavaScript regular expressions but that does not work with Go regular expressions. In this release, esbuild will now strip some of the the problematic syntax from the regular expression before compiling it, which should hopefully allow it to be compiled by Go's regular expression engine. The specific character sequences that esbuild currently strips are as follows: - `(?!\.)` - `(?!(?:^|\/)\.)` - `(?!\.{1,2}(?:\/|$))` - `(?!(?:^|\/)\.{1,2}(?:\/|$))` These seem to be used by Yarn to avoid the `.` and `..` path segments in the middle of relative paths. The removal of these character sequences seems relatively harmless in this case since esbuild shouldn't ever generate such path segments. This change should add support to esbuild for Yarn's [`pnpIgnorePatterns`](https://yarnpkg.com/configuration/yarnrc/#pnpIgnorePatterns) feature. - Fix non-determinism issue with legacy block-level function declarations and strict mode ([#​2537](https://togithub.com/evanw/esbuild/issues/2537)) When function declaration statements are nested inside a block in strict mode, they are supposed to only be available within that block's scope. But in "sloppy mode" (which is what non-strict mode is commonly called), they are supposed to be available within the whole function's scope: ```js // This returns 1 due to strict mode function test1() { 'use strict' function fn() { return 1 } if (true) { function fn() { return 2 } } return fn() } // This returns 2 due to sloppy mode function test2() { function fn() { return 1 } if (true) { function fn() { return 2 } } return fn() } ``` To implement this, esbuild compiles these two functions differently to reflect their different semantics: ```js function test1() { "use strict"; function fn() { return 1; } if (true) { let fn2 = function() { return 2; }; } return fn(); } function test2() { function fn() { return 1; } if (true) { let fn2 = function() { return 2; }; var fn = fn2; } return fn(); } ``` However, the compilation had a subtle bug where the automatically-generated function-level symbols for multible hoisted block-level function declarations in the same block a sloppy-mode context were generated in a random order if the output was in strict mode, which could be the case if TypeScript's `alwaysStrict` setting was set to true. This lead to non-determinism in the output as the minifier would randomly exchange the generated names for these symbols on different runs. This bug has been fixed by sorting the keys of the unordered map before iterating over them. - Fix parsing of `@keyframes` with string identifiers ([#​2555](https://togithub.com/evanw/esbuild/issues/2555)) Firefox supports `@keyframes` with string identifier names. Previously this was treated as a syntax error by esbuild as it doesn't work in any other browser. The specification allows for this however, so it's technically not a syntax error (even though it would be unwise to use this feature at the moment). There was also a bug where esbuild would remove the identifier name in this case as the syntax wasn't recognized. This release changes esbuild's parsing of `@keyframes` to now consider this case to be an unrecognized CSS rule. That means it will be passed through unmodified (so you can now use esbuild to bundle this Firefox-specific CSS) but the CSS will not be pretty-printed or minified. I don't think it makes sense for esbuild to have special code to handle this Firefox-specific syntax at this time. This decision can be revisited in the future if other browsers add support for this feature. - Add the `--jsx-side-effects` API option ([#​2539](https://togithub.com/evanw/esbuild/issues/2539), [#​2546](https://togithub.com/evanw/esbuild/pull/2546)) By default esbuild assumes that JSX expressions are side-effect free, which means they are annoated with `/* @​__PURE__ */` comments and are removed during bundling when they are unused. This follows the common use of JSX for virtual DOM and applies to the vast majority of JSX libraries. However, some people have written JSX libraries that don't have this property. JSX expressions can have arbitrary side effects and can't be removed. If you are using such a library, you can now pass `--jsx-side-effects` to tell esbuild that JSX expressions have side effects so it won't remove them when they are unused. This feature was contributed by [@​rtsao](https://togithub.com/rtsao).
fastify/fastify ### [`v4.6.0`](https://togithub.com/fastify/fastify/releases/tag/v4.6.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v4.5.3...v4.6.0) #### What's Changed - chore: replace deprecated FastifyLoggerInstance occurences in typings with FastifyBaseLogger by [@​Uzlopak](https://togithub.com/Uzlopak) in [https://github.com/fastify/fastify/pull/4224](https://togithub.com/fastify/fastify/pull/4224) - fix(types): allow `fastify.https` to be `null` by [@​SuperchupuDev](https://togithub.com/SuperchupuDev) in [https://github.com/fastify/fastify/pull/4226](https://togithub.com/fastify/fastify/pull/4226) - chore: fix typo in docs for typescript chapter by [@​soomtong](https://togithub.com/soomtong) in [https://github.com/fastify/fastify/pull/4227](https://togithub.com/fastify/fastify/pull/4227) - build(deps-dev): bump tsd from 0.22.0 to 0.23.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify/pull/4231](https://togithub.com/fastify/fastify/pull/4231) - chore: update dependabot link by [@​leandroandrade](https://togithub.com/leandroandrade) in [https://github.com/fastify/fastify/pull/4232](https://togithub.com/fastify/fastify/pull/4232) - docs: improved migration guide for onRoute by [@​ShogunPanda](https://togithub.com/ShogunPanda) in [https://github.com/fastify/fastify/pull/4233](https://togithub.com/fastify/fastify/pull/4233) - docs: clarify setDefaultRoute scope by [@​jacobpgn](https://togithub.com/jacobpgn) in [https://github.com/fastify/fastify/pull/4236](https://togithub.com/fastify/fastify/pull/4236) - docs(ecosystem): add fastify-aws-timestream and fastify-aws-sns by [@​gzileni](https://togithub.com/gzileni) in [https://github.com/fastify/fastify/pull/4230](https://togithub.com/fastify/fastify/pull/4230) - docs(guides/migration-guide-v4): update content by [@​Fdawgs](https://togithub.com/Fdawgs) in [https://github.com/fastify/fastify/pull/4242](https://togithub.com/fastify/fastify/pull/4242) - Improve doc about configuring pino-pretty with TypeScript by [@​giacomorebonato](https://togithub.com/giacomorebonato) in [https://github.com/fastify/fastify/pull/4243](https://togithub.com/fastify/fastify/pull/4243) - build(deps): bump jsumners/lock-threads from [`b27edac`](https://togithub.com/fastify/fastify/commit/b27edac0ac998d42b2815e122b6c24b32b568321) to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/fastify/fastify/pull/4244](https://togithub.com/fastify/fastify/pull/4244) - Revert "build(deps): bump jsumners/lock-threads from [`b27edac`](https://togithub.com/fastify/fastify/commit/b27edac0ac998d42b2815e122b6c24b32b568321) to 3" by [@​climba03003](https://togithub.com/climba03003) in [https://github.com/fastify/fastify/pull/4245](https://togithub.com/fastify/fastify/pull/4245) - docs: Remove Ajv configuration from TypeBox Type Provider examples by [@​msmolens](https://togithub.com/msmolens) in [https://github.com/fastify/fastify/pull/4249](https://togithub.com/fastify/fastify/pull/4249) - fix: visit schemas with custom prototype by [@​Eomm](https://togithub.com/Eomm) in [https://github.com/fastify/fastify/pull/4248](https://togithub.com/fastify/fastify/pull/4248) - feat: add hasRoute by [@​Uzlopak](https://togithub.com/Uzlopak) in [https://github.com/fastify/fastify/pull/4238](https://togithub.com/fastify/fastify/pull/4238) - Docs: Fixing #schema-validator url at ./Reference/Server/#ajv by [@​wilbert-abreu](https://togithub.com/wilbert-abreu) in [https://github.com/fastify/fastify/pull/4253](https://togithub.com/fastify/fastify/pull/4253) - chore(doc): fix format by [@​Eomm](https://togithub.com/Eomm) in [https://github.com/fastify/fastify/pull/4255](https://togithub.com/fastify/fastify/pull/4255) - chore: export RouteGenericInterface by [@​ChrisCrewdson](https://togithub.com/ChrisCrewdson) in [https://github.com/fastify/fastify/pull/4234](https://togithub.com/fastify/fastify/pull/4234) - chore: improve `Ecosystem.md` linter to check for improper module name patterns by [@​nooreldeensalah](https://togithub.com/nooreldeensalah) in [https://github.com/fastify/fastify/pull/4257](https://togithub.com/fastify/fastify/pull/4257) - test: remove assert to invalid HTTP version by [@​RafaelGSS](https://togithub.com/RafaelGSS) in [https://github.com/fastify/fastify/pull/4260](https://togithub.com/fastify/fastify/pull/4260) - chore: improve `Ecosystem.md` linter to lint all sections by [@​nooreldeensalah](https://togithub.com/nooreldeensalah) in [https://github.com/fastify/fastify/pull/4258](https://togithub.com/fastify/fastify/pull/4258) - Fixing [#​4259](https://togithub.com/fastify/fastify/issues/4259) - Updating typescript example according to the validation changes by [@​iifawzi](https://togithub.com/iifawzi) in [https://github.com/fastify/fastify/pull/4261](https://togithub.com/fastify/fastify/pull/4261) - docs: add pubsub-http-handler by [@​cobraz](https://togithub.com/cobraz) in [https://github.com/fastify/fastify/pull/4263](https://togithub.com/fastify/fastify/pull/4263) - Variadic listen signature allows string port by [@​marco-ippolito](https://togithub.com/marco-ippolito) in [https://github.com/fastify/fastify/pull/4269](https://togithub.com/fastify/fastify/pull/4269) - doc: Remove Ajv configuration for TypeBox in TS examples by [@​pmbanugo](https://togithub.com/pmbanugo) in [https://github.com/fastify/fastify/pull/4268](https://togithub.com/fastify/fastify/pull/4268) - docs(ecosystem): add 2 new fastify v3.x+ plugins by [@​WNemencha](https://togithub.com/WNemencha) in [https://github.com/fastify/fastify/pull/4270](https://togithub.com/fastify/fastify/pull/4270) - docs(typescript): fix [#​4241](https://togithub.com/fastify/fastify/issues/4241) by [@​mortifia](https://togithub.com/mortifia) in [https://github.com/fastify/fastify/pull/4247](https://togithub.com/fastify/fastify/pull/4247) #### New Contributors - [@​SuperchupuDev](https://togithub.com/SuperchupuDev) made their first contribution in [https://github.com/fastify/fastify/pull/4226](https://togithub.com/fastify/fastify/pull/4226) - [@​soomtong](https://togithub.com/soomtong) made their first contribution in [https://github.com/fastify/fastify/pull/4227](https://togithub.com/fastify/fastify/pull/4227) - [@​leandroandrade](https://togithub.com/leandroandrade) made their first contribution in [https://github.com/fastify/fastify/pull/4232](https://togithub.com/fastify/fastify/pull/4232) - [@​jacobpgn](https://togithub.com/jacobpgn) made their first contribution in [https://github.com/fastify/fastify/pull/4236](https://togithub.com/fastify/fastify/pull/4236) - [@​giacomorebonato](https://togithub.com/giacomorebonato) made their first contribution in [https://github.com/fastify/fastify/pull/4243](https://togithub.com/fastify/fastify/pull/4243) - [@​msmolens](https://togithub.com/msmolens) made their first contribution in [https://github.com/fastify/fastify/pull/4249](https://togithub.com/fastify/fastify/pull/4249) - [@​wilbert-abreu](https://togithub.com/wilbert-abreu) made their first contribution in [https://github.com/fastify/fastify/pull/4253](https://togithub.com/fastify/fastify/pull/4253) - [@​ChrisCrewdson](https://togithub.com/ChrisCrewdson) made their first contribution in [https://github.com/fastify/fastify/pull/4234](https://togithub.com/fastify/fastify/pull/4234) - [@​iifawzi](https://togithub.com/iifawzi) made their first contribution in [https://github.com/fastify/fastify/pull/4261](https://togithub.com/fastify/fastify/pull/4261) - [@​cobraz](https://togithub.com/cobraz) made their first contribution in [https://github.com/fastify/fastify/pull/4263](https://togithub.com/fastify/fastify/pull/4263) - [@​marco-ippolito](https://togithub.com/marco-ippolito) made their first contribution in [https://github.com/fastify/fastify/pull/4269](https://togithub.com/fastify/fastify/pull/4269) - [@​pmbanugo](https://togithub.com/pmbanugo) made their first contribution in [https://github.com/fastify/fastify/pull/4268](https://togithub.com/fastify/fastify/pull/4268) - [@​WNemencha](https://togithub.com/WNemencha) made their first contribution in [https://github.com/fastify/fastify/pull/4270](https://togithub.com/fastify/fastify/pull/4270) - [@​mortifia](https://togithub.com/mortifia) made their first contribution in [https://github.com/fastify/fastify/pull/4247](https://togithub.com/fastify/fastify/pull/4247) **Full Changelog**: https://github.com/fastify/fastify/compare/v4.5.3...v4.6.0
karma-runner/karma ### [`v6.4.1`](https://togithub.com/karma-runner/karma/blob/HEAD/CHANGELOG.md#​641-httpsgithubcomkarma-runnerkarmacomparev640v641-2022-09-19) [Compare Source](https://togithub.com/karma-runner/karma/compare/v6.4.0...v6.4.1) ##### Bug Fixes - pass integrity value ([63d86be](https://togithub.com/karma-runner/karma/commit/63d86befd3431fe8e1500e22f4f115a3762d000a))

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.