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

chore(deps): update dependency esbuild to v0.21.5 #5018

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 23, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
esbuild 0.21.4 -> 0.21.5 age adoption passing confidence

Release Notes

evanw/esbuild (esbuild)

v0.21.5

Compare Source

  • Fix Symbol.metadata on classes without a class decorator (#​3781)

    This release fixes a bug with esbuild's support for the decorator metadata proposal. Previously esbuild only added the Symbol.metadata property to decorated classes if there was a decorator on the class element itself. However, the proposal says that the Symbol.metadata property should be present on all classes that have any decorators at all, not just those with a decorator on the class element itself.

  • Allow unknown import attributes to be used with the copy loader (#​3792)

    Import attributes (the with keyword on import statements) are allowed to alter how that path is loaded. For example, esbuild cannot assume that it knows how to load ./bagel.js as type bagel:

    // This is an error with "--bundle" without also using "--external:./bagel.js"
    import tasty from "./bagel.js" with { type: "bagel" }

    Because of that, bundling this code with esbuild is an error unless the file ./bagel.js is external to the bundle (such as with --bundle --external:./bagel.js).

    However, there is an additional case where it's ok for esbuild to allow this: if the file is loaded using the copy loader. That's because the copy loader behaves similarly to --external in that the file is left external to the bundle. The difference is that the copy loader copies the file into the output folder and rewrites the import path while --external doesn't. That means the following will now work with the copy loader (such as with --bundle --loader:.bagel=copy):

    // This is no longer an error with "--bundle" and "--loader:.bagel=copy"
    import tasty from "./tasty.bagel" with { type: "bagel" }
  • Support import attributes with glob-style imports (#​3797)

    This release adds support for import attributes (the with option) to glob-style imports (dynamic imports with certain string literal patterns as paths). These imports previously didn't support import attributes due to an oversight. So code like this will now work correctly:

    async function loadLocale(locale: string): Locale {
      const data = await import(`./locales/${locale}.data`, { with: { type: 'json' } })
      return unpackLocale(locale, data)
    }

    Previously this didn't work even though esbuild normally supports forcing the JSON loader using an import attribute. Attempting to do this used to result in the following error:

    ✘ [ERROR] No loader is configured for ".data" files: locales/en-US.data
    
        example.ts:2:28:
          2 │   const data = await import(`./locales/${locale}.data`, { with: { type: 'json' } })
            ╵                             ~~~~~~~~~~~~~~~~~~~~~~~~~~
    

    In addition, this change means plugins can now access the contents of with for glob-style imports.

  • Support ${configDir} in tsconfig.json files (#​3782)

    This adds support for a new feature from the upcoming TypeScript 5.5 release. The character sequence ${configDir} is now respected at the start of baseUrl and paths values, which are used by esbuild during bundling to correctly map import paths to file system paths. This feature lets base tsconfig.json files specified via extends refer to the directory of the top-level tsconfig.json file. Here is an example:

    {
      "compilerOptions": {
        "paths": {
          "js/*": ["${configDir}/dist/js/*"]
        }
      }
    }

    You can read more in TypeScript's blog post about their upcoming 5.5 release. Note that this feature does not make use of template literals (you need to use "${configDir}/dist/js/*" not `${configDir}/dist/js/*`). The syntax for tsconfig.json is still just JSON with comments, and JSON syntax does not allow template literals. This feature only recognizes ${configDir} in strings for certain path-like properties, and only at the beginning of the string.

  • Fix internal error with --supported:object-accessors=false (#​3794)

    This release fixes a regression in 0.21.0 where some code that was added to esbuild's internal runtime library of helper functions for JavaScript decorators fails to parse when you configure esbuild with --supported:object-accessors=false. The reason is that esbuild introduced code that does { get [name]() {} } which uses both the object-extensions feature for the [name] and the object-accessors feature for the get, but esbuild was incorrectly only checking for object-extensions and not for object-accessors. Additional tests have been added to avoid this type of issue in the future. A workaround for this issue in earlier releases is to also add --supported:object-extensions=false.


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.


  • If you want to rebase/retry this PR, check this box

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

Copy link

changeset-bot bot commented Jun 23, 2024

⚠️ No Changeset found

Latest commit: 8e5ad80

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

🐋 This PR was built and pushed to the following Docker images (tag: 8e5ad80280aacaf2c655f9d6e5b0d883b31f6853):

Docker Bake metadata
{
"app": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/ohqvtvniaib65m2jnwmbvqtxr",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:15d8ced2cfbac2d59a727f1da952ded25a56aff457314d818a16bbec6c92ca03",
    "size": 685
  },
  "containerimage.digest": "sha256:15d8ced2cfbac2d59a727f1da952ded25a56aff457314d818a16bbec6c92ca03",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/app:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/app:renovate_esbuild_0.x"
},
"composition-federation-2": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/2eotoir7nblc4lw97d6j5plq3",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:de34680eab3b9e29c60d2842b39e781e1b2b231dedc5b010009bf820577c90ce",
    "size": 685
  },
  "containerimage.digest": "sha256:de34680eab3b9e29c60d2842b39e781e1b2b231dedc5b010009bf820577c90ce",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/composition-federation-2:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/composition-federation-2:renovate_esbuild_0.x"
},
"emails": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/jpm7hp1i0e4jg4594o9ggl83y",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:b8a6cf75f057eb76270f9f14e5904b170b94994fea74fcd008f77c75efe77a41",
    "size": 685
  },
  "containerimage.digest": "sha256:b8a6cf75f057eb76270f9f14e5904b170b94994fea74fcd008f77c75efe77a41",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/emails:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/emails:renovate_esbuild_0.x"
},
"policy": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/c9pj54lgft7e68xvj0tbjqoyu",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:7ef8760744439fe9157bf00c254b00f7dc4df22e04e6ec963a92bd6e34548e38",
    "size": 685
  },
  "containerimage.digest": "sha256:7ef8760744439fe9157bf00c254b00f7dc4df22e04e6ec963a92bd6e34548e38",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/policy:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/policy:renovate_esbuild_0.x"
},
"rate-limit": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/z8il2tm7rkk1c8yt8pf3s6lj7",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:7ff65612cbcfef0e317bb5b17830176b1639f0c4ef5931f5b8aecab6d0fcbc1b",
    "size": 685
  },
  "containerimage.digest": "sha256:7ff65612cbcfef0e317bb5b17830176b1639f0c4ef5931f5b8aecab6d0fcbc1b",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/rate-limit:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/rate-limit:renovate_esbuild_0.x"
},
"schema": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/ubsyuvcys7p2tgn7whd9r749p",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:69849d835cb432bdcbb136f73fc1dc7eccf870ef2cfb83bbd58e561cce04d124",
    "size": 685
  },
  "containerimage.digest": "sha256:69849d835cb432bdcbb136f73fc1dc7eccf870ef2cfb83bbd58e561cce04d124",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/schema:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/schema:renovate_esbuild_0.x"
},
"server": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/u9x0g0upa0bg5e5yb3rz0p0pr",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:58f25655fe9046a0d880f600b598715a7c9b034d9670fd6c07e175ddbb862453",
    "size": 685
  },
  "containerimage.digest": "sha256:58f25655fe9046a0d880f600b598715a7c9b034d9670fd6c07e175ddbb862453",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/server:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/server:renovate_esbuild_0.x"
},
"storage": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/gkuha96i39kqyuhkf893r4uuw",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:ec20384719988db1690ddb9319c52f8d7f4a8a33c20051a3c55e5833f2a041a2",
    "size": 685
  },
  "containerimage.digest": "sha256:ec20384719988db1690ddb9319c52f8d7f4a8a33c20051a3c55e5833f2a041a2",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/storage:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/storage:renovate_esbuild_0.x"
},
"stripe-billing": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/ji0vy6q71gu3r5jimpr5gqn1u",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:3c51f5e606927e568b5b81fbce132b303b8d0c7c8697814e9146822935f9d482",
    "size": 685
  },
  "containerimage.digest": "sha256:3c51f5e606927e568b5b81fbce132b303b8d0c7c8697814e9146822935f9d482",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/stripe-billing:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/stripe-billing:renovate_esbuild_0.x"
},
"tokens": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/az8p8dhymxy04k0tqu2efg908",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:89962dbda38ae0468ee21fc048e277b2ef638cc87928fac24b194c06890eba38",
    "size": 685
  },
  "containerimage.digest": "sha256:89962dbda38ae0468ee21fc048e277b2ef638cc87928fac24b194c06890eba38",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/tokens:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/tokens:renovate_esbuild_0.x"
},
"usage": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/jgg98xiguebs09uq3mua9u7tk",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:896661eaf21fe2b0905d39f6360a23bfc1283a8137b1d93e87f1e6e1b89cf583",
    "size": 685
  },
  "containerimage.digest": "sha256:896661eaf21fe2b0905d39f6360a23bfc1283a8137b1d93e87f1e6e1b89cf583",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/usage:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/usage:renovate_esbuild_0.x"
},
"usage-estimator": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/rkas1s0nzzn6k3xxe5cbw5x5f",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:e3772a05b850e7c19df9bbd81fa1c41197226e92dd4b4fe522ae43e9fd881c2a",
    "size": 685
  },
  "containerimage.digest": "sha256:e3772a05b850e7c19df9bbd81fa1c41197226e92dd4b4fe522ae43e9fd881c2a",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/usage-estimator:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/usage-estimator:renovate_esbuild_0.x"
},
"usage-ingestor": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/gel3y8wjnh4jrbnn2dvnvn0ke",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:adf8cddc0096f90c0a1c7d5658bdce3f349e9daf1f5a680d595a7011ede7b703",
    "size": 685
  },
  "containerimage.digest": "sha256:adf8cddc0096f90c0a1c7d5658bdce3f349e9daf1f5a680d595a7011ede7b703",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/usage-ingestor:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/usage-ingestor:renovate_esbuild_0.x"
},
"webhooks": {
  "buildx.build.ref": "builder-186558fb-65b1-41f6-a8e9-65bfba9b0c68/builder-186558fb-65b1-41f6-a8e9-65bfba9b0c680/vuc7hhfrn93fnmr0ivp3wmsx1",
  "containerimage.descriptor": {
    "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
    "digest": "sha256:d6db516f8111c3508068f143c88b0976a5cb421eb80d2e62e2787487ba13807b",
    "size": 685
  },
  "containerimage.digest": "sha256:d6db516f8111c3508068f143c88b0976a5cb421eb80d2e62e2787487ba13807b",
  "image.name": "ghcr.io/kamilkisiela/graphql-hive/webhooks:8e5ad80280aacaf2c655f9d6e5b0d883b31f6853,ghcr.io/kamilkisiela/graphql-hive/webhooks:renovate_esbuild_0.x"
}
}

@dotansimha dotansimha merged commit 1275cb7 into main Jun 23, 2024
25 checks passed
@dotansimha dotansimha deleted the renovate/esbuild-0.x branch June 23, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant