unjs / std-env

Runtime Agnostic JS utils
MIT License
433 stars 25 forks source link

chore(deps): update all non-major dependencies #111

Closed renovate[bot] closed 5 months ago

renovate[bot] commented 5 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/node (source) ^20.10.5 -> ^20.11.5 age adoption passing confidence
@vitest/coverage-v8 (source) ^1.1.0 -> ^1.2.1 age adoption passing confidence
esbuild ^0.19.10 -> ^0.19.11 age adoption passing confidence
pnpm (source) 8.12.1 -> 8.14.1 age adoption passing confidence
prettier (source) ^3.1.1 -> ^3.2.4 age adoption passing confidence
rollup (source) ^4.9.1 -> ^4.9.5 age adoption passing confidence
vitest (source) ^1.1.0 -> ^1.2.1 age adoption passing confidence

Release Notes

vitest-dev/vitest (@​vitest/coverage-v8) ### [`v1.2.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.2.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.2.0...v1.2.1) #####    🐞 Bug Fixes - **browser**: - Apply inlined workspace config to browser mode vite server  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4947](https://togithub.com/vitest-dev/vitest/issues/4947) [(db01f)](https://togithub.com/vitest-dev/vitest/commit/db01f6c2) - Fix browser testing url for https  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4855](https://togithub.com/vitest-dev/vitest/issues/4855) [(6c1cc)](https://togithub.com/vitest-dev/vitest/commit/6c1cc78b) - Don't fail when calling vi.useFakeTimers  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4992](https://togithub.com/vitest-dev/vitest/issues/4992) [(6c5fe)](https://togithub.com/vitest-dev/vitest/commit/6c5fe49b) - **coverage**: - `thresholds.autoUpdate` to work with arrow function configuration files  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/4959](https://togithub.com/vitest-dev/vitest/issues/4959) [(4b411)](https://togithub.com/vitest-dev/vitest/commit/4b41131a) - **expect**: - Implement chai inspect for `AsymmetricMatcher`  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4942](https://togithub.com/vitest-dev/vitest/issues/4942) [(06bae)](https://togithub.com/vitest-dev/vitest/commit/06bae4dd) - **vite-node**: - Externalize network imports  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4987](https://togithub.com/vitest-dev/vitest/issues/4987) [(21f57)](https://togithub.com/vitest-dev/vitest/commit/21f5744d) - **vitest**: - Handle single `await vi.hoisted`  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4962](https://togithub.com/vitest-dev/vitest/issues/4962) [(dcf2e)](https://togithub.com/vitest-dev/vitest/commit/dcf2e9f2) - Simplify hoist transform check regex to avoid expensive regex match  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4974](https://togithub.com/vitest-dev/vitest/issues/4974) [(df0db)](https://togithub.com/vitest-dev/vitest/commit/df0db6a9) - Correctly find module if it has a version query  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4976](https://togithub.com/vitest-dev/vitest/issues/4976) [(952c3)](https://togithub.com/vitest-dev/vitest/commit/952c31df) - Check color support for intercepted console logging  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4966](https://togithub.com/vitest-dev/vitest/issues/4966) [(39a71)](https://togithub.com/vitest-dev/vitest/commit/39a7169c) - Use development/production conditions when resolving external modules  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4980](https://togithub.com/vitest-dev/vitest/issues/4980) [(8877e)](https://togithub.com/vitest-dev/vitest/commit/8877e22a) - Throw a syntax error if vi.hoisted is directly exported  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4969](https://togithub.com/vitest-dev/vitest/issues/4969) [(f8bff)](https://togithub.com/vitest-dev/vitest/commit/f8bff9ef) #####     [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.2.0...v1.2.1) ### [`v1.2.0`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.2.0) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.1.3...v1.2.0) #####    🚀 Features - Support case-insensitive path matching in cli  -  by [@​tigranmk](https://togithub.com/tigranmk) in [https://github.com/vitest-dev/vitest/issues/3567](https://togithub.com/vitest-dev/vitest/issues/3567) and [https://github.com/vitest-dev/vitest/issues/4911](https://togithub.com/vitest-dev/vitest/issues/4911) [(1326c)](https://togithub.com/vitest-dev/vitest/commit/1326c6ef) - Add typeahead search  -  by [@​bonyuta0204](https://togithub.com/bonyuta0204) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4275](https://togithub.com/vitest-dev/vitest/issues/4275) and [https://github.com/vitest-dev/vitest/issues/4733](https://togithub.com/vitest-dev/vitest/issues/4733) [(480d8)](https://togithub.com/vitest-dev/vitest/commit/480d866a) - Add syntax highlighting to error messages  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4813](https://togithub.com/vitest-dev/vitest/issues/4813) [(8c969)](https://togithub.com/vitest-dev/vitest/commit/8c969de2) - Allow extending toEqual  -  by [@​tigranmk](https://togithub.com/tigranmk) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/2875](https://togithub.com/vitest-dev/vitest/issues/2875) and [https://github.com/vitest-dev/vitest/issues/4880](https://togithub.com/vitest-dev/vitest/issues/4880) [(463be)](https://togithub.com/vitest-dev/vitest/commit/463bee38) - **coverage**: - Custom reporter support  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/4828](https://togithub.com/vitest-dev/vitest/issues/4828) [(96dc6)](https://togithub.com/vitest-dev/vitest/commit/96dc6e9a) - **ui**: - Show unhandled errors on the ui  -  by [@​spiroka](https://togithub.com/spiroka) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4380](https://togithub.com/vitest-dev/vitest/issues/4380) [(7f59a)](https://togithub.com/vitest-dev/vitest/commit/7f59a1b8) - **vitest**: - Add `--disable-console-intercept` option to allow opting-out from automatic console log interception  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4786](https://togithub.com/vitest-dev/vitest/issues/4786) [(43fa6)](https://togithub.com/vitest-dev/vitest/commit/43fa6baa) - Show slow test duration in verbose reporter on CI  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4929](https://togithub.com/vitest-dev/vitest/issues/4929) [(ccb25)](https://togithub.com/vitest-dev/vitest/commit/ccb25836) - Allow overiding package installer with public API  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4936](https://togithub.com/vitest-dev/vitest/issues/4936) [(c2cce)](https://togithub.com/vitest-dev/vitest/commit/c2cceebb) #####    🐞 Bug Fixes - **browser**: - Support vite config `server.headers`  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4890](https://togithub.com/vitest-dev/vitest/issues/4890) [(55f53)](https://togithub.com/vitest-dev/vitest/commit/55f5349f) - Fix `testNamePattern` config  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4909](https://togithub.com/vitest-dev/vitest/issues/4909) [(4add9)](https://togithub.com/vitest-dev/vitest/commit/4add9516) - Fix updating snapshot during watch mode  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4867](https://togithub.com/vitest-dev/vitest/issues/4867) [(508fc)](https://togithub.com/vitest-dev/vitest/commit/508fced9) - Remove redundant test failure logging  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4891](https://togithub.com/vitest-dev/vitest/issues/4891) [(7fd44)](https://togithub.com/vitest-dev/vitest/commit/7fd44dc3) - **happy-dom**: - Window.close() for environment teardown  -  by [@​capricorn86](https://togithub.com/capricorn86) in [https://github.com/vitest-dev/vitest/issues/4931](https://togithub.com/vitest-dev/vitest/issues/4931) [(91719)](https://togithub.com/vitest-dev/vitest/commit/91719bbd) - **utils**: - Fix `objDisplay` default truncate option for `test.each` title  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4917](https://togithub.com/vitest-dev/vitest/issues/4917) [(9ae9d)](https://togithub.com/vitest-dev/vitest/commit/9ae9dac9) - **vitest**: - Fix tap reporter to handle custom error  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4897](https://togithub.com/vitest-dev/vitest/issues/4897) [(f8ba8)](https://togithub.com/vitest-dev/vitest/commit/f8ba80f2) - Gracefully exit Vitest if `process.exit` is called inside the test  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4903](https://togithub.com/vitest-dev/vitest/issues/4903) [(8e6c1)](https://togithub.com/vitest-dev/vitest/commit/8e6c104a) - Throw "cannot mock" error only in isolated pools  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4905](https://togithub.com/vitest-dev/vitest/issues/4905) [(f99cc)](https://togithub.com/vitest-dev/vitest/commit/f99cc313) - Don't throw SyntaxError when "await vi.hoisted" is used  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4915](https://togithub.com/vitest-dev/vitest/issues/4915) [(ca62f)](https://togithub.com/vitest-dev/vitest/commit/ca62f37a) - Correctly parse --maxWorkers/--minWorkers  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4924](https://togithub.com/vitest-dev/vitest/issues/4924) [(0e77e)](https://togithub.com/vitest-dev/vitest/commit/0e77e697) - Show correct error when vi.hoisted is used inside vi.mock and the other way around  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4916](https://togithub.com/vitest-dev/vitest/issues/4916) [(c4eac)](https://togithub.com/vitest-dev/vitest/commit/c4eacbb7) - Call global teardown when using workspaces  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4935](https://togithub.com/vitest-dev/vitest/issues/4935) [(528bd)](https://togithub.com/vitest-dev/vitest/commit/528bd558) - Use file instead of id for HMR  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4938](https://togithub.com/vitest-dev/vitest/issues/4938) [(ca76f)](https://togithub.com/vitest-dev/vitest/commit/ca76f457) - Add inlined deps to ssr.noExternal so they are added to the module graph  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4945](https://togithub.com/vitest-dev/vitest/issues/4945) [(1663f)](https://togithub.com/vitest-dev/vitest/commit/1663f5ca) - **workspace**: - Support overring `pool` and `poolOptions` on project level  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/4765](https://togithub.com/vitest-dev/vitest/issues/4765) [(e9fe4)](https://togithub.com/vitest-dev/vitest/commit/e9fe4181) #####     [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.1.3...v1.2.0) ### [`v1.1.3`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.1.3) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.1.2...v1.1.3) #####    🐞 Bug Fixes - **vitest**: - Vi.mock breaks tests when using imported variables inside the factory  -  by [@​sheremet-va](https://togithub.com/sheremet-va) and **Dunqing** in [https://github.com/vitest-dev/vitest/issues/4873](https://togithub.com/vitest-dev/vitest/issues/4873) [(7719e)](https://togithub.com/vitest-dev/vitest/commit/7719e79e) - Apply `slowTestThreshold` to all reporters  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4876](https://togithub.com/vitest-dev/vitest/issues/4876) [(1769c)](https://togithub.com/vitest-dev/vitest/commit/1769c796) #####     [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.1.2...v1.1.3) ### [`v1.1.2`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.1.2) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.1.1...v1.1.2) #####    🐞 Bug Fixes - Remove internal flag from UI option in the config  -  by [@​sheremet-va](https://togithub.com/sheremet-va) [(7b4a2)](https://togithub.com/vitest-dev/vitest/commit/7b4a2fce) - **browser**: - Avoid safaridriver collision  -  by [@​mbland](https://togithub.com/mbland) in [https://github.com/vitest-dev/vitest/issues/4863](https://togithub.com/vitest-dev/vitest/issues/4863) [(345a2)](https://togithub.com/vitest-dev/vitest/commit/345a25d6) - Resolved failure to find arbitrarily-named snapshot files when using `expect(...).toMatchFileSnapshot()` matcher.  -  by [@​zmullett](https://togithub.com/zmullett), **Zac Mullett** and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4839](https://togithub.com/vitest-dev/vitest/issues/4839) [(b8140)](https://togithub.com/vitest-dev/vitest/commit/b8140fca) - Handle config.base  -  by [@​mbland](https://togithub.com/mbland) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4686](https://togithub.com/vitest-dev/vitest/issues/4686) and [https://github.com/vitest-dev/vitest/issues/4692](https://togithub.com/vitest-dev/vitest/issues/4692) [(9e345)](https://togithub.com/vitest-dev/vitest/commit/9e34557e) - **deps**: - Update dependency acorn-walk to ^8.3.1  -  by [@​renovate](https://togithub.com/renovate)\[bot] in[https://github.com/vitest-dev/vitest/issues/4837](https://togithub.com/vitest-dev/vitest/issues/4837)7 [(47bc2)](https://togithub.com/vitest-dev/vitest/commit/47bc233d) - Update dependency sirv to ^2.0.4  -  by [@​renovate](https://togithub.com/renovate)\[bot] in[https://github.com/vitest-dev/vitest/issues/4838](https://togithub.com/vitest-dev/vitest/issues/4838)8 [(df261)](https://togithub.com/vitest-dev/vitest/commit/df261ae1) - **runner**: - Fix fixture cleanup for concurrent tests  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4827](https://togithub.com/vitest-dev/vitest/issues/4827) [(1fee6)](https://togithub.com/vitest-dev/vitest/commit/1fee63f2) - **spy**: - Don't allow Promise in mockImplementation  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4859](https://togithub.com/vitest-dev/vitest/issues/4859) [(072e0)](https://togithub.com/vitest-dev/vitest/commit/072e02bf) - **vite-node**: - Correctly return cached result  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4870](https://togithub.com/vitest-dev/vitest/issues/4870) [(15bbb)](https://togithub.com/vitest-dev/vitest/commit/15bbbf81) - **vitest**: - Throw an error if mock was already loaded when vi.mock is called  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4862](https://togithub.com/vitest-dev/vitest/issues/4862) [(e12a5)](https://togithub.com/vitest-dev/vitest/commit/e12a5a36) - Correctly rerun test files on change if server was restarted  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4871](https://togithub.com/vitest-dev/vitest/issues/4871) [(6088b)](https://togithub.com/vitest-dev/vitest/commit/6088b372) - **vm-threads**: - Don't crash on percentage based `memoryLimit`  -  by [@​inottn](https://togithub.com/inottn) and [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/4802](https://togithub.com/vitest-dev/vitest/issues/4802) [(70e8a)](https://togithub.com/vitest-dev/vitest/commit/70e8a389) #####     [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.1.1...v1.1.2) ### [`v1.1.1`](https://togithub.com/vitest-dev/vitest/releases/tag/v1.1.1) [Compare Source](https://togithub.com/vitest-dev/vitest/compare/v1.1.0...v1.1.1) #####    🐞 Bug Fixes - Don't crash when using happy-dom or jsdom environment on Yarn PnP workspaces  -  by [@​wojtekmaj](https://togithub.com/wojtekmaj) and [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4698](https://togithub.com/vitest-dev/vitest/issues/4698) [(ee8b4)](https://togithub.com/vitest-dev/vitest/commit/ee8b46db) - Don't fail if `inline: true` is set  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4815](https://togithub.com/vitest-dev/vitest/issues/4815) [(8f622)](https://togithub.com/vitest-dev/vitest/commit/8f6225b8) - Correct option name `--no-parallelism`  -  by [@​bonyuta0204](https://togithub.com/bonyuta0204) in [https://github.com/vitest-dev/vitest/issues/4831](https://togithub.com/vitest-dev/vitest/issues/4831) [(5053a)](https://togithub.com/vitest-dev/vitest/commit/5053a5dd) - Match jest json output by making json reporter output ndjson-compatible  -  by [@​bard](https://togithub.com/bard) in [https://github.com/vitest-dev/vitest/issues/4824](https://togithub.com/vitest-dev/vitest/issues/4824) [(7e6a6)](https://togithub.com/vitest-dev/vitest/commit/7e6a62af) - **runner**: - Reset "current test" state on dynamic `skip`  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4814](https://togithub.com/vitest-dev/vitest/issues/4814) [(19faf)](https://togithub.com/vitest-dev/vitest/commit/19faf00e) - **vitest**: - Don't hang when mocking files with cyclic dependencies  -  by [@​sheremet-va](https://togithub.com/sheremet-va) in [https://github.com/vitest-dev/vitest/issues/4811](https://togithub.com/vitest-dev/vitest/issues/4811) [(e8ca6)](https://togithub.com/vitest-dev/vitest/commit/e8ca6437) - Initialize snapshot state only once for each file suite  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4796](https://togithub.com/vitest-dev/vitest/issues/4796) [(957da)](https://togithub.com/vitest-dev/vitest/commit/957daa32) - Fix file snapshots in skipped suites considered obsolete  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4795](https://togithub.com/vitest-dev/vitest/issues/4795) [(06c14)](https://togithub.com/vitest-dev/vitest/commit/06c14f7d) - Show `beforeAll/afterAll` errors in junit reporter  -  by [@​hi-ogawa](https://togithub.com/hi-ogawa) in [https://github.com/vitest-dev/vitest/issues/4819](https://togithub.com/vitest-dev/vitest/issues/4819) [(2baea)](https://togithub.com/vitest-dev/vitest/commit/2baea35e) - **vm-threads**: - Tests not cancelled on key press, cancelled tests shown twice  -  by [@​AriPerkkio](https://togithub.com/AriPerkkio) in [https://github.com/vitest-dev/vitest/issues/4781](https://togithub.com/vitest-dev/vitest/issues/4781) [(cf53d)](https://togithub.com/vitest-dev/vitest/commit/cf53d4be) #####     [View changes on GitHub](https://togithub.com/vitest-dev/vitest/compare/v1.1.0...v1.1.1)
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.
pnpm/pnpm (pnpm) ### [`v8.14.1`](https://togithub.com/pnpm/pnpm/releases/tag/v8.14.1) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.14.0...v8.14.1) #### Patch Changes - Resolve the current working directory to its real location before doing any operations [#​6524](https://togithub.com/pnpm/pnpm/issues/6524). - Allow using token helpers in `pnpm publish` [#​7316](https://togithub.com/pnpm/pnpm/issues/7316). - Handle Git repository names containing capital letters [#​7488](https://togithub.com/pnpm/pnpm/pull/7488). - When `hoisted-workspace-packages` is `true` don't hoist the root package even if it has a name. Otherwise we would create a circular symlink. #### Our Gold Sponsors
#### Our Silver Sponsors
### [`v8.14.0`](https://togithub.com/pnpm/pnpm/releases/tag/v8.14.0) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.13.1...v8.14.0) ##### Minor Changes - A new option added for hoisting packages from the workspace. When `hoist-workspace-packages` is set to `true`, packages from the workspace are symlinked to either `/node_modules/.pnpm/node_modules` or to `/node_modules` depending on other hoisting settings (`hoist-pattern` and `public-hoist-pattern`) [#​7451](https://togithub.com/pnpm/pnpm/pull/7451). - The `pnpm dedupe` command now accepts more command line options that the `pnpm install` command also accepts. Example: `pnpm dedupe --store-dir=local-store-dir` ##### Patch Changes - The package information output by cat-index should be sorted by key. - `pnpm deploy` should not touch the target directory if it already exists and isn't empty [#​7351](https://togithub.com/pnpm/pnpm/issues/7351). - `pnpm add a-module-already-in-dev-deps` will show a message to notice the user that the package was not moved to "dependencies" [#​926](https://togithub.com/pnpm/pnpm/issues/926) and fix [#​7319](https://togithub.com/pnpm/pnpm/pull/7319). - Don't install Node.js when use-node-version is set in a WebContainer [#​7478](https://togithub.com/pnpm/pnpm/pull/7478). - Fix copy-on-write on Windows Dev Drives [#​7468](https://togithub.com/pnpm/pnpm/issues/7468). ##### Our Gold Sponsors
##### Our Silver Sponsors
### [`v8.13.1`](https://togithub.com/pnpm/pnpm/releases/tag/v8.13.1) #### Minor Changes - New commands added for inspecting the store: - **pnpm cat-index**: Prints the index file of a specific package in the store. The package is specified by its name and version: pnpm cat-index @​ - **pnpm cat-file**: Prints the contents of a file based on the hash value stored in the index file. For example: pnpm cat-file sha512-mvavhfVcEREI7d8dfvfvIkuBLnx7+rrkHHnPi8mpEDUlNpY4CUY+CvJ5mrrLl18iQYo1odFwBV7z/cOypG7xxQ== - (EXPERIMENTAL) **pnpm find-hash**: Lists the packages that include the file with the specified hash. For example: pnpm find-hash sha512-mvavhfVcEREI7d8dfvfvIkuBLnx7+rrkHHnPi8mpEDUlNpY4CUY+CvJ5mrrLl18iQYo1odFwBV7z/cOypG7xxQ== This command is **experimental**. We might change how it behaves. Related issue: [#​7413](https://togithub.com/pnpm/pnpm/issues/7413). - A new setting added for symlinking [injected dependencies](https://pnpm.io/package_json#dependenciesmetainjected) from the workspace, if their dependencies use the same peer dependencies as the dependent package. The setting is called `dedupe-injected-deps` [#​7416](https://togithub.com/pnpm/pnpm/pull/7416). - Use `--fail-if-no-match` if you want the CLI fail if no packages were matched by the command [#​7403](https://togithub.com/pnpm/pnpm/issues/7403). #### Patch Changes - `pnpm list --parseable` should not print the same dependency multiple times [#​7429](https://togithub.com/pnpm/pnpm/issues/7429). - Fix error message texts in the `pnpm env` commands [#​7456](https://togithub.com/pnpm/pnpm/pull/7456). - Better support for light themed terminals by the `pnpm update --interactive` command [#​7439](https://togithub.com/pnpm/pnpm/issues/7439). - Fix EPERM error that occasionally happened on Windows during renames in the store [#​7213](https://togithub.com/pnpm/pnpm/issues/7213). - Fix error as in `update -i -r` with Git specifiers [#​7415](https://togithub.com/pnpm/pnpm/issues/7415). - Added support for boolean values in 'bundleDependencies' package.json fields when installing a dependency. Fix to properly handle 'bundledDependencies' alias [#​7411](https://togithub.com/pnpm/pnpm/issues/7411). #### Our Gold Sponsors
#### Our Silver Sponsors
prettier/prettier (prettier) ### [`v3.2.4`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#324) [Compare Source](https://togithub.com/prettier/prettier/compare/3.2.3...3.2.4) [diff](https://togithub.com/prettier/prettier/compare/3.2.3...3.2.4) ##### Fix incorrect parser inference ([#​15947](https://togithub.com/prettier/prettier/pull/15947) by [@​fisker](https://togithub.com/fisker)) Files like `.eslintrc.json` were incorrectly formatted as JSONC files. ```jsx // Input prettier --file-info .eslintrc.json { "ignored": false, "inferredParser": "jsonc" } // Prettier 3.2.4 prettier --file-info .eslintrc.json { "ignored": false, "inferredParser": "json" } ``` ### [`v3.2.3`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#323) [Compare Source](https://togithub.com/prettier/prettier/compare/3.2.2...3.2.3) [diff](https://togithub.com/prettier/prettier/compare/3.2.2...3.2.3) ##### Throw errors for invalid code ([#​15881](https://togithub.com/prettier/prettier/pull/15881) by [@​fisker](https://togithub.com/fisker), [@​Josh-Cena](https://togithub.com/Josh-Cena), [@​auvred](https://togithub.com/auvred)) ```ts // Input 1++; // Prettier 3.2.2 1++; // Prettier 3.2.3 SyntaxError: Invalid left-hand side expression in unary operation (1:1) > 1 | 1++; | ^ ``` ```ts // Input try {} catch (error = 1){} // Prettier 3.2.2 try { } catch (error) {} // Prettier 3.2.3 SyntaxError: Catch clause variable cannot have an initializer. (1:23) > 1 | try {} catch (error = 1){} | ^ ``` ##### Fix parser inference ([#​15927](https://togithub.com/prettier/prettier/pull/15927) by [@​fisker](https://togithub.com/fisker)) ```console // Prettier 3.2.2 prettier --file-info tsconfig.json { "ignored": false, "inferredParser": "json" } // Prettier 3.2.3 prettier --file-info tsconfig.json { "ignored": false, "inferredParser": "jsonc" } ``` ### [`v3.2.2`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#322) [Compare Source](https://togithub.com/prettier/prettier/compare/3.2.1...3.2.2) [diff](https://togithub.com/prettier/prettier/compare/3.2.1...3.2.2) ##### Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute ([#​15896](https://togithub.com/prettier/prettier/pull/15896) by [@​eelco](https://togithub.com/eelco)) For example this code would crash before: ```jsx ``` ##### Fix formatting error on optional call expression and member chain ([#​15920](https://togithub.com/prettier/prettier/pull/15920) by [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) ```jsx // Input a(() => {}, c?.d()); // Prettier 3.2.1 TypeError: Cannot read properties of undefined (reading 'type') // Prettier 3.2.2 a(() => {}, c?.d()); ``` ### [`v3.2.1`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#321) [Compare Source](https://togithub.com/prettier/prettier/compare/3.2.0...3.2.1) [diff](https://togithub.com/prettier/prettier/compare/3.2.0...3.2.1) ##### Fix formatting error on member chain ([#​15915](https://togithub.com/prettier/prettier/pull/15915) by [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) ```jsx // Input test().test2().test2(thing?.something); // Prettier 3.2.0 TypeError: Cannot read properties of undefined (reading 'type') // Prettier 3.2.1 test().test2().test2(thing?.something); ``` ### [`v3.2.0`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#320) [Compare Source](https://togithub.com/prettier/prettier/compare/3.1.1...3.2.0) [diff](https://togithub.com/prettier/prettier/compare/3.1.1...3.2.0) 🔗 [Release Notes](https://prettier.io/blog/2024/01/13/3.2.0.html)
rollup/rollup (rollup) ### [`v4.9.5`](https://togithub.com/rollup/rollup/blob/HEAD/CHANGELOG.md#495) [Compare Source](https://togithub.com/rollup/rollup/compare/v4.9.4...v4.9.5) *2024-01-12* ##### Bug Fixes - Fix issue where on Windows, Rollup would not load due to problems with the MSVC executable ([#​5335](https://togithub.com/rollup/rollup/issues/5335)) ##### Pull Requests - [#​5334](https://togithub.com/rollup/rollup/pull/5334): Fix typo in commondir.ts ([@​akiomik](https://togithub.com/akiomik)) - [#​5335](https://togithub.com/rollup/rollup/pull/5335): build: static link msvc runtime on Windows x64 platform ([@​Brooooooklyn](https://togithub.com/Brooooooklyn)) - [#​5338](https://togithub.com/rollup/rollup/pull/5338): chore(deps): lo

Configuration

📅 Schedule: Branch creation - "after 2am and before 3am" (UTC), Automerge - "after 1am and before 2am" (UTC).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



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

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (7f7b778) 82.50% compared to head (bdd42e7) 82.50%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #111 +/- ## ======================================= Coverage 82.50% 82.50% ======================================= Files 10 10 Lines 383 383 Branches 32 32 ======================================= Hits 316 316 Misses 61 61 Partials 6 6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.