Skip to content

Bump esbuild from 0.12.24 to 0.13.12#7719

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/esbuild-0.13.12
Closed

Bump esbuild from 0.12.24 to 0.13.12#7719
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/esbuild-0.13.12

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2021

Bumps esbuild from 0.12.24 to 0.13.12.

Release notes

Sourced from esbuild's releases.

v0.13.12

  • Implement initial support for simplifying calc() expressions in CSS (#1607)

    This release includes basic simplification of calc() expressions in CSS when minification is enabled. The approach mainly follows the official CSS specification, which means it should behave the way browsers behave: https://www.w3.org/TR/css-values-4/#calc-func. This is a basic implementation so there are probably some calc() expressions that can be reduced by other tools but not by esbuild. This release mainly focuses on setting up the parsing infrastructure for calc() expressions to make it straightforward to implement additional simplifications in the future. Here's an example of this new functionality:

    /* Input CSS */
    div {
      width: calc(60px * 4 - 5px * 2);
      height: calc(100% / 4);
    }
    /* Output CSS (with --minify-syntax) */
    div {
    width: 230px;
    height: 25%;
    }

    Expressions that can't be fully simplified will still be partially simplified into a reduced calc() expression:

    /* Input CSS */
    div {
      width: calc(100% / 5 - 2 * 1em - 2 * 1px);
    }
    /* Output CSS (with --minify-syntax) */
    div {
    width: calc(20% - 2em - 2px);
    }

    Note that this transformation doesn't attempt to modify any expression containing a var() CSS variable reference. These variable references can contain any number of tokens so it's not safe to move forward with a simplification assuming that var() is a single token. For example, calc(2px * var(--x) * 3) is not transformed into calc(6px * var(--x)) in case var(--x) contains something like 4 + 5px (calc(2px * 4 + 5px * 3) evaluates to 23px while calc(6px * 4 + 5px) evaluates to 29px).

  • Fix a crash with a legal comment followed by an import (#1730)

    Version 0.13.10 introduced parsing for CSS legal comments but caused a regression in the code that checks whether there are any rules that come before @import. This is not desired because browsers ignore @import rules after other non-@import rules, so esbuild warns you when you do this. However, legal comments are modeled as rules in esbuild's internal AST even though they aren't actual CSS rules, and the code that performs this check wasn't updated. This release fixes the crash.

v0.13.11

  • Implement class static blocks (#1558)

    This release adds support for a new upcoming JavaScript feature called class static blocks that lets you evaluate code inside of a class body. It looks like this:

    class Foo {
      static {
        this.foo = 123
      }
    }

... (truncated)

Changelog

Sourced from esbuild's changelog.

0.13.12

  • Implement initial support for simplifying calc() expressions in CSS (#1607)

    This release includes basic simplification of calc() expressions in CSS when minification is enabled. The approach mainly follows the official CSS specification, which means it should behave the way browsers behave: https://www.w3.org/TR/css-values-4/#calc-func. This is a basic implementation so there are probably some calc() expressions that can be reduced by other tools but not by esbuild. This release mainly focuses on setting up the parsing infrastructure for calc() expressions to make it straightforward to implement additional simplifications in the future. Here's an example of this new functionality:

    /* Input CSS */
    div {
      width: calc(60px * 4 - 5px * 2);
      height: calc(100% / 4);
    }
    /* Output CSS (with --minify-syntax) */
    div {
    width: 230px;
    height: 25%;
    }

    Expressions that can't be fully simplified will still be partially simplified into a reduced calc() expression:

    /* Input CSS */
    div {
      width: calc(100% / 5 - 2 * 1em - 2 * 1px);
    }
    /* Output CSS (with --minify-syntax) */
    div {
    width: calc(20% - 2em - 2px);
    }

    Note that this transformation doesn't attempt to modify any expression containing a var() CSS variable reference. These variable references can contain any number of tokens so it's not safe to move forward with a simplification assuming that var() is a single token. For example, calc(2px * var(--x) * 3) is not transformed into calc(6px * var(--x)) in case var(--x) contains something like 4 + 5px (calc(2px * 4 + 5px * 3) evaluates to 23px while calc(6px * 4 + 5px) evaluates to 29px).

  • Fix a crash with a legal comment followed by an import (#1730)

    Version 0.13.10 introduced parsing for CSS legal comments but caused a regression in the code that checks whether there are any rules that come before @import. This is not desired because browsers ignore @import rules after other non-@import rules, so esbuild warns you when you do this. However, legal comments are modeled as rules in esbuild's internal AST even though they aren't actual CSS rules, and the code that performs this check wasn't updated. This release fixes the crash.

0.13.11

  • Implement class static blocks (#1558)

    This release adds support for a new upcoming JavaScript feature called class static blocks that lets you evaluate code inside of a class body. It looks like this:

    class Foo {
      static {
        this.foo = 123

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

@dependabot dependabot bot added dependencies Pull requests that update a dependency file engineering labels Nov 1, 2021
@mofodevops mofodevops temporarily deployed to foundation-s-dependabot-igq018 November 1, 2021 06:01 Inactive
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.12.24 to 0.13.12.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.12.24...v0.13.12)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/esbuild-0.13.12 branch from eb0a5d6 to c8c39e0 Compare November 2, 2021 21:39
@mofodevops mofodevops temporarily deployed to foundation-s-dependabot-igq018 November 2, 2021 21:39 Inactive
@Pomax Pomax closed this Nov 8, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 8, 2021

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/esbuild-0.13.12 branch November 8, 2021 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file engineering

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants