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

build(deps): bump esbuild from 0.11.21 to 0.12.1 #2579

Merged
merged 2 commits into from
May 22, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 21, 2021

Bumps esbuild from 0.11.21 to 0.12.1.

Release notes

Sourced from esbuild's releases.

v0.12.1

  • Add the ability to preserve JSX syntax (#735)

    You can now pass --jsx=preserve to esbuild to prevent JSX from being transformed into JS. Instead, JSX syntax in all input files is preserved throughout the pipeline and is printed as JSX syntax in the generated output files. Note that this means the output files are no longer valid JavaScript code if you enable this setting. This feature is intended to be used when you want to transform the JSX syntax in esbuild's output files by another tool after bundling, usually one with a different JSX-to-JS transform than the one esbuild implements.

  • Update the list of built-in node modules (#1294)

    The list of built-in modules that come with node was outdated, so it has been updated. It now includes new modules such as wasi and _http_common. Modules in this list are automatically marked as external when esbuild's platform is configured to node.

v0.12.0

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 your package.json file or be using a version range syntax that only accepts patch upgrades such as ~0.11.0. See the documentation about semver for more information.

The breaking changes in this release relate to CSS import order and also build scenarios where both the inject and define API options are used (see below for details). These breaking changes are as follows:

  • Fix bundled CSS import order (#465)

    JS and CSS use different import ordering algorithms. In JS, importing a file that has already been imported is a no-op but in CSS, importing a file that has already been imported re-imports the file. A simple way to imagine this is to view each @import rule in CSS as being replaced by the contents of that file similar to #include in C/C++. However, this is incorrect in the case of @import cycles because it would cause infinite expansion. A more accurate way to imagine this is that in CSS, a file is evaluated at the last @import location while in JS, a file is evaluated at the first import location.

    Previously esbuild followed JS import order rules for CSS but now esbuild will follow CSS import order rules. This is a breaking change because it means your CSS may behave differently when bundled. Note that CSS import order rules are somewhat unintuitive because evaluation order matters. In CSS, using @import multiple times can end up unintentionally erasing overriding styles. For example, consider the following files:

    /* entry.css */
    @import "./color.css";
    @import "./background.css";
    /* color.css */
    @import "./reset.css";
    body {
      color: white;
    }
    /* background.css */
    @import "./reset.css";
    body {
      background: black;
    }
    /* reset.css */
    body {
      background: white;
      color: black;
    }

... (truncated)

Changelog

Sourced from esbuild's changelog.

0.12.1

  • Add the ability to preserve JSX syntax (#735)

    You can now pass --jsx=preserve to esbuild to prevent JSX from being transformed into JS. Instead, JSX syntax in all input files is preserved throughout the pipeline and is printed as JSX syntax in the generated output files. Note that this means the output files are no longer valid JavaScript code if you enable this setting. This feature is intended to be used when you want to transform the JSX syntax in esbuild's output files by another tool after bundling, usually one with a different JSX-to-JS transform than the one esbuild implements.

  • Update the list of built-in node modules (#1294)

    The list of built-in modules that come with node was outdated, so it has been updated. It now includes new modules such as wasi and _http_common. Modules in this list are automatically marked as external when esbuild's platform is configured to node.

0.12.0

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 your package.json file or be using a version range syntax that only accepts patch upgrades such as ~0.11.0. See the documentation about semver for more information.

The breaking changes in this release relate to CSS import order and also build scenarios where both the inject and define API options are used (see below for details). These breaking changes are as follows:

  • Fix bundled CSS import order (#465)

    JS and CSS use different import ordering algorithms. In JS, importing a file that has already been imported is a no-op but in CSS, importing a file that has already been imported re-imports the file. A simple way to imagine this is to view each @import rule in CSS as being replaced by the contents of that file similar to #include in C/C++. However, this is incorrect in the case of @import cycles because it would cause infinite expansion. A more accurate way to imagine this is that in CSS, a file is evaluated at the last @import location while in JS, a file is evaluated at the first import location.

    Previously esbuild followed JS import order rules for CSS but now esbuild will follow CSS import order rules. This is a breaking change because it means your CSS may behave differently when bundled. Note that CSS import order rules are somewhat unintuitive because evaluation order matters. In CSS, using @import multiple times can end up unintentionally erasing overriding styles. For example, consider the following files:

    /* entry.css */
    @import "./color.css";
    @import "./background.css";
    /* color.css */
    @import "./reset.css";
    body {
      color: white;
    }
    /* background.css */
    @import "./reset.css";
    body {
      background: black;
    }
    /* reset.css */
    body {
      background: white;
      color: black;
    }

... (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)

@thedavidprice
Copy link
Contributor

@peterp this looks like a good upgrade. Handing over to you for evaluation.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/esbuild-0.12.1 branch 7 times, most recently from d8e6160 to d556599 Compare May 22, 2021 00:50
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.11.21 to 0.12.1.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.11.21...v0.12.1)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/esbuild-0.12.1 branch from d556599 to dcaf601 Compare May 22, 2021 00:51
@cypress
Copy link

cypress bot commented May 22, 2021



Test summary

17 0 0 0Flakiness 0


Run details

Project RedwoodJS Framework
Status Passed
Commit 1d02d17 ℹ️
Started May 22, 2021 3:08 PM
Ended May 22, 2021 3:12 PM
Duration 03:17 💡
OS Linux Ubuntu - 20.04
Browser Chrome 90

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@peterp peterp merged commit 505a54d into main May 22, 2021
@peterp peterp added this to the next-release milestone May 22, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/esbuild-0.12.1 branch May 22, 2021 15:29
dac09 added a commit to dac09/redwood that referenced this pull request May 24, 2021
…-codegen

* 'main' of github.com:redwoodjs/redwood:
  Removes console warnings in webhook verifiers (redwoodjs#2563)
  build(deps): bump eslint from 7.26.0 to 7.27.0 (redwoodjs#2610)
  CONTRIBUTING.md: styling tweaks for improved readability and consistency (redwoodjs#2608)
  build(deps): bump esbuild from 0.11.21 to 0.12.1 (redwoodjs#2579)
  Cache magic.link's token  (redwoodjs#2555)
  build(deps): bump @babel/plugin-transform-runtime from 7.14.2 to 7.14.3 (redwoodjs#2603)
  build(deps): bump @types/node from 15.3.1 to 15.6.0 (redwoodjs#2601)
  eslint-plugin-import 2.23.2 with lint fixes (redwoodjs#2604)
  build(deps): bump @apollo/client from 3.3.18 to 3.3.19 (redwoodjs#2576)
  build(deps): bump apollo-server-lambda from 2.22.2 to 2.24.1 (redwoodjs#2580)
  build(deps): bump babel-plugin-graphql-tag from 3.2.0 to 3.3.0 (redwoodjs#2600)
  build(deps): bump @babel/cli from 7.13.16 to 7.14.3 (redwoodjs#2578)
  build(deps-dev): bump @types/lodash from 4.14.169 to 4.14.170 (redwoodjs#2597)
  build(deps-dev): bump @types/findup-sync from 2.0.2 to 4.0.0 (redwoodjs#2574)
  Aggregate Dependabot misc patch minor upgrades (redwoodjs#2596)
  CONTRIBUTING.md: add missing char (redwoodjs#2594)
  changes test command instructions to reference run-e2e instead of test-tutorial (redwoodjs#2593)
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.

2 participants