Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Bump esbuild from 0.14.31 to 0.14.53 - #85

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/esbuild-0.14.53
Closed

Bump esbuild from 0.14.31 to 0.14.53#85
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/esbuild-0.14.53

Conversation

@dependabot

@dependabotdependabotBot commented on behalf of githubAug 8, 2022

Copy link
Copy Markdown
Contributor

Bumps esbuild from 0.14.31 to 0.14.53.

Release notes

Sourced from esbuild's releases.

v0.14.53

This release fixes a minor issue with the previous release: I had to rename the package esbuild-linux-loong64 to @esbuild/linux-loong64 in the contributed PR because someone registered the package name before I could claim it, and I missed a spot. Hopefully everything is working after this release. I plan to change all platform-specific package names to use the @esbuild/ scope at some point to avoid this problem in the future.

v0.14.52

  • Allow binary data as input to the JS transform and build APIs (#2424)

    Previously esbuild's transform and build APIs could only take a string. However, some people want to use esbuild to convert binary data to base64 text. This is problematic because JavaScript strings represent UTF-16 text and esbuild internally operates on arrays of bytes, so all strings coming from JavaScript undergo UTF-16 to UTF-8 conversion before use. This meant that using esbuild in this way was doing base64 encoding of the UTF-8 encoding of the text, which was undesired.

    With this release, esbuild now accepts Uint8Array in addition to string as an input format for the transform and build APIs. Now you can use esbuild to convert binary data to base64 text:

    // Original codeimportesbuildfrom'esbuild'console.log([(awaitesbuild.transform('\xFF',{loader: 'base64'})).code,(awaitesbuild.build({stdin: {contents: '\xFF',loader: 'base64'},write: false})).outputFiles[0].text,])console.log([(awaitesbuild.transform(newUint8Array([0xFF]),{loader: 'base64'})).code,(awaitesbuild.build({stdin: {contents: newUint8Array([0xFF]),loader: 'base64'},write: false})).outputFiles[0].text,])// Old output['module.exports = "w78=";\n','module.exports = "w78=";\n']/* ERROR: The input to "transform" must be a string */// New output['module.exports = "w78=";\n','module.exports = "w78=";\n']['module.exports = "/w==";\n','module.exports = "/w==";\n']

  • Update the getter for text in build results (#2423)

    Output files in build results returned from esbuild's JavaScript API have both a contents and a text property to return the contents of the output file. The contents property is a binary UTF-8 Uint8Array and the text property is a JavaScript UTF-16 string. The text property is a getter that does the UTF-8 to UTF-16 conversion only if it's needed for better performance.

    Previously if you mutate the build results object, you had to overwrite both contents and text since the value returned from the text getter is the original text returned by esbuild. Some people find this confusing so with this release, the getter for text has been updated to do the UTF-8 to UTF-16 conversion on the current value of the contents property instead of the original value.

  • Publish builds for Linux LoongArch 64-bit (#1804, #2373)

    This release upgrades to Go 1.19, which now includes support for LoongArch 64-bit processors. LoongArch 64-bit builds of esbuild will now be published to npm, which means that in theory they can now be installed with npm install esbuild. This was contributed by @​beyond-1234.

v0.14.51

  • Add support for React 17's automatic JSX transform (#334, #718, #1172, #2318, #2349)

    This adds support for the new "automatic" JSX runtime from React 17+ to esbuild for both the build and transform APIs.

    New CLI flags and API options:

    • --jsx, jsx — Set this to "automatic" to opt in to this new transform
    • --jsx-dev, jsxDev — Toggles development mode for the automatic runtime
    • --jsx-import-source, jsxImportSource — Overrides the root import for runtime functions (default "react")

... (truncated)

Changelog

Sourced from esbuild's changelog.

0.14.53

This release fixes a minor issue with the previous release: I had to rename the package esbuild-linux-loong64 to @esbuild/linux-loong64 in the contributed PR because someone registered the package name before I could claim it, and I missed a spot. Hopefully everything is working after this release. I plan to change all platform-specific package names to use the @esbuild/ scope at some point to avoid this problem in the future.

0.14.52

  • Allow binary data as input to the JS transform and build APIs (#2424)

    Previously esbuild's transform and build APIs could only take a string. However, some people want to use esbuild to convert binary data to base64 text. This is problematic because JavaScript strings represent UTF-16 text and esbuild internally operates on arrays of bytes, so all strings coming from JavaScript undergo UTF-16 to UTF-8 conversion before use. This meant that using esbuild in this way was doing base64 encoding of the UTF-8 encoding of the text, which was undesired.

    With this release, esbuild now accepts Uint8Array in addition to string as an input format for the transform and build APIs. Now you can use esbuild to convert binary data to base64 text:

    // Original codeimportesbuildfrom'esbuild'console.log([(awaitesbuild.transform('\xFF',{loader: 'base64'})).code,(awaitesbuild.build({stdin: {contents: '\xFF',loader: 'base64'},write: false})).outputFiles[0].text,])console.log([(awaitesbuild.transform(newUint8Array([0xFF]),{loader: 'base64'})).code,(awaitesbuild.build({stdin: {contents: newUint8Array([0xFF]),loader: 'base64'},write: false})).outputFiles[0].text,])// Old output['module.exports = "w78=";\n','module.exports = "w78=";\n']/* ERROR: The input to "transform" must be a string */// New output['module.exports = "w78=";\n','module.exports = "w78=";\n']['module.exports = "/w==";\n','module.exports = "/w==";\n']

  • Update the getter for text in build results (#2423)

    Output files in build results returned from esbuild's JavaScript API have both a contents and a text property to return the contents of the output file. The contents property is a binary UTF-8 Uint8Array and the text property is a JavaScript UTF-16 string. The text property is a getter that does the UTF-8 to UTF-16 conversion only if it's needed for better performance.

    Previously if you mutate the build results object, you had to overwrite both contents and text since the value returned from the text getter is the original text returned by esbuild. Some people find this confusing so with this release, the getter for text has been updated to do the UTF-8 to UTF-16 conversion on the current value of the contents property instead of the original value.

  • Publish builds for Linux LoongArch 64-bit (#1804, #2373)

    This release upgrades to Go 1.19, which now includes support for LoongArch 64-bit processors. LoongArch 64-bit builds of esbuild will now be published to npm, which means that in theory they can now be installed with npm install esbuild. This was contributed by @​beyond-1234.

0.14.51

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [esbuild](https://github.com/evanw/esbuild) from 0.14.31 to 0.14.53.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.14.31...v0.14.53)
---
updated-dependencies:
- dependency-name: esbuild
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
@dependabotdependabotBot added the dependencies Pull requests that update a dependency file label Aug 8, 2022
@dependabot@github

dependabotBot commented on behalf of githubAug 15, 2022

Copy link
Copy Markdown
ContributorAuthor

Superseded by #88.

@dependabotdependabotBot closed this Aug 15, 2022
@dependabot
dependabotBot deleted the dependabot/npm_and_yarn/esbuild-0.14.53 branch August 15, 2022 04:18
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependenciesPull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants