Skip to content

fix(deps): update dependency @netlify/esbuild to v0.14.39 #1623

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

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 16, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@netlify/esbuild 0.14.25 -> 0.14.39 age adoption passing confidence

Release Notes

evanw/esbuild

v0.14.39

Compare Source

  • Fix code generation for export default and /* @​__PURE__ */ call (#​2203)

    The /* @​__PURE__ */ comment annotation can be added to function calls to indicate that they are side-effect free. These annotations are passed through into the output by esbuild since many JavaScript tools understand them. However, there was an edge case where printing this comment before a function call caused esbuild to fail to parenthesize a function literal because it thought it was no longer at the start of the expression. This problem has been fixed:

    // Original code
    export default /* @​__PURE__ */ (function() {
    })()
    
    // Old output
    export default /* @​__PURE__ */ function() {
    }();
    
    // New output
    export default /* @​__PURE__ */ (function() {
    })();
  • Preserve ... before JSX child expressions (#​2245)

    TypeScript 4.5 changed how JSX child expressions that start with ... are emitted. Previously the ... was omitted but starting with TypeScript 4.5, the ... is now preserved instead. This release updates esbuild to match TypeScript's new output in this case:

    // Original code
    console.log(<a>{...b}</a>)
    
    // Old output
    console.log(/* @&#8203;__PURE__ */ React.createElement("a", null, b));
    
    // New output
    console.log(/* @&#8203;__PURE__ */ React.createElement("a", null, ...b));

    Note that this behavior is TypeScript-specific. Babel doesn't support the ... token at all (it gives the error "Spread children are not supported in React").

  • Slightly adjust esbuild's handling of the browser field in package.json (#​2239)

    This release changes esbuild's interpretation of browser path remapping to fix a regression that was introduced in esbuild version 0.14.21. Browserify has a bug where it incorrectly matches package paths to relative paths in the browser field, and esbuild replicates this bug for compatibility with Browserify. I have a set of tests that I use to verify that esbuild's replication of this Browserify is accurate here: https://github.com/evanw/package-json-browser-tests. However, I was missing a test case and esbuild's behavior diverges from Browserify in this case. This release now handles this edge case as well:

    • entry.js:

      require('pkg/sub')
    • node_modules/pkg/package.json:

      {
        "browser": {
          "./sub": "./sub/foo.js",
          "./sub/sub.js": "./sub/foo.js"
        }
      }
    • node_modules/pkg/sub/foo.js:

      require('sub')
    • node_modules/sub/index.js:

      console.log('works')

    The import path sub in require('sub') was previously matching the remapping "./sub/sub.js": "./sub/foo.js" but with this release it should now no longer match that remapping. Now require('sub') will only match the remapping "./sub/sub": "./sub/foo.js" (without the trailing .js). Browserify apparently only matches without the .js suffix here.


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 this update again.


  • If you want to rebase/retry this PR, click this checkbox.

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

@renovate renovate bot requested a review from a team September 16, 2022 20:45
@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo failed.

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/6324e055b39ed400088753f9

@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/6324e055300aed000910dd38
😎 Deploy Preview https://deploy-preview-1623--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for next-hp-edge-demo ready!

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/next-hp-edge-demo/deploys/6324e05538692b0008c28754
😎 Deploy Preview https://deploy-preview-1623--next-hp-edge-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Sep 16, 2022
@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/6324e05562fea600090c26c4
😎 Deploy Preview https://deploy-preview-1623--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/6324e0550933b60008a71a6e
😎 Deploy Preview https://deploy-preview-1623--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/6324e055736a470009eef365
😎 Deploy Preview https://deploy-preview-1623--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/6324e0557221b800080383f3
😎 Deploy Preview https://deploy-preview-1623--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kodiakhq kodiakhq bot merged commit 3dc7b23 into main Sep 16, 2022
@kodiakhq kodiakhq bot deleted the renovate/netlify-esbuild-0.x branch September 16, 2022 20:47
@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/6324e0559aa6410009ca6d7c
😎 Deploy Preview https://deploy-preview-1623--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for next-plugin-rsc-demo failed.

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-rsc-demo/deploys/6324e0550933b60008a71a69

@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/6324e0552572570009a2e476
😎 Deploy Preview https://deploy-preview-1623--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Sep 16, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit b5e6d4d
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/6324e055e32b890008be0cf2
😎 Deploy Preview https://deploy-preview-1623--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants