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.17.14 #7926

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 26, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
esbuild 0.17.13 -> 0.17.14 age adoption passing confidence

Release Notes

evanw/esbuild

v0.17.14

Compare Source

  • Allow the TypeScript 5.0 const modifier in object type declarations (#​3021)

    The new TypeScript 5.0 const modifier was added to esbuild in version 0.17.5, and works with classes, functions, and arrow expressions. However, support for it wasn't added to object type declarations (e.g. interfaces) due to an oversight. This release adds support for these cases, so the following TypeScript 5.0 code can now be built with esbuild:

    interface Foo { <const T>(): T }
    type Bar = { new <const T>(): T }
  • Implement preliminary lowering for CSS nesting (#​1945)

    Chrome has implemented the new CSS nesting specification in version 112, which is currently in beta but will become stable very soon. So CSS nesting is now a part of the web platform!

    This release of esbuild can now transform nested CSS syntax into non-nested CSS syntax for older browsers. The transformation relies on the :is() pseudo-class in many cases, so the transformation is only guaranteed to work when targeting browsers that support :is() (e.g. Chrome 88+). You'll need to set esbuild's target to the browsers you intend to support to tell esbuild to do this transformation. You will get a warning if you use CSS nesting syntax with a target which includes older browsers that don't support :is().

    The lowering transformation looks like this:

    /* Original input */
    a.btn {
      color: #&#8203;333;
      &:hover { color: #&#8203;444 }
      &:active { color: #&#8203;555 }
    }
    
    /* New output (with --target=chrome88) */
    a.btn {
      color: #&#8203;333;
    }
    a.btn:hover {
      color: #&#8203;444;
    }
    a.btn:active {
      color: #&#8203;555;
    }

    More complex cases may generate the :is() pseudo-class:

    /* Original input */
    div, p {
      .warning, .error {
        padding: 20px;
      }
    }
    
    /* New output (with --target=chrome88) */
    :is(div, p) :is(.warning, .error) {
      padding: 20px;
    }

    In addition, esbuild now has a special warning message for nested style rules that start with an identifier. This isn't allowed in CSS because the syntax would be ambiguous with the existing declaration syntax. The new warning message looks like this:

    ▲ [WARNING] A nested style rule cannot start with "p" because it looks like the start of a declaration [css-syntax-error]
    
        <stdin>:1:7:
          1 │ main { p { margin: auto } }
            │        ^
            ╵        :is(p)
    
      To start a nested style rule with an identifier, you need to wrap the identifier in ":is(...)" to
      prevent the rule from being parsed as a declaration.
    

    Keep in mind that the transformation in this release is a preliminary implementation. CSS has many features that interact in complex ways, and there may be some edge cases that don't work correctly yet.

  • Minification now removes unnecessary & CSS nesting selectors

    This release introduces the following CSS minification optimizations:

    /* Original input */
    a {
      font-weight: bold;
      & {
        color: blue;
      }
      & :hover {
        text-decoration: underline;
      }
    }
    
    /* Old output (with --minify) */
    a{font-weight:700;&{color:#&#8203;00f}& :hover{text-decoration:underline}}
    
    /* New output (with --minify) */
    a{font-weight:700;:hover{text-decoration:underline}color:#&#8203;00f}
  • Minification now removes duplicates from CSS selector lists

    This release introduces the following CSS minification optimization:

    /* Original input */
    div, div { color: red }
    
    /* Old output (with --minify) */
    div,div{color:red}
    
    /* New output (with --minify) */
    div{color:red}

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.


  • 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 release:chore This PR is a chore (means nothing for users) label Mar 26, 2023
@replay-io
Copy link

replay-io bot commented Mar 26, 2023

16 replays were recorded for 1a676cf.

image 0 Failed
image 16 Passed
    requireAuth graphql checks
          ```
          locator.waitFor: Target closed
          =========================== logs ===========================
          waiting for locator('.rw-form-error-title').locator('text=You don\'t have permission to do that') to be visible
          ============================================================
          ```
        </ol>
      </details>
      <li><a href=https://app.replay.io/recording/70537537-50ed-46e0-a14e-5e73e281f520>useAuth hook, auth redirects checks</a></li>
      <li><a href=https://app.replay.io/recording/493a11c1-c4d5-467f-b3a7-49426d40d031>Check that a specific blog post is prerendered</a></li>
      <li><a href=https://app.replay.io/recording/630425e5-328e-41f9-8b51-b6c8859fc442>Check that about is prerendered</a></li>
      <li><a href=https://app.replay.io/recording/0d8f89d3-4e9b-46ab-ae29-f22b09458378>Check that homepage is prerendered</a></li>
      <li><a href=https://app.replay.io/recording/b60a9d94-9f8c-424d-b494-29a86231a40a>Check that meta-tags are rendering the correct dynamic data</a></li>
      <li><a href=https://app.replay.io/recording/8c3559de-02ae-4527-9d9f-bcf448697c58>Check that you can navigate from home page to specific blog post</a></li>
      <li><a href=https://app.replay.io/recording/0adbe356-8040-4d04-bb52-eb4de3e4fb4c>Waterfall prerendering (nested cells)</a></li>
      <li><a href=https://app.replay.io/recording/6a9eb216-61ee-47f4-bb2e-9a03e6ddf331>RBAC: Admin user should be able to delete contacts</a></li>
      <li><a href=https://app.replay.io/recording/cfc14631-7b9d-4164-9297-810e76bc4443>RBAC: Should not be able to delete contact as non-admin user</a></li>
      <li><a href=https://app.replay.io/recording/912268e0-4cb7-4118-ae71-66cd8367c5b0>Smoke test with dev server</a></li>
      <li><a href=https://app.replay.io/recording/e484d627-16f3-479e-9674-a0ad5416c2d6>Smoke test with rw serve</a></li>
      <li><a href=https://app.replay.io/recording/fcbb52fa-5a31-4559-999b-8bc65ffcd95a>Loads Cell mocks when Cell is nested in another story</a></li>
      <li><a href=https://app.replay.io/recording/dc052abb-969a-4dd4-b06b-8f5b9448c0cc>Loads Cell Stories</a></li>
      <li><a href=https://app.replay.io/recording/f2513454-f195-4a39-a6c7-33443da605f8>Loads MDX Stories</a></li>
      <li><a href=https://app.replay.io/recording/2587db7d-7988-4347-95e3-74c179233c35>Mocks current user, and updates UI while dev server is running</a></li>
      

View test run on Replay ↗︎

@thedavidprice thedavidprice merged commit 23f4f53 into main Mar 27, 2023
@thedavidprice thedavidprice deleted the renovate/esbuild-0.x branch March 27, 2023 17:37
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Mar 27, 2023
@jtoar jtoar modified the milestones: next-release, v5.0.0 Mar 27, 2023
jtoar pushed a commit that referenced this pull request Mar 27, 2023
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Price <thedavid@thedavidprice.com>
@jtoar jtoar modified the milestones: next-release, v4.5.0 Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants