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): update dependency esbuild to v0.18.17 #15175

Merged
merged 1 commit into from Jul 31, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 30, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
esbuild 0.18.16 -> 0.18.17 age adoption passing confidence

Release Notes

evanw/esbuild (esbuild)

v0.18.17

Compare Source

  • Support An+B syntax and :nth-*() pseudo-classes in CSS

    This adds support for the :nth-child(), :nth-last-child(), :nth-of-type(), and :nth-last-of-type() pseudo-classes to esbuild, which has the following consequences:

    • The An+B syntax is now parsed, so parse errors are now reported
    • An+B values inside these pseudo-classes are now pretty-printed (e.g. a leading + will be stripped because it's not in the AST)
    • When minification is enabled, An+B values are reduced to equivalent but shorter forms (e.g. 2n+0 => 2n, 2n+1 => odd)
    • Local CSS names in an of clause are now detected (e.g. in :nth-child(2n of :local(.foo)) the name foo is now renamed)
    /* Original code */
    .foo:nth-child(+2n+1 of :local(.bar)) {
      color: red;
    }
    
    /* Old output (with --loader=local-css) */
    .stdin_foo:nth-child(+2n + 1 of :local(.bar)) {
      color: red;
    }
    
    /* New output (with --loader=local-css) */
    .stdin_foo:nth-child(2n+1 of .stdin_bar) {
      color: red;
    }
  • Adjust CSS nesting parser for IE7 hacks (#​3272)

    This fixes a regression with esbuild's treatment of IE7 hacks in CSS. CSS nesting allows selectors to be used where declarations are expected. There's an IE7 hack where prefixing a declaration with a * causes that declaration to only be applied in IE7 due to a bug in IE7's CSS parser. However, it's valid for nested CSS selectors to start with *. So esbuild was incorrectly parsing these declarations and anything following it up until the next { as a selector for a nested CSS rule. This release changes esbuild's parser to terminate the parsing of selectors for nested CSS rules when a ; is encountered to fix this edge case:

    /* Original code */
    .item {
      *width: 100%;
      height: 1px;
    }
    
    /* Old output */
    .item {
      *width: 100%; height: 1px; {
      }
    }
    
    /* New output */
    .item {
      *width: 100%;
      height: 1px;
    }

    Note that the syntax for CSS nesting is about to change again, so esbuild's CSS parser may still not be completely accurate with how browsers do and/or will interpret CSS nesting syntax. Expect additional updates to esbuild's CSS parser in the future to deal with upcoming CSS specification changes.

  • Adjust esbuild's warning about undefined imports for TypeScript import equals declarations (#​3271)

    In JavaScript, accessing a missing property on an import namespace object is supposed to result in a value of undefined at run-time instead of an error at compile-time. This is something that esbuild warns you about by default because doing this can indicate a bug with your code. For example:

    // app.js
    import * as styles from './styles'
    console.log(styles.buton)
    // styles.js
    export let button = {}

    If you bundle app.js with esbuild you will get this:

    ▲ [WARNING] Import "buton" will always be undefined because there is no matching export in "styles.js" [import-is-undefined]
    
        app.js:2:19:
          2 │ console.log(styles.buton)
            │                    ~~~~~
            ╵                    button
    
      Did you mean to import "button" instead?
    
        styles.js:1:11:
          1 │ export let button = {}
            ╵            ~~~~~~
    

    However, there is TypeScript-only syntax for import equals declarations that can represent either a type import (which esbuild should ignore) or a value import (which esbuild should respect). Since esbuild doesn't have a type system, it tries to only respect import equals declarations that are actually used as values. Previously esbuild always generated this warning for unused imports referenced within import equals declarations even when the reference could be a type instead of a value. Starting with this release, esbuild will now only warn in this case if the import is actually used. Here is an example of some code that no longer causes an incorrect warning:

    // app.ts
    import * as styles from './styles'
    import ButtonType = styles.Button
    // styles.ts
    export interface Button {}

Configuration

📅 Schedule: Branch creation - "after 01:00 on sunday" (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 this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependency Dependency Upgrade label Jul 30, 2023
@github-actions
Copy link

Size Change: 0 B

Total Size: 8.46 MB

ℹ️ View Unchanged
Filename Size
./dist/bin 4.1 kB
./dist/bin/prettier.cjs 2.14 kB
./dist/doc.d.ts 6.86 kB
./dist/doc.js 51 kB
./dist/doc.mjs 47.3 kB
./dist/index.cjs 33.5 kB
./dist/index.d.ts 26.2 kB
./dist/index.mjs 715 kB
./dist/internal 4.1 kB
./dist/internal/cli.mjs 219 kB
./dist/internal/internal.mjs 231 kB
./dist/LICENSE 243 kB
./dist/package.json 6.18 kB
./dist/plugins 4.1 kB
./dist/plugins/acorn.d.ts 109 B
./dist/plugins/acorn.js 150 kB
./dist/plugins/acorn.mjs 149 kB
./dist/plugins/angular.d.ts 177 B
./dist/plugins/angular.js 42.8 kB
./dist/plugins/angular.mjs 42.1 kB
./dist/plugins/babel.d.ts 402 B
./dist/plugins/babel.js 312 kB
./dist/plugins/babel.mjs 311 kB
./dist/plugins/estree.d.ts 11 B
./dist/plugins/estree.js 185 kB
./dist/plugins/estree.mjs 184 kB
./dist/plugins/flow.d.ts 90 B
./dist/plugins/flow.js 678 kB
./dist/plugins/flow.mjs 678 kB
./dist/plugins/glimmer.d.ts 93 B
./dist/plugins/glimmer.js 133 kB
./dist/plugins/glimmer.mjs 132 kB
./dist/plugins/graphql.d.ts 93 B
./dist/plugins/graphql.js 43.7 kB
./dist/plugins/graphql.mjs 43 kB
./dist/plugins/html.d.ts 139 B
./dist/plugins/html.js 138 kB
./dist/plugins/html.mjs 138 kB
./dist/plugins/markdown.d.ts 127 B
./dist/plugins/markdown.js 148 kB
./dist/plugins/markdown.mjs 147 kB
./dist/plugins/meriyah.d.ts 93 B
./dist/plugins/meriyah.js 120 kB
./dist/plugins/meriyah.mjs 120 kB
./dist/plugins/postcss.d.ts 121 B
./dist/plugins/postcss.js 153 kB
./dist/plugins/postcss.mjs 152 kB
./dist/plugins/typescript.d.ts 96 B
./dist/plugins/typescript.js 1.14 MB
./dist/plugins/typescript.mjs 1.14 MB
./dist/plugins/yaml.d.ts 90 B
./dist/plugins/yaml.js 122 kB
./dist/plugins/yaml.mjs 121 kB
./dist/README.md 4.03 kB
./dist/standalone.d.ts 1.42 kB
./dist/standalone.js 73.5 kB
./dist/standalone.mjs 73.3 kB

compressed-size-action

@fisker fisker merged commit 57e8c87 into main Jul 31, 2023
31 checks passed
@fisker fisker deleted the renovate/esbuild-0.x branch July 31, 2023 01:19
medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 15, 2024
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
Labels
dependency Dependency Upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant