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

[Snyk] Upgrade: , , , , esbuild, rimraf, rollup, typescript, vitest #745

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leonardoadame
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade multiple dependencies.

👯‍♂ The following dependencies are linked and will therefore be updated together.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

Name Versions Released on

@iarna/toml
from 2.2.5 to 3.0.0 | 1 version ahead of your current version
⚠️ This is a major version upgrade, and may be a breaking change | 4 years ago
on 2020-04-23
@netlify/functions
from 1.6.0 to 2.8.1 | 18 versions ahead of your current version
⚠️ This is a major version upgrade, and may be a breaking change | 2 months ago
on 2024-07-05
@rollup/plugin-commonjs
from 25.0.8 to 26.0.1 | 2 versions ahead of your current version
⚠️ This is a major version upgrade, and may be a breaking change | 3 months ago
on 2024-06-05
@types/node
from 16.18.108 to 22.4.0 | 392 versions ahead of your current version
⚠️ This is a major version upgrade, and may be a breaking change | 23 days ago
on 2024-08-16
esbuild
from 0.19.12 to 0.23.1 | 12 versions ahead of your current version | 23 days ago
on 2024-08-16
rimraf
from 5.0.10 to 6.0.1 | 2 versions ahead of your current version
⚠️ This is a major version upgrade, and may be a breaking change | 2 months ago
on 2024-07-10
rollup
from 3.29.4 to 4.21.0 | 80 versions ahead of your current version
⚠️ This is a major version upgrade, and may be a breaking change | 22 days ago
on 2024-08-18
typescript
from 4.9.5 to 5.5.4 | 595 versions ahead of your current version
⚠️ This is a major version upgrade, and may be a breaking change | 2 months ago
on 2024-07-22
vitest
from 0.31.4 to 2.0.5 | 58 versions ahead of your current version
⚠️ This is a major version upgrade, and may be a breaking change | a month ago
on 2024-07-31

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Missing Release of Resource after Effective Lifetime
SNYK-JS-INFLIGHT-6095116
631 Proof of Concept
Release notes
Package name: @iarna/toml from @iarna/toml GitHub release notes
Package name: @netlify/functions
  • 2.8.1 - 2024-07-05

    2.8.1 (2024-07-04)

    Bug Fixes

    • deps: update dependency @ netlify/serverless-functions-api to v1.18.5 (#511) (ca1bf8b)
    • deps: update dependency @ netlify/serverless-functions-api to v1.19.0 (#513) (e16fc5e)
    • deps: update dependency @ netlify/serverless-functions-api to v1.19.1 (#514) (7fd4e3e)
  • 2.8.0 - 2024-06-21

    2.8.0 (2024-06-20)

    Features

    Bug Fixes

    • deps: update dependency @ netlify/serverless-functions-api to v1.18.2 (#502) (3af85f1)
    • deps: update dependency @ netlify/serverless-functions-api to v1.18.3 (#504) (f5d365d)
    • deps: update dependency @ netlify/serverless-functions-api to v1.18.4 (#507) (3529a39)
  • 2.7.0 - 2024-05-16

    2.7.0 (2024-05-16)

    Features

    Bug Fixes

    • deps: update dependency @ netlify/serverless-functions-api to v1.18.1 (#497) (cd92ae9)
  • 2.6.3 - 2024-05-03

    2.6.3 (2024-05-03)

    Bug Fixes

  • 2.6.0 - 2024-02-13

    2.6.0 (2024-02-13)

    Features

    Bug Fixes

    • deps: update dependency @ netlify/serverless-functions-api to v1.13.1 (#462) (29b33ae)
    • deps: update dependency @ netlify/serverless-functions-api to v1.14.0 (#470) (c77eb33)
    • skip purgeCache in local dev (#472) (9236053)
  • 2.5.1 - 2024-01-19

    2.5.1 (2024-01-19)

    Bug Fixes

  • 2.5.0 - 2024-01-18

    2.5.0 (2024-01-18)

    Features

    Bug Fixes

    • deps: update dependency @ netlify/serverless-functions-api to v1.13.0 (#451) (d15b673)
  • 2.4.1 - 2023-12-12

    2.4.1 (2023-12-12)

    Bug Fixes

    • deps: update dependency @ netlify/serverless-functions-api to v1.12.0 (#444) (4baff43)
    • deps: update dependency @ netlify/serverless-functions-api to v1.12.1 (#446) (7552375)
    • deps: update dependency @ netlify/serverless-functions-api to v1.12.3 (#450) (0bfb610)
  • 2.4.0 - 2023-11-09
  • 2.3.0 - 2023-10-12
  • 2.2.1 - 2023-10-06
  • 2.2.0 - 2023-10-05
  • 2.1.0 - 2023-09-26
  • 2.0.2 - 2023-08-25
  • 2.0.1 - 2023-08-22
  • 2.0.1-beta - 2022-07-02
  • 2.0.0 - 2023-08-22
  • 2.0.0-beta - 2022-07-02
  • 1.6.0 - 2023-05-12
from @netlify/functions GitHub release notes
Package name: @rollup/plugin-commonjs
  • 26.0.1 - 2024-06-05

    chore(release): commonjs v26.0.1

  • 26.0.0 - 2024-06-05

    chore(release): commonjs v26.0.0

  • 25.0.8 - 2024-05-22

    chore(release): commonjs v25.0.8

from @rollup/plugin-commonjs GitHub release notes
Package name: @types/node
  • 22.4.0 - 2024-08-16
  • 22.3.0 - 2024-08-14
  • 22.2.0 - 2024-08-09
  • 22.1.0 - 2024-08-02
  • 22.0.3 - 2024-08-02
  • 22.0.2 - 2024-07-31
  • 22.0.1 - 2024-07-31
  • 22.0.0 - 2024-07-28
  • 20.16.5 - 2024-09-04
  • 20.16.4 - 2024-09-04
  • 20.16.3 - 2024-09-01
  • 20.16.2 - 2024-08-28
  • 20.16.1 - 2024-08-19
  • 20.16.0 - 2024-08-18
  • 20.15.0 - 2024-08-16
  • 20.14.15 - 2024-08-09
  • 20.14.14 - 2024-08-02
  • 20.14.13 - 2024-07-28
  • 20.14.12 - 2024-07-23
  • 20.14.11 - 2024-07-16
  • 20.14.10 - 2024-07-05
  • 20.14.9 - 2024-06-25
  • 20.14.8 - 2024-06-22
  • 20.14.7 - 2024-06-20
  • 20.14.6 - 2024-06-19
  • 20.14.5 - 2024-06-18
  • 20.14.4 - 2024-06-17
  • 20.14.3 - 2024-06-17
  • 20.14.2 - 2024-06-05
  • 20.14.1 - 2024-06-03
  • 20.14.0 - 2024-06-02
  • 20.13.0 - 2024-05-31
  • 20.12.14 - 2024-05-31
  • 20.12.13 - 2024-05-29
  • 20.12.12 - 2024-05-14
  • 20.12.11 - 2024-05-08
  • 20.12.10 - 2024-05-06
  • 20.12.9 - 2024-05-06
  • 20.12.8 - 2024-05-01
  • 20.12.7 - 2024-04-09
  • 20.12.6 - 2024-04-09
  • 20.12.5 - 2024-04-05
  • 20.12.4 - 2024-04-03
  • 20.12.3 - 2024-04-02
  • 20.12.2 - 2024-03-30
  • 20.12.1 - 2024-03-30
  • 20.12.0 - 2024-03-30
  • 20.11.30 - 2024-03-19
  • 20.11.29 - 2024-03-18
  • 20.11.28 - 2024-03-15
  • 20.11.27 - 2024-03-13
  • 20.11.26 - 2024-03-11
  • 20.11.25 - 2024-03-06
  • 20.11.24 - 2024-02-29
  • 20.11.23 - 2024-02-29
  • 20.11.22 - 2024-02-28
  • 20.11.21 - 2024-02-27
  • 20.11.20 - 2024-02-22
  • 20.11.19 - 2024-02-15
  • 20.11.18 - 2024-02-15
  • 20.11.17 - 2024-02-08
  • 20.11.16 - 2024-02-01
  • 20.11.15 - 2024-02-01
  • 20.11.14 - 2024-01-31
  • 20.11.13 - 2024-01-30
  • 20.11.12 - 2024-01-30
  • 20.11.11 - 2024-01-30
  • 20.11.10 - 2024-01-28
  • 20.11.9 - 2024-01-28
  • 20.11.8 - 2024-01-27
  • 20.11.7 - 2024-01-26
  • 20.11.6 - 2024-01-24
  • 20.11.5 - 2024-01-17
  • 20.11.4 - 2024-01-16
  • 20.11.3 - 2024-01-15
  • 20.11.2 - 2024-01-15
  • 20.11.1 - 2024-01-15
  • 20.11.0 - 2024-01-11
  • 20.10.8 - 2024-01-09
  • 20.10.7 - 2024-01-07
  • 20.10.6 - 2023-12-30
  • 20.10.5 - 2023-12-17
  • 20.10.4 - 2023-12-07
  • 20.10.3 - 2023-12-03
  • 20.10.2 - 2023-12-01
  • 20.10.1 - 2023-11-29
  • 20.10.0 - 2023-11-24
  • 20.9.5 - 2023-11-23
  • 20.9.4 - 2023-11-22
  • 20.9.3 - 2023-11-21
  • 20.9.2 - 2023-11-18
  • 20.9.1 - 2023-11-16
  • 20.9.0 - 2023-11-07
  • 20.8.10 - 2023-10-31
  • 20.8.9 - 2023-10-25
  • 20.8.8 - 2023-10-24
  • 20.8.7 - 2023-10-18
  • 20.8.6 - 2023-10-13
  • 20.8.5 - 2023-10-12
  • 20.8.4 - 2023-10-09
  • 20.8.3 - 2023-10-06
  • 20.8.2 - 2023-10-02
  • 20.8.1 - 2023-10-02
  • 20.8.0 - 2023-09-30
  • 20.7.2 - 2023-09-29
  • 20.7.1 - 2023-09-27
  • 20.7.0 - 2023-09-25
  • 20.6.5 - 2023-09-24
  • 20.6.4 - 2023-09-23
  • 20.6.3 - 2023-09-20
  • 20.6.2 - 2023-09-16
  • 20.6.1 - 2023-09-15
  • 20.6.0 - 2023-09-08
  • 20.5.9 - 2023-09-02
  • 20.5.8 - 2023-09-01
  • 20.5.7 - 2023-08-28
  • 20.5.6 - 2023-08-24
  • 20.5.5 - 2023-08-24
  • 20.5.4 - 2023-08-23
  • 20.5.3 - 2023-08-22
  • 20.5.2 - 2023-08-22
  • 20.5.1 - 2023-08-18
  • 20.5.0 - 2023-08-13
  • 20.4.10 - 2023-08-11
  • 20.4.9 - 2023-08-08
  • 20.4.8 - 2023-08-05
  • 20.4.7 - 2023-08-04
  • 20.4.6 - 2023-08-02
  • 20.4.5 - 2023-07-25
  • 20.4.4 - 2023-07-22
  • 20.4.3 - 2023-07-21
  • 20.4.2 - 2023-07-12
  • 20.4.1 - 2023-07-07
  • 20.4.0 - 2023-07-05
  • 20.3.3 - 2023-06-30
  • 20.3.2 - 2023-06-26
  • 20.3.1 - 2023-06-13
  • 20.3.0 - 2023-06-10
  • 20.2.6 - 2023-06-10
  • 20.2.5 - 2023-05-26
  • 20.2.4 - 2023-05-25
  • 20.2.3 - 2023-05-21
  • 20.2.2 - 2023-05-21
  • 20.2.1 - 2023-05-18
  • 20.2.0 - 2023-05-17
  • 20.1.7 - 2023-05-16
  • 20.1.6 - 2023-05-16
  • 20.1.5 - 2023-05-16
  • 20.1.4 - 2023-05-13
  • 20.1.3 - 2023-05-11
  • 20.1.2 - 2023-05-10
  • 20.1.1 - 2023-05-08
  • 20.1.0 - 2023-05-05
  • 20.0.0 - 2023-05-05
  • 18.19.50 - 2024-09-04
  • 18.19.49 - 2024-09-04
  • 18.19.48 - 2024-09-01
  • 18.19.47 - 2024-08-28
  • 18.19.46 - 2024-08-26
  • 18.19.45 - 2024-08-19
  • 18.19.44 - 2024-08-09
  • 18.19.43 - 2024-08-02
  • 18.19.42 - 2024-07-23
  • 18.19.41 - 2024-07-18
  • 18.19.40 - 2024-07-16
  • 18.19.39 - 2024-06-22
  • 18.19.38 - 2024-06-20
  • 18.19.37 - 2024-06-19
  • 18.19.36 - 2024-06-17
  • 18.19.35 - 2024-06-17
  • 18.19.34 - 2024-06-03
  • 18.19.33 - 2024-05-08
  • 18.19.32 - 2024-05-06
  • 18.19.31 - 2024-04-09
  • 18.19.30 - 2024-04-05
  • 18.19.29 - 2024-04-02
  • 18.19.28 - 2024-03-30
  • 18.19.27 - 2024-03-30
  • 18.19.26 - 2024-03-19
  • 18.19.25 - 2024-03-18
  • 18.19.24 - 2024-03-13
  • 18.19.23 - 2024-03-11
  • 18.19.22 - 2024-03-06
  • 18.19.21 - 2024-02-29
  • 18.19.20 - 2024-02-28
  • 18.19.19 - 2024-02-27
  • 18.19.18 - 2024-02-22
  • 18.19.17 - 2024-02-15
  • 18.19.16 - 2024-02-15
  • 18.19.15 - 2024-02-08
  • 18.19.14 - 2024-02-01
  • 18.19.13 - 2024-02-01
  • 18.19.12 - 2024-01-31
  • 18.19.11 - 2024-01-30
  • 18.19.10 - 2024-01-26
  • 18.19.9 - 2024-01-24
  • 18.19.8 - 2024-01-17
  • 18.19.7 - 2024-01-15
  • 18.19.6 - 2024-01-09
  • 18.19.5 - 2024-01-07
  • 18.19.4 - 2023-12-30
  • 18.19.3 - 2023-12-07
  • 18.19.2 - 2023-12-03
  • 18.19.1 - 2023-12-01
  • 18.19.0 - 2023-11-30
  • 18.18.14 - 2023-11-29
  • 18.18.13 - 2023-11-23
  • 18.18.12 - 2023-11-22
  • 18.18.11 - 2023-11-21
  • 18.18.10 - 2023-11-18
  • 18.18.9 - 2023-11-07
  • 18.18.8 - 2023-10-31
  • 18.18.7 - 2023-10-25
  • 18.18.6 - 2023-10-18
  • 18.18.5 - 2023-10-12
  • 18.18.4 - 2023-10-06
  • 18.18.3 - 2023-10-02
  • 18.18.2 - 2023-10-02
  • 18.18.1 - 2023-09-29
  • 18.18.0 - 2023-09-25
  • 18.17.19 - 2023-09-23
  • 18.17.18 - 2023-09-20
  • 18.17.17 - 2023-09-16
  • 18.17.16 - 2023-09-15
  • 18.17.15 - 2023-09-08
  • 18.17.14 - 2023-09-02
  • 18.17.13 - 2023-09-01
  • 18.17.12 - 2023-08-28
  • 18.17.11 - 2023-08-24
  • 18.17.10 - 2023-08-24
  • 18.17.9 - 2023-08-23
  • 18.17.8 - 2023-08-22
  • 18.17.7 - 2023-08-22
  • 18.17.6 - 2023-08-18
  • 18.17.5 - 2023-08-11
  • 18.17.4 - 2023-08-08
  • 18.17.3 - 2023-08-05
  • 18.17.2 - 2023-08-04
  • 18.17.1 - 2023-07-25
  • 18.17.0 - 2023-07-22
  • 18.16.20 - 2023-07-21
  • 18.16.19 - 2023-06-30
  • 18.16.18 - 2023-06-13
  • 18.16.17 - 2023-06-10
  • 18.16.16 - 2023-05-26
  • 18.16.15 - 2023-05-25
  • 18.16.14 - 2023-05-21
  • 18.16.13 - 2023-05-18
  • 18.16.12 - 2023-05-16
  • 18.16.11 - 2023-05-16
  • 18.16.10 - 2023-05-16
  • 18.16.9 - 2023-05-13
  • 18.16.8 - 2023-05-11
  • 18.16.7 - 2023-05-10
  • 18.16.6 - 2023-05-08
  • 18.16.5 - 2023-05-05
  • 18.16.4 - 2023-05-05
  • 18.16.3 - 2023-04-29
  • 18.16.2 - 2023-04-27
  • 18.16.1 - 2023-04-25
  • 18.16.0 - 2023-04-23
  • 18.15.13 - 2023-04-21
  • 18.15.12 - 2023-04-19
  • 18.15.11 - 2023-03-28
  • 18.15.10 - 2023-03-25
  • 18.15.9 - 2023-03-25
  • 18.15.8 - 2023-03-24
  • 18.15.7 - 2023-03-24
  • 18.15.6 - 2023-03-23
  • 18.15.5 - 2023-03-20
  • 18.15.4 - 2023-03-20
  • 18.15.3 - 2023-03-14
  • 18.15.2 - 2023-03-13
  • 18.15.1 - 2023-03-13
  • 18.15.0 - 2023-03-09
  • 18.14.6 - 2023-03-03
  • 18.14.5 - 2023-03-03
  • 18.14.4 - 2023-03-02
  • 18.14.3 - 2023-03-02
  • 18.14.2 - 2023-02-26
  • 18.14.1 - 2023-02-23
  • 18.14.0 - 2023-02-17
  • 18.13.0 - 2023-02-07
  • 18.11.19 - 2023-02-04
  • 18.11.18 - 2022-12-26
  • 18.11.17 - 2022-12-17
  • 18.11.16 - 2022-12-16
  • 18.11.15 - 2022-12-13
  • 18.11.14 - 2022-12-13
  • 18.11.13 - 2022-12-10
  • 18.11.12 - 2022-12-08
  • 18.11.11 - 2022-12-05
  • 18.11.10 - 2022-11-30
  • 18.11.9 - 2022-11-01
  • 18.11.8 - 2022-10-30
  • 18.11.7 - 2022-10-26
  • 18.11.6 - 2022-10-26
  • 18.11.5 - 2022-10-24
  • 18.11.4 - 2022-10-23
  • 18.11.3 - 2022-10-20
  • 18.11.2 - 2022-10-18
  • 18.11.1 - 2022-10-18
  • 18.11.0 - 2022-10-14
  • 18.8.5 - 2022-10-12
  • 18.8.4 - 2022-10-10
  • 18.8.3 - 2022-10-06
  • 18.8.2 - 2022-10-04
  • 18.8.1 - 2022-10-03
  • 18.8.0 - 2022-10-02
  • 18.7.23 - 2022-09-26
  • 18.7.22 - 2022-09-26
  • 18.7.21 - 2022-09-25
  • 18.7.20 - 2022-09-24
  • 18.7.19 - 2022-09-23
  • 18.7.18 - 2022-09-13
  • 18.7.17 - 2022-09-12
  • 18.7.16 - 2022-09-07
  • 18.7.15 - 2022-09-05
  • 18.7.14 - 2022-08-29
  • 18.7.13 - 2022-08-24
  • 18.7.12 - 2022-08-24
  • 18.7.11 - 2022-08-23
  • 18.7.10 - 2022-08-22
  • 18.7.9 - 2022-08-21
  • 18.7.8 - 2022-08-19
  • 18.7.7 - 2022-08-19
  • 18.7.6 - 2022-08-16
  • 18.7.5 - 2022-08-15
  • 18.7.4 - 2022-08-15
  • 18.7.3 - 2022-08-13
  • 18.7.2 - 2022-08-12
  • 18.7.1 - 2022-08-10
  • 18.7.0 - 2022-08-10
  • 18.6.5 - 2022-08-08
  • 18.6.4 - 2022-08-04
  • 18.6.3 - 2022-07-30
  • 18.6.2 - 2022-07-28
  • 18.6.1 - 2022-07-25
  • 18.6.0 - 2022-07-24
  • 18.0.6 - 2022-07-17
  • 18.0.5 - 2022-07-15
  • 18.0.4 - 2022-07-13
  • 18.0.3 - 2022-07-06
  • 18.0.2 - 2022-07-05
  • 18.0.1 - 2022-07-03
  • 18.0.0 - 2022-06-15
  • 17.0.45 - 2022-06-15
  • 17.0.44 - 2022-06-15
  • 17.0.43 - 2022-06-14
  • 17.0.42 - 2022-06-10
  • 17.0.41 - 2022-06-07
  • 17.0.40 - 2022-06-05
  • 17.0.39 - 2022-06-03
  • 17.0.38 - 2022-05-31
  • 17.0.37 - 2022-05-31
  • 17.0.36 - 2022-05-28
  • 17.0.35 - 2022-05-19
  • 17.0.34 - 2022-05-16
  • 17.0.33 - 2022-05-12
  • 17.0.32 - 2022-05-10
  • 17.0.31 - 2022-05-01
  • 17.0.30 - 2022-04-28
  • 17.0.29 - 2022-04-26
  • 17.0.28 - 2022-04-26
  • 17.0.27 - 2022-04-25
  • 17.0.26 - 2022-04-24
  • 17.0.25 - 2022-04-18
  • 17.0.24 - 2022-04-14
  • 17.0.23 - 2022-03-23
  • 17.0.22 - 2022-03-21
  • 17.0.21 - 2022-02-23
  • 17.0.20 - 2022-02-23
  • 17.0.19 - 2022-02-21
  • 17.0.18 - 2022-02-14
  • 17.0.17 - 2022-02-10
  • 17.0.16 - 2022-02-07
  • 17.0.15 - 2022-02-04
  • 17.0.14 - 2022-02-01
  • 17.0.13 - 2022-01-27
  • 17.0.12 - 2022-01-25
  • 17.0.11 - 2022-01-25
  • 17.0.10 - 2022-01-18
  • 17.0.9 - 2022-01-17
  • 17.0.8 - 2022-01-04
  • 17.0.7 - 2022-01-03
  • 17.0.6 - 2022-01-01
  • 17.0.5 - 2021-12-26
  • 17.0.4 - 2021-12-23
  • 17.0.3 - 2021-12-23
  • 17.0.2 - 2021-12-20
  • 17.0.1 - 2021-12-19
  • 17.0.0 - 2021-12-15
  • 16.18.108 - 2024-09-04
from @types/node GitHub release notes
Package name: esbuild
  • 0.23.1 - 2024-08-16
    • Allow using the node: import prefix with es* targets (#3821)

      The node: prefix on imports is an alternate way to import built-in node modules. For example, import fs from "fs" can also be written import fs from "node:fs". This only works with certain newer versions of node, so esbuild removes it when you target older versions of node such as with --target=node14 so that your code still works. With the way esbuild's platform-specific feature compatibility table works, this was added by saying that only newer versions of node support this feature. However, that means that a target such as --target=node18,es2022 removes the node: prefix because none of the es* targets are known to support this feature. This release adds the support for the node: flag to esbuild's internal compatibility table for es* to allow you to use compound targets like this:

      // Original code
      import fs from 'node:fs'
      fs.open

      // Old output (with --bundle --format=esm --platform=node --target=node18,es2022)
      import fs from "fs";
      fs.open;

      // New output (with --bundle --format=esm --platform=node --target=node18,es2022)
      import fs from "node:fs";
      fs.open;

    • Fix a panic when using the CLI with invalid build flags if --analyze is present (#3834)

      Previously esbuild's CLI could crash if it was invoked with flags that aren't valid for a "build" API call and the --analyze flag is present. This was caused by esbuild's internals attempting to add a Go plugin (which is how --analyze is implemented) to a null build object. The panic has been fixed in this release.

    • Fix incorrect location of certain error messages (#3845)

      This release fixes a regression that caused certain errors relating to variable declarations to be reported at an incorrect location. The regression was introduced in version 0.18.7 of esbuild.

    • Print comments before case clauses in switch statements (#3838)

      With this release, esbuild will attempt to print comments that come before case clauses in switch statements. This is similar to what esbuild already does for comments inside of certain types of expressions. Note that these types of comments are not printed if minification is enabled (specifically whitespace minification).

    • Fix a memory leak with pluginData (#3825)

      With this release, the build context's internal pluginData cache will now be cleared when starting a new build. This should fix a leak of memory from plugins that return pluginData objects from onResolve and/or onLoad callbacks.

  • 0.23.0 - 2024-07-02

    This release deliberately contains backwards-incompatible changes. To avoid automatically picking up releases like this, you should either be pinning the exact version of esbuild in your package.json file (recommended) or be using a version range syntax that only accepts patch upgrades such as ^0.22.0 or ~0.22.0. See npm's documentation about semver for more information.

    • Revert the recent change to avoid bundling dependencies for node (#3819)

      This release reverts the recent change in version 0.22.0 that made --packages=external the default behavior with --platform=node. The default is now back to --packages=bundle.

      I've just been made aware that Amazon doesn't pin their dependencies in their "AWS CDK" product, which means that whenever esbuild publishes a new release, many people (potentially everyone?) using their SDK around the world instantly starts using it without Amazon checking that it works first. This change in version 0.22.0 happened to break their SDK. I'm amazed that things haven't broken before this point. This revert attempts to avoid these problems for Amazon's customers. Hopefully Amazon will pin their dependencies in the future.

      In addition, this is probably a sign that esbuild is used widely enough that it now needs to switch to a more complicated release model. I may have esbuild use a beta channel model for further development.

    • Fix preserving collapsed JSX whitespace (#3818)

      When transformed, certain whitespace inside JSX elements is ignored completely if it collapses to an empty string. However, the whitespace should only be ignored if the JSX is being transformed, not if it's being preserved. This release fixes a bug where esbuild was previously incorrectly ignoring collapsed whitespace with --jsx=preserve. Here is an example:

      // Original code
      <Foo>
      <Bar />
      </Foo>

      // Old output (with --jsx=preserve)
      <Foo><Bar /></Foo>;

      // New output (with --jsx=preserve)
      <Foo>
      <Bar />
      </Foo>;

  • 0.22.0 - 2024-06-30

    This release deliberately contains backwards-incompatible changes. To avoid automatically picking up releases like this, you should either be pinning the exact version of esbuild in your package.json file (recommended) or be using a version range syntax that only accepts patch upgrades such as ^0.21.0 or ~0.21.0. See npm's documentation about semver for more information.

    • Omit packages from bundles by default when targeting node (#1874, #2830, #2846, #2915, #3145, #3294, #3323, #3582, #3809, #3815)

      This breaking change is an experiment. People are commonly confused when using esbuild to bundle code for node (i.e. for --platform=node) because some packages may not be intended for bundlers, and may use node-specific features that don't work with a bundler. Even though esbuild's "getting started" instructions say to use --packages=external to work around this problem, many people don't read the documentation and don't do this, and are then confused when it doesn't work. So arguably this is a bad default behavior for esbuild to have if people keep tripping over this.

      With this release, esbuild will now omit packages from the bundle by default when the platform is node (i.e. the previous behavior of --packages=external is now the default in this case). Note that your dependencies must now be present on the file system when your bundle is run. If you don't want this behavior, you can do --packages=bundle to allow packages to be included in the bundle (i.e. the previous default behavior). Note that --packages=bundle doesn't mean all packages are bundled, just that packages are allowed to be bundled. You can still exclude individual packages from the bundle using --external: even when --packages=bundle is present.

      The --packages= setting considers all import paths that "look like" package imports in the original source code to be package imports. Specifically import paths that don't start with a path segment of / or . or .. are considered to be package imports. The only two exceptions to this rule are subpath imports (which start with a # character) and TypeScript path remappings via paths and/or baseUrl in tsconfig.json (which are applied first).

    • Drop support for older platforms (#3802)

      This release drops support for the following operating systems:

      • Windows 7
      • Windows 8
      • Windows Server 2008
      • Windows Server 2012

      This is because the Go programming language dropped support for these operating system versions in Go 1.21, and this release updates esbuild from Go 1.20 to Go 1.22.

      Note that this only affects the binary esbuild executables that are published to the esbuild npm package. It's still possible to compile esbuild's source code for these older operating systems. If you need to, you can compile esbuild for yourself using an older version of the Go compiler (before Go version 1.21). That might look something like this:

      git clone https://github.com/evanw/esbuild.git
      cd esbuild
      go build ./cmd/esbuild
      ./esbuild.exe --version
      

      In addition, this release increases the minimum required node version for esbuild's JavaScript API from node 12 to node 18. Node 18 is the oldest version of node that is still being supported (see node's release schedule for more information). This increase is because of an incompatibility between the JavaScript that the Go compiler generates for the esbuild-wasm package and versions of node before node 17.4 (specifically the crypto.getRandomValues function).

    • Update await using behavior to match TypeScript

      TypeScript 5.5 subtly changes the way await using behaves. This release updates esbuild to match these changes in TypeScript. You can read more about these changes in microsoft/TypeScript#58624.

    • Allow es2024 as a target environment

      The ECMAScript 2024 specification was just approved, so it has been added to esbuild as a possible compilation target. You can read more about the features that it adds here: https://2ality.com/2024/06/ecmascript-2024.html. The only addition that's relevant for esbuild is the regular expression /v flag. With --target=es2024, regular expressions that use the /v flag will now be passed through untransformed instead of being transformed into a call to new RegExp.

    • Publish binaries for OpenBSD on 64-bit ARM (#3665, #3674)

      With this release, you should now be able to install the esbuild npm package in OpenBSD on 64-bit ARM, such as on an Apple device with an M1 chip.

      This was contributed by @ ikmckenz.

    • Publish binaries for WASI (WebAssembly System Interface) preview 1 (#3300, #3779)

      The upcoming WASI (WebAssembly System Interface) standard is going to be a way to run WebAssembly outside of a JavaScript host environment. In this scenario you only need a .wasm file without any supporting JavaScript code. Instead of JavaScript providing the APIs for the host environment, the WASI standard specifies a "system interface" that WebAssembly code can access directly (e.g. for file system access).

      Development versions of the WASI specification are being released using preview numbers. The people behind WASI are currently working on preview 2 but the Go compiler has released support for preview 1, which from what I understand is now considered an unsupported legacy release. However, some people have requested that esbuild publish binary executables that support WASI preview 1 so they can experiment with them.

      This release publishes esbuild precompiled for WASI preview 1 to the @ esbuild/wasi-preview1 package on npm (specifically the file @ esbuild/wasi-preview1/esbuild.wasm). This binary executable has not been tested and won't be officially supported, as it's for an old preview release of a specification that has since moved in another direction. If it works for you, great! If not, then you'll likely have to wait for the ecosystem to evolve before using esbuild with WASI. For example, it sounds like perhaps WASI preview 1 doesn't include support for opening network sockets so esbuild's local development server is unlikely to work with WASI preview 1.

    • Warn about onResolve plugins not setting a path (#3790)

      Plugins that return values from onResolve without resolving the path (i.e. without setting either path or external: true) will now cause a warning. This is because esbuild only uses return values from onResolve if it successfully resolves the path, and it's not good for invalid input to be silently ignored.

    • Add a new Go API for running the CLI with plugins (#3539)

      With esbuild's Go API, you can now call cli.RunWithPlugins(args, plugins) to pass an array of esbuild plugins to be used during the build process. This allows you to create a CLI that behaves similarly to esbuild's CLI but with additional Go plugins enabled.

      This was contributed by @ edewit.

  • 0.21.5 - 2024-06-09
    • Fix Symbol.metadata on classes without a class decorator (#3781)

      This release fixes a bug with esbuild's support for the decorator metadata proposal. Previously esbuild only added the Symbol.metadata property to decorated classes if there was a decorator on the class element itself. However, the proposal says that the Symbol.metadata property should be present on all classes that have any decorators at all, not just those with a decorator on the class element itself.

    • Allow unknown import attributes to be used with the copy loader (#3792)

      Import attributes (the with keyword on import statements) are allowed to alter how that path is loaded. For example, esbuild cannot assume that it knows how to load ./bagel.js as type bagel:

      // This is an error with "--bundle" without also using "--external:./bagel.js"
      import tasty from "./bagel.js" with { type: "bagel" }

      Because of that, bundling this code with esbuild is an error unless the file ./bagel.js is external to the bundle (such as with --bundle --external:./bagel.js).

      However, there is an additional case where it's ok for esbuild to allow this: if the file is loaded using the copy loader. That's because the copy loader behaves similarly to --external in that the file is left external to the bundle. The difference is that the copy loader copies the file into the output folder and rewrites the import path while --external doesn't. That means the following will now work with the copy loader (such as with --bundle --loader:.bagel=copy):

      // This is no longer an error with "--bundle" and "--loader:.bagel=copy"
      import tasty from "./tasty.bagel" with { type: "bagel" }
    • Support import attributes with glob-style imports (#3797)

      This release adds support for import attributes (the with option) to glob-style imports (dynamic imports with certain string literal patterns as paths). These imports previously didn't support import attributes due to an oversight. So code like this will now work correctly:

      async function loadLocale(locale: string): Locale {
        const data = await import(`./locales/${locale}.data`, { with: { type: 'json' } })
        return unpackLocale(locale, data)
      }

      Previously this didn't work even though esbuild normally supports forcing the JSON loader using an import attribute. Attempting to do this used to result in the following error:

      Problem with Netlify? sveltejs/kit#3782)

      This adds support for a new feature from the upcoming TypeScript 5.5 release. The character sequence ${configDir} is now respected at the start of baseUrl and paths values, which are used by esbuild during bundling to correctly map import paths to file system paths. This feature lets base tsconfig.json files specified via extends refer to the directory of the top-level tsconfig.json file. Here is an example:

      {
        "compilerOptions": {
          "paths": {
            

Snyk has created this PR to upgrade:
  - @iarna/toml from 2.2.5 to 3.0.0.
    See this package in npm: https://www.npmjs.com/package/@iarna/toml
  - @netlify/functions from 1.6.0 to 2.8.1.
    See this package in npm: https://www.npmjs.com/package/@netlify/functions
  - @rollup/plugin-commonjs from 25.0.8 to 26.0.1.
    See this package in npm: https://www.npmjs.com/package/@rollup/plugin-commonjs
  - @types/node from 16.18.108 to 22.4.0.
    See this package in npm: https://www.npmjs.com/package/@types/node
  - esbuild from 0.19.12 to 0.23.1.
    See this package in npm: https://www.npmjs.com/package/esbuild
  - rimraf from 5.0.10 to 6.0.1.
    See this package in npm: https://www.npmjs.com/package/rimraf
  - rollup from 3.29.4 to 4.21.0.
    See this package in npm: https://www.npmjs.com/package/rollup
  - typescript from 4.9.5 to 5.5.4.
    See this package in npm: https://www.npmjs.com/package/typescript
  - vitest from 0.31.4 to 2.0.5.
    See this package in npm: https://www.npmjs.com/package/vitest

See this project in Snyk:
https://app.snyk.io/org/leonardoadame/project/8e974d87-3a35-467c-ac0c-c05702c8920e?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

stackblitz bot commented Sep 9, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants