Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @__KEY__ annotation to mangle string literals #1365

Merged
merged 4 commits into from Apr 13, 2023

Conversation

jpdutoit
Copy link
Contributor

@jpdutoit jpdutoit commented Apr 4, 2023

Here I add a new annotation @__KEY__ that when placed before a string literal causes it to be mangled like a property.

Example:

function lookup(object, key) {
   return object[key]
}
let result = lookup({ somekey: 5}, /*@__KEY__*/ "somekey") 
console.log(result) // prints 5 even if somekey was mangled

Do you think this should be part of Terser? Are you happy with the annotation name?

I'm leaving the readme and tests until it is decided that this is a useful feature...

Adding a @__KEY__ annotation before a string literal will now cause
it to be mangled like a property name during the mangle_props phase.
@fabiosantoscode
Copy link
Collaborator

Looks like a good idea!

I'm interested in seeing a test for /*@__key__*/ 'mykey' in obj because from a cursory look in the diff, it looks like mangle() might be called on that left-hand string twice (once for the "in" operator's left side, and again for the string itself).

@jpdutoit
Copy link
Contributor Author

I don't think it will double mangle, as the mangled string shouldn't be in the allow-list generated in the "find candidates to mangle" step, unless the mangled string is accidentally the same as one in that list 🤔

I will add a test as soon as I figure how how those mangle tests work...

@fabiosantoscode
Copy link
Collaborator

property mangle tests are located here:

https://github.com/terser/terser/blob/master/test/compress/mangleprops.js

You can run them with npm run test:compress -- mangleprops.js. They're basically input and output by example. options = assigns compress options and mangle = assigns mangle options. The input: {} and expect: {} labelled blocks are the input/expected output pairs.

Best of luck!

@jpdutoit
Copy link
Contributor Author

I managed to construct a failing case. It only triggers if you have an unrelated property elsewhere with the same name as the mangled property. I will fix this by clearing the annotation whenever an AST_string is mangled.

@jpdutoit
Copy link
Contributor Author

Ok, readme and tests are in!

@fabiosantoscode
Copy link
Collaborator

This is cool, thanks for the contribution!

@fabiosantoscode fabiosantoscode merged commit 3ab7bbf into terser:master Apr 13, 2023
8 checks passed
fwouts pushed a commit to fwouts/previewjs that referenced this pull request Jun 12, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [esbuild](https://togithub.com/evanw/esbuild) | [`^0.18.0` ->
`^0.18.1`](https://renovatebot.com/diffs/npm/esbuild/0.18.0/0.18.1) |
[![age](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/compatibility-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/confidence-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>evanw/esbuild</summary>

###
[`v0.18.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0181)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.18.0...v0.18.1)

- Fill in `null` entries in input source maps
([#&#8203;3144](https://togithub.com/evanw/esbuild/issues/3144))

If esbuild bundles input files with source maps and those source maps
contain a `sourcesContent` array with `null` entries, esbuild previously
copied those `null` entries over to the output source map. With this
release, esbuild will now attempt to fill in those `null` entries by
looking for a file on the file system with the corresponding name from
the `sources` array. This matches esbuild's existing behavior that
automatically generates the `sourcesContent` array from the file system
if the entire `sourcesContent` array is missing.

- Support `/* @&#8203;__KEY__ */` comments for mangling property names
([#&#8203;2574](https://togithub.com/evanw/esbuild/issues/2574))

Property mangling is an advanced feature that enables esbuild to minify
certain property names, even though it's not possible to automatically
determine that it's safe to do so. The safe property names are
configured via regular expression such as `--mangle-props=_$` (mangle
all properties ending in `_`).

Sometimes it's desirable to also minify strings containing property
names, even though it's not possible to automatically determine which
strings are property names. This release makes it possible to do this by
annotating those strings with `/* @&#8203;__KEY__ */`. This is a
convention that Terser added earlier this year, and which esbuild is now
following too:
[terser/terser#1365.
Using it looks like this:

    ```js
    // Original code
    console.log(
      [obj.mangle_, obj.keep],
      [obj.get('mangle_'), obj.get('keep')],
[obj.get(/* @&#8203;__KEY__ */ 'mangle_'), obj.get(/* @&#8203;__KEY__ */
'keep')],
    )

    // Old output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "mangle_"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );

    // New output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "a"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );
    ```

- Support `/* @&#8203;__NO_SIDE_EFFECTS__ */` comments for functions
([#&#8203;3149](https://togithub.com/evanw/esbuild/issues/3149))

Rollup has recently added support for `/* @&#8203;__NO_SIDE_EFFECTS__
*/` annotations before functions to indicate that calls to these
functions can be removed if the result is unused (i.e. the calls can be
assumed to have no side effects). This release adds basic support for
these to esbuild as well, which means esbuild will now parse these
comments in input files and preserve them in output files. This should
help people that use esbuild in combination with Rollup.

Note that this doesn't necessarily mean esbuild will treat these calls
as having no side effects, as esbuild's parallel architecture currently
isn't set up to enable this type of cross-file tree-shaking information
(tree-shaking decisions regarding a function call are currently local to
the file they appear in). If you want esbuild to consider a function
call to have no side effects, make sure you continue to annotate the
function call with `/* @&#8203;__PURE__ */` (which is the
previously-established convention for communicating this).

</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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/fwouts/previewjs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot added a commit to weareinreach/InReach that referenced this pull request Jun 12, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@aws-sdk/client-cognito-identity-provider](https://togithub.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider) ([source](https://togithub.com/aws/aws-sdk-js-v3)) | [`3.348.0` -> `3.350.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-cognito-identity-provider/3.348.0/3.350.0) | [![age](https://badges.renovateapi.com/packages/npm/@aws-sdk%2fclient-cognito-identity-provider/3.350.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@aws-sdk%2fclient-cognito-identity-provider/3.350.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@aws-sdk%2fclient-cognito-identity-provider/3.350.0/compatibility-slim/3.348.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@aws-sdk%2fclient-cognito-identity-provider/3.350.0/confidence-slim/3.348.0)](https://docs.renovatebot.com/merge-confidence/) |
| [@aws-sdk/client-s3](https://togithub.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3) ([source](https://togithub.com/aws/aws-sdk-js-v3)) | [`3.348.0` -> `3.350.0`](https://renovatebot.com/diffs/npm/@aws-sdk%2fclient-s3/3.348.0/3.350.0) | [![age](https://badges.renovateapi.com/packages/npm/@aws-sdk%2fclient-s3/3.350.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@aws-sdk%2fclient-s3/3.350.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@aws-sdk%2fclient-s3/3.350.0/compatibility-slim/3.348.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@aws-sdk%2fclient-s3/3.350.0/confidence-slim/3.348.0)](https://docs.renovatebot.com/merge-confidence/) |
| [@iconify-json/carbon](https://icon-sets.iconify.design/carbon/) | [`1.1.17` -> `1.1.18`](https://renovatebot.com/diffs/npm/@iconify-json%2fcarbon/1.1.17/1.1.18) | [![age](https://badges.renovateapi.com/packages/npm/@iconify-json%2fcarbon/1.1.18/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@iconify-json%2fcarbon/1.1.18/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@iconify-json%2fcarbon/1.1.18/compatibility-slim/1.1.17)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@iconify-json%2fcarbon/1.1.18/confidence-slim/1.1.17)](https://docs.renovatebot.com/merge-confidence/) |
| [@iconify-json/simple-icons](https://icon-sets.iconify.design/simple-icons/) | [`1.1.55` -> `1.1.56`](https://renovatebot.com/diffs/npm/@iconify-json%2fsimple-icons/1.1.55/1.1.56) | [![age](https://badges.renovateapi.com/packages/npm/@iconify-json%2fsimple-icons/1.1.56/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@iconify-json%2fsimple-icons/1.1.56/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@iconify-json%2fsimple-icons/1.1.56/compatibility-slim/1.1.55)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@iconify-json%2fsimple-icons/1.1.56/confidence-slim/1.1.55)](https://docs.renovatebot.com/merge-confidence/) |
| [@trpc/client](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.29.1` -> `10.30.0`](https://renovatebot.com/diffs/npm/@trpc%2fclient/10.29.1/10.30.0) | [![age](https://badges.renovateapi.com/packages/npm/@trpc%2fclient/10.30.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@trpc%2fclient/10.30.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@trpc%2fclient/10.30.0/compatibility-slim/10.29.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@trpc%2fclient/10.30.0/confidence-slim/10.29.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@trpc/next](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.29.1` -> `10.30.0`](https://renovatebot.com/diffs/npm/@trpc%2fnext/10.29.1/10.30.0) | [![age](https://badges.renovateapi.com/packages/npm/@trpc%2fnext/10.30.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@trpc%2fnext/10.30.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@trpc%2fnext/10.30.0/compatibility-slim/10.29.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@trpc%2fnext/10.30.0/confidence-slim/10.29.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@trpc/react-query](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.29.1` -> `10.30.0`](https://renovatebot.com/diffs/npm/@trpc%2freact-query/10.29.1/10.30.0) | [![age](https://badges.renovateapi.com/packages/npm/@trpc%2freact-query/10.30.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@trpc%2freact-query/10.30.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@trpc%2freact-query/10.30.0/compatibility-slim/10.29.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@trpc%2freact-query/10.30.0/confidence-slim/10.29.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@trpc/server](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.29.1` -> `10.30.0`](https://renovatebot.com/diffs/npm/@trpc%2fserver/10.29.1/10.30.0) | [![age](https://badges.renovateapi.com/packages/npm/@trpc%2fserver/10.30.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@trpc%2fserver/10.30.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@trpc%2fserver/10.30.0/compatibility-slim/10.29.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@trpc%2fserver/10.30.0/confidence-slim/10.29.1)](https://docs.renovatebot.com/merge-confidence/) |
| [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`18.16.16` -> `18.16.17`](https://renovatebot.com/diffs/npm/@types%2fnode/18.16.16/18.16.17) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.17/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.17/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.17/compatibility-slim/18.16.16)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.17/confidence-slim/18.16.16)](https://docs.renovatebot.com/merge-confidence/) |
| [@types/react](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`18.2.9` -> `18.2.11`](https://renovatebot.com/diffs/npm/@types%2freact/18.2.9/18.2.11) | [![age](https://badges.renovateapi.com/packages/npm/@types%2freact/18.2.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2freact/18.2.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2freact/18.2.11/compatibility-slim/18.2.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2freact/18.2.11/confidence-slim/18.2.9)](https://docs.renovatebot.com/merge-confidence/) |
| [@vercel/postgres-kysely](https://vercel.com) ([source](https://togithub.com/vercel/storage)) | [`0.3.0` -> `0.3.1`](https://renovatebot.com/diffs/npm/@vercel%2fpostgres-kysely/0.3.0/0.3.1) | [![age](https://badges.renovateapi.com/packages/npm/@vercel%2fpostgres-kysely/0.3.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@vercel%2fpostgres-kysely/0.3.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@vercel%2fpostgres-kysely/0.3.1/compatibility-slim/0.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@vercel%2fpostgres-kysely/0.3.1/confidence-slim/0.3.0)](https://docs.renovatebot.com/merge-confidence/) |
| [cookies-next](https://togithub.com/andreizanik/cookies-next) | [`2.1.1` -> `2.1.2`](https://renovatebot.com/diffs/npm/cookies-next/2.1.1/2.1.2) | [![age](https://badges.renovateapi.com/packages/npm/cookies-next/2.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/cookies-next/2.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/cookies-next/2.1.2/compatibility-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/cookies-next/2.1.2/confidence-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) |
| [esbuild](https://togithub.com/evanw/esbuild) | [`0.17.19` -> `0.18.1`](https://renovatebot.com/diffs/npm/esbuild/0.17.19/0.18.1) | [![age](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/compatibility-slim/0.17.19)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/confidence-slim/0.17.19)](https://docs.renovatebot.com/merge-confidence/) |
| [pnpm](https://pnpm.io) ([source](https://togithub.com/pnpm/pnpm)) | [`8.6.1` -> `8.6.2`](https://renovatebot.com/diffs/npm/pnpm/8.6.1/8.6.2) | [![age](https://badges.renovateapi.com/packages/npm/pnpm/8.6.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/pnpm/8.6.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/pnpm/8.6.2/compatibility-slim/8.6.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/pnpm/8.6.2/confidence-slim/8.6.1)](https://docs.renovatebot.com/merge-confidence/) |
| [postcss-loader](https://togithub.com/webpack-contrib/postcss-loader) | [`7.3.2` -> `7.3.3`](https://renovatebot.com/diffs/npm/postcss-loader/7.3.2/7.3.3) | [![age](https://badges.renovateapi.com/packages/npm/postcss-loader/7.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/postcss-loader/7.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/postcss-loader/7.3.3/compatibility-slim/7.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/postcss-loader/7.3.3/confidence-slim/7.3.2)](https://docs.renovatebot.com/merge-confidence/) |
| [react-error-boundary](https://togithub.com/bvaughn/react-error-boundary) | [`4.0.9` -> `4.0.10`](https://renovatebot.com/diffs/npm/react-error-boundary/4.0.9/4.0.10) | [![age](https://badges.renovateapi.com/packages/npm/react-error-boundary/4.0.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/react-error-boundary/4.0.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/react-error-boundary/4.0.10/compatibility-slim/4.0.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/react-error-boundary/4.0.10/confidence-slim/4.0.9)](https://docs.renovatebot.com/merge-confidence/) |
| [turbo](https://turbo.build/repo) ([source](https://togithub.com/vercel/turbo)) | [`1.10.2` -> `1.10.3`](https://renovatebot.com/diffs/npm/turbo/1.10.2/1.10.3) | [![age](https://badges.renovateapi.com/packages/npm/turbo/1.10.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/turbo/1.10.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/turbo/1.10.3/compatibility-slim/1.10.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/turbo/1.10.3/confidence-slim/1.10.2)](https://docs.renovatebot.com/merge-confidence/) |
| [zod-prisma-types](https://togithub.com/chrishoermann/zod-prisma-types) | [`2.7.1` -> `2.7.3`](https://renovatebot.com/diffs/npm/zod-prisma-types/2.7.1/2.7.3) | [![age](https://badges.renovateapi.com/packages/npm/zod-prisma-types/2.7.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/zod-prisma-types/2.7.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/zod-prisma-types/2.7.3/compatibility-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/zod-prisma-types/2.7.3/confidence-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>aws/aws-sdk-js-v3 (@&#8203;aws-sdk/client-cognito-identity-provider)</summary>

### [`v3.350.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-cognito-identity-provider/CHANGELOG.md#&#8203;33500-httpsgithubcomawsaws-sdk-js-v3comparev33490v33500-2023-06-09)

[Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.348.0...v3.350.0)

**Note:** Version bump only for package [@&#8203;aws-sdk/client-cognito-identity-provider](https://togithub.com/aws-sdk/client-cognito-identity-provider)

</details>

<details>
<summary>aws/aws-sdk-js-v3 (@&#8203;aws-sdk/client-s3)</summary>

### [`v3.350.0`](https://togithub.com/aws/aws-sdk-js-v3/blob/HEAD/clients/client-s3/CHANGELOG.md#&#8203;33500-httpsgithubcomawsaws-sdk-js-v3comparev33490v33500-2023-06-09)

[Compare Source](https://togithub.com/aws/aws-sdk-js-v3/compare/v3.348.0...v3.350.0)

**Note:** Version bump only for package [@&#8203;aws-sdk/client-s3](https://togithub.com/aws-sdk/client-s3)

</details>

<details>
<summary>trpc/trpc</summary>

### [`v10.30.0`](https://togithub.com/trpc/trpc/releases/tag/v10.30.0)

[Compare Source](https://togithub.com/trpc/trpc/compare/v10.29.1...v10.30.0)

##### What's Changed

-   fix(`react-query`): initialData & placeholderData does not enforce output types by [@&#8203;juliusmarminge](https://togithub.com/juliusmarminge) in [https://github.com/trpc/trpc/pull/4494](https://togithub.com/trpc/trpc/pull/4494)
-   fix(`client`): add minimal `WebReadableStreamEsque` for compatibility across envs by [@&#8203;Sheraff](https://togithub.com/Sheraff) in [https://github.com/trpc/trpc/pull/4508](https://togithub.com/trpc/trpc/pull/4508)
-   feat(`react-query` + `next`): remove suspense feature flag by [@&#8203;KATT](https://togithub.com/KATT) in [https://github.com/trpc/trpc/pull/4510](https://togithub.com/trpc/trpc/pull/4510)

##### New Contributors

-   [@&#8203;tobihans](https://togithub.com/tobihans) made their first contribution in [https://github.com/trpc/trpc/pull/4458](https://togithub.com/trpc/trpc/pull/4458)
-   [@&#8203;SiNONiMiTY](https://togithub.com/SiNONiMiTY) made their first contribution in [https://github.com/trpc/trpc/pull/4506](https://togithub.com/trpc/trpc/pull/4506)

**Full Changelog**: https://github.com/trpc/trpc/compare/v10.29.1...v10.30.0

</details>

<details>
<summary>vercel/storage</summary>

### [`v0.3.1`](https://togithub.com/vercel/storage/blob/HEAD/packages/postgres-kysely/CHANGELOG.md#&#8203;031)

[Compare Source](https://togithub.com/vercel/storage/compare/@vercel/postgres-kysely@0.3.0...@vercel/postgres-kysely@0.3.1)

##### Patch Changes

-   [`cec1d6b`](https://togithub.com/vercel/storage/commit/cec1d6b): Upgrade [@&#8203;neondatabase/serverless](https://togithub.com/neondatabase/serverless) to 0.4.11
-   Updated dependencies \[[`cec1d6b`](https://togithub.com/vercel/storage/commit/cec1d6b)]
    -   [@&#8203;vercel/postgres](https://togithub.com/vercel/postgres)[@&#8203;0](https://togithub.com/0).3.1

</details>

<details>
<summary>andreizanik/cookies-next</summary>

### [`v2.1.2`](https://togithub.com/andreizanik/cookies-next/releases/tag/v2.1.2): Add JSDoc for deprecated methods

[Compare Source](https://togithub.com/andreizanik/cookies-next/compare/v2.1.1...v2.1.2)

#### What's Changed

-   chore: Add JSDoc for deprecated methods by [@&#8203;minsoo-web](https://togithub.com/minsoo-web) in [https://github.com/andreizanik/cookies-next/pull/41](https://togithub.com/andreizanik/cookies-next/pull/41)

#### New Contributors

-   [@&#8203;minsoo-web](https://togithub.com/minsoo-web) made their first contribution in [https://github.com/andreizanik/cookies-next/pull/41](https://togithub.com/andreizanik/cookies-next/pull/41)

**Full Changelog**: https://github.com/andreizanik/cookies-next/compare/v2.1.1...v2.1.2

</details>

<details>
<summary>evanw/esbuild</summary>

### [`v0.18.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0181)

[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.0...v0.18.1)

-   Fill in `null` entries in input source maps ([#&#8203;3144](https://togithub.com/evanw/esbuild/issues/3144))

    If esbuild bundles input files with source maps and those source maps contain a `sourcesContent` array with `null` entries, esbuild previously copied those `null` entries over to the output source map. With this release, esbuild will now attempt to fill in those `null` entries by looking for a file on the file system with the corresponding name from the `sources` array. This matches esbuild's existing behavior that automatically generates the `sourcesContent` array from the file system if the entire `sourcesContent` array is missing.

-   Support `/* @&#8203;__KEY__ */` comments for mangling property names ([#&#8203;2574](https://togithub.com/evanw/esbuild/issues/2574))

    Property mangling is an advanced feature that enables esbuild to minify certain property names, even though it's not possible to automatically determine that it's safe to do so. The safe property names are configured via regular expression such as `--mangle-props=_$` (mangle all properties ending in `_`).

    Sometimes it's desirable to also minify strings containing property names, even though it's not possible to automatically determine which strings are property names. This release makes it possible to do this by annotating those strings with `/* @&#8203;__KEY__ */`. This is a convention that Terser added earlier this year, and which esbuild is now following too: [https://github.com/terser/terser/pull/1365](https://togithub.com/terser/terser/pull/1365). Using it looks like this:

    ```js
    // Original code
    console.log(
      [obj.mangle_, obj.keep],
      [obj.get('mangle_'), obj.get('keep')],
      [obj.get(/* @&#8203;__KEY__ */ 'mangle_'), obj.get(/* @&#8203;__KEY__ */ 'keep')],
    )

    // Old output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
      [obj.get(/* @&#8203;__KEY__ */ "mangle_"), obj.get(/* @&#8203;__KEY__ */ "keep")]
    );

    // New output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
      [obj.get(/* @&#8203;__KEY__ */ "a"), obj.get(/* @&#8203;__KEY__ */ "keep")]
    );
    ```

-   Support `/* @&#8203;__NO_SIDE_EFFECTS__ */` comments for functions ([#&#8203;3149](https://togithub.com/evanw/esbuild/issues/3149))

    Rollup has recently added support for `/* @&#8203;__NO_SIDE_EFFECTS__ */` annotations before functions to indicate that calls to these functions can be removed if the result is unused (i.e. the calls can be assumed to have no side effects). This release adds basic support for these to esbuild as well, which means esbuild will now parse these comments in input files and preserve them in output files. This should help people that use esbuild in combination with Rollup.

    Note that this doesn't necessarily mean esbuild will treat these calls as having no side effects, as esbuild's parallel architecture currently isn't set up to enable this type of cross-file tree-shaking information (tree-shaking decisions regarding a function call are currently local to the file they appear in). If you want esbuild to consider a function call to have no side effects, make sure you continue to annotate the function call with `/* @&#8203;__PURE__ */` (which is the previously-established convention for communicating this).

### [`v0.18.0`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0180)

[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.17.19...v0.18.0)

**This release deliberately contains backwards-incompatible changes.** To avoid automatically picking up releases like this, you should either be pinning the exact version of `esbuild` in your `package.json` file (recommended) or be using a version range syntax that only accepts patch upgrades such as `^0.17.0` or `~0.17.0`. See npm's documentation about [semver](https://docs.npmjs.com/cli/v6/using-npm/semver/) for more information.

The breaking changes in this release mainly focus on fixing some long-standing issues with esbuild's handling of `tsconfig.json` files. Here are all the changes in this release, in detail:

-   Add a way to try esbuild online ([#&#8203;797](https://togithub.com/evanw/esbuild/issues/797))

    There is now a way to try esbuild live on esbuild's website without installing it: https://esbuild.github.io/try/. In addition to being able to more easily evaluate esbuild, this should also make it more efficient to generate esbuild bug reports. For example, you can use it to compare the behavior of different versions of esbuild on the same input. The state of the page is stored in the URL for easy sharing. Many thanks to [@&#8203;hyrious](https://togithub.com/hyrious) for creating https://hyrious.me/esbuild-repl/, which was the main inspiration for this addition to esbuild's website.

    Two forms of build options are supported: either CLI-style ([example](https://esbuild.github.io/try/#dAAwLjE3LjE5AC0tbG9hZGVyPXRzeCAtLW1pbmlmeSAtLXNvdXJjZW1hcABsZXQgZWw6IEpTWC5FbGVtZW50ID0gPGRpdiAvPg)) or JS-style ([example](https://esbuild.github.io/try/#dAAwLjE3LjE5AHsKICBsb2FkZXI6ICd0c3gnLAogIG1pbmlmeTogdHJ1ZSwKICBzb3VyY2VtYXA6IHRydWUsCn0AbGV0IGVsOiBKU1guRWxlbWVudCA9IDxkaXYgLz4)). Both are converted into a JS object that's passed to esbuild's WebAssembly API. The CLI-style argument parser is a custom one that simulates shell quoting rules, and the JS-style argument parser is also custom and parses a superset of JSON (basically JSON5 + regular expressions). So argument parsing is an approximate simulation of what happens for real but hopefully it should be close enough.

-   Changes to esbuild's `tsconfig.json` support ([#&#8203;3019](https://togithub.com/evanw/esbuild/issues/3019)):

    This release makes the following changes to esbuild's `tsconfig.json` support:

    -   Using experimental decorators now requires `"experimentalDecorators": true` ([#&#8203;104](https://togithub.com/evanw/esbuild/issues/104))

        Previously esbuild would always compile decorators in TypeScript code using TypeScript's experimental decorator transform. Now that standard JavaScript decorators are close to being finalized, esbuild will now require you to use `"experimentalDecorators": true` to do this. This new requirement makes it possible for esbuild to introduce a transform for standard JavaScript decorators in TypeScript code in the future. Such a transform has not been implemented yet, however.

    -   TypeScript's `target` no longer affects esbuild's `target` ([#&#8203;2628](https://togithub.com/evanw/esbuild/issues/2628))

        Some people requested that esbuild support TypeScript's `target` setting, so support for it was added (in [version 0.12.4](https://togithub.com/evanw/esbuild/releases/v0.12.4)). However, esbuild supports reading from multiple `tsconfig.json` files within a single build, which opens up the possibility that different files in the build have different language targets configured. There isn't really any reason to do this and it can lead to unexpected results. So with this release, the `target` setting in `tsconfig.json` will no longer affect esbuild's own `target` setting. You will have to use esbuild's own target setting instead (which is a single, global value).

    -   TypeScript's `jsx` setting no longer causes esbuild to preserve JSX syntax ([#&#8203;2634](https://togithub.com/evanw/esbuild/issues/2634))

        TypeScript has a setting called [`jsx`](https://www.typescriptlang.org/tsconfig#jsx) that controls how to transform JSX into JS. The tool-agnostic transform is called `react`, and the React-specific transform is called `react-jsx` (or `react-jsxdev`). There is also a setting called `preserve` which indicates JSX should be passed through untransformed. Previously people would run esbuild with `"jsx": "preserve"` in their `tsconfig.json` files and then be surprised when esbuild preserved their JSX. So with this release, esbuild will now ignore `"jsx": "preserve"` in `tsconfig.json` files. If you want to preserve JSX syntax with esbuild, you now have to use `--jsx=preserve`.

        Note: Some people have suggested that esbuild's equivalent `jsx` setting override the one in `tsconfig.json`. However, some projects need to legitimately have different files within the same build use different transforms (i.e. `react` vs. `react-jsx`) and having esbuild's global `jsx` setting override `tsconfig.json` would prevent this from working. This release ignores `"jsx": "preserve"` but still allows other `jsx` values in `tsconfig.json` files to override esbuild's global `jsx` setting to keep the ability for multiple files within the same build to use different transforms.

    -   `useDefineForClassFields` behavior has changed ([#&#8203;2584](https://togithub.com/evanw/esbuild/issues/2584), [#&#8203;2993](https://togithub.com/evanw/esbuild/issues/2993))

        Class fields in TypeScript look like this (`x` is a class field):

        ```js
        class Foo {
          x = 123
        }
        ```

        TypeScript has legacy behavior that uses assignment semantics instead of define semantics for class fields when [`useDefineForClassFields`](https://www.typescriptlang.org/tsconfig#useDefineForClassFields) is enabled (in which case class fields in TypeScript behave differently than they do in JavaScript, which is arguably "wrong").

        This legacy behavior exists because TypeScript added class fields to TypeScript before they were added to JavaScript. The TypeScript team decided to go with assignment semantics and shipped their implementation. Much later on TC39 decided to go with define semantics for class fields in JavaScript instead. This behaves differently if the base class has a setter with the same name:

        ```js
        class Base {
          set x(_) {
            console.log('x:', _)
          }
        }

        // useDefineForClassFields: false
        class AssignSemantics extends Base {
          constructor() {
            super()
            this.x = 123
          }
        }

        // useDefineForClassFields: true
        class DefineSemantics extends Base {
          constructor() {
            super()
            Object.defineProperty(this, 'x', { value: 123 })
          }
        }

        console.log(
          new AssignSemantics().x, // Calls the setter
          new DefineSemantics().x // Doesn't call the setter
        )
        ```

        When you run `tsc`, the value of `useDefineForClassFields` defaults to `false` when it's not specified and the `target` in `tsconfig.json` is present but earlier than `ES2022`. This sort of makes sense because the class field language feature was added in ES2022, so before ES2022 class fields didn't exist (and thus TypeScript's legacy behavior is active). However, TypeScript's `target` setting currently defaults to `ES3` which unfortunately means that the `useDefineForClassFields` setting currently defaults to false (i.e. to "wrong"). In other words if you run `tsc` with all default settings, class fields will behave incorrectly.

        Previously esbuild tried to do what `tsc` did. That meant esbuild's version of `useDefineForClassFields` was `false` by default, and was also `false` if esbuild's `--target=` was present but earlier than `es2022`. However, TypeScript's legacy class field behavior is becoming increasingly irrelevant and people who expect class fields in TypeScript to work like they do in JavaScript are confused when they use esbuild with default settings. It's also confusing that the behavior of class fields would change if you changed the language target (even though that's exactly how TypeScript works).

        So with this release, esbuild will now only use the information in `tsconfig.json` to determine whether `useDefineForClassFields` is true or not. Specifically `useDefineForClassFields` will be respected if present, otherwise it will be `false` if `target` is present in `tsconfig.json` and is `ES2021` or earlier, otherwise it will be `true`. Targets passed to esbuild's `--target=` setting will no longer affect `useDefineForClassFields`.

        Note that this means different directories in your build can have different values for this setting since esbuild allows different directories to have different `tsconfig.json` files within the same build. This should let you migrate your code one directory at a time without esbuild's `--target=` setting affecting the semantics of your code.

    -   Add support for `verbatimModuleSyntax` from TypeScript 5.0

        TypeScript 5.0 added a new option called [`verbatimModuleSyntax`](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax) that deprecates and replaces two older options, `preserveValueImports` and `importsNotUsedAsValues`. Setting `verbatimModuleSyntax` to true in `tsconfig.json` tells esbuild to not drop unused import statements. Specifically esbuild now treats `"verbatimModuleSyntax": true` as if you had specified both `"preserveValueImports": true` and `"importsNotUsedAsValues": "preserve"`.

    -   Add multiple inheritance for `tsconfig.json` from TypeScript 5.0

        TypeScript 5.0 now allows [multiple inheritance for `tsconfig.json` files](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#supporting-multiple-configuration-files-in-extends). You can now pass an array of filenames via the `extends` parameter and your `tsconfig.json` will start off containing properties from all of those configuration files, in order. This release of esbuild adds support for this new TypeScript feature.

    -   Remove support for `moduleSuffixes` ([#&#8203;2395](https://togithub.com/evanw/esbuild/issues/2395))

        The community has requested that esbuild remove support for TypeScript's `moduleSuffixes` feature, so it has been removed in this release. Instead you can use esbuild's `--resolve-extensions=` feature to select which module suffix you want to build with.

    -   Apply `--tsconfig=` overrides to `stdin` and virtual files ([#&#8203;385](https://togithub.com/evanw/esbuild/issues/385), [#&#8203;2543](https://togithub.com/evanw/esbuild/issues/2543))

        When you override esbuild's automatic `tsconfig.json` file detection with `--tsconfig=` to pass a specific `tsconfig.json` file, esbuild previously didn't apply these settings to source code passed via the `stdin` API option or to TypeScript files from plugins that weren't in the `file` namespace. This release changes esbuild's behavior so that settings from `tsconfig.json` also apply to these source code files as well.

    -   Support `--tsconfig-raw=` in build API calls ([#&#8203;943](https://togithub.com/evanw/esbuild/issues/943), [#&#8203;2440](https://togithub.com/evanw/esbuild/issues/2440))

        Previously if you wanted to override esbuild's automatic `tsconfig.json` file detection, you had to create a new `tsconfig.json` file and pass the file name to esbuild via the `--tsconfig=` flag. With this release, you can now optionally use `--tsconfig-raw=` instead to pass the contents of `tsconfig.json` to esbuild directly instead of passing the file name. For example, you can now use `--tsconfig-raw={"compilerOptions":{"experimentalDecorators":true}}` to enable TypeScript experimental decorators directly using a command-line flag (assuming you escape the quotes correctly using your current shell's quoting rules). The `--tsconfig-raw=` flag previously only worked with transform API calls but with this release, it now works with build API calls too.

    -   Ignore all `tsconfig.json` files in `node_modules` ([#&#8203;276](https://togithub.com/evanw/esbuild/issues/276), [#&#8203;2386](https://togithub.com/evanw/esbuild/issues/2386))

        This changes esbuild's behavior that applies `tsconfig.json` to all files in the subtree of the directory containing `tsconfig.json`. In version 0.12.7, esbuild started ignoring `tsconfig.json` files inside `node_modules` folders. The rationale is that people typically do this by mistake and that doing this intentionally is a rare use case that doesn't need to be supported. However, this change only applied to certain syntax-specific settings (e.g. `jsxFactory`) but did not apply to path resolution settings (e.g. `paths`). With this release, esbuild will now ignore all `tsconfig.json` files in `node_modules` instead of only ignoring certain settings.

    -   Ignore `tsconfig.json` when resolving paths within `node_modules` ([#&#8203;2481](https://togithub.com/evanw/esbuild/issues/2481))

        Previously fields in `tsconfig.json` related to path resolution (e.g. `paths`) were respected for all files in the subtree containing that `tsconfig.json` file, even within a nested `node_modules` subdirectory. This meant that a project's `paths` settings could potentially affect any bundled packages. With this release, esbuild will no longer use `tsconfig.json` settings during path resolution inside nested `node_modules` subdirectories.

    -   Prefer `.js` over `.ts` within `node_modules` ([#&#8203;3019](https://togithub.com/evanw/esbuild/issues/3019))

        The default list of implicit extensions that esbuild will try appending to import paths contains `.ts` before `.js`. This makes it possible to bundle TypeScript projects that reference other files in the project using extension-less imports (e.g. `./some-file` to load `./some-file.ts` instead of `./some-file.js`). However, this behavior is undesirable within `node_modules` directories. Some package authors publish both their original TypeScript code and their compiled JavaScript code side-by-side. In these cases, esbuild should arguably be using the compiled JavaScript files instead of the original TypeScript files because the TypeScript compilation settings for files within the package should be determined by the package author, not the user of esbuild. So with this release, esbuild will now prefer implicit `.js` extensions over `.ts` when searching for import paths within `node_modules`.

    These changes are intended to improve esbuild's compatibility with `tsc` and reduce the number of unfortunate behaviors regarding `tsconfig.json` and esbuild.

-   Add a workaround for bugs in Safari 16.2 and earlier ([#&#8203;3072](https://togithub.com/evanw/esbuild/issues/3072))

    Safari's JavaScript parser had a bug (which has now been fixed) where at least something about unary/binary operators nested inside default arguments nested inside either a function or class expression was incorrectly considered a syntax error if that expression was the target of a property assignment. Here are some examples that trigger this Safari bug:

        ❱ x(function (y = -1) {}.z = 2)
        SyntaxError: Left hand side of operator '=' must be a reference.

        ❱ x(class { f(y = -1) {} }.z = 2)
        SyntaxError: Left hand side of operator '=' must be a reference.

    It's not clear what the exact conditions are that trigger this bug. However, a workaround for this bug appears to be to post-process your JavaScript to wrap any in function and class declarations that are the direct target of a property access expression in parentheses. That's the workaround that UglifyJS applies for this issue: [mishoo/UglifyJS#&#8203;2056](https://togithub.com/mishoo/UglifyJS/pull/2056). So that's what esbuild now does starting with this release:

    ```js
    // Original code
    x(function (y = -1) {}.z = 2, class { f(y = -1) {} }.z = 2)

    // Old output (with --minify --target=safari16.2)
    x(function(c=-1){}.z=2,class{f(c=-1){}}.z=2);

    // New output (with --minify --target=safari16.2)
    x((function(c=-1){}).z=2,(class{f(c=-1){}}).z=2);
    ```

    This fix is not enabled by default. It's only enabled when `--target=` contains Safari 16.2 or earlier, such as with `--target=safari16.2`. You can also explicitly enable or disable this specific transform (called `function-or-class-property-access`) with `--supported:function-or-class-property-access=false`.

-   Fix esbuild's TypeScript type declarations to forbid unknown properties ([#&#8203;3089](https://togithub.com/evanw/esbuild/issues/3089))

    Version 0.17.0 of esbuild introduced a specific form of function overloads in the TypeScript type definitions for esbuild's API calls that looks like this:

    ```ts
    interface TransformOptions {
      legalComments?: 'none' | 'inline' | 'eof' | 'external'
    }

    interface TransformResult<ProvidedOptions extends TransformOptions = TransformOptions> {
      legalComments: string | (ProvidedOptions['legalComments'] extends 'external' ? never : undefined)
    }

    declare function transformSync<ProvidedOptions extends TransformOptions>(input: string, options?: ProvidedOptions): TransformResult<ProvidedOptions>
    declare function transformSync(input: string, options?: TransformOptions): TransformResult
    ```

    This more accurately reflects how esbuild's JavaScript API behaves. The result object returned by `transformSync` only has the `legalComments` property if you pass `legalComments: 'external'`:

    ```ts
    // These have type "string | undefined"
    transformSync('').legalComments
    transformSync('', { legalComments: 'eof' }).legalComments

    // This has type "string"
    transformSync('', { legalComments: 'external' }).legalComments
    ```

    However, this form of function overloads unfortunately allows typos (e.g. `egalComments`) to pass the type checker without generating an error as TypeScript allows all objects with unknown properties to extend `TransformOptions`. These typos result in esbuild's API throwing an error at run-time.

    To prevent typos during type checking, esbuild's TypeScript type definitions will now use a different form that looks like this:

    ```ts
    type SameShape<Out, In extends Out> = In & { [Key in Exclude<keyof In, keyof Out>]: never }

    interface TransformOptions {
      legalComments?: 'none' | 'inline' | 'eof' | 'external'
    }

    interface TransformResult<ProvidedOptions extends TransformOptions = TransformOptions> {
      legalComments: string | (ProvidedOptions['legalComments'] extends 'external' ? never : undefined)
    }

    declare function transformSync<T extends TransformOptions>(input: string, options?: SameShape<TransformOptions, T>): TransformResult<T>
    ```

    This change should hopefully not affect correct code. It should hopefully introduce type errors only for incorrect code.

-   Fix CSS nesting transform for pseudo-elements ([#&#8203;3119](https://togithub.com/evanw/esbuild/issues/3119))

    This release fixes esbuild's CSS nesting transform for pseudo-elements (e.g. `::before` and `::after`). The CSS nesting specification says that [the nesting selector does not work with pseudo-elements](https://www.w3.org/TR/css-nesting-1/#ref-for-matches-pseudo%E2%91%A0). This can be seen in the example below: esbuild does not carry the parent pseudo-element `::before` through the nesting selector `&`. However, that doesn't apply to pseudo-elements that are within the same selector. Previously esbuild had a bug where it considered pseudo-elements in both locations as invalid. This release changes esbuild to only consider those from the parent selector invalid, which should align with the specification:

    ```css
    /* Original code */
    a, b::before {
      &.c, &::after {
        content: 'd';
      }
    }

    /* Old output (with --target=chrome90) */
    a:is(.c, ::after) {
      content: "d";
    }

    /* New output (with --target=chrome90) */
    a.c,
    a::after {
      content: "d";
    }
    ```

-   Forbid `&` before a type selector in nested CSS

    The people behind the work-in-progress CSS nesting specification have very recently [decided to forbid nested CSS that looks like `&div`](https://togithub.com/w3c/csswg-drafts/issues/8662#issuecomment-1514977935). You will have to use either `div&` or `&:is(div)` instead. This release of esbuild has been updated to take this new change into consideration. Doing this now generates a warning. The suggested fix is slightly different depending on where in the overall selector it happened:

        ▲ [WARNING] Cannot use type selector "input" directly after nesting selector "&" [css-syntax-error]

            example.css:2:3:
              2 │   &input {
                │    ~~~~~
                ╵    :is(input)

          CSS nesting syntax does not allow the "&" selector to come before a type selector. You can wrap
          this selector in ":is()" as a workaround. This restriction exists to avoid problems with SASS
          nesting, where the same syntax means something very different that has no equivalent in real CSS
          (appending a suffix to the parent selector).

        ▲ [WARNING] Cannot use type selector "input" directly after nesting selector "&" [css-syntax-error]

            example.css:6:8:
              6 │   .form &input {
                │         ~~~~~~
                ╵         input&

          CSS nesting syntax does not allow the "&" selector to come before a type selector. You can move
          the "&" to the end of this selector as a workaround. This restriction exists to avoid problems
          with SASS nesting, where the same syntax means something very different that has no equivalent in
          real CSS (appending a suffix to the parent selector).

</details>

<details>
<summary>pnpm/pnpm</summary>

### [`v8.6.2`](https://togithub.com/pnpm/pnpm/releases/tag/v8.6.2)

[Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.6.1...v8.6.2)

#### Patch Changes

-   Change lockfile version back to 6.0 as previous versions of pnpm fail to parse the version correctly [#&#8203;6648](https://togithub.com/pnpm/pnpm/issues/6648)
-   When patching a dependency, only consider files specified in the 'files' field of its package.json. Ignore all others [#&#8203;6565](https://togithub.com/pnpm/pnpm/issues/6565)
-   Should always treat local file dependency as new dependency [#&#8203;5381](https://togithub.com/pnpm/pnpm/issues/5381)
-   Output a warning message when "pnpm" or "resolutions" are configured in a non-root workspace project [#&#8203;6636](https://togithub.com/pnpm/pnpm/issues/6636)

#### Our Gold Sponsors

<table>
  <tbody>
    <tr>
      <td align="center" valign="middle">
        <a href="https://novu.co/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/novu.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/novu_light.svg" />
            <img src="https://pnpm.io/img/users/novu.svg" width="180" />
          </picture>
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://prisma.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/prisma.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/prisma_light.svg" />
            <img src="https://pnpm.io/img/users/prisma.svg" width="180" />
          </picture>
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://www.flightcontrol.dev/?ref=pnpm" target="_blank"><img src="https://pnpm.io/img/users/flightcontrol.svg" width="240"></a>
      </td>
    </tr>
  </tbody>
</table>

#### Our Silver Sponsors

<table>
  <tbody>
    <tr>
      <td align="center" valign="middle">
        <a href="https://leniolabs.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <img src="https://pnpm.io/img/users/leniolabs.jpg" width="80">
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://vercel.com/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/vercel.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/vercel_light.svg" />
            <img src="https://pnpm.io/img/users/vercel.svg" width="180" />
          </picture>
        </a>
      </td>
    </tr>
    <tr>
      <td align="center" valign="middle">
        <a href="https://depot.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/depot.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/depot_light.svg" />
            <img src="https://pnpm.io/img/users/depot.svg" width="200" />
          </picture>
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://moonrepo.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/moonrepo.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/moonrepo_light.svg" />
            <img src="https://pnpm.io/img/users/moonrepo.svg" width="200" />
          </picture>
        </a>
      </td>
    </tr>
    <tr>
      <td align="center" valign="middle">
        <a href="https://www.thinkmill.com.au/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/thinkmill.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/thinkmill_light.svg" />
            <img src="https://pnpm.io/img/users/thinkmill.svg" width="200" />
          </picture>
        </a>
      </td>
      <td align="center" valign="middle">
        <a href="https://devowl.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank">
          <picture>
            <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/devowlio.svg" />
            <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/devowlio.svg" />
            <img src="https://pnpm.io/img/users/devowlio.svg" width="200" />
          </picture>
        </a>
      </td>
    </tr>
  </tbody>
</table>

</details>

<details>
<summary>webpack-contrib/postcss-loader</summary>

### [`v7.3.3`](https://togithub.com/webpack-contrib/postcss-loader/blob/HEAD/CHANGELOG.md#&#8203;733-httpsgithubcomwebpack-contribpostcss-loadercomparev732v733-2023-06-10)

[Compare Source](https://togithub.com/webpack-contrib/postcss-loader/compare/v7.3.2...v7.3.3)

</details>

<details>
<summary>bvaughn/react-error-boundary</summary>

### [`v4.0.10`](https://togithub.com/bvaughn/react-error-boundary/releases/tag/4.0.10)

[Compare Source](https://togithub.com/bvaughn/react-error-boundary/compare/4.0.9...4.0.10)

-   Target Safari 12+ compatibility (by removing optional chaining operator and default parameters)

</details>

<details>
<summary>vercel/turbo</summary>

### [`v1.10.3`](https://togithub.com/vercel/turbo/releases/tag/v1.10.3): Turborepo v1.10.3

[Compare Source](https://togithub.com/vercel/turbo/compare/v1.10.2...v1.10.3)



#### What's Changed

##### Changelog

-   release(turborepo): 1.10.2 by [@&#8203;github-actions](https://togithub.com/github-actions) in [https://github.com/vercel/turbo/pull/5229](https://togithub.com/vercel/turbo/pull/5229)
-   fix(ffi): fix Rust dangling pointer  by [@&#8203;chris-olszewski](https://togithub.com/chris-olszewski) in [https://github.com/vercel/turbo/pull/5230](https://togithub.com/vercel/turbo/pull/5230)
-   feat(turborepo): implement package.json discovery by [@&#8203;gsoltis](https://togithub.com/gsoltis) in [https://github.com/vercel/turbo/pull/5225](https://togithub.com/vercel/turbo/pull/5225)
-   feat(run summary): Add whether turbo detected monorepo or not by [@&#8203;mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turbo/pull/5241](https://togithub.com/vercel/turbo/pull/5241)
-   ci(examples): Skip npm install when setting up git for examples tests by [@&#8203;mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turbo/pull/5240](https://togithub.com/vercel/turbo/pull/5240)
-   docs: document that multiple --filters are unions by [@&#8203;mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turbo/pull/5247](https://togithub.com/vercel/turbo/pull/5247)

**Full Changelog**: https://github.com/vercel/turbo/compare/v1.10.2...v1.10.3

</details>

<details>
<summary>chrishoermann/zod-prisma-types</summary>

### [`v2.7.3`](https://togithub.com/chrishoermann/zod-prisma-types/compare/v2.7.2...7d04207351b4338aaae0b4bb5fb654c8e73c5819)

[Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/v2.7.2...7d04207351b4338aaae0b4bb5fb654c8e73c5819)

### [`v2.7.2`](https://togithub.com/chrishoermann/zod-prisma-types/releases/tag/v2.7.2): 2.7.2

[Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/v2.7.1...v2.7.2)

#### What's changed

-   fixed import bug [#&#8203;147](https://togithub.com/chrishoermann/zod-prisma-types/issues/147)

**Full Changelog**: https://github.com/chrishoermann/zod-prisma-types/compare/v2.7.1...v2.7.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/weareinreach/InReach).



PR-URL: https://github.com/weareinreach/InReach/pull/568
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
ajvpot pushed a commit to ajvpot/lockfileparsergo that referenced this pull request Jun 12, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [esbuild](https://togithub.com/evanw/esbuild) | [`0.18.0` ->
`0.18.1`](https://renovatebot.com/diffs/npm/esbuild/0.18.0/0.18.1) |
[![age](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/compatibility-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/confidence-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>evanw/esbuild</summary>

###
[`v0.18.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0181)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.18.0...v0.18.1)

- Fill in `null` entries in input source maps
([#&#8203;3144](https://togithub.com/evanw/esbuild/issues/3144))

If esbuild bundles input files with source maps and those source maps
contain a `sourcesContent` array with `null` entries, esbuild previously
copied those `null` entries over to the output source map. With this
release, esbuild will now attempt to fill in those `null` entries by
looking for a file on the file system with the corresponding name from
the `sources` array. This matches esbuild's existing behavior that
automatically generates the `sourcesContent` array from the file system
if the entire `sourcesContent` array is missing.

- Support `/* @&#8203;__KEY__ */` comments for mangling property names
([#&#8203;2574](https://togithub.com/evanw/esbuild/issues/2574))

Property mangling is an advanced feature that enables esbuild to minify
certain property names, even though it's not possible to automatically
determine that it's safe to do so. The safe property names are
configured via regular expression such as `--mangle-props=_$` (mangle
all properties ending in `_`).

Sometimes it's desirable to also minify strings containing property
names, even though it's not possible to automatically determine which
strings are property names. This release makes it possible to do this by
annotating those strings with `/* @&#8203;__KEY__ */`. This is a
convention that Terser added earlier this year, and which esbuild is now
following too:
[terser/terser#1365.
Using it looks like this:

    ```js
    // Original code
    console.log(
      [obj.mangle_, obj.keep],
      [obj.get('mangle_'), obj.get('keep')],
[obj.get(/* @&#8203;__KEY__ */ 'mangle_'), obj.get(/* @&#8203;__KEY__ */
'keep')],
    )

    // Old output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "mangle_"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );

    // New output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "a"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );
    ```

- Support `/* @&#8203;__NO_SIDE_EFFECTS__ */` comments for functions
([#&#8203;3149](https://togithub.com/evanw/esbuild/issues/3149))

Rollup has recently added support for `/* @&#8203;__NO_SIDE_EFFECTS__
*/` annotations before functions to indicate that calls to these
functions can be removed if the result is unused (i.e. the calls can be
assumed to have no side effects). This release adds basic support for
these to esbuild as well, which means esbuild will now parse these
comments in input files and preserve them in output files. This should
help people that use esbuild in combination with Rollup.

Note that this doesn't necessarily mean esbuild will treat these calls
as having no side effects, as esbuild's parallel architecture currently
isn't set up to enable this type of cross-file tree-shaking information
(tree-shaking decisions regarding a function call are currently local to
the file they appear in). If you want esbuild to consider a function
call to have no side effects, make sure you continue to annotate the
function call with `/* @&#8203;__PURE__ */` (which is the
previously-established convention for communicating this).

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
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.

🔕 **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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/ajvpot/lockfileparsergo).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS43OS4xIiwidXBkYXRlZEluVmVyIjoiMzUuMTEwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
github-merge-queue bot pushed a commit to fuxingloh/contented that referenced this pull request Jun 14, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [esbuild](https://togithub.com/evanw/esbuild) | [`^0.18.0` ->
`^0.18.2`](https://renovatebot.com/diffs/npm/esbuild/0.18.0/0.18.2) |
[![age](https://badges.renovateapi.com/packages/npm/esbuild/0.18.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/esbuild/0.18.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/esbuild/0.18.2/compatibility-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/esbuild/0.18.2/confidence-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>evanw/esbuild</summary>

###
[`v0.18.2`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0182)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.18.1...v0.18.2)

- Lower static blocks when static fields are lowered
([#&#8203;2800](https://togithub.com/evanw/esbuild/issues/2800),
[#&#8203;2950](https://togithub.com/evanw/esbuild/issues/2950),
[#&#8203;3025](https://togithub.com/evanw/esbuild/issues/3025))

This release fixes a bug where esbuild incorrectly did not lower static
class blocks when static class fields needed to be lowered. For example,
the following code should print `1 2 3` but previously printed `2 1 3`
instead due to this bug:

    ```js
    // Original code
    class Foo {
      static x = console.log(1)
      static { console.log(2) }
      static y = console.log(3)
    }

    // Old output (with --supported:class-static-field=false)
    class Foo {
      static {
        console.log(2);
      }
    }
    __publicField(Foo, "x", console.log(1));
    __publicField(Foo, "y", console.log(3));

    // New output (with --supported:class-static-field=false)
    class Foo {
    }
    __publicField(Foo, "x", console.log(1));
    console.log(2);
    __publicField(Foo, "y", console.log(3));
    ```

- Use static blocks to implement `--keep-names` on classes
([#&#8203;2389](https://togithub.com/evanw/esbuild/issues/2389))

This change fixes a bug where the `name` property could previously be
incorrect within a class static context when using `--keep-names`. The
problem was that the `name` property was being initialized after static
blocks were run instead of before. This has been fixed by moving the
`name` property initializer into a static block at the top of the class
body:

    ```js
    // Original code
    if (typeof Foo === 'undefined') {
      let Foo = class {
        static test = this.name
      }
      console.log(Foo.test)
    }

    // Old output (with --keep-names)
    if (typeof Foo === "undefined") {
      let Foo2 = /* @&#8203;__PURE__ */ __name(class {
        static test = this.name;
      }, "Foo");
      console.log(Foo2.test);
    }

    // New output (with --keep-names)
    if (typeof Foo === "undefined") {
      let Foo2 = class {
        static {
          __name(this, "Foo");
        }
        static test = this.name;
      };
      console.log(Foo2.test);
    }
    ```

This change was somewhat involved, especially regarding what esbuild
considers to be side-effect free. Some unused classes that weren't
removed by tree shaking in previous versions of esbuild may now be
tree-shaken. One example is classes with static private fields that are
transformed by esbuild into code that doesn't use JavaScript's private
field syntax. Previously esbuild's tree shaking analysis ran on the
class after syntax lowering, but with this release it will run on the
class before syntax lowering, meaning it should no longer be confused by
class mutations resulting from automatically-generated syntax lowering
code.

###
[`v0.18.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0181)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.18.0...v0.18.1)

- Fill in `null` entries in input source maps
([#&#8203;3144](https://togithub.com/evanw/esbuild/issues/3144))

If esbuild bundles input files with source maps and those source maps
contain a `sourcesContent` array with `null` entries, esbuild previously
copied those `null` entries over to the output source map. With this
release, esbuild will now attempt to fill in those `null` entries by
looking for a file on the file system with the corresponding name from
the `sources` array. This matches esbuild's existing behavior that
automatically generates the `sourcesContent` array from the file system
if the entire `sourcesContent` array is missing.

- Support `/* @&#8203;__KEY__ */` comments for mangling property names
([#&#8203;2574](https://togithub.com/evanw/esbuild/issues/2574))

Property mangling is an advanced feature that enables esbuild to minify
certain property names, even though it's not possible to automatically
determine that it's safe to do so. The safe property names are
configured via regular expression such as `--mangle-props=_$` (mangle
all properties ending in `_`).

Sometimes it's desirable to also minify strings containing property
names, even though it's not possible to automatically determine which
strings are property names. This release makes it possible to do this by
annotating those strings with `/* @&#8203;__KEY__ */`. This is a
convention that Terser added earlier this year, and which esbuild is now
following too:
[terser/terser#1365.
Using it looks like this:

    ```js
    // Original code
    console.log(
      [obj.mangle_, obj.keep],
      [obj.get('mangle_'), obj.get('keep')],
[obj.get(/* @&#8203;__KEY__ */ 'mangle_'), obj.get(/* @&#8203;__KEY__ */
'keep')],
    )

    // Old output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "mangle_"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );

    // New output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "a"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );
    ```

- Support `/* @&#8203;__NO_SIDE_EFFECTS__ */` comments for functions
([#&#8203;3149](https://togithub.com/evanw/esbuild/issues/3149))

Rollup has recently added support for `/* @&#8203;__NO_SIDE_EFFECTS__
*/` annotations before functions to indicate that calls to these
functions can be removed if the result is unused (i.e. the calls can be
assumed to have no side effects). This release adds basic support for
these to esbuild as well, which means esbuild will now parse these
comments in input files and preserve them in output files. This should
help people that use esbuild in combination with Rollup.

Note that this doesn't necessarily mean esbuild will treat these calls
as having no side effects, as esbuild's parallel architecture currently
isn't set up to enable this type of cross-file tree-shaking information
(tree-shaking decisions regarding a function call are currently local to
the file they appear in). If you want esbuild to consider a function
call to have no side effects, make sure you continue to annotate the
function call with `/* @&#8203;__PURE__ */` (which is the
previously-established convention for communicating this).

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
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.

🔕 **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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/BirthdayResearch/contented).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot pushed a commit to ascorbic/unpic-img that referenced this pull request Jun 20, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [esbuild](https://togithub.com/evanw/esbuild) | [`^0.17.19` -> `^0.18.0`](https://renovatebot.com/diffs/npm/esbuild/0.17.19/0.18.5) | [![age](https://badges.renovateapi.com/packages/npm/esbuild/0.18.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/esbuild/0.18.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/esbuild/0.18.5/compatibility-slim/0.17.19)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/esbuild/0.18.5/confidence-slim/0.17.19)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>evanw/esbuild</summary>

### [`v0.18.5`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0185)

[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.4...v0.18.5)

-   Implement auto accessors ([#&#8203;3009](https://togithub.com/evanw/esbuild/issues/3009))

    This release implements the new auto-accessor syntax from the upcoming [JavaScript decorators proposal](https://togithub.com/tc39/proposal-decorators). The auto-accessor syntax looks like this:

    ```js
    class Foo {
      accessor foo;
      static accessor bar;
    }
    new Foo().foo = Foo.bar;
    ```

    This syntax is not yet a part of JavaScript but it was [added to TypeScript in version 4.9](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9/#auto-accessors-in-classes). More information about this feature can be found in [microsoft/TypeScript#&#8203;49705](https://togithub.com/microsoft/TypeScript/pull/49705). Auto-accessors will be transformed if the target is set to something other than `esnext`:

    ```js
    // Output (with --target=esnext)
    class Foo {
      accessor foo;
      static accessor bar;
    }
    new Foo().foo = Foo.bar;

    // Output (with --target=es2022)
    class Foo {
      #foo;
      get foo() {
        return this.#foo;
      }
      set foo(_) {
        this.#foo = _;
      }
      static #bar;
      static get bar() {
        return this.#bar;
      }
      static set bar(_) {
        this.#bar = _;
      }
    }
    new Foo().foo = Foo.bar;

    // Output (with --target=es2021)
    var _foo, _bar;
    class Foo {
      constructor() {
        __privateAdd(this, _foo, void 0);
      }
      get foo() {
        return __privateGet(this, _foo);
      }
      set foo(_) {
        __privateSet(this, _foo, _);
      }
      static get bar() {
        return __privateGet(this, _bar);
      }
      static set bar(_) {
        __privateSet(this, _bar, _);
      }
    }
    _foo = new WeakMap();
    _bar = new WeakMap();
    __privateAdd(Foo, _bar, void 0);
    new Foo().foo = Foo.bar;
    ```

    You can also now use auto-accessors with esbuild's TypeScript experimental decorator transformation, which should behave the same as decorating the underlying getter/setter pair.

    **Please keep in mind that this syntax is not yet part of JavaScript.** This release enables auto-accessors in `.js` files with the expectation that it will be a part of JavaScript soon. However, esbuild may change or remove this feature in the future if JavaScript ends up changing or removing this feature. Use this feature with caution for now.

-   Pass through JavaScript decorators ([#&#8203;104](https://togithub.com/evanw/esbuild/issues/104))

    In this release, esbuild now parses decorators from the upcoming [JavaScript decorators proposal](https://togithub.com/tc39/proposal-decorators) and passes them through to the output unmodified (as long as the language target is set to `esnext`). Transforming JavaScript decorators to environments that don't support them has not been implemented yet. The only decorator transform that esbuild currently implements is still the TypeScript experimental decorator transform, which only works in `.ts` files and which requires `"experimentalDecorators": true` in your `tsconfig.json` file.

-   Static fields with assign semantics now use static blocks if possible

    Setting `useDefineForClassFields` to false in TypeScript requires rewriting class fields to assignment statements. Previously this was done by removing the field from the class body and adding an assignment statement after the class declaration. However, this also caused any private fields to also be lowered by necessity (in case a field initializer uses a private symbol, either directly or indirectly). This release changes this transform to use an inline static block if it's supported, which avoids needing to lower private fields in this scenario:

    ```js
    // Original code
    class Test {
      static #foo = 123
      static bar = this.#foo
    }

    // Old output (with useDefineForClassFields=false)
    var _foo;
    const _Test = class _Test {
    };
    _foo = new WeakMap();
    __privateAdd(_Test, _foo, 123);
    _Test.bar = __privateGet(_Test, _foo);
    let Test = _Test;

    // New output (with useDefineForClassFields=false)
    class Test {
      static #foo = 123;
      static {
        this.bar = this.#foo;
      }
    }
    ```

-   Fix TypeScript experimental decorators combined with `--mangle-props` ([#&#8203;3177](https://togithub.com/evanw/esbuild/issues/3177))

    Previously using TypeScript experimental decorators combined with the `--mangle-props` setting could result in a crash, as the experimental decorator transform was not expecting a mangled property as a class member. This release fixes the crash so you can now combine both of these features together safely.

### [`v0.18.4`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0184)

[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.3...v0.18.4)

-   Bundling no longer unnecessarily transforms class syntax ([#&#8203;1360](https://togithub.com/evanw/esbuild/issues/1360), [#&#8203;1328](https://togithub.com/evanw/esbuild/issues/1328), [#&#8203;1524](https://togithub.com/evanw/esbuild/issues/1524), [#&#8203;2416](https://togithub.com/evanw/esbuild/issues/2416))

    When bundling, esbuild automatically converts top-level class statements to class expressions. Previously this conversion had the unfortunate side-effect of also transforming certain other class-related syntax features to avoid correctness issues when the references to the class name within the class body. This conversion has been reworked to avoid doing this:

    ```js
    // Original code
    export class Foo {
      static foo = () => Foo
    }

    // Old output (with --bundle)
    var _Foo = class {
    };
    var Foo = _Foo;
    __publicField(Foo, "foo", () => _Foo);

    // New output (with --bundle)
    var Foo = class _Foo {
      static foo = () => _Foo;
    };
    ```

    This conversion process is very complicated and has many edge cases (including interactions with static fields, static blocks, private class properties, and TypeScript experimental decorators). It should already be pretty robust but a change like this may introduce new unintentional behavior. Please report any issues with this upgrade on the esbuild bug tracker.

    You may be wondering why esbuild needs to do this at all. One reason to do this is that esbuild's bundler sometimes needs to lazily-evaluate a module. For example, a module may end up being both the target of a dynamic `import()` call and a static `import` statement. Lazy module evaluation is done by wrapping the top-level module code in a closure. To avoid a performance hit for static `import` statements, esbuild stores top-level exported symbols outside of the closure and references them directly instead of indirectly.

    Another reason to do this is that multiple JavaScript VMs have had and continue to have performance issues with TDZ (i.e. "temporal dead zone") checks. These checks validate that a let, or const, or class symbol isn't used before it's initialized. Here are two issues with well-known VMs:

    -   V8: https://bugs.chromium.org/p/v8/issues/detail?id=13723 (10% slowdown)
    -   JavaScriptCore: https://bugs.webkit.org/show_bug.cgi?id=199866 (1,000% slowdown!)

    JavaScriptCore had a severe performance issue as their TDZ implementation had time complexity that was quadratic in the number of variables needing TDZ checks in the same scope (with the top-level scope typically being the worst offender). V8 has ongoing issues with TDZ checks being present throughout the code their JIT generates even when they have already been checked earlier in the same function or when the function in question has already been run (so the checks have already happened).

    Due to esbuild's parallel architecture, esbuild both a) needs to convert class statements into class expressions during parsing and b) doesn't yet know whether this module will need to be lazily-evaluated or not in the parser. So esbuild always does this conversion during bundling in case it's needed for correctness (and also to avoid potentially catastrophic performance issues due to bundling creating a large scope with many TDZ variables).

-   Enforce TDZ errors in computed class property keys ([#&#8203;2045](https://togithub.com/evanw/esbuild/issues/2045))

    JavaScript allows class property keys to be generated at run-time using code, like this:

    ```js
    class Foo {
      static foo = 'foo'
      static [Foo.foo + '2'] = 2
    }
    ```

    Previously esbuild treated references to the containing class name within computed property keys as a reference to the partially-initialized class object. That meant code that attempted to reference properties of the class object (such as the code above) would get back `undefined` instead of throwing an error.

    This release rewrites references to the containing class name within computed property keys into code that always throws an error at run-time, which is how this JavaScript code is supposed to work. Code that does this will now also generate a warning. You should never write code like this, but it now should be more obvious when incorrect code like this is written.

-   Fix an issue with experimental decorators and static fields ([#&#8203;2629](https://togithub.com/evanw/esbuild/issues/2629))

    This release also fixes a bug regarding TypeScript experimental decorators and static class fields which reference the enclosing class name in their initializer. This affected top-level classes when bundling was enabled. Previously code that does this could crash because the class name wasn't initialized yet. This case should now be handled correctly:

    ```ts
    // Original code
    class Foo {
      @&#8203;someDecorator
      static foo = 'foo'
      static bar = Foo.foo.length
    }

    // Old output
    const _Foo = class {
      static foo = "foo";
      static bar = _Foo.foo.length;
    };
    let Foo = _Foo;
    __decorateClass([
      someDecorator
    ], Foo, "foo", 2);

    // New output
    const _Foo = class _Foo {
      static foo = "foo";
      static bar = _Foo.foo.length;
    };
    __decorateClass([
      someDecorator
    ], _Foo, "foo", 2);
    let Foo = _Foo;
    ```

-   Fix a minification regression with negative numeric properties ([#&#8203;3169](https://togithub.com/evanw/esbuild/issues/3169))

    Version 0.18.0 introduced a regression where computed properties with negative numbers were incorrectly shortened into a non-computed property when minification was enabled. This regression has been fixed:

    ```js
    // Original code
    x = {
      [1]: 1,
      [-1]: -1,
      [NaN]: NaN,
      [Infinity]: Infinity,
      [-Infinity]: -Infinity,
    }

    // Old output (with --minify)
    x={1:1,-1:-1,NaN:NaN,1/0:1/0,-1/0:-1/0};

    // New output (with --minify)
    x={1:1,[-1]:-1,NaN:NaN,[1/0]:1/0,[-1/0]:-1/0};
    ```

### [`v0.18.3`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0183)

[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.2...v0.18.3)

-   Fix a panic due to empty static class blocks ([#&#8203;3161](https://togithub.com/evanw/esbuild/issues/3161))

    This release fixes a bug where an internal invariant that was introduced in the previous release was sometimes violated, which then caused a panic. It happened when bundling code containing an empty static class block with both minification and bundling enabled.

### [`v0.18.2`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0182)

[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.1...v0.18.2)

-   Lower static blocks when static fields are lowered ([#&#8203;2800](https://togithub.com/evanw/esbuild/issues/2800), [#&#8203;2950](https://togithub.com/evanw/esbuild/issues/2950), [#&#8203;3025](https://togithub.com/evanw/esbuild/issues/3025))

    This release fixes a bug where esbuild incorrectly did not lower static class blocks when static class fields needed to be lowered. For example, the following code should print `1 2 3` but previously printed `2 1 3` instead due to this bug:

    ```js
    // Original code
    class Foo {
      static x = console.log(1)
      static { console.log(2) }
      static y = console.log(3)
    }

    // Old output (with --supported:class-static-field=false)
    class Foo {
      static {
        console.log(2);
      }
    }
    __publicField(Foo, "x", console.log(1));
    __publicField(Foo, "y", console.log(3));

    // New output (with --supported:class-static-field=false)
    class Foo {
    }
    __publicField(Foo, "x", console.log(1));
    console.log(2);
    __publicField(Foo, "y", console.log(3));
    ```

-   Use static blocks to implement `--keep-names` on classes ([#&#8203;2389](https://togithub.com/evanw/esbuild/issues/2389))

    This change fixes a bug where the `name` property could previously be incorrect within a class static context when using `--keep-names`. The problem was that the `name` property was being initialized after static blocks were run instead of before. This has been fixed by moving the `name` property initializer into a static block at the top of the class body:

    ```js
    // Original code
    if (typeof Foo === 'undefined') {
      let Foo = class {
        static test = this.name
      }
      console.log(Foo.test)
    }

    // Old output (with --keep-names)
    if (typeof Foo === "undefined") {
      let Foo2 = /* @&#8203;__PURE__ */ __name(class {
        static test = this.name;
      }, "Foo");
      console.log(Foo2.test);
    }

    // New output (with --keep-names)
    if (typeof Foo === "undefined") {
      let Foo2 = class {
        static {
          __name(this, "Foo");
        }
        static test = this.name;
      };
      console.log(Foo2.test);
    }
    ```

    This change was somewhat involved, especially regarding what esbuild considers to be side-effect free. Some unused classes that weren't removed by tree shaking in previous versions of esbuild may now be tree-shaken. One example is classes with static private fields that are transformed by esbuild into code that doesn't use JavaScript's private field syntax. Previously esbuild's tree shaking analysis ran on the class after syntax lowering, but with this release it will run on the class before syntax lowering, meaning it should no longer be confused by class mutations resulting from automatically-generated syntax lowering code.

### [`v0.18.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0181)

[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.0...v0.18.1)

-   Fill in `null` entries in input source maps ([#&#8203;3144](https://togithub.com/evanw/esbuild/issues/3144))

    If esbuild bundles input files with source maps and those source maps contain a `sourcesContent` array with `null` entries, esbuild previously copied those `null` entries over to the output source map. With this release, esbuild will now attempt to fill in those `null` entries by looking for a file on the file system with the corresponding name from the `sources` array. This matches esbuild's existing behavior that automatically generates the `sourcesContent` array from the file system if the entire `sourcesContent` array is missing.

-   Support `/* @&#8203;__KEY__ */` comments for mangling property names ([#&#8203;2574](https://togithub.com/evanw/esbuild/issues/2574))

    Property mangling is an advanced feature that enables esbuild to minify certain property names, even though it's not possible to automatically determine that it's safe to do so. The safe property names are configured via regular expression such as `--mangle-props=_$` (mangle all properties ending in `_`).

    Sometimes it's desirable to also minify strings containing property names, even though it's not possible to automatically determine which strings are property names. This release makes it possible to do this by annotating those strings with `/* @&#8203;__KEY__ */`. This is a convention that Terser added earlier this year, and which esbuild is now following too: [terser/terser#1365. Using it looks like this:

    ```js
    // Original code
    console.log(
      [obj.mangle_, obj.keep],
      [obj.get('mangle_'), obj.get('keep')],
      [obj.get(/* @&#8203;__KEY__ */ 'mangle_'), obj.get(/* @&#8203;__KEY__ */ 'keep')],
    )

    // Old output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
      [obj.get(/* @&#8203;__KEY__ */ "mangle_"), obj.get(/* @&#8203;__KEY__ */ "keep")]
    );

    // New output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
      [obj.get(/* @&#8203;__KEY__ */ "a"), obj.get(/* @&#8203;__KEY__ */ "keep")]
    );
    ```

-   Support `/* @&#8203;__NO_SIDE_EFFECTS__ */` comments for functions ([#&#8203;3149](https://togithub.com/evanw/esbuild/issues/3149))

    Rollup has recently added support for `/* @&#8203;__NO_SIDE_EFFECTS__ */` annotations before functions to indicate that calls to these functions can be removed if the result is unused (i.e. the calls can be assumed to have no side effects). This release adds basic support for these to esbuild as well, which means esbuild will now parse these comments in input files and preserve them in output files. This should help people that use esbuild in combination with Rollup.

    Note that this doesn't necessarily mean esbuild will treat these calls as having no side effects, as esbuild's parallel architecture currently isn't set up to enable this type of cross-file tree-shaking information (tree-shaking decisions regarding a function call are currently local to the file they appear in). If you want esbuild to consider a function call to have no side effects, make sure you continue to annotate the function call with `/* @&#8203;__PURE__ */` (which is the previously-established convention for communicating this).

### [`v0.18.0`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0180)

[Compare Source](https://togithub.com/evanw/esbuild/compare/v0.17.19...v0.18.0)

**This release deliberately contains backwards-incompatible changes.** To avoid automatically picking up releases like this, you should either be pinning the exact version of `esbuild` in your `package.json` file (recommended) or be using a version range syntax that only accepts patch upgrades such as `^0.17.0` or `~0.17.0`. See npm's documentation about [semver](https://docs.npmjs.com/cli/v6/using-npm/semver/) for more information.

The breaking changes in this release mainly focus on fixing some long-standing issues with esbuild's handling of `tsconfig.json` files. Here are all the changes in this release, in detail:

-   Add a way to try esbuild online ([#&#8203;797](https://togithub.com/evanw/esbuild/issues/797))

    There is now a way to try esbuild live on esbuild's website without installing it: https://esbuild.github.io/try/. In addition to being able to more easily evaluate esbuild, this should also make it more efficient to generate esbuild bug reports. For example, you can use it to compare the behavior of different versions of esbuild on the same input. The state of the page is stored in the URL for easy sharing. Many thanks to [@&#8203;hyrious](https://togithub.com/hyrious) for creating https://hyrious.me/esbuild-repl/, which was the main inspiration for this addition to esbuild's website.

    Two forms of build options are supported: either CLI-style ([example](https://esbuild.github.io/try/#dAAwLjE3LjE5AC0tbG9hZGVyPXRzeCAtLW1pbmlmeSAtLXNvdXJjZW1hcABsZXQgZWw6IEpTWC5FbGVtZW50ID0gPGRpdiAvPg)) or JS-style ([example](https://esbuild.github.io/try/#dAAwLjE3LjE5AHsKICBsb2FkZXI6ICd0c3gnLAogIG1pbmlmeTogdHJ1ZSwKICBzb3VyY2VtYXA6IHRydWUsCn0AbGV0IGVsOiBKU1guRWxlbWVudCA9IDxkaXYgLz4)). Both are converted into a JS object that's passed to esbuild's WebAssembly API. The CLI-style argument parser is a custom one that simulates shell quoting rules, and the JS-style argument parser is also custom and parses a superset of JSON (basically JSON5 + regular expressions). So argument parsing is an approximate simulation of what happens for real but hopefully it should be close enough.

-   Changes to esbuild's `tsconfig.json` support ([#&#8203;3019](https://togithub.com/evanw/esbuild/issues/3019)):

    This release makes the following changes to esbuild's `tsconfig.json` support:

    -   Using experimental decorators now requires `"experimentalDecorators": true` ([#&#8203;104](https://togithub.com/evanw/esbuild/issues/104))

        Previously esbuild would always compile decorators in TypeScript code using TypeScript's experimental decorator transform. Now that standard JavaScript decorators are close to being finalized, esbuild will now require you to use `"experimentalDecorators": true` to do this. This new requirement makes it possible for esbuild to introduce a transform for standard JavaScript decorators in TypeScript code in the future. Such a transform has not been implemented yet, however.

    -   TypeScript's `target` no longer affects esbuild's `target` ([#&#8203;2628](https://togithub.com/evanw/esbuild/issues/2628))

        Some people requested that esbuild support TypeScript's `target` setting, so support for it was added (in [version 0.12.4](https://togithub.com/evanw/esbuild/releases/v0.12.4)). However, esbuild supports reading from multiple `tsconfig.json` files within a single build, which opens up the possibility that different files in the build have different language targets configured. There isn't really any reason to do this and it can lead to unexpected results. So with this release, the `target` setting in `tsconfig.json` will no longer affect esbuild's own `target` setting. You will have to use esbuild's own target setting instead (which is a single, global value).

    -   TypeScript's `jsx` setting no longer causes esbuild to preserve JSX syntax ([#&#8203;2634](https://togithub.com/evanw/esbuild/issues/2634))

        TypeScript has a setting called [`jsx`](https://www.typescriptlang.org/tsconfig#jsx) that controls how to transform JSX into JS. The tool-agnostic transform is called `react`, and the React-specific transform is called `react-jsx` (or `react-jsxdev`). There is also a setting called `preserve` which indicates JSX should be passed through untransformed. Previously people would run esbuild with `"jsx": "preserve"` in their `tsconfig.json` files and then be surprised when esbuild preserved their JSX. So with this release, esbuild will now ignore `"jsx": "preserve"` in `tsconfig.json` files. If you want to preserve JSX syntax with esbuild, you now have to use `--jsx=preserve`.

        Note: Some people have suggested that esbuild's equivalent `jsx` setting override the one in `tsconfig.json`. However, some projects need to legitimately have different files within the same build use different transforms (i.e. `react` vs. `react-jsx`) and having esbuild's global `jsx` setting override `tsconfig.json` would prevent this from working. This release ignores `"jsx": "preserve"` but still allows other `jsx` values in `tsconfig.json` files to override esbuild's global `jsx` setting to keep the ability for multiple files within the same build to use different transforms.

    -   `useDefineForClassFields` behavior has changed ([#&#8203;2584](https://togithub.com/evanw/esbuild/issues/2584), [#&#8203;2993](https://togithub.com/evanw/esbuild/issues/2993))

        Class fields in TypeScript look like this (`x` is a class field):

        ```js
        class Foo {
          x = 123
        }
        ```

        TypeScript has legacy behavior that uses assignment semantics instead of define semantics for class fields when [`useDefineForClassFields`](https://www.typescriptlang.org/tsconfig#useDefineForClassFields) is enabled (in which case class fields in TypeScript behave differently than they do in JavaScript, which is arguably "wrong").

        This legacy behavior exists because TypeScript added class fields to TypeScript before they were added to JavaScript. The TypeScript team decided to go with assignment semantics and shipped their implementation. Much later on TC39 decided to go with define semantics for class fields in JavaScript instead. This behaves differently if the base class has a setter with the same name:

        ```js
        class Base {
          set x(_) {
            console.log('x:', _)
          }
        }

        // useDefineForClassFields: false
        class AssignSemantics extends Base {
          constructor() {
            super()
            this.x = 123
          }
        }

        // useDefineForClassFields: true
        class DefineSemantics extends Base {
          constructor() {
            super()
            Object.defineProperty(this, 'x', { value: 123 })
          }
        }

        console.log(
          new AssignSemantics().x, // Calls the setter
          new DefineSemantics().x // Doesn't call the setter
        )
        ```

        When you run `tsc`, the value of `useDefineForClassFields` defaults to `false` when it's not specified and the `target` in `tsconfig.json` is present but earlier than `ES2022`. This sort of makes sense because the class field language feature was added in ES2022, so before ES2022 class fields didn't exist (and thus TypeScript's legacy behavior is active). However, TypeScript's `target` setting currently defaults to `ES3` which unfortunately means that the `useDefineForClassFields` setting currently defaults to false (i.e. to "wrong"). In other words if you run `tsc` with all default settings, class fields will behave incorrectly.

        Previously esbuild tried to do what `tsc` did. That meant esbuild's version of `useDefineForClassFields` was `false` by default, and was also `false` if esbuild's `--target=` was present but earlier than `es2022`. However, TypeScript's legacy class field behavior is becoming increasingly irrelevant and people who expect class fields in TypeScript to work like they do in JavaScript are confused when they use esbuild with default settings. It's also confusing that the behavior of class fields would change if you changed the language target (even though that's exactly how TypeScript works).

        So with this release, esbuild will now only use the information in `tsconfig.json` to determine whether `useDefineForClassFields` is true or not. Specifically `useDefineForClassFields` will be respected if present, otherwise it will be `false` if `target` is present in `tsconfig.json` and is `ES2021` or earlier, otherwise it will be `true`. Targets passed to esbuild's `--target=` setting will no longer affect `useDefineForClassFields`.

        Note that this means different directories in your build can have different values for this setting since esbuild allows different directories to have different `tsconfig.json` files within the same build. This should let you migrate your code one directory at a time without esbuild's `--target=` setting affecting the semantics of your code.

    -   Add support for `verbatimModuleSyntax` from TypeScript 5.0

        TypeScript 5.0 added a new option called [`verbatimModuleSyntax`](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax) that deprecates and replaces two older options, `preserveValueImports` and `importsNotUsedAsValues`. Setting `verbatimModuleSyntax` to true in `tsconfig.json` tells esbuild to not drop unused import statements. Specifically esbuild now treats `"verbatimModuleSyntax": true` as if you had specified both `"preserveValueImports": true` and `"importsNotUsedAsValues": "preserve"`.

    -   Add multiple inheritance for `tsconfig.json` from TypeScript 5.0

        TypeScript 5.0 now allows [multiple inheritance for `tsconfig.json` files](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#supporting-multiple-configuration-files-in-extends). You can now pass an array of filenames via the `extends` parameter and your `tsconfig.json` will start off containing properties from all of those configuration files, in order. This release of esbuild adds support for this new TypeScript feature.

    -   Remove support for `moduleSuffixes` ([#&#8203;2395](https://togithub.com/evanw/esbuild/issues/2395))

        The community has requested that esbuild remove support for TypeScript's `moduleSuffixes` feature, so it has been removed in this release. Instead you can use esbuild's `--resolve-extensions=` feature to select which module suffix you want to build with.

    -   Apply `--tsconfig=` overrides to `stdin` and virtual files ([#&#8203;385](https://togithub.com/evanw/esbuild/issues/385), [#&#8203;2543](https://togithub.com/evanw/esbuild/issues/2543))

        When you override esbuild's automatic `tsconfig.json` file detection with `--tsconfig=` to pass a specific `tsconfig.json` file, esbuild previously didn't apply these settings to source code passed via the `stdin` API option or to TypeScript files from plugins that weren't in the `file` namespace. This release changes esbuild's behavior so that settings from `tsconfig.json` also apply to these source code files as well.

    -   Support `--tsconfig-raw=` in build API calls ([#&#8203;943](https://togithub.com/evanw/esbuild/issues/943), [#&#8203;2440](https://togithub.com/evanw/esbuild/issues/2440))

        Previously if you wanted to override esbuild's automatic `tsconfig.json` file detection, you had to create a new `tsconfig.json` file and pass the file name to esbuild via the `--tsconfig=` flag. With this release, you can now optionally use `--tsconfig-raw=` instead to pass the contents of `tsconfig.json` to esbuild directly instead of passing the file name. For example, you can now use `--tsconfig-raw={"compilerOptions":{"experimentalDecorators":true}}` to enable TypeScript experimental decorators directly using a command-line flag (assuming you escape the quotes correctly using your current shell's quoting rules). The `--tsconfig-raw=` flag previously only worked with transform API calls but with this release, it now works with build API calls too.

    -   Ignore all `tsconfig.json` files in `node_modules` ([#&#8203;276](https://togithub.com/evanw/esbuild/issues/276), [#&#8203;2386](https://togithub.com/evanw/esbuild/issues/2386))

        This changes esbuild's behavior that applies `tsconfig.json` to all files in the subtree of the directory containing `tsconfig.json`. In version 0.12.7, esbuild started ignoring `tsconfig.json` files inside `node_modules` folders. The rationale is that people typically do this by mistake and that doing this intentionally is a rare use case that doesn't need to be supported. However, this change only applied to certain syntax-specific settings (e.g. `jsxFactory`) but did not apply to path resolution settings (e.g. `paths`). With this release, esbuild will now ignore all `tsconfig.json` files in `node_modules` instead of only ignoring certain settings.

    -   Ignore `tsconfig.json` when resolving paths within `node_modules` ([#&#8203;2481](https://togithub.com/evanw/esbuild/issues/2481))

        Previously fields in `tsconfig.json` related to path resolution (e.g. `paths`) were respected for all files in the subtree containing that `tsconfig.json` file, even within a nested `node_modules` subdirectory. This meant that a project's `paths` settings could potentially affect any bundled packages. With this release, esbuild will no longer use `tsconfig.json` settings during path resolution inside nested `node_modules` subdirectories.

    -   Prefer `.js` over `.ts` within `node_modules` ([#&#8203;3019](https://togithub.com/evanw/esbuild/issues/3019))

        The default list of implicit extensions that esbuild will try appending to import paths contains `.ts` before `.js`. This makes it possible to bundle TypeScript projects that reference other files in the project using extension-less imports (e.g. `./some-file` to load `./some-file.ts` instead of `./some-file.js`). However, this behavior is undesirable within `node_modules` directories. Some package authors publish both their original TypeScript code and their compiled JavaScript code side-by-side. In these cases, esbuild should arguably be using the compiled JavaScript files instead of the original TypeScript files because the TypeScript compilation settings for files within the package should be determined by the package author, not the user of esbuild. So with this release, esbuild will now prefer implicit `.js` extensions over `.ts` when searching for import paths within `node_modules`.

    These changes are intended to improve esbuild's compatibility with `tsc` and reduce the number of unfortunate behaviors regarding `tsconfig.json` and esbuild.

-   Add a workaround for bugs in Safari 16.2 and earlier ([#&#8203;3072](https://togithub.com/evanw/esbuild/issues/3072))

    Safari's JavaScript parser had a bug (which has now been fixed) where at least something about unary/binary operators nested inside default arguments nested inside either a function or class expression was incorrectly considered a syntax error if that expression was the target of a property assignment. Here are some examples that trigger this Safari bug:

        ❱ x(function (y = -1) {}.z = 2)
        SyntaxError: Left hand side of operator '=' must be a reference.

        ❱ x(class { f(y = -1) {} }.z = 2)
        SyntaxError: Left hand side of operator '=' must be a reference.

    It's not clear what the exact conditions are that trigger this bug. However, a workaround for this bug appears to be to post-process your JavaScript to wrap any in function and class declarations that are the direct target of a property access expression in parentheses. That's the workaround that UglifyJS applies for this issue: [mishoo/UglifyJS#&#8203;2056](https://togithub.com/mishoo/UglifyJS/pull/2056). So that's what esbuild now does starting with this release:

    ```js
    // Original code
    x(function (y = -1) {}.z = 2, class { f(y = -1) {} }.z = 2)

    // Old output (with --minify --target=safari16.2)
    x(function(c=-1){}.z=2,class{f(c=-1){}}.z=2);

    // New output (with --minify --target=safari16.2)
    x((function(c=-1){}).z=2,(class{f(c=-1){}}).z=2);
    ```

    This fix is not enabled by default. It's only enabled when `--target=` contains Safari 16.2 or earlier, such as with `--target=safari16.2`. You can also explicitly enable or disable this specific transform (called `function-or-class-property-access`) with `--supported:function-or-class-property-access=false`.

-   Fix esbuild's TypeScript type declarations to forbid unknown properties ([#&#8203;3089](https://togithub.com/evanw/esbuild/issues/3089))

    Version 0.17.0 of esbuild introduced a specific form of function overloads in the TypeScript type definitions for esbuild's API calls that looks like this:

    ```ts
    interface TransformOptions {
      legalComments?: 'none' | 'inline' | 'eof' | 'external'
    }

    interface TransformResult<ProvidedOptions extends TransformOptions = TransformOptions> {
      legalComments: string | (ProvidedOptions['legalComments'] extends 'external' ? never : undefined)
    }

    declare function transformSync<ProvidedOptions extends TransformOptions>(input: string, options?: ProvidedOptions): TransformResult<ProvidedOptions>
    declare function transformSync(input: string, options?: TransformOptions): TransformResult
    ```

    This more accurately reflects how esbuild's JavaScript API behaves. The result object returned by `transformSync` only has the `legalComments` property if you pass `legalComments: 'external'`:

    ```ts
    // These have type "string | undefined"
    transformSync('').legalComments
    transformSync('', { legalComments: 'eof' }).legalComments

    // This has type "string"
    transformSync('', { legalComments: 'external' }).legalComments
    ```

    However, this form of function overloads unfortunately allows typos (e.g. `egalComments`) to pass the type checker without generating an error as TypeScript allows all objects with unknown properties to extend `TransformOptions`. These typos result in esbuild's API throwing an error at run-time.

    To prevent typos during type checking, esbuild's TypeScript type definitions will now use a different form that looks like this:

    ```ts
    type SameShape<Out, In extends Out> = In & { [Key in Exclude<keyof In, keyof Out>]: never }

    interface TransformOptions {
      legalComments?: 'none' | 'inline' | 'eof' | 'external'
    }

    interface TransformResult<ProvidedOptions extends TransformOptions = TransformOptions> {
      legalComments: string | (ProvidedOptions['legalComments'] extends 'external' ? never : undefined)
    }

    declare function transformSync<T extends TransformOptions>(input: string, options?: SameShape<TransformOptions, T>): TransformResult<T>
    ```

    This change should hopefully not affect correct code. It should hopefully introduce type errors only for incorrect code.

-   Fix CSS nesting transform for pseudo-elements ([#&#8203;3119](https://togithub.com/evanw/esbuild/issues/3119))

    This release fixes esbuild's CSS nesting transform for pseudo-elements (e.g. `::before` and `::after`). The CSS nesting specification says that [the nesting selector does not work with pseudo-elements](https://www.w3.org/TR/css-nesting-1/#ref-for-matches-pseudo%E2%91%A0). This can be seen in the example below: esbuild does not carry the parent pseudo-element `::before` through the nesting selector `&`. However, that doesn't apply to pseudo-elements that are within the same selector. Previously esbuild had a bug where it considered pseudo-elements in both locations as invalid. This release changes esbuild to only consider those from the parent selector invalid, which should align with the specification:

    ```css
    /* Original code */
    a, b::before {
      &.c, &::after {
        content: 'd';
      }
    }

    /* Old output (with --target=chrome90) */
    a:is(.c, ::after) {
      content: "d";
    }

    /* New output (with --target=chrome90) */
    a.c,
    a::after {
      content: "d";
    }
    ```

-   Forbid `&` before a type selector in nested CSS

    The people behind the work-in-progress CSS nesting specification have very recently [decided to forbid nested CSS that looks like `&div`](https://togithub.com/w3c/csswg-drafts/issues/8662#issuecomment-1514977935). You will have to use either `div&` or `&:is(div)` instead. This release of esbuild has been updated to take this new change into consideration. Doing this now generates a warning. The suggested fix is slightly different depending on where in the overall selector it happened:

        ▲ [WARNING] Cannot use type selector "input" directly after nesting selector "&" [css-syntax-error]

            example.css:2:3:
              2 │   &input {
                │    ~~~~~
                ╵    :is(input)

          CSS nesting syntax does not allow the "&" selector to come before a type selector. You can wrap
          this selector in ":is()" as a workaround. This restriction exists to avoid problems with SASS
          nesting, where the same syntax means something very different that has no equivalent in real CSS
          (appending a suffix to the parent selector).

        ▲ [WARNING] Cannot use type selector "input" directly after nesting selector "&" [css-syntax-error]

            example.css:6:8:
              6 │   .form &input {
                │         ~~~~~~
                ╵         input&

          CSS nesting syntax does not allow the "&" selector to come before a type selector. You can move
          the "&" to the end of this selector as a workaround. This restriction exists to avoid problems
          with SASS nesting, where the same syntax means something very different that has no equivalent in
          real CSS (appending a suffix to the parent selector).

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 9pm on sunday" (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.

🔕 **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 has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/ascorbic/unpic-img).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
xddq pushed a commit to xddq/nodejs-typescript-modern-starter that referenced this pull request Jun 22, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [esbuild](https://togithub.com/evanw/esbuild) | [`0.18.0` ->
`0.18.4`](https://renovatebot.com/diffs/npm/esbuild/0.18.0/0.18.4) |
[![age](https://badges.renovateapi.com/packages/npm/esbuild/0.18.4/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/esbuild/0.18.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/esbuild/0.18.4/compatibility-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/esbuild/0.18.4/confidence-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>evanw/esbuild</summary>

###
[`v0.18.4`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0184)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.18.3...v0.18.4)

- Bundling no longer unnecessarily transforms class syntax
([#&#8203;1360](https://togithub.com/evanw/esbuild/issues/1360),
[#&#8203;1328](https://togithub.com/evanw/esbuild/issues/1328),
[#&#8203;1524](https://togithub.com/evanw/esbuild/issues/1524),
[#&#8203;2416](https://togithub.com/evanw/esbuild/issues/2416))

When bundling, esbuild automatically converts top-level class statements
to class expressions. Previously this conversion had the unfortunate
side-effect of also transforming certain other class-related syntax
features to avoid correctness issues when the references to the class
name within the class body. This conversion has been reworked to avoid
doing this:

    ```js
    // Original code
    export class Foo {
      static foo = () => Foo
    }

    // Old output (with --bundle)
    var _Foo = class {
    };
    var Foo = _Foo;
    __publicField(Foo, "foo", () => _Foo);

    // New output (with --bundle)
    var Foo = class _Foo {
      static foo = () => _Foo;
    };
    ```

This conversion process is very complicated and has many edge cases
(including interactions with static fields, static blocks, private class
properties, and TypeScript experimental decorators). It should already
be pretty robust but a change like this may introduce new unintentional
behavior. Please report any issues with this upgrade on the esbuild bug
tracker.

You may be wondering why esbuild needs to do this at all. One reason to
do this is that esbuild's bundler sometimes needs to lazily-evaluate a
module. For example, a module may end up being both the target of a
dynamic `import()` call and a static `import` statement. Lazy module
evaluation is done by wrapping the top-level module code in a closure.
To avoid a performance hit for static `import` statements, esbuild
stores top-level exported symbols outside of the closure and references
them directly instead of indirectly.

Another reason to do this is that multiple JavaScript VMs have had and
continue to have performance issues with TDZ (i.e. "temporal dead zone")
checks. These checks validate that a let, or const, or class symbol
isn't used before it's initialized. Here are two issues with well-known
VMs:

- V8: https://bugs.chromium.org/p/v8/issues/detail?id=13723 (10%
slowdown)
- JavaScriptCore: https://bugs.webkit.org/show_bug.cgi?id=199866 (1,000%
slowdown!)

JavaScriptCore had a severe performance issue as their TDZ
implementation had time complexity that was quadratic in the number of
variables needing TDZ checks in the same scope (with the top-level scope
typically being the worst offender). V8 has ongoing issues with TDZ
checks being present throughout the code their JIT generates even when
they have already been checked earlier in the same function or when the
function in question has already been run (so the checks have already
happened).

Due to esbuild's parallel architecture, esbuild both a) needs to convert
class statements into class expressions during parsing and b) doesn't
yet know whether this module will need to be lazily-evaluated or not in
the parser. So esbuild always does this conversion during bundling in
case it's needed for correctness (and also to avoid potentially
catastrophic performance issues due to bundling creating a large scope
with many TDZ variables).

- Enforce TDZ errors in computed class property keys
([#&#8203;2045](https://togithub.com/evanw/esbuild/issues/2045))

JavaScript allows class property keys to be generated at run-time using
code, like this:

    ```js
    class Foo {
      static foo = 'foo'
      static [Foo.foo + '2'] = 2
    }
    ```

Previously esbuild treated references to the containing class name
within computed property keys as a reference to the
partially-initialized class object. That meant code that attempted to
reference properties of the class object (such as the code above) would
get back `undefined` instead of throwing an error.

This release rewrites references to the containing class name within
computed property keys into code that always throws an error at
run-time, which is how this JavaScript code is supposed to work. Code
that does this will now also generate a warning. You should never write
code like this, but it now should be more obvious when incorrect code
like this is written.

- Fix an issue with experimental decorators and static fields
([#&#8203;2629](https://togithub.com/evanw/esbuild/issues/2629))

This release also fixes a bug regarding TypeScript experimental
decorators and static class fields which reference the enclosing class
name in their initializer. This affected top-level classes when bundling
was enabled. Previously code that does this could crash because the
class name wasn't initialized yet. This case should now be handled
correctly:

    ```ts
    // Original code
    class Foo {
      @&#8203;someDecorator
      static foo = 'foo'
      static bar = Foo.foo.length
    }

    // Old output
    const _Foo = class {
      static foo = "foo";
      static bar = _Foo.foo.length;
    };
    let Foo = _Foo;
    __decorateClass([
      someDecorator
    ], Foo, "foo", 2);

    // New output
    const _Foo = class _Foo {
      static foo = "foo";
      static bar = _Foo.foo.length;
    };
    __decorateClass([
      someDecorator
    ], _Foo, "foo", 2);
    let Foo = _Foo;
    ```

- Fix a minification regression with negative numeric properties
([#&#8203;3169](https://togithub.com/evanw/esbuild/issues/3169))

Version 0.18.0 introduced a regression where computed properties with
negative numbers were incorrectly shortened into a non-computed property
when minification was enabled. This regression has been fixed:

    ```js
    // Original code
    x = {
      [1]: 1,
      [-1]: -1,
      [NaN]: NaN,
      [Infinity]: Infinity,
      [-Infinity]: -Infinity,
    }

    // Old output (with --minify)
    x={1:1,-1:-1,NaN:NaN,1/0:1/0,-1/0:-1/0};

    // New output (with --minify)
    x={1:1,[-1]:-1,NaN:NaN,[1/0]:1/0,[-1/0]:-1/0};
    ```

###
[`v0.18.3`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0183)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.18.2...v0.18.3)

- Fix a panic due to empty static class blocks
([#&#8203;3161](https://togithub.com/evanw/esbuild/issues/3161))

This release fixes a bug where an internal invariant that was introduced
in the previous release was sometimes violated, which then caused a
panic. It happened when bundling code containing an empty static class
block with both minification and bundling enabled.

###
[`v0.18.2`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0182)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.18.1...v0.18.2)

- Lower static blocks when static fields are lowered
([#&#8203;2800](https://togithub.com/evanw/esbuild/issues/2800),
[#&#8203;2950](https://togithub.com/evanw/esbuild/issues/2950),
[#&#8203;3025](https://togithub.com/evanw/esbuild/issues/3025))

This release fixes a bug where esbuild incorrectly did not lower static
class blocks when static class fields needed to be lowered. For example,
the following code should print `1 2 3` but previously printed `2 1 3`
instead due to this bug:

    ```js
    // Original code
    class Foo {
      static x = console.log(1)
      static { console.log(2) }
      static y = console.log(3)
    }

    // Old output (with --supported:class-static-field=false)
    class Foo {
      static {
        console.log(2);
      }
    }
    __publicField(Foo, "x", console.log(1));
    __publicField(Foo, "y", console.log(3));

    // New output (with --supported:class-static-field=false)
    class Foo {
    }
    __publicField(Foo, "x", console.log(1));
    console.log(2);
    __publicField(Foo, "y", console.log(3));
    ```

- Use static blocks to implement `--keep-names` on classes
([#&#8203;2389](https://togithub.com/evanw/esbuild/issues/2389))

This change fixes a bug where the `name` property could previously be
incorrect within a class static context when using `--keep-names`. The
problem was that the `name` property was being initialized after static
blocks were run instead of before. This has been fixed by moving the
`name` property initializer into a static block at the top of the class
body:

    ```js
    // Original code
    if (typeof Foo === 'undefined') {
      let Foo = class {
        static test = this.name
      }
      console.log(Foo.test)
    }

    // Old output (with --keep-names)
    if (typeof Foo === "undefined") {
      let Foo2 = /* @&#8203;__PURE__ */ __name(class {
        static test = this.name;
      }, "Foo");
      console.log(Foo2.test);
    }

    // New output (with --keep-names)
    if (typeof Foo === "undefined") {
      let Foo2 = class {
        static {
          __name(this, "Foo");
        }
        static test = this.name;
      };
      console.log(Foo2.test);
    }
    ```

This change was somewhat involved, especially regarding what esbuild
considers to be side-effect free. Some unused classes that weren't
removed by tree shaking in previous versions of esbuild may now be
tree-shaken. One example is classes with static private fields that are
transformed by esbuild into code that doesn't use JavaScript's private
field syntax. Previously esbuild's tree shaking analysis ran on the
class after syntax lowering, but with this release it will run on the
class before syntax lowering, meaning it should no longer be confused by
class mutations resulting from automatically-generated syntax lowering
code.

###
[`v0.18.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0181)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.18.0...v0.18.1)

- Fill in `null` entries in input source maps
([#&#8203;3144](https://togithub.com/evanw/esbuild/issues/3144))

If esbuild bundles input files with source maps and those source maps
contain a `sourcesContent` array with `null` entries, esbuild previously
copied those `null` entries over to the output source map. With this
release, esbuild will now attempt to fill in those `null` entries by
looking for a file on the file system with the corresponding name from
the `sources` array. This matches esbuild's existing behavior that
automatically generates the `sourcesContent` array from the file system
if the entire `sourcesContent` array is missing.

- Support `/* @&#8203;__KEY__ */` comments for mangling property names
([#&#8203;2574](https://togithub.com/evanw/esbuild/issues/2574))

Property mangling is an advanced feature that enables esbuild to minify
certain property names, even though it's not possible to automatically
determine that it's safe to do so. The safe property names are
configured via regular expression such as `--mangle-props=_$` (mangle
all properties ending in `_`).

Sometimes it's desirable to also minify strings containing property
names, even though it's not possible to automatically determine which
strings are property names. This release makes it possible to do this by
annotating those strings with `/* @&#8203;__KEY__ */`. This is a
convention that Terser added earlier this year, and which esbuild is now
following too:
[terser/terser#1365.
Using it looks like this:

    ```js
    // Original code
    console.log(
      [obj.mangle_, obj.keep],
      [obj.get('mangle_'), obj.get('keep')],
[obj.get(/* @&#8203;__KEY__ */ 'mangle_'), obj.get(/* @&#8203;__KEY__ */
'keep')],
    )

    // Old output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "mangle_"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );

    // New output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "a"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );
    ```

- Support `/* @&#8203;__NO_SIDE_EFFECTS__ */` comments for functions
([#&#8203;3149](https://togithub.com/evanw/esbuild/issues/3149))

Rollup has recently added support for `/* @&#8203;__NO_SIDE_EFFECTS__
*/` annotations before functions to indicate that calls to these
functions can be removed if the result is unused (i.e. the calls can be
assumed to have no side effects). This release adds basic support for
these to esbuild as well, which means esbuild will now parse these
comments in input files and preserve them in output files. This should
help people that use esbuild in combination with Rollup.

Note that this doesn't necessarily mean esbuild will treat these calls
as having no side effects, as esbuild's parallel architecture currently
isn't set up to enable this type of cross-file tree-shaking information
(tree-shaking decisions regarding a function call are currently local to
the file they appear in). If you want esbuild to consider a function
call to have no side effects, make sure you continue to annotate the
function call with `/* @&#8203;__PURE__ */` (which is the
previously-established convention for communicating this).

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 10am on monday,after 10am on
thursday" (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.

🔕 **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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/xddq/nodejs-typescript-modern-starter).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
yoav-lavi pushed a commit to grafbase/grafbase that referenced this pull request Sep 5, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence | Type |
Update |
|---|---|---|---|---|---|---|---|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`18.16.16` ->
`18.16.17`](https://renovatebot.com/diffs/npm/@types%2fnode/18.16.16/18.16.17)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.17/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.17/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.17/compatibility-slim/18.16.16)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.16.17/confidence-slim/18.16.16)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | patch |
| [aws-cdk](https://togithub.com/aws/aws-cdk) | [`2.82.0` ->
`2.83.1`](https://renovatebot.com/diffs/npm/aws-cdk/2.82.0/2.83.1) |
[![age](https://badges.renovateapi.com/packages/npm/aws-cdk/2.83.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/aws-cdk/2.83.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/aws-cdk/2.83.1/compatibility-slim/2.82.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/aws-cdk/2.83.1/confidence-slim/2.82.0)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | minor |
| [aws-cdk-lib](https://togithub.com/aws/aws-cdk) | [`2.82.0` ->
`2.83.1`](https://renovatebot.com/diffs/npm/aws-cdk-lib/2.82.0/2.83.1) |
[![age](https://badges.renovateapi.com/packages/npm/aws-cdk-lib/2.83.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/aws-cdk-lib/2.83.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/aws-cdk-lib/2.83.1/compatibility-slim/2.82.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/aws-cdk-lib/2.83.1/confidence-slim/2.82.0)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
|
[aws_lambda_events](https://togithub.com/awslabs/aws-lambda-rust-runtime)
| `0.9` -> `0.10` |
[![age](https://badges.renovateapi.com/packages/crate/aws_lambda_events/0.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/crate/aws_lambda_events/0.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/crate/aws_lambda_events/0.10.0/compatibility-slim/0.9.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/crate/aws_lambda_events/0.10.0/confidence-slim/0.9.0)](https://docs.renovatebot.com/merge-confidence/)
| workspace.dependencies | minor |
| [constructs](https://togithub.com/aws/constructs) | [`10.2.43` ->
`10.2.50`](https://renovatebot.com/diffs/npm/constructs/10.2.43/10.2.50)
|
[![age](https://badges.renovateapi.com/packages/npm/constructs/10.2.50/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/constructs/10.2.50/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/constructs/10.2.50/compatibility-slim/10.2.43)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/constructs/10.2.50/confidence-slim/10.2.43)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | patch |
| [cynic](https://cynic-rs.dev)
([source](https://togithub.com/obmarg/cynic)) | `3.0.1` -> `3.1.0` |
[![age](https://badges.renovateapi.com/packages/crate/cynic/3.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/crate/cynic/3.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/crate/cynic/3.1.0/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/crate/cynic/3.1.0/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
| [cynic](https://cynic-rs.dev)
([source](https://togithub.com/obmarg/cynic)) | `3.0.0` -> `3.1.0` |
[![age](https://badges.renovateapi.com/packages/crate/cynic/3.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/crate/cynic/3.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/crate/cynic/3.1.0/compatibility-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/crate/cynic/3.1.0/confidence-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
| [cynic-codegen](https://cynic-rs.dev)
([source](https://togithub.com/obmarg/cynic)) | `3.0.1` -> `3.1.0` |
[![age](https://badges.renovateapi.com/packages/crate/cynic-codegen/3.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/crate/cynic-codegen/3.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/crate/cynic-codegen/3.1.0/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/crate/cynic-codegen/3.1.0/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/)
| build-dependencies | minor |
| [cynic-introspection](https://cynic-rs.dev)
([source](https://togithub.com/obmarg/cynic)) | `3.0.1` -> `3.1.0` |
[![age](https://badges.renovateapi.com/packages/crate/cynic-introspection/3.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/crate/cynic-introspection/3.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/crate/cynic-introspection/3.1.0/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/crate/cynic-introspection/3.1.0/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
| [cynic-introspection](https://cynic-rs.dev)
([source](https://togithub.com/obmarg/cynic)) | `3.0.0` -> `3.1.0` |
[![age](https://badges.renovateapi.com/packages/crate/cynic-introspection/3.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/crate/cynic-introspection/3.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/crate/cynic-introspection/3.1.0/compatibility-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/crate/cynic-introspection/3.1.0/confidence-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
| [esbuild](https://togithub.com/evanw/esbuild) | [`0.17.19` ->
`0.18.1`](https://renovatebot.com/diffs/npm/esbuild/0.17.19/0.18.1) |
[![age](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/compatibility-slim/0.17.19)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/esbuild/0.18.1/confidence-slim/0.17.19)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
| [hashbrown](https://togithub.com/rust-lang/hashbrown) | `0.13` ->
`0.14` |
[![age](https://badges.renovateapi.com/packages/crate/hashbrown/0.14.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/crate/hashbrown/0.14.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/crate/hashbrown/0.14.0/compatibility-slim/0.13.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/crate/hashbrown/0.14.0/confidence-slim/0.13.1)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
| [hashicorp/vault-action](https://togithub.com/hashicorp/vault-action)
| `v2.5.0` -> `v2.6.0` |
[![age](https://badges.renovateapi.com/packages/github-tags/hashicorp%2fvault-action/v2.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/github-tags/hashicorp%2fvault-action/v2.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/github-tags/hashicorp%2fvault-action/v2.6.0/compatibility-slim/v2.5.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/github-tags/hashicorp%2fvault-action/v2.6.0/confidence-slim/v2.5.0)](https://docs.renovatebot.com/merge-confidence/)
| action | minor |
| [tantivy](https://togithub.com/quickwit-oss/tantivy) | `0.19` ->
`0.20` |
[![age](https://badges.renovateapi.com/packages/crate/tantivy/0.20.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/crate/tantivy/0.20.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/crate/tantivy/0.20.2/compatibility-slim/0.19.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/crate/tantivy/0.20.2/confidence-slim/0.19.0)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |

---

### Release Notes

<details>
<summary>aws/aws-cdk</summary>

### [`v2.83.1`](https://togithub.com/aws/aws-cdk/releases/tag/v2.83.1)

[Compare
Source](https://togithub.com/aws/aws-cdk/compare/v2.83.0...v2.83.1)

##### Bug Fixes

- **cli:** assets shared between stages lead to an error
([#&#8203;25907](https://togithub.com/aws/aws-cdk/issues/25907))
([68ed8ca](https://togithub.com/aws/aws-cdk/commit/68ed8caeb7e8e17d82f77f9a618723e0af367e5a))

***

##### Alpha modules (2.83.1-alpha.0)

### [`v2.83.0`](https://togithub.com/aws/aws-cdk/releases/tag/v2.83.0)

[Compare
Source](https://togithub.com/aws/aws-cdk/compare/v2.82.0...v2.83.0)

##### Features

- **cfnspec:** cloudformation spec v125.0.0
([#&#8203;25834](https://togithub.com/aws/aws-cdk/issues/25834))
([674ec01](https://togithub.com/aws/aws-cdk/commit/674ec017bccd0737a8e88f623babbbf46c246558))
- **custom-resource:** AwsCustomResource supports AWS SDK for JavaScript
v3 ([#&#8203;25406](https://togithub.com/aws/aws-cdk/issues/25406))
([60699f4](https://togithub.com/aws/aws-cdk/commit/60699f4a712755451c144e4af6782c505f3a0b63))
- **events-targets:** support enableExecuteCommand in EcsTask construct
([#&#8203;25639](https://togithub.com/aws/aws-cdk/issues/25639))
([7f3152a](https://togithub.com/aws/aws-cdk/commit/7f3152a917f716ee64b496b42f1dad76bc33e188))

##### Bug Fixes

- **apigateway:** allow overriding apiKeyRequired on methods
([#&#8203;25682](https://togithub.com/aws/aws-cdk/issues/25682))
([ae778cc](https://togithub.com/aws/aws-cdk/commit/ae778ccabc605045edf334ca39942ccdbd76ccff)),
closes [#&#8203;8827](https://togithub.com/aws/aws-cdk/issues/8827)
- **cli:** asset existence check is slow for many assets
([#&#8203;25866](https://togithub.com/aws/aws-cdk/issues/25866))
([d17642a](https://togithub.com/aws/aws-cdk/commit/d17642a1afcc2c58817a73603f25995d11c4f0ff))
- **cli:** deployment gets stuck deploying stacks with shared assets
([#&#8203;25846](https://togithub.com/aws/aws-cdk/issues/25846))
([8b97bdf](https://togithub.com/aws/aws-cdk/commit/8b97bdfc759e169bd276a8690a6cac055d5ed755)),
closes [#&#8203;25719](https://togithub.com/aws/aws-cdk/issues/25719)
[#&#8203;25806](https://togithub.com/aws/aws-cdk/issues/25806)
- **cli:** ENOENT during asset publishing
([#&#8203;25869](https://togithub.com/aws/aws-cdk/issues/25869))
([1668dbd](https://togithub.com/aws/aws-cdk/commit/1668dbdc105ad7e79e0ee1ac0b6446b9db4fabf6)),
closes [#&#8203;25293](https://togithub.com/aws/aws-cdk/issues/25293)
- **codepipeline:** incorrect cross-account permissions with StepFunct
ionInvokeAction
([#&#8203;25850](https://togithub.com/aws/aws-cdk/issues/25850))
([3694670](https://togithub.com/aws/aws-cdk/commit/36946703821fe3bbae68afbcc7302eefe0955952))
- **ecr:** auto delete images on ECR repository containing manifest list
([#&#8203;25789](https://togithub.com/aws/aws-cdk/issues/25789))
([830e6d3](https://togithub.com/aws/aws-cdk/commit/830e6d3903cf3a1443a0a497fd4bf319d7bbe211))
- **kms:** aliasName references alias itself (under feature flag)
([#&#8203;25822](https://togithub.com/aws/aws-cdk/issues/25822))
([45734e3](https://togithub.com/aws/aws-cdk/commit/45734e320b92d360f46033af900f544a4d8801cf)),
closes [#&#8203;25761](https://togithub.com/aws/aws-cdk/issues/25761)
- **lambda-nodejs:** cannot use .mts, .cts, and .cjs entry files
([#&#8203;25642](https://togithub.com/aws/aws-cdk/issues/25642))
([cbe9fe5](https://togithub.com/aws/aws-cdk/commit/cbe9fe59a16b45d5d9bb7c00e6eea2423798c050)),
closes [#&#8203;21635](https://togithub.com/aws/aws-cdk/issues/21635)
- **lambda-nodejs:** ignore noEmit in tsconfig when pre-compiling
([#&#8203;25604](https://togithub.com/aws/aws-cdk/issues/25604))
([dd16cf8](https://togithub.com/aws/aws-cdk/commit/dd16cf88c60b5cfc9c8a71e0700f7a7e488aabf5)),
closes [#&#8203;25603](https://togithub.com/aws/aws-cdk/issues/25603)

***

##### Alpha modules (2.83.0-alpha.0)

##### Features

- **cloud9:** support setting automaticStopTimeMinutes
([#&#8203;25593](https://togithub.com/aws/aws-cdk/issues/25593))
([437345e](https://togithub.com/aws/aws-cdk/commit/437345e2ca72e67714334f4b9cb7da8f23c4a970)),
closes [#&#8203;25592](https://togithub.com/aws/aws-cdk/issues/25592)

</details>

<details>
<summary>aws/constructs</summary>

###
[`v10.2.50`](https://togithub.com/aws/constructs/releases/tag/v10.2.50)

[Compare
Source](https://togithub.com/aws/constructs/compare/v10.2.49...v10.2.50)

#####
[10.2.50](https://togithub.com/aws/constructs/compare/v10.2.49...v10.2.50)
(2023-06-12)

###
[`v10.2.49`](https://togithub.com/aws/constructs/releases/tag/v10.2.49)

[Compare
Source](https://togithub.com/aws/constructs/compare/v10.2.48...v10.2.49)

#####
[10.2.49](https://togithub.com/aws/constructs/compare/v10.2.48...v10.2.49)
(2023-06-11)

###
[`v10.2.48`](https://togithub.com/aws/constructs/releases/tag/v10.2.48)

[Compare
Source](https://togithub.com/aws/constructs/compare/v10.2.47...v10.2.48)

#####
[10.2.48](https://togithub.com/aws/constructs/compare/v10.2.47...v10.2.48)
(2023-06-10)

###
[`v10.2.47`](https://togithub.com/aws/constructs/releases/tag/v10.2.47)

[Compare
Source](https://togithub.com/aws/constructs/compare/v10.2.46...v10.2.47)

#####
[10.2.47](https://togithub.com/aws/constructs/compare/v10.2.46...v10.2.47)
(2023-06-09)

###
[`v10.2.46`](https://togithub.com/aws/constructs/releases/tag/v10.2.46)

[Compare
Source](https://togithub.com/aws/constructs/compare/v10.2.45...v10.2.46)

#####
[10.2.46](https://togithub.com/aws/constructs/compare/v10.2.45...v10.2.46)
(2023-06-08)

###
[`v10.2.45`](https://togithub.com/aws/constructs/releases/tag/v10.2.45)

[Compare
Source](https://togithub.com/aws/constructs/compare/v10.2.44...v10.2.45)

#####
[10.2.45](https://togithub.com/aws/constructs/compare/v10.2.44...v10.2.45)
(2023-06-07)

###
[`v10.2.44`](https://togithub.com/aws/constructs/releases/tag/v10.2.44)

[Compare
Source](https://togithub.com/aws/constructs/compare/v10.2.43...v10.2.44)

#####
[10.2.44](https://togithub.com/aws/constructs/compare/v10.2.43...v10.2.44)
(2023-06-06)

</details>

<details>
<summary>obmarg/cynic</summary>

###
[`v3.1.0`](https://togithub.com/obmarg/cynic/blob/HEAD/CHANGELOG.md#v310---2023-06-11)

[Compare
Source](https://togithub.com/obmarg/cynic/compare/v3.0.2...v3.1.0)

##### New Features

- Added an `exhaustive` attribute for `InlineFragments` on union types.
If
present this attribute will cause compile errors if the enum is missing
a
    variant for any union member.

##### Bug Fixes

-   The generator no longer outputs a broken `#[cynic::schema]` module.
- `impl_scalar!` and `derive(Scalar)` can now be used on built in
scalars.
-   GitHub schema registration is now slightly faster
-   Fixed a bug where suggestions in errors were non-deterministic.
-   Fixed the names of some features in docs.rs output.
-   Added MSRV to `Cargo.toml`

###
[`v3.0.2`](https://togithub.com/obmarg/cynic/blob/HEAD/CHANGELOG.md#v302---2023-06-07)

[Compare
Source](https://togithub.com/obmarg/cynic/compare/v3.0.1...v3.0.2)

##### Bug Fixes

-   Fix `Variable` definition for `Vec<T>` in `#[cynic::schema]` output.

</details>

<details>
<summary>evanw/esbuild</summary>

###
[`v0.18.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0181)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.18.0...v0.18.1)

- Fill in `null` entries in input source maps
([#&#8203;3144](https://togithub.com/evanw/esbuild/issues/3144))

If esbuild bundles input files with source maps and those source maps
contain a `sourcesContent` array with `null` entries, esbuild previously
copied those `null` entries over to the output source map. With this
release, esbuild will now attempt to fill in those `null` entries by
looking for a file on the file system with the corresponding name from
the `sources` array. This matches esbuild's existing behavior that
automatically generates the `sourcesContent` array from the file system
if the entire `sourcesContent` array is missing.

- Support `/* @&#8203;__KEY__ */` comments for mangling property names
([#&#8203;2574](https://togithub.com/evanw/esbuild/issues/2574))

Property mangling is an advanced feature that enables esbuild to minify
certain property names, even though it's not possible to automatically
determine that it's safe to do so. The safe property names are
configured via regular expression such as `--mangle-props=_$` (mangle
all properties ending in `_`).

Sometimes it's desirable to also minify strings containing property
names, even though it's not possible to automatically determine which
strings are property names. This release makes it possible to do this by
annotating those strings with `/* @&#8203;__KEY__ */`. This is a
convention that Terser added earlier this year, and which esbuild is now
following too:
[terser/terser#1365.
Using it looks like this:

    ```js
    // Original code
    console.log(
      [obj.mangle_, obj.keep],
      [obj.get('mangle_'), obj.get('keep')],
[obj.get(/* @&#8203;__KEY__ */ 'mangle_'), obj.get(/* @&#8203;__KEY__ */
'keep')],
    )

    // Old output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "mangle_"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );

    // New output (with --mangle-props=_$)
    console.log(
      [obj.a, obj.keep],
      [obj.get("mangle_"), obj.get("keep")],
[obj.get(/* @&#8203;__KEY__ */ "a"), obj.get(/* @&#8203;__KEY__ */
"keep")]
    );
    ```

- Support `/* @&#8203;__NO_SIDE_EFFECTS__ */` comments for functions
([#&#8203;3149](https://togithub.com/evanw/esbuild/issues/3149))

Rollup has recently added support for `/* @&#8203;__NO_SIDE_EFFECTS__
*/` annotations before functions to indicate that calls to these
functions can be removed if the result is unused (i.e. the calls can be
assumed to have no side effects). This release adds basic support for
these to esbuild as well, which means esbuild will now parse these
comments in input files and preserve them in output files. This should
help people that use esbuild in combination with Rollup.

Note that this doesn't necessarily mean esbuild will treat these calls
as having no side effects, as esbuild's parallel architecture currently
isn't set up to enable this type of cross-file tree-shaking information
(tree-shaking decisions regarding a function call are currently local to
the file they appear in). If you want esbuild to consider a function
call to have no side effects, make sure you continue to annotate the
function call with `/* @&#8203;__PURE__ */` (which is the
previously-established convention for communicating this).

###
[`v0.18.0`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#&#8203;0180)

[Compare
Source](https://togithub.com/evanw/esbuild/compare/v0.17.19...v0.18.0)

**This release deliberately contains backwards-incompatible changes.**
To avoid automatically picking up releases like this, you should either
be pinning the exact version of `esbuild` in your `package.json` file
(recommended) or be using a version range syntax that only accepts patch
upgrades such as `^0.17.0` or `~0.17.0`. See npm's documentation about
[semver](https://docs.npmjs.com/cli/v6/using-npm/semver/) for more
information.

The breaking changes in this release mainly focus on fixing some
long-standing issues with esbuild's handling of `tsconfig.json` files.
Here are all the changes in this release, in detail:

- Add a way to try esbuild online
([#&#8203;797](https://togithub.com/evanw/esbuild/issues/797))

There is now a way to try esbuild live on esbuild's website without
installing it: https://esbuild.github.io/try/. In addition to being able
to more easily evaluate esbuild, this should also make it more efficient
to generate esbuild bug reports. For example, you can use it to compare
the behavior of different versions of esbuild on the same input. The
state of the page is stored in the URL for easy sharing. Many thanks to
[@&#8203;hyrious](https://togithub.com/hyrious) for creating
https://hyrious.me/esbuild-repl/, which was the main inspiration for
this addition to esbuild's website.

Two forms of build options are supported: either CLI-style
([example](https://esbuild.github.io/try/#dAAwLjE3LjE5AC0tbG9hZGVyPXRzeCAtLW1pbmlmeSAtLXNvdXJjZW1hcABsZXQgZWw6IEpTWC5FbGVtZW50ID0gPGRpdiAvPg))
or JS-style
([example](https://esbuild.github.io/try/#dAAwLjE3LjE5AHsKICBsb2FkZXI6ICd0c3gnLAogIG1pbmlmeTogdHJ1ZSwKICBzb3VyY2VtYXA6IHRydWUsCn0AbGV0IGVsOiBKU1guRWxlbWVudCA9IDxkaXYgLz4)).
Both are converted into a JS object that's passed to esbuild's
WebAssembly API. The CLI-style argument parser is a custom one that
simulates shell quoting rules, and the JS-style argument parser is also
custom and parses a superset of JSON (basically JSON5 + regular
expressions). So argument parsing is an approximate simulation of what
happens for real but hopefully it should be close enough.

- Changes to esbuild's `tsconfig.json` support
([#&#8203;3019](https://togithub.com/evanw/esbuild/issues/3019)):

This release makes the following changes to esbuild's `tsconfig.json`
support:

- Using experimental decorators now requires `"experimentalDecorators":
true` ([#&#8203;104](https://togithub.com/evanw/esbuild/issues/104))

Previously esbuild would always compile decorators in TypeScript code
using TypeScript's experimental decorator transform. Now that standard
JavaScript decorators are close to being finalized, esbuild will now
require you to use `"experimentalDecorators": true` to do this. This new
requirement makes it possible for esbuild to introduce a transform for
standard JavaScript decorators in TypeScript code in the future. Such a
transform has not been implemented yet, however.

- TypeScript's `target` no longer affects esbuild's `target`
([#&#8203;2628](https://togithub.com/evanw/esbuild/issues/2628))

Some people requested that esbuild support TypeScript's `target`
setting, so support for it was added (in [version
0.12.4](https://togithub.com/evanw/esbuild/releases/v0.12.4)). However,
esbuild supports reading from multiple `tsconfig.json` files within a
single build, which opens up the possibility that different files in the
build have different language targets configured. There isn't really any
reason to do this and it can lead to unexpected results. So with this
release, the `target` setting in `tsconfig.json` will no longer affect
esbuild's own `target` setting. You will have to use esbuild's own
target setting instead (which is a single, global value).

- TypeScript's `jsx` setting no longer causes esbuild to preserve JSX
syntax ([#&#8203;2634](https://togithub.com/evanw/esbuild/issues/2634))

TypeScript has a setting called
[`jsx`](https://www.typescriptlang.org/tsconfig#jsx) that controls how
to transform JSX into JS. The tool-agnostic transform is called `react`,
and the React-specific transform is called `react-jsx` (or
`react-jsxdev`). There is also a setting called `preserve` which
indicates JSX should be passed through untransformed. Previously people
would run esbuild with `"jsx": "preserve"` in their `tsconfig.json`
files and then be surprised when esbuild preserved their JSX. So with
this release, esbuild will now ignore `"jsx": "preserve"` in
`tsconfig.json` files. If you want to preserve JSX syntax with esbuild,
you now have to use `--jsx=preserve`.

Note: Some people have suggested that esbuild's equivalent `jsx` setting
override the one in `tsconfig.json`. However, some projects need to
legitimately have different files within the same build use different
transforms (i.e. `react` vs. `react-jsx`) and having esbuild's global
`jsx` setting override `tsconfig.json` would prevent this from working.
This release ignores `"jsx": "preserve"` but still allows other `jsx`
values in `tsconfig.json` files to override esbuild's global `jsx`
setting to keep the ability for multiple files within the same build to
use different transforms.

- `useDefineForClassFields` behavior has changed
([#&#8203;2584](https://togithub.com/evanw/esbuild/issues/2584),
[#&#8203;2993](https://togithub.com/evanw/esbuild/issues/2993))

Class fields in TypeScript look like this (`x` is a class field):

        ```js
        class Foo {
          x = 123
        }
        ```

TypeScript has legacy behavior that uses assignment semantics instead of
define semantics for class fields when
[`useDefineForClassFields`](https://www.typescriptlang.org/tsconfig#useDefineForClassFields)
is enabled (in which case class fields in TypeScript behave differently
than they do in JavaScript, which is arguably "wrong").

This legacy behavior exists because TypeScript added class fields to
TypeScript before they were added to JavaScript. The TypeScript team
decided to go with assignment semantics and shipped their
implementation. Much later on TC39 decided to go with define semantics
for class fields in JavaScript instead. This behaves differently if the
base class has a setter with the same name:

        ```js
        class Base {
          set x(_) {
            console.log('x:', _)
          }
        }

        // useDefineForClassFields: false
        class AssignSemantics extends Base {
          constructor() {
            super()
            this.x = 123
          }
        }

        // useDefineForClassFields: true
        class DefineSemantics extends Base {
          constructor() {
            super()
            Object.defineProperty(this, 'x', { value: 123 })
          }
        }

        console.log(
          new AssignSemantics().x, // Calls the setter
          new DefineSemantics().x // Doesn't call the setter
        )
        ```

When you run `tsc`, the value of `useDefineForClassFields` defaults to
`false` when it's not specified and the `target` in `tsconfig.json` is
present but earlier than `ES2022`. This sort of makes sense because the
class field language feature was added in ES2022, so before ES2022 class
fields didn't exist (and thus TypeScript's legacy behavior is active).
However, TypeScript's `target` setting currently defaults to `ES3` which
unfortunately means that the `useDefineForClassFields` setting currently
defaults to false (i.e. to "wrong"). In other words if you run `tsc`
with all default settings, class fields will behave incorrectly.

Previously esbuild tried to do what `tsc` did. That meant esbuild's
version of `useDefineForClassFields` was `false` by default, and was
also `false` if esbuild's `--target=` was present but earlier than
`es2022`. However, TypeScript's legacy class field behavior is becoming
increasingly irrelevant and people who expect class fields in TypeScript
to work like they do in JavaScript are confused when they use esbuild
with default settings. It's also confusing that the behavior of class
fields would change if you changed the language target (even though
that's exactly how TypeScript works).

So with this release, esbuild will now only use the information in
`tsconfig.json` to determine whether `useDefineForClassFields` is true
or not. Specifically `useDefineForClassFields` will be respected if
present, otherwise it will be `false` if `target` is present in
`tsconfig.json` and is `ES2021` or earlier, otherwise it will be `true`.
Targets passed to esbuild's `--target=` setting will no longer affect
`useDefineForClassFields`.

Note that this means different directories in your build can have
different values for this setting since esbuild allows different
directories to have different `tsconfig.json` files within the same
build. This should let you migrate your code one directory at a time
without esbuild's `--target=` setting affecting the semantics of your
code.

    -   Add support for `verbatimModuleSyntax` from TypeScript 5.0

TypeScript 5.0 added a new option called
[`verbatimModuleSyntax`](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax)
that deprecates and replaces two older options, `preserveValueImports`
and `importsNotUsedAsValues`. Setting `verbatimModuleSyntax` to true in
`tsconfig.json` tells esbuild to not drop unused import statements.
Specifically esbuild now treats `"verbatimModuleSyntax": true` as if you
had specified both `"preserveValueImports": true` and
`"importsNotUsedAsValues": "preserve"`.

    -   Add multiple inheritance for `tsconfig.json` from TypeScript 5.0

TypeScript 5.0 now allows [multiple inheritance for `tsconfig.json`
files](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#supporting-multiple-configuration-files-in-extends).
You can now pass an array of filenames via the `extends` parameter and
your `tsconfig.json` will start off containing properties from all of
those configuration files, in order. This release of esbuild adds
support for this new TypeScript feature.

- Remove support for `moduleSuffixes`
([#&#8203;2395](https://togithub.com/evanw/esbuild/issues/2395))

The community has requested that esbuild remove support for TypeScript's
`moduleSuffixes` feature, so it has been removed in this release.
Instead you can use esbuild's `--resolve-extensions=` feature to select
which module suffix you want to build with.

- Apply `--tsconfig=` overrides to `stdin` and virtual files
([#&#8203;385](https://togithub.com/evanw/esbuild/issues/385),
[#&#8203;2543](https://togithub.com/evanw/esbuild/issues/2543))

When you override esbuild's automatic `tsconfig.json` file detection
with `--tsconfig=` to pass a specific `tsconfig.json` file, esbuild
previously didn't apply these settings to source code passed via the
`stdin` API option or to TypeScript files from plugins that weren't in
the `file` namespace. This release changes esbuild's behavior so that
settings from `tsconfig.json` also apply to these source code files as
well.

- Support `--tsconfig-raw=` in build API calls
([#&#8203;943](https://togithub.com/evanw/esbuild/issues/943),
[#&#8203;2440](https://togithub.com/evanw/esbuild/issues/2440))

Previously if you wanted to override esbuild's automatic `tsconfig.json`
file detection, you had to create a new `tsconfig.json` file and pass
the file name to esbuild via the `--tsconfig=` flag. With this release,
you can now optionally use `--tsconfig-raw=` instead to pass the
contents of `tsconfig.json` to esbuild directly instead of passing the
file name. For example, you can now use
`--tsconfig-raw={"compilerOptions":{"experimentalDecorators":true}}` to
enable TypeScript experimental decorators directly using a command-line
flag (assuming you escape the quotes correctly using your current
shell's quoting rules). The `--tsconfig-raw=` flag previously only
worked with transform API calls but with this release, it now works with
build API calls too.

- Ignore all `tsconfig.json` files in `node_modules`
([#&#8203;276](https://togithub.com/evanw/esbuild/issues/276),
[#&#8203;2386](https://togithub.com/evanw/esbuild/issues/2386))

This changes esbuild's behavior that applies `tsconfig.json` to all
files in the subtree of the directory containing `tsconfig.json`. In
version 0.12.7, esbuild started ignoring `tsconfig.json` files inside
`node_modules` folders. The rationale is that people typically do this
by mistake and that doing this intentionally is a rare use case that
doesn't need to be supported. However, this change only applied to
certain syntax-specific settings (e.g. `jsxFactory`) but did not apply
to path resolution settings (e.g. `paths`). With this release, esbuild
will now ignore all `tsconfig.json` files in `node_modules` instead of
only ignoring certain settings.

- Ignore `tsconfig.json` when resolving paths within `node_modules`
([#&#8203;2481](https://togithub.com/evanw/esbuild/issues/2481))

Previously fields in `tsconfig.json` related to path resolution (e.g.
`paths`) were respected for all files in the subtree containing that
`tsconfig.json` file, even within a nested `node_modules` subdirectory.
This meant that a project's `paths` settings could potentially affect
any bundled packages. With this release, esbuild will no longer use
`tsconfig.json` settings during path resolution inside nested
`node_modules` subdirectories.

- Prefer `.js` over `.ts` within `node_modules`
([#&#8203;3019](https://togithub.com/evanw/esbuild/issues/3019))

The default list of implicit extensions that esbuild will try appending
to import paths contains `.ts` before `.js`. This makes it possible to
bundle TypeScript projects that reference other files in the project
using extension-less imports (e.g. `./some-file` to load
`./some-file.ts` instead of `./some-file.js`). However, this behavior is
undesirable within `node_modules` directories. Some package authors
publish both their original TypeScript code and their compiled
JavaScript code side-by-side. In these cases, esbuild should arguably be
using the compiled JavaScript files instead of the original TypeScript
files because the TypeScript compilation settings for files within the
package should be determined by the package author, not the user of
esbuild. So with this release, esbuild will now prefer implicit `.js`
extensions over `.ts` when searching for import paths within
`node_modules`.

These changes are intended to improve esbuild's compatibility with `tsc`
and reduce the number of unfortunate behaviors regarding `tsconfig.json`
and esbuild.

- Add a workaround for bugs in Safari 16.2 and earlier
([#&#8203;3072](https://togithub.com/evanw/esbuild/issues/3072))

Safari's JavaScript parser had a bug (which has now been fixed) where at
least something about unary/binary operators nested inside default
arguments nested inside either a function or class expression was
incorrectly considered a syntax error if that expression was the target
of a property assignment. Here are some examples that trigger this
Safari bug:

        ❱ x(function (y = -1) {}.z = 2)
        SyntaxError: Left hand side of operator '=' must be a reference.

        ❱ x(class { f(y = -1) {} }.z = 2)
        SyntaxError: Left hand side of operator '=' must be a reference.

It's not clear what the exact conditions are that trigger this bug.
However, a workaround for this bug appears to be to post-process your
JavaScript to wrap any in function and class declarations that are the
direct target of a property access expression in parentheses. That's the
workaround that UglifyJS applies for this issue:
[mishoo/UglifyJS#&#8203;2056](https://togithub.com/mishoo/UglifyJS/pull/2056).
So that's what esbuild now does starting with this release:

    ```js
    // Original code
    x(function (y = -1) {}.z = 2, class { f(y = -1) {} }.z = 2)

    // Old output (with --minify --target=safari16.2)
    x(function(c=-1){}.z=2,class{f(c=-1){}}.z=2);

    // New output (with --minify --target=safari16.2)
    x((function(c=-1){}).z=2,(class{f(c=-1){}}).z=2);
    ```

This fix is not enabled by default. It's only enabled when `--target=`
contains Safari 16.2 or earlier, such as with `--target=safari16.2`. You
can also explicitly enable or disable this specific transform (called
`function-or-class-property-access`) with
`--supported:function-or-class-property-access=false`.

- Fix esbuild's TypeScript type declarations to forbid unknown
properties
([#&#8203;3089](https://togithub.com/evanw/esbuild/issues/3089))

Version 0.17.0 of esbuild introduced a specific form of function
overloads in the TypeScript type definitions for esbuild's API calls
that looks like this:

    ```ts
    interface TransformOptions {
      legalComments?: 'none' | 'inline' | 'eof' | 'external'
    }

interface TransformResult<ProvidedOptions extends TransformOptions =
TransformOptions> {
legalComments: string | (ProvidedOptions['legalComments'] extends
'external' ? never : undefined)
    }

declare function transformSync<ProvidedOptions extends
TransformOptions>(input: string, options?: ProvidedOptions):
TransformResult<ProvidedOptions>
declare function transformSync(input: string, options?:
TransformOptions): TransformResult
    ```

This more accurately reflects how esbuild's JavaScript API behaves. The
result object returned by `transformSync` only has the `legalComments`
property if you pass `legalComments: 'external'`:

    ```ts
    // These have type "string | undefined"
    transformSync('').legalComments
    transformSync('', { legalComments: 'eof' }).legalComments

    // This has type "string"
    transformSync('', { legalComments: 'external' }).legalComments
    ```

However, this form of function overloads unfortunately allows typos
(e.g. `egalComments`) to pass the type checker without generating an
error as TypeScript allows all objects with unknown properties to extend
`TransformOptions`. These typos result in esbuild's API throwing an
error at run-time.

To prevent typos during type checking, esbuild's TypeScript type
definitions will now use a different form that looks like this:

    ```ts
type SameShape<Out, In extends Out> = In & { [Key in Exclude<keyof In,
keyof Out>]: never }

    interface TransformOptions {
      legalComments?: 'none' | 'inline' | 'eof' | 'external'
    }

interface TransformResult<ProvidedOptions extends TransformOptions =
TransformOptions> {
legalComments: string | (ProvidedOptions['legalComments'] extends
'external' ? never : undefined)
    }

declare function transformSync<T extends TransformOptions>(input:
string, options?: SameShape<TransformOptions, T>): TransformResult<T>
    ```

This change should hopefully not affect correct code. It should
hopefully introduce type errors only for incorrect code.

- Fix CSS nesting transform for pseudo-elements
([#&#8203;3119](https://togithub.com/evanw/esbuild/issues/3119))

This release fixes esbuild's CSS nesting transform for pseudo-elements
(e.g. `::before` and `::after`). The CSS nesting specification says that
[the nesting selector does not work with
pseudo-elements](https://www.w3.org/TR/css-nesting-1/#ref-for-matches-pseudo%E2%91%A0).
This can be seen in the example below: esbuild does not carry the parent
pseudo-element `::before` through the nesting selector `&`. However,
that doesn't apply to pseudo-elements that are within the same selector.
Previously esbuild had a bug where it considered pseudo-elements in both
locations as invalid. This release changes esbuild to only consider
those from the parent selector invalid, which should align with the
specification:

    ```css
    /* Original code */
    a, b::before {
      &.c, &::after {
        content: 'd';
      }
    }

    /* Old output (with --target=chrome90) */
    a:is(.c, ::after) {
      content: "d";
    }

    /* New output (with --target=chrome90) */
    a.c,
    a::after {
      content: "d";
    }
    ```

-   Forbid `&` before a type selector in nested CSS

The people behind the work-in-progress CSS nesting specification have
very recently [decided to forbid nested CSS that looks like
`&div`](https://togithub.com/w3c/csswg-drafts/issues/8662#issuecomment-1514977935).
You will have to use either `div&` or `&:is(div)` instead. This release
of esbuild has been updated to take this new change into consideration.
Doing this now generates a warning. The suggested fix is slightly
different depending on where in the overall selector it happened:

▲ [WARNING] Cannot use type selector "input" directly after nesting
selector "&" [css-syntax-error]

            example.css:2:3:
              2 │   &input {
                │    ~~~~~
                ╵    :is(input)

CSS nesting syntax does not allow the "&" selector to come before a type
selector. You can wrap
this selector in ":is()" as a workaround. This restriction exists to
avoid problems with SASS
nesting, where the same syntax means something very different that has
no equivalent in real CSS
          (appending a suffix to the parent selector).

▲ [WARNING] Cannot use type selector "input" directly after nesting
selector "&" [css-syntax-error]

            example.css:6:8:
              6 │   .form &input {
                │         ~~~~~~
                ╵         input&

CSS nesting syntax does not allow the "&" selector to come before a type
selector. You can move
the "&" to the end of this selector as a workaround. This restriction
exists to avoid problems
with SASS nesting, where the same syntax means something very different
that has no equivalent in
          real CSS (appending a suffix to the parent selector).

</details>

<details>
<summary>rust-lang/hashbrown</summary>

###
[`v0.14.0`](https://togithub.com/rust-lang/hashbrown/blob/HEAD/CHANGELOG.md#v0140---2023-06-01)

[Compare
Source](https://togithub.com/rust-lang/hashbrown/compare/v0.13.2...v0.14.0)

##### Added

-   Support for `allocator-api2` crate
for interfacing with custom allocators on stable.
([#&#8203;417](https://togithub.com/rust-lang/hashbrown/issues/417))
- Optimized implementation for ARM using NEON instructions.
([#&#8203;430](https://togithub.com/rust-lang/hashbrown/issues/430))
- Support for rkyv serialization.
([#&#8203;432](https://togithub.com/rust-lang/hashbrown/issues/432))
- `Equivalent` trait to look up values without `Borrow`.
([#&#8203;345](https://togithub.com/rust-lang/hashbrown/issues/345))
- `Hash{Map,Set}::raw_table_mut` is added whic returns a mutable
reference.
([#&#8203;404](https://togithub.com/rust-lang/hashbrown/issues/404))
- Fast path for `clear` on empty tables.
([#&#8203;428](https://togithub.com/rust-lang/hashbrown/issues/428))

##### Changed

- Optimized insertion to only perform a single lookup.
([#&#8203;277](https://togithub.com/rust-lang/hashbrown/issues/277))
- `DrainFilter` has been renamed to `ExtractIf` and no longer drops
remaining
    elements when the iterator is dropped. #(374)
- Bumped MSRV to 1.64.0.
([#&#8203;431](https://togithub.com/rust-lang/hashbrown/issues/431))
- `{Map,Set}::raw_table` now returns an immutable reference.
([#&#8203;404](https://togithub.com/rust-lang/hashbrown/issues/404))
- `VacantEntry` and `OccupiedEntry` now use the default hasher if none
is
specified in generics.
([#&#8203;389](https://togithub.com/rust-lang/hashbrown/issues/389))
- `RawTable::data_start` now returns a `NonNull` to match
`RawTable::data_end`.
([#&#8203;387](https://togithub.com/rust-lang/hashbrown/issues/387))
- `RawIter::{reflect_insert, reflect_remove}` are now unsafe.
([#&#8203;429](https://togithub.com/rust-lang/hashbrown/issues/429))
- `RawTable::find_potential` is renamed to `find_or_find_insert_slot`
and returns an `InsertSlot`.
([#&#8203;429](https://togithub.com/rust-lang/hashbrown/issues/429))
- `RawTable::remove` now also returns an `InsertSlot`.
([#&#8203;429](https://togithub.com/rust-lang/hashbrown/issues/429))
- `InsertSlot` can be used to insert an element with
`RawTable::insert_in_slot`.
([#&#8203;429](https://togithub.com/rust-lang/hashbrown/issues/429))
- `RawIterHash` no longer has a lifetime tied to that of the `RawTable`.
([#&#8203;427](https://togithub.com/rust-lang/hashbrown/issues/427))
- The trait bounds of `HashSet::raw_table` have been relaxed to not
require `Eq + Hash`.
([#&#8203;423](https://togithub.com/rust-lang/hashbrown/issues/423))
- `EntryRef::and_replace_entry_with` and
`OccupiedEntryRef::replace_entry_with`
    were changed to give a `&K` instead of a `&Q` to the closure.

##### Removed

-   Support for `bumpalo` as an allocator with custom wrapper.
    Use `allocator-api2` feature in `bumpalo` to use it as an allocator
for `hashbrown` collections.
([#&#8203;417](https://togithub.com/rust-lang/hashbrown/issues/417))

###
[`v0.13.2`](https://togithub.com/rust-lang/hashbrown/blob/HEAD/CHANGELOG.md#v0132---2023-01-12)

[Compare
Source](https://togithub.com/rust-lang/hashbrown/compare/v0.13.1...v0.13.2)

##### Fixed

- Added `#[inline(always)]` to `find_inner`.
([#&#8203;375](https://togithub.com/rust-lang/hashbrown/issues/375))
- Fixed `RawTable::allocation_info` for empty tables.
([#&#8203;376](https://togithub.com/rust-lang/hashbrown/issues/376))

</details>

<details>
<summary>hashicorp/vault-action</summary>

###
[`v2.6.0`](https://togithub.com/hashicorp/vault-action/releases/tag/v2.6.0)

[Compare
Source](https://togithub.com/hashicorp/vault-action/compare/v2.5.0...v2.6.0)

##### 2.6.0 (June 7, 2023)

Features:

- Add ability to set the `vault_token` output to contain the Vault token
after authentication
[GH-441](https://togithub.com/hashicorp/vault-action/pull/441)
- Add support for userpass and ldap authentication methods
[GH-440](https://togithub.com/hashicorp/vault-action/pull/440)
- Define an output, `errorMessage`, for vault-action's error messages so
subsequent steps can read the errors
[GH-446](https://togithub.com/hashicorp/vault-action/pull/446)

Bugs:

- Handle undefined response in getSecrets error handler
[GH-431](https://togithub.com/hashicorp/vault-action/pull/431)

</details>

<details>
<summary>quickwit-oss/tantivy</summary>

###
[`v0.20.1`](https://togithub.com/quickwit-oss/tantivy/releases/tag/0.20.1)

#### What's Changed

- Fix building on windows with mmap by
[@&#8203;ChillFish8](https://togithub.com/ChillFish8) in
[quickwit-oss/tantivy#2070

###
[`v0.19.2`](https://togithub.com/quickwit-oss/tantivy/releases/tag/0.19.2):
Tantivy v0.19.2

[Compare
Source](https://togithub.com/quickwit-oss/tantivy/compare/0.19.1...0.19.2)

Fixes an issue in the skip list deserialization, which deserialized the
byte start offset incorrectly as u32.
`get_doc` will fail for any docs that live in a block with start offset
larger than u32::MAX (~4GB).
Causes index corruption, if a segment with a doc store file larger 4GB
is merged. ([@&#8203;PSeitz](https://togithub.com/PSeitz))

###
[`v0.19.1`](https://togithub.com/quickwit-oss/tantivy/releases/tag/0.19.1):
Tantivy v0.19.1

Hotfix on handling user input for get_docid_for_value_range
([@&#8203;PSeitz](https://togithub.com/PSeitz))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am 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](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/grafbase/api).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jakub Wieczorek <jakub@grafbase.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants