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): bump esbuild from 0.12.18 to 0.12.19 #36

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 9, 2021

Bumps esbuild from 0.12.18 to 0.12.19.

Release notes

Sourced from esbuild's releases.

v0.12.19

  • Add support for CSS source maps (#519)

    With this release, esbuild will now generate source maps for CSS output files when --sourcemap is enabled. This supports all of the same options as JS source maps including --sourcemap=inline and --sourcemap=external. In addition, CSS input files with embedded /*# sourceMappingURL=... */ comments will cause the CSS output file source map to map all the way back to the original inputs. CSS source maps are used by the browser's style inspector to link back to the original source code instead of linking to the bundled source code.

  • Fix computed class fields in TypeScript edge case (#1507)

    If TypeScript code contains computed class fields, the target environment supports class fields so syntax lowering is not necessary, and TypeScript's useDefineForClassFields setting is set to true, then esbuild had a bug where the computed property names were computed after the class definition and were undefined. Note that TypeScript's useDefineForClassFields setting defaults to true if tsconfig.json contains "target": "ESNext".

    // Original code
    class Foo {
      [foo] = 1;
      @bar [baz] = 2;
    }
    // Old output
    var _a, _b;
    var Foo = class {
    [_a] = 1;
    [_b] = 2;
    };
    _a = foo, _b = baz;
    __decorateClass([
    bar
    ], Foo.prototype, _b, 2);
    // New output
    var _a;
    var Foo = class {
    [foo] = 1;
    [_a = baz] = 2;
    };
    __decorateClass([
    bar
    ], Foo.prototype, _a, 2);

    The problem in this case is that normally TypeScript moves class field initializers into the special constructor method (automatically generating one if one doesn't already exist) so the side effects for class field property names must happen after the class body. But if class fields are supported by the target environment then the side effects must happen inline instead.

Changelog

Sourced from esbuild's changelog.

0.12.19

  • Add support for CSS source maps (#519)

    With this release, esbuild will now generate source maps for CSS output files when --sourcemap is enabled. This supports all of the same options as JS source maps including --sourcemap=inline and --sourcemap=external. In addition, CSS input files with embedded /*# sourceMappingURL=... */ comments will cause the CSS output file source map to map all the way back to the original inputs. CSS source maps are used by the browser's style inspector to link back to the original source code instead of linking to the bundled source code.

  • Fix computed class fields in TypeScript edge case (#1507)

    If TypeScript code contains computed class fields, the target environment supports class fields so syntax lowering is not necessary, and TypeScript's useDefineForClassFields setting is set to true, then esbuild had a bug where the computed property names were computed after the class definition and were undefined. Note that TypeScript's useDefineForClassFields setting defaults to true if tsconfig.json contains "target": "ESNext".

    // Original code
    class Foo {
      [foo] = 1;
      @bar [baz] = 2;
    }
    // Old output
    var _a, _b;
    var Foo = class {
    [_a] = 1;
    [_b] = 2;
    };
    _a = foo, _b = baz;
    __decorateClass([
    bar
    ], Foo.prototype, _b, 2);
    // New output
    var _a;
    var Foo = class {
    [foo] = 1;
    [_a = baz] = 2;
    };
    __decorateClass([
    bar
    ], Foo.prototype, _a, 2);

    The problem in this case is that normally TypeScript moves class field initializers into the special constructor method (automatically generating one if one doesn't already exist) so the side effects for class field property names must happen after the class body. But if class fields are supported by the target environment then the side effects must happen inline instead.

Commits
  • 8095e75 publish 0.12.19 to npm
  • e4fc1ce fix #1507: wrong ts class field side effect order
  • 89a3afb fix #519: release notes for css source maps
  • 3ead19b add a basic css source map test
  • 8923587 add extension to source map tests
  • 0b98203 css: add support for source maps
  • 4002228 move span object to logger
  • 17d0fb6 css: printer returns result object
  • b44071b css: add location info to rules
  • 9d4ddac move source map code to source map module
  • See full diff in compare view

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.12.18 to 0.12.19.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.12.18...v0.12.19)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 9, 2021
@github-actions github-actions bot enabled auto-merge (squash) August 9, 2021 01:11
@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 9, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e6d5049:

Sandbox Source
Vanilla Configuration

@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #36 (e6d5049) into main (a31a912) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #36   +/-   ##
=======================================
  Coverage   99.66%   99.66%           
=======================================
  Files          11       11           
  Lines         884      884           
=======================================
  Hits          881      881           
  Misses          3        3           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ae92d2...e6d5049. Read the comment docs.

@github-actions github-actions bot merged commit 72488f9 into main Aug 9, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/esbuild-0.12.19 branch August 9, 2021 01:15
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 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants