-
Notifications
You must be signed in to change notification settings - Fork 2.1k
chore(deps): update dependency esbuild to ^0.15.0 #1848
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
fad9429
to
d5583a0
Compare
d5583a0
to
2e2b966
Compare
2e2b966
to
4f791ee
Compare
nathanhammond
approved these changes
Sep 5, 2022
fuxingloh
referenced
this pull request
in fuxingloh/contented
Sep 9, 2022
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [turbo](https://turborepo.org) ([source](https://togithub.com/vercel/turborepo)) | [`^1.4.3` -> `^1.4.6`](https://renovatebot.com/diffs/npm/turbo/1.4.3/1.4.6) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/turborepo</summary> ### [`v1.4.6`](https://togithub.com/vercel/turborepo/releases/tag/v1.4.6) [Compare Source](https://togithub.com/vercel/turborepo/compare/v1.4.5...v1.4.6) #### What's Changed ##### Internal - fix(deps): update dependency ora to v4.1.1 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1854](https://togithub.com/vercel/turborepo/pull/1854) - Don't special case version command by [@​gsoltis](https://togithub.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1870](https://togithub.com/vercel/turborepo/pull/1870) - fix(deps): update dependency react-hot-toast to v2.3.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1875](https://togithub.com/vercel/turborepo/pull/1875) - chore(deps): update jamesives/github-pages-deploy-action action to v4.4.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1851](https://togithub.com/vercel/turborepo/pull/1851) - chore(deps): update dependency typescript to v4.8.2 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1849](https://togithub.com/vercel/turborepo/pull/1849) - chore(deps): update dependency esbuild to ^0.15.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1848](https://togithub.com/vercel/turborepo/pull/1848) - Enable pnpm@6 testing. by [@​7flash](https://togithub.com/7flash) in [https://github.com/vercel/turborepo/pull/1837](https://togithub.com/vercel/turborepo/pull/1837) - fix(deps): update dependency eslint-plugin-react to v7.31.7 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1834](https://togithub.com/vercel/turborepo/pull/1834) - chore(deps): update dependency [@​types/react](https://togithub.com/types/react) to v17.0.49 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1833](https://togithub.com/vercel/turborepo/pull/1833) - Replace some 2 letter variables for readability by [@​mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turborepo/pull/1845](https://togithub.com/vercel/turborepo/pull/1845) ##### Documentation - Remove unused packages from docs site by [@​mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turborepo/pull/1828](https://togithub.com/vercel/turborepo/pull/1828) - Consolidated 'workspace' and 'package' terminology by [@​mattpocock](https://togithub.com/mattpocock) in [https://github.com/vercel/turborepo/pull/1817](https://togithub.com/vercel/turborepo/pull/1817) - Rewrote docs homepage by [@​mattpocock](https://togithub.com/mattpocock) in [https://github.com/vercel/turborepo/pull/1756](https://togithub.com/vercel/turborepo/pull/1756) - Update existing-monorepo.mdx by [@​shemayas](https://togithub.com/shemayas) in [https://github.com/vercel/turborepo/pull/1858](https://togithub.com/vercel/turborepo/pull/1858) - Update Docs by [@​PhentomPT](https://togithub.com/PhentomPT) in [https://github.com/vercel/turborepo/pull/1794](https://togithub.com/vercel/turborepo/pull/1794) - Fix broken links on "Add to existing Monorepo" by [@​pakaponk](https://togithub.com/pakaponk) in [https://github.com/vercel/turborepo/pull/1836](https://togithub.com/vercel/turborepo/pull/1836) ##### Examples - Removed parallel flag from basic example by [@​mattpocock](https://togithub.com/mattpocock) in [https://github.com/vercel/turborepo/pull/1787](https://togithub.com/vercel/turborepo/pull/1787) - Renamed storybook components by [@​samuelhorn](https://togithub.com/samuelhorn) in [https://github.com/vercel/turborepo/pull/1841](https://togithub.com/vercel/turborepo/pull/1841) ##### Packages - fix(eslint): exclude variables in rule by [@​tknickman](https://togithub.com/tknickman) in [https://github.com/vercel/turborepo/pull/1865](https://togithub.com/vercel/turborepo/pull/1865) #### New Contributors - [@​shemayas](https://togithub.com/shemayas) made their first contribution in [https://github.com/vercel/turborepo/pull/1858](https://togithub.com/vercel/turborepo/pull/1858) - [@​7flash](https://togithub.com/7flash) made their first contribution in [https://github.com/vercel/turborepo/pull/1837](https://togithub.com/vercel/turborepo/pull/1837) - [@​PhentomPT](https://togithub.com/PhentomPT) made their first contribution in [https://github.com/vercel/turborepo/pull/1794](https://togithub.com/vercel/turborepo/pull/1794) **Full Changelog**: vercel/turborepo@v1.4.5...v1.4.6 ### [`v1.4.5`](https://togithub.com/vercel/turborepo/releases/tag/v1.4.5) [Compare Source](https://togithub.com/vercel/turborepo/compare/v1.4.4...v1.4.5) #### What's Changed ##### Core - Split notion of logged in into user and linked-team by [@​gsoltis](https://togithub.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1844](https://togithub.com/vercel/turborepo/pull/1844) ##### Documentation - Turborepo usage. by [@​nathanhammond](https://togithub.com/nathanhammond) in [https://github.com/vercel/turborepo/pull/1827](https://togithub.com/vercel/turborepo/pull/1827) - Remove unused [@​react-aria/radio](https://togithub.com/react-aria/radio) package by [@​mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turborepo/pull/1826](https://togithub.com/vercel/turborepo/pull/1826) - Fix broken links at "Next Steps" on "Add to Existing Monorepo" by [@​pakaponk](https://togithub.com/pakaponk) in [https://github.com/vercel/turborepo/pull/1835](https://togithub.com/vercel/turborepo/pull/1835) - Upgrade Nextra by [@​shuding](https://togithub.com/shuding) in [https://github.com/vercel/turborepo/pull/1831](https://togithub.com/vercel/turborepo/pull/1831) **Full Changelog**: vercel/turborepo@v1.4.4...v1.4.5 ### [`v1.4.4`](https://togithub.com/vercel/turborepo/compare/v1.4.3...v1.4.4) [Compare Source](https://togithub.com/vercel/turborepo/compare/v1.4.3...v1.4.4) </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, click this checkbox. --- 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:eyJjcmVhdGVkSW5WZXIiOiIzMi4xODYuMiIsInVwZGF0ZWRJblZlciI6IjMyLjE5NC4yIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 task
fuxingloh
referenced
this pull request
in DeFiCh/metachain
Sep 12, 2022
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [turbo](https://turborepo.org) ([source](https://togithub.com/vercel/turborepo)) | [`^1.4.5` -> `^1.4.6`](https://renovatebot.com/diffs/npm/turbo/1.4.5/1.4.6) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/turborepo</summary> ### [`v1.4.6`](https://togithub.com/vercel/turborepo/releases/tag/v1.4.6) [Compare Source](https://togithub.com/vercel/turborepo/compare/v1.4.5...v1.4.6) #### What's Changed ##### Internal - fix(deps): update dependency ora to v4.1.1 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1854](https://togithub.com/vercel/turborepo/pull/1854) - Don't special case version command by [@​gsoltis](https://togithub.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1870](https://togithub.com/vercel/turborepo/pull/1870) - fix(deps): update dependency react-hot-toast to v2.3.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1875](https://togithub.com/vercel/turborepo/pull/1875) - chore(deps): update jamesives/github-pages-deploy-action action to v4.4.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1851](https://togithub.com/vercel/turborepo/pull/1851) - chore(deps): update dependency typescript to v4.8.2 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1849](https://togithub.com/vercel/turborepo/pull/1849) - chore(deps): update dependency esbuild to ^0.15.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1848](https://togithub.com/vercel/turborepo/pull/1848) - Enable pnpm@6 testing. by [@​7flash](https://togithub.com/7flash) in [https://github.com/vercel/turborepo/pull/1837](https://togithub.com/vercel/turborepo/pull/1837) - fix(deps): update dependency eslint-plugin-react to v7.31.7 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1834](https://togithub.com/vercel/turborepo/pull/1834) - chore(deps): update dependency [@​types/react](https://togithub.com/types/react) to v17.0.49 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1833](https://togithub.com/vercel/turborepo/pull/1833) - Replace some 2 letter variables for readability by [@​mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turborepo/pull/1845](https://togithub.com/vercel/turborepo/pull/1845) ##### Documentation - Remove unused packages from docs site by [@​mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turborepo/pull/1828](https://togithub.com/vercel/turborepo/pull/1828) - Consolidated 'workspace' and 'package' terminology by [@​mattpocock](https://togithub.com/mattpocock) in [https://github.com/vercel/turborepo/pull/1817](https://togithub.com/vercel/turborepo/pull/1817) - Rewrote docs homepage by [@​mattpocock](https://togithub.com/mattpocock) in [https://github.com/vercel/turborepo/pull/1756](https://togithub.com/vercel/turborepo/pull/1756) - Update existing-monorepo.mdx by [@​shemayas](https://togithub.com/shemayas) in [https://github.com/vercel/turborepo/pull/1858](https://togithub.com/vercel/turborepo/pull/1858) - Update Docs by [@​PhentomPT](https://togithub.com/PhentomPT) in [https://github.com/vercel/turborepo/pull/1794](https://togithub.com/vercel/turborepo/pull/1794) - Fix broken links on "Add to existing Monorepo" by [@​pakaponk](https://togithub.com/pakaponk) in [https://github.com/vercel/turborepo/pull/1836](https://togithub.com/vercel/turborepo/pull/1836) ##### Examples - Removed parallel flag from basic example by [@​mattpocock](https://togithub.com/mattpocock) in [https://github.com/vercel/turborepo/pull/1787](https://togithub.com/vercel/turborepo/pull/1787) - Renamed storybook components by [@​samuelhorn](https://togithub.com/samuelhorn) in [https://github.com/vercel/turborepo/pull/1841](https://togithub.com/vercel/turborepo/pull/1841) ##### Packages - fix(eslint): exclude variables in rule by [@​tknickman](https://togithub.com/tknickman) in [https://github.com/vercel/turborepo/pull/1865](https://togithub.com/vercel/turborepo/pull/1865) #### New Contributors - [@​shemayas](https://togithub.com/shemayas) made their first contribution in [https://github.com/vercel/turborepo/pull/1858](https://togithub.com/vercel/turborepo/pull/1858) - [@​7flash](https://togithub.com/7flash) made their first contribution in [https://github.com/vercel/turborepo/pull/1837](https://togithub.com/vercel/turborepo/pull/1837) - [@​PhentomPT](https://togithub.com/PhentomPT) made their first contribution in [https://github.com/vercel/turborepo/pull/1794](https://togithub.com/vercel/turborepo/pull/1794) **Full Changelog**: vercel/turborepo@v1.4.5...v1.4.6 </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, click this checkbox. --- 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/DeFiCh/metachain). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTQuMyIsInVwZGF0ZWRJblZlciI6IjMyLjE5NC4zIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
canonbrother
referenced
this pull request
in DeFiCh/metachain
Sep 28, 2022
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [turbo](https://turborepo.org) ([source](https://togithub.com/vercel/turborepo)) | [`^1.4.5` -> `^1.4.6`](https://renovatebot.com/diffs/npm/turbo/1.4.5/1.4.6) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/turborepo</summary> ### [`v1.4.6`](https://togithub.com/vercel/turborepo/releases/tag/v1.4.6) [Compare Source](https://togithub.com/vercel/turborepo/compare/v1.4.5...v1.4.6) #### What's Changed ##### Internal - fix(deps): update dependency ora to v4.1.1 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1854](https://togithub.com/vercel/turborepo/pull/1854) - Don't special case version command by [@​gsoltis](https://togithub.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1870](https://togithub.com/vercel/turborepo/pull/1870) - fix(deps): update dependency react-hot-toast to v2.3.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1875](https://togithub.com/vercel/turborepo/pull/1875) - chore(deps): update jamesives/github-pages-deploy-action action to v4.4.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1851](https://togithub.com/vercel/turborepo/pull/1851) - chore(deps): update dependency typescript to v4.8.2 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1849](https://togithub.com/vercel/turborepo/pull/1849) - chore(deps): update dependency esbuild to ^0.15.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1848](https://togithub.com/vercel/turborepo/pull/1848) - Enable pnpm@6 testing. by [@​7flash](https://togithub.com/7flash) in [https://github.com/vercel/turborepo/pull/1837](https://togithub.com/vercel/turborepo/pull/1837) - fix(deps): update dependency eslint-plugin-react to v7.31.7 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1834](https://togithub.com/vercel/turborepo/pull/1834) - chore(deps): update dependency [@​types/react](https://togithub.com/types/react) to v17.0.49 by [@​renovate](https://togithub.com/renovate) in [https://github.com/vercel/turborepo/pull/1833](https://togithub.com/vercel/turborepo/pull/1833) - Replace some 2 letter variables for readability by [@​mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turborepo/pull/1845](https://togithub.com/vercel/turborepo/pull/1845) ##### Documentation - Remove unused packages from docs site by [@​mehulkar](https://togithub.com/mehulkar) in [https://github.com/vercel/turborepo/pull/1828](https://togithub.com/vercel/turborepo/pull/1828) - Consolidated 'workspace' and 'package' terminology by [@​mattpocock](https://togithub.com/mattpocock) in [https://github.com/vercel/turborepo/pull/1817](https://togithub.com/vercel/turborepo/pull/1817) - Rewrote docs homepage by [@​mattpocock](https://togithub.com/mattpocock) in [https://github.com/vercel/turborepo/pull/1756](https://togithub.com/vercel/turborepo/pull/1756) - Update existing-monorepo.mdx by [@​shemayas](https://togithub.com/shemayas) in [https://github.com/vercel/turborepo/pull/1858](https://togithub.com/vercel/turborepo/pull/1858) - Update Docs by [@​PhentomPT](https://togithub.com/PhentomPT) in [https://github.com/vercel/turborepo/pull/1794](https://togithub.com/vercel/turborepo/pull/1794) - Fix broken links on "Add to existing Monorepo" by [@​pakaponk](https://togithub.com/pakaponk) in [https://github.com/vercel/turborepo/pull/1836](https://togithub.com/vercel/turborepo/pull/1836) ##### Examples - Removed parallel flag from basic example by [@​mattpocock](https://togithub.com/mattpocock) in [https://github.com/vercel/turborepo/pull/1787](https://togithub.com/vercel/turborepo/pull/1787) - Renamed storybook components by [@​samuelhorn](https://togithub.com/samuelhorn) in [https://github.com/vercel/turborepo/pull/1841](https://togithub.com/vercel/turborepo/pull/1841) ##### Packages - fix(eslint): exclude variables in rule by [@​tknickman](https://togithub.com/tknickman) in [https://github.com/vercel/turborepo/pull/1865](https://togithub.com/vercel/turborepo/pull/1865) #### New Contributors - [@​shemayas](https://togithub.com/shemayas) made their first contribution in [https://github.com/vercel/turborepo/pull/1858](https://togithub.com/vercel/turborepo/pull/1858) - [@​7flash](https://togithub.com/7flash) made their first contribution in [https://github.com/vercel/turborepo/pull/1837](https://togithub.com/vercel/turborepo/pull/1837) - [@​PhentomPT](https://togithub.com/PhentomPT) made their first contribution in [https://github.com/vercel/turborepo/pull/1794](https://togithub.com/vercel/turborepo/pull/1794) **Full Changelog**: vercel/turborepo@v1.4.5...v1.4.6 </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, click this checkbox. --- 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/DeFiCh/metachain). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTQuMyIsInVwZGF0ZWRJblZlciI6IjMyLjE5NC4zIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.14.38
->^0.15.0
Release Notes
evanw/esbuild
v0.15.7
Compare Source
Add
--watch=forever
to allow esbuild to never terminate (#1511, #1885)Currently using esbuild's watch mode via
--watch
from the CLI will stop watching if stdin is closed. The rationale is that stdin is automatically closed by the OS when the parent process exits, so stopping watch mode when stdin is closed ensures that esbuild's watch mode doesn't keep running forever after the parent process has been closed. For example, it would be bad if you wrote a shell script that didesbuild --watch &
to run esbuild's watch mode in the background, and every time you run the script it creates a newesbuild
process that runs forever.However, there are cases when it makes sense for esbuild's watch mode to never exit. One such case is within a short-lived VM where the lifetime of all processes inside the VM is expected to be the lifetime of the VM. Previously you could easily do this by piping the output of a long-lived command into esbuild's stdin such as
sleep 999999999 | esbuild --watch &
. However, this possibility often doesn't occur to people, and it also doesn't work on Windows. People also sometimes attempt to keep esbuild open by piping an infinite stream of data to esbuild such as withesbuild --watch </dev/zero &
which causes esbuild to spin at 100% CPU. So with this release, esbuild now has a--watch=forever
flag that will not stop watch mode when stdin is closed.Work around
PATH
withoutnode
in install script (#2519)Some people install esbuild's npm package in an environment without the
node
command in theirPATH
. This fails on Windows because esbuild's install script runs theesbuild
command before exiting as a sanity check, and on Windows theesbuild
command has to be a JavaScript file because of some internal details about how npm handles thebin
folder (specifically theesbuild
command lacks the.exe
extension, which is required on Windows). This release attempts to work around this problem by usingprocess.execPath
instead of"node"
as the command for running node. In theory this means the installer can now still function on Windows if something is wrong withPATH
.v0.15.6
Compare Source
Lower
for await
loops (#1930)This release lowers
for await
loops to the equivalentfor
loop containingawait
when esbuild is configured such thatfor await
loops are unsupported. This transform still requires at least generator functions to be supported since esbuild's lowering ofawait
currently relies on generators. This new transformation is mostly modeled after what the TypeScript compiler does. Here's an example:The code above will now become the following code with
--target=es2017
(omitting the code for the__forAwait
helper function):Automatically fix invalid
supported
configurations (#2497)The
--target=
setting lets you tell esbuild to target a specific version of one or more JavaScript runtimes such aschrome80,node14
and esbuild will restrict its output to only those features supported by all targeted JavaScript runtimes. More recently, esbuild introduced the--supported:
setting that lets you override which features are supported on a per-feature basis. However, this now lets you configure nonsensical things such as--supported:async-await=false --supported:async-generator=true
. Previously doing this could result in esbuild building successfully but producing invalid output.Starting with this release, esbuild will now attempt to automatically fix nonsensical feature override configurations by introducing more overrides until the configuration makes sense. So now the configuration from previous example will be changed such that
async-await=false
impliesasync-generator=false
. The full list of implications that were introduced is below:async-await=false
implies:async-generator=false
for-await=false
top-level-await=false
generator=false
implies:async-generator=false
object-accessors=false
implies:class-private-accessor=false
class-private-static-accessor=false
class-field=false
implies:class-private-field=false
class-static-field=false
implies:class-private-static-field=false
class=false
implies:class-field=false
class-private-accessor=false
class-private-brand-check=false
class-private-field=false
class-private-method=false
class-private-static-accessor=false
class-private-static-field=false
class-private-static-method=false
class-static-blocks=false
class-static-field=false
Implement a small minification improvement (#2496)
Some people write code that contains a label with an immediate break such as
x: break x
. Previously this code was not removed during minification but it will now be removed during minification starting with this release.Fix installing esbuild via Yarn with
enableScripts: false
configured (#2457)If esbuild is installed with Yarn with the
enableScripts: false
setting configured, then Yarn will not "unplug" theesbuild
package (i.e. it will keep the entire package inside a.zip
file). This messes with esbuild's library code that extracts the platform-specific binary executable because that code copies the binary executable into the esbuild package directory, and Yarn's.zip
file system shim doesn't let you write to a directory inside of a.zip
file. This release fixes this problem by writing to thenode_modules/.cache/esbuild
directory instead in this case. So you should now be able to use esbuild with Yarn whenenableScripts: false
is configured.This fix was contributed by @jonaskuske.
v0.15.5
Compare Source
Fix issues with Yarn PnP and Yarn's workspaces feature (#2476)
This release makes sure esbuild works with a Yarn feature called workspaces. Previously esbuild wasn't tested in this scenario, but this scenario now has test coverage. Getting this to work involved further tweaks to esbuild's custom code for what happens after Yarn PnP's path resolution algorithm runs, which is not currently covered by Yarn's PnP specification. These tweaks also fix
exports
map resolution with Yarn PnP for non-empty subpaths, which wasn't previously working.v0.15.4
Compare Source
Consider TypeScript import assignments to be side-effect free (#2468)
TypeScript has a legacy import syntax for working with TypeScript namespaces that looks like this:
Since esbuild converts TypeScript into JavaScript one file at a time, it doesn't know if
bar
is supposed to be a value or a type (or both, which TypeScript actually allows in this case). This is problematic because values are supposed to be kept during the conversion but types are supposed to be removed during the conversion. Currently esbuild keepsbar
in the output, which is done becausesomeNamespace.foo
is a property access and property accesses run code that could potentially have a side effect (although there is no side effect in this case).With this release, esbuild will now consider
someNamespace.foo
to have no side effects. This meansbar
will now be removed when bundling and when tree shaking is enabled. Note that it will still not be removed when tree shaking is disabled. This is because in this mode, esbuild supports adding additional code to the end of the generated output that's in the same scope as the module. That code could potentially make use ofbar
, so it would be incorrect to remove it. If you wantbar
to be removed, you'll have to enable tree shaking (which tells esbuild that nothing else depends on the unexported top-level symbols in the generated output).Change the order of the banner and the
"use strict"
directive (#2467)Previously the top of the file contained the following things in order:
"use strict"
directive from the source code, if presentbanner
API option, if specifiedThis was problematic for people that used the
banner
API option to insert the hashbang comment instead of using esbuild's hashbang comment preservation feature. So with this release, the order has now been changed to:banner
API option, if specified"use strict"
directive from the source code, if presentI'm considering this change to be a bug fix instead of a breaking change because esbuild's documentation states that the
banner
API option can be used to "insert an arbitrary string at the beginning of generated JavaScript files". While this isn't technically true because esbuild may still insert the original hashbang comment before the banner, it's at least more correct now because the banner will now come before the"use strict"
directive.For context: JavaScript files recently allowed using a hashbang comment, which starts with
#!
and which must start at the very first character of the file. It allows Unix systems to execute the file directly as a script without needing to prefix it by thenode
command. This comment typically has the value#!/usr/bin/env node
. Hashbang comments will be a part of ES2023 when it's released next year.Fix
exports
maps with Yarn PnP path resolution (#2473)The Yarn PnP specification says that to resolve a package path, you first resolve it to the absolute path of a directory, and then you run node's module resolution algorithm on it. Previously esbuild followed this part of the specification. However, doing this means that
exports
inpackage.json
is not respected because node's module resolution algorithm doesn't interpretexports
for absolute paths. So with this release, esbuild will now use a modified algorithm that deviates from both specifications but that should hopefully behave more similar to what Yarn actually does: node's module resolution algorithm is run with the original import path but starting from the directory returned by Yarn PnP.v0.15.3
Compare Source
Change the Yarn PnP manifest to a singleton (#2463)
Previously esbuild searched for the Yarn PnP manifest in the parent directories of each file. But with Yarn's
enableGlobalCache
setting it's possible to configure Yarn PnP's implementation to reach outside of the directory subtree containing the Yarn PnP manifest. This was causing esbuild to fail to bundle projects with theenableGlobalCache
setting enabled.To handle this case, esbuild will now only search for the Yarn PnP manifest in the current working directory of the esbuild process. If you're using esbuild's CLI, this means you will now have to
cd
into the appropriate directory first. If you're using esbuild's API, you can override esbuild's value for the current working directory with theabsWorkingDir
API option.Fix Yarn PnP resolution failures due to backslashes in paths on Windows (#2462)
Previously dependencies of a Yarn PnP virtual dependency failed to resolve on Windows. This was because Windows uses
\
instead of/
as a path separator, and the path manipulation algorithms used for Yarn PnP expected/
. This release converts\
into/
in Windows paths, which fixes this issue.Fix
sideEffects
patterns containing slashes on Windows (#2465)The
sideEffects
field inpackage.json
lets you specify an array of patterns to mark which files have side effects (which causes all other files to be considered to not have side effects by exclusion). That looks like this:However, the presence of the
/
character in the pattern meant that the pattern failed to match Windows-style paths, which brokesideEffects
on Windows in this case. This release fixes this problem by adding additional code to handle Windows-style paths.v0.15.2
Compare Source
Fix Yarn PnP issue with packages containing
index.js
(#2455, #2461)Yarn PnP's tests require the resolved paths to end in
/
. That's not how the rest of esbuild's internals work, however, and doing this messed up esbuild's node module path resolution regarding automatically-detectedindex.js
files. Previously packages that relied on implicitindex.js
resolution rules didn't work with esbuild under Yarn PnP. Removing this slash has fixed esbuild's path resolution behavior regardingindex.js
, which should now the same both with and without Yarn PnP.Fix Yarn PnP support for
extends
intsconfig.json
(#2456)Previously using
extends
intsconfig.json
with a path in a Yarn PnP package didn't work. This is because the process of setting up package path resolution rules requires parsingtsconfig.json
files (due to thebaseUrl
andpaths
features) and resolvingextends
to a package path requires package path resolution rules to already be set up, which is a circular dependency. This cycle is broken by using special rules forextends
intsconfig.json
that bypasses esbuild's normal package path resolution process. This is why usingextends
with a Yarn PnP package didn't automatically work. With this release, these special rules have been modified to check for a Yarn PnP manifest so this case should work now.Fix Yarn PnP support in
esbuild-wasm
(#2458)When running esbuild via WebAssembly, Yarn PnP support previously failed because Go's file system internals return
EINVAL
when trying to read a.zip
file as a directory when run with WebAssembly. This was unexpected because Go's file system internals returnENOTDIR
for this case on native. This release updates esbuild to treatEINVAL
likeENOTDIR
in this case, which fixes usingesbuild-wasm
to bundle a Yarn PnP project.Note that to be able to use
esbuild-wasm
for Yarn PnP successfully, you currently have to run it usingnode
instead ofyarn node
. This is because the file system shim that Yarn overwrites node's native file system API with currently generates invalid file descriptors with negative values when inside a.zip
file. This prevents esbuild from working correctly because Go's file system internals don't expect syscalls that succeed without an error to return an invalid file descriptor. Yarn is working on fixing their use of invalid file descriptors.v0.15.1
Compare Source
Update esbuild's Yarn Plug'n'Play implementation to match the latest specification changes (#2452, #2453)
This release updates esbuild's implementation of Yarn Plug'n'Play to match some changes to Yarn's specification that just landed. The changes are as follows:
Check for platform-specific absolute paths instead of always for the
/
prefixThe specification previously said that Yarn Plug'n'Play path resolution rules should not apply for paths that start with
/
. The intent was to avoid accidentally processing absolute paths. However, absolute paths on Windows such asC:\project
start with drive letters instead of with/
. So the specification was changed to instead explicitly avoid processing absolute paths.Make
$$virtual
an alias for__virtual__
Supporting Yarn-style path resolution requires implementing a custom Yarn-specific path traversal scheme where certain path segments are considered no-ops. Specifically any path containing segments of the form
__virtual__/<whatever>/<n>
where<n>
is an integer must be treated as if they weren
times the..
operator instead (the<whatever>
path segment is ignored). So/path/to/project/__virtual__/xyz/2/foo.js
maps to the underlying file/path/to/project/../../foo.js
. This scheme makes it possible for Yarn to get node (and esbuild) to load the same file multiple times (which is sometimes required for correctness) without actually duplicating the file on the file system.However, old versions of Yarn used to use
$$virtual
instead of__virtual__
. This was changed because$$virtual
was error-prone due to the use of the$
character, which can cause bugs when it's not correctly escaped within regular expressions. Now that esbuild makes$$virtual
an alias for__virtual__
, esbuild should now work with manifests from these old Yarn versions.Ignore PnP manifests in virtual directories
The specification describes the algorithm for how to find the Plug'n'Play manifest when starting from a certain point in the file system: search through all parent directories in reverse order until the manifest is found. However, this interacts poorly with virtual paths since it can end up finding a virtual copy of the manifest instead of the original. To avoid this, esbuild now ignores manifests in virtual directories so that the search for the manifest will continue and find the original manifest in another parent directory later on.
These fixes mean that esbuild's implementation of Plug'n'Play now matches Yarn's implementation more closely, and esbuild can now correctly build more projects that use Plug'n'Play.
v0.15.0
Compare Source
This release contains backwards-incompatible changes. Since esbuild is before version 1.0.0, these changes have been released as a new minor version to reflect this (as recommended by npm). You should either be pinning the exact version of
esbuild
in yourpackage.json
file or be using a version range syntax that only accepts patch upgrades such as~0.14.0
. See the documentation about semver for more information.Implement the Yarn Plug'n'Play module resolution algorithm (#154, #237, #1263, #2451)
Node comes with a package manager called npm, which installs packages into a
node_modules
folder. Node and esbuild both come with built-in rules for resolving import paths to packages withinnode_modules
, so packages installed via npm work automatically without any configuration. However, many people use an alternative package manager called Yarn. While Yarn can install packages usingnode_modules
, it also offers a different package installation strategy called Plug'n'Play, which is often shortened to "PnP" (not to be confused with pnpm, which is an entirely different unrelated package manager).Plug'n'Play installs packages as
.zip
files on your file system. The packages are never actually unzipped. Since Node doesn't know anything about Yarn's package installation strategy, this means you can no longer run your code with Node as it won't be able to find your packages. Instead, you need to run your code with Yarn, which applies patches to Node's file system APIs before running your code. These patches attempt to make zip files seem like normal directories. When running under Yarn, using Node's file system API to read./some.zip/lib/file.js
actually automatically extractslib/file.js
from./some.zip
at run-time as if it was a normal file. Other file system APIs behave similarly. However, these patches don't work with esbuild because esbuild is not written in JavaScript; it's a native binary executable that interacts with the file system directly through the operating system.Previously the workaround for using esbuild with Plug'n'Play was to use the
@yarnpkg/esbuild-plugin-pnp
plugin with esbuild's JavaScript API. However, this wasn't great because the plugin needed to potentially intercept every single import path and file load to check whether it was a Plug'n'Play package, which has an unusually high performance cost. It also meant that certain subtleties of path resolution rules within a.zip
file could differ slightly from the way esbuild normally works since path resolution inside.zip
files was implemented by Yarn, not by esbuild (which is due to a limitation of esbuild's plugin API).With this release, esbuild now contains an independent implementation of Yarn's Plug'n'Play algorithm (which is used when esbuild finds a
.pnp.js
,.pnp.cjs
, or.pnp.data.json
file in the directory tree). Creating additional implementations of this algorithm recently became possible because Yarn's package manifest format was recently documented: https://yarnpkg.com/advanced/pnp-spec/. This should mean that you can now use esbuild to bundle Plug'n'Play projects without any additional configuration (so you shouldn't need@yarnpkg/esbuild-plugin-pnp
anymore). Bundling these projects should now happen much faster as Yarn no longer even needs to be run at all. Bundling the Yarn codebase itself with esbuild before and after this change seems to demonstrate over a 10x speedup (3.4s to 0.24s). And path resolution rules within Yarn packages should now be consistent with how esbuild handles regular Node packages. For example, fields such asmodule
andbrowser
inpackage.json
files within.zip
files should now be respected.Keep in mind that this is brand new code and there may be some initial issues to work through before esbuild's implementation is solid. Yarn's Plug'n'Play specification is also brand new and may need some follow-up edits to guide new implementations to match Yarn's exact behavior. If you try this out, make sure to test it before committing to using it, and let me know if anything isn't working as expected. Should you need to debug esbuild's path resolution, you may find
--log-level=verbose
helpful.Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" (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 these updates again.
This PR has been generated by Mend Renovate. View repository job log here.