netlify / zip-it-and-ship-it

Intelligently prepare Node.js Lambda functions for deployment
https://www.npmjs.com/package/@netlify/zip-it-and-ship-it
MIT License
316 stars 35 forks source link

fix(deps): update dependency esbuild to v0.19.11 #1697

Closed renovate[bot] closed 10 months ago

renovate[bot] commented 10 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
esbuild 0.19.10 -> 0.19.11 age adoption passing confidence

Release Notes

evanw/esbuild (esbuild) ### [`v0.19.11`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01911) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.19.10...v0.19.11) - Fix TypeScript-specific class transform edge case ([#​3559](https://togithub.com/evanw/esbuild/issues/3559)) The previous release introduced an optimization that avoided transforming `super()` in the class constructor for TypeScript code compiled with `useDefineForClassFields` set to `false` if all class instance fields have no initializers. The rationale was that in this case, all class instance fields are omitted in the output so no changes to the constructor are needed. However, if all of this is the case *and* there are `#private` instance fields with initializers, those private instance field initializers were still being moved into the constructor. This was problematic because they were being inserted before the call to `super()` (since `super()` is now no longer transformed in that case). This release introduces an additional optimization that avoids moving the private instance field initializers into the constructor in this edge case, which generates smaller code, matches the TypeScript compiler's output more closely, and avoids this bug: ```ts // Original code class Foo extends Bar { #private = 1; public: any; constructor() { super(); } } // Old output (with esbuild v0.19.9) class Foo extends Bar { constructor() { super(); this.#private = 1; } #private; } // Old output (with esbuild v0.19.10) class Foo extends Bar { constructor() { this.#private = 1; super(); } #private; } // New output class Foo extends Bar { #private = 1; constructor() { super(); } } ``` - Minifier: allow reording a primitive past a side-effect ([#​3568](https://togithub.com/evanw/esbuild/issues/3568)) The minifier previously allowed reordering a side-effect past a primitive, but didn't handle the case of reordering a primitive past a side-effect. This additional case is now handled: ```js // Original code function f() { let x = false; let y = x; const boolean = y; let frag = $.template(`

hello world

`); return frag; } // Old output (with --minify) function f(){const e=!1;return $.template(`

hello world

`)} // New output (with --minify) function f(){return $.template('

hello world

')} ``` - Minifier: consider properties named using known `Symbol` instances to be side-effect free ([#​3561](https://togithub.com/evanw/esbuild/issues/3561)) Many things in JavaScript can have side effects including property accesses and ToString operations, so using a symbol such as `Symbol.iterator` as a computed property name is not obviously side-effect free. This release adds a special case for known `Symbol` instances so that they are considered side-effect free when used as property names. For example, this class declaration will now be considered side-effect free: ```js class Foo { *[Symbol.iterator]() { } } ``` - Provide the `stop()` API in node to exit esbuild's child process ([#​3558](https://togithub.com/evanw/esbuild/issues/3558)) You can now call `stop()` in esbuild's node API to exit esbuild's child process to reclaim the resources used. It only makes sense to do this for a long-lived node process when you know you will no longer be making any more esbuild API calls. It is not necessary to call this to allow node to exit, and it's advantageous to not call this in between calls to esbuild's API as sharing a single long-lived esbuild child process is more efficient than re-creating a new esbuild child process for every API call. This API call used to exist but was removed in [version 0.9.0](https://togithub.com/evanw/esbuild/releases/v0.9.0). This release adds it back due to a user request.

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (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.



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

github-actions[bot] commented 10 months ago

⏱ Benchmark results

Comparing with 1b10dd153a662aa9ac658624ab017d4c474f2f90

largeDepsEsbuild: 1.5s

⬇️ 2.26% decrease vs. 1b10dd153a662aa9ac658624ab017d4c474f2f90

^                                                                                           1.5s    1.5s  
│   1.4s    1.4s    1.5s    1.4s    1.5s    1.5s    1.5s    1.4s    1.4s    1.5s    1.4s    ┌──┐    ┌──┐  
│ ──┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┼──┼────|▒▒|──
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend - T-30 (5ca965f88059299af4e83bae9ab8583ebcb7ad1a): 1.4s - T-29 (46c96e2596f119885774c42840c8f7498736a55c): 1.5s - T-28 (145bc5fc20120dce597a5e3c5235144b6956cce5): 1.5s - T-27 (8ac5b33d75e003386a93dae3f6749d745c4028b8): 1.5s - T-26 (fd6c7e6a54d56dee8a0449834ec2fa3f8bb4e129): 1.4s - T-25 (1c7ce98f6924a1cad6d6ead04458ca19978ae991): 1.5s - T-24 (d40e8dd94d33d63061b41072e9023639b9d3e607): 1.4s - T-23 (dc6d7a5b706e4a60651931d67aa4544b8891bdab): 1.4s - T-22 (31faa09a45364754cc5309a503a8070b15314522): 1.4s - T-21 (0f23aa873989d0cad7dffd787efe0e5317891151): 1.4s - T-20 (e1511343c1436e3d9ae2003783c6341870059830): 1.4s - T-19 (f5fb309109408d25544fe34bdee77f917ff679e7): 1.4s - T-18 (cff89556fe722407240151e802ab0e2b28d741ac): 1.5s - T-17 (be424b244ccea5bfb20f65ba127a32c24d345f27): 1.5s - T-16 (f146798369d6bac68820a3ffa10d3e6ea4a1587a): 1.4s - T-15 (c7901aa4aaa0e73c8bd78005df1cd3f1a2b53837): 1.4s - T-14 (bc7b0b8e2f42e3f52d677e8e6fb7b83f218b284b): 1.5s - T-13 (81e451b5f468d41ea19ff230a55ef7fc627d089a): 1.4s - T-12 (daa74ff3fffdebe0f5c115a12b1bdd8405487274): 1.4s - T-11 (128b059fcc5630a43812b1b2a34da5bde304661a): 1.4s - T-10 (f01af04b8a3c84e3c91041f97de118d3f07aa580): 1.5s - T-9 (44f2871b631b6090272fd6a34e696f0d3ab95ed9): 1.4s - T-8 (a176e523e66a20e97f13a744d8d5985aca1ebccd): 1.5s - T-7 (897284e0dc37bb37e35974dd7e18a5e67715ae44): 1.5s - T-6 (30703f84b3f63ac0b382f17345c59b8e74c7d194): 1.5s - T-5 (ec7bde9885672878e3e002026ffe4bad9e9c1f8c): 1.4s - T-4 (05b3c1a2a10c04728884c62a027b005871202091): 1.4s - T-3 (393b4900bee89e74f91e05c8c0179bf3f145cb02): 1.5s - T-2 (abcba24aae5b32a9bbde85ba910d1b76913ad31d): 1.4s - T-1 (1b10dd153a662aa9ac658624ab017d4c474f2f90): 1.5s - **T (current commit): 1.5s**

largeDepsNft: 5.5s

⬇️ 4.07% decrease vs. 1b10dd153a662aa9ac658624ab017d4c474f2f90

^           5.7s                    5.8s                                                    5.8s          
│   5.4s    ┌──┐    5.5s    5.6s    ┌──┐    5.5s    5.5s    5.5s    5.5s    5.6s    5.5s    ┌──┐    5.5s  
│ ──┌──┐────┼──┼────┌──┐────┌──┐────┼──┼────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┼──┼────┌──┐──
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend - T-30 (5ca965f88059299af4e83bae9ab8583ebcb7ad1a): 5.5s - T-29 (46c96e2596f119885774c42840c8f7498736a55c): 5.5s - T-28 (145bc5fc20120dce597a5e3c5235144b6956cce5): 5.5s - T-27 (8ac5b33d75e003386a93dae3f6749d745c4028b8): 5.6s - T-26 (fd6c7e6a54d56dee8a0449834ec2fa3f8bb4e129): 5.5s - T-25 (1c7ce98f6924a1cad6d6ead04458ca19978ae991): 5.5s - T-24 (d40e8dd94d33d63061b41072e9023639b9d3e607): 5.6s - T-23 (dc6d7a5b706e4a60651931d67aa4544b8891bdab): 5.5s - T-22 (31faa09a45364754cc5309a503a8070b15314522): 5.5s - T-21 (0f23aa873989d0cad7dffd787efe0e5317891151): 5.6s - T-20 (e1511343c1436e3d9ae2003783c6341870059830): 5.4s - T-19 (f5fb309109408d25544fe34bdee77f917ff679e7): 5.4s - T-18 (cff89556fe722407240151e802ab0e2b28d741ac): 5.5s - T-17 (be424b244ccea5bfb20f65ba127a32c24d345f27): 5.8s - T-16 (f146798369d6bac68820a3ffa10d3e6ea4a1587a): 5.5s - T-15 (c7901aa4aaa0e73c8bd78005df1cd3f1a2b53837): 5.5s - T-14 (bc7b0b8e2f42e3f52d677e8e6fb7b83f218b284b): 5.6s - T-13 (81e451b5f468d41ea19ff230a55ef7fc627d089a): 5.5s - T-12 (daa74ff3fffdebe0f5c115a12b1bdd8405487274): 5.4s - T-11 (128b059fcc5630a43812b1b2a34da5bde304661a): 5.7s - T-10 (f01af04b8a3c84e3c91041f97de118d3f07aa580): 5.5s - T-9 (44f2871b631b6090272fd6a34e696f0d3ab95ed9): 5.6s - T-8 (a176e523e66a20e97f13a744d8d5985aca1ebccd): 5.8s - T-7 (897284e0dc37bb37e35974dd7e18a5e67715ae44): 5.5s - T-6 (30703f84b3f63ac0b382f17345c59b8e74c7d194): 5.5s - T-5 (ec7bde9885672878e3e002026ffe4bad9e9c1f8c): 5.5s - T-4 (05b3c1a2a10c04728884c62a027b005871202091): 5.5s - T-3 (393b4900bee89e74f91e05c8c0179bf3f145cb02): 5.6s - T-2 (abcba24aae5b32a9bbde85ba910d1b76913ad31d): 5.5s - T-1 (1b10dd153a662aa9ac658624ab017d4c474f2f90): 5.8s - **T (current commit): 5.5s**

largeDepsZisi: 10.4s

⬇️ 3.23% decrease vs. 1b10dd153a662aa9ac658624ab017d4c474f2f90

^          10.7s                                                           10.6s           10.7s          
│  10.3s    ┌──┐   10.4s   10.1s   10.4s    10s    10.2s   10.4s   10.5s    ┌──┐   10.1s    ┌──┐   10.4s  
│ ──┌──┐────┼──┼────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┌──┐────┼──┼────┌──┐────┼──┼────┌──┐──
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend - T-30 (5ca965f88059299af4e83bae9ab8583ebcb7ad1a): 10.5s - T-29 (46c96e2596f119885774c42840c8f7498736a55c): 10.4s - T-28 (145bc5fc20120dce597a5e3c5235144b6956cce5): 10.6s - T-27 (8ac5b33d75e003386a93dae3f6749d745c4028b8): 10.5s - T-26 (fd6c7e6a54d56dee8a0449834ec2fa3f8bb4e129): 10.6s - T-25 (1c7ce98f6924a1cad6d6ead04458ca19978ae991): 10.4s - T-24 (d40e8dd94d33d63061b41072e9023639b9d3e607): 10.6s - T-23 (dc6d7a5b706e4a60651931d67aa4544b8891bdab): 10.4s - T-22 (31faa09a45364754cc5309a503a8070b15314522): 10.4s - T-21 (0f23aa873989d0cad7dffd787efe0e5317891151): 10.4s - T-20 (e1511343c1436e3d9ae2003783c6341870059830): 10.3s - T-19 (f5fb309109408d25544fe34bdee77f917ff679e7): 10.4s - T-18 (cff89556fe722407240151e802ab0e2b28d741ac): 10.5s - T-17 (be424b244ccea5bfb20f65ba127a32c24d345f27): 10.6s - T-16 (f146798369d6bac68820a3ffa10d3e6ea4a1587a): 10.4s - T-15 (c7901aa4aaa0e73c8bd78005df1cd3f1a2b53837): 10.5s - T-14 (bc7b0b8e2f42e3f52d677e8e6fb7b83f218b284b): 10.5s - T-13 (81e451b5f468d41ea19ff230a55ef7fc627d089a): 9.9s - T-12 (daa74ff3fffdebe0f5c115a12b1bdd8405487274): 10.3s - T-11 (128b059fcc5630a43812b1b2a34da5bde304661a): 10.7s - T-10 (f01af04b8a3c84e3c91041f97de118d3f07aa580): 10.4s - T-9 (44f2871b631b6090272fd6a34e696f0d3ab95ed9): 10.1s - T-8 (a176e523e66a20e97f13a744d8d5985aca1ebccd): 10.4s - T-7 (897284e0dc37bb37e35974dd7e18a5e67715ae44): 10s - T-6 (30703f84b3f63ac0b382f17345c59b8e74c7d194): 10.2s - T-5 (ec7bde9885672878e3e002026ffe4bad9e9c1f8c): 10.4s - T-4 (05b3c1a2a10c04728884c62a027b005871202091): 10.5s - T-3 (393b4900bee89e74f91e05c8c0179bf3f145cb02): 10.6s - T-2 (abcba24aae5b32a9bbde85ba910d1b76913ad31d): 10.1s - T-1 (1b10dd153a662aa9ac658624ab017d4c474f2f90): 10.7s - **T (current commit): 10.4s**