mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
### What does this PR do? Fixes thread safety issues due to file poll code being not thread safe. <!-- **Please explain what your changes do**, example: --> <!-- This adds a new flag --bail to bun test. When set, it will stop running tests after the first failure. This is useful for CI environments where you want to fail fast. --> ### How did you verify your code works? Added tests for lifecycle scripts. The tests are unlikely to reproduce the bug, but we'll know if it actually fixes the issue if `test/package.json` doesn't show in flaky tests anymore. <!-- **For code changes, please include automated tests**. Feel free to uncomment the line below --> <!-- I wrote automated tests --> <!-- If JavaScript/TypeScript modules or builtins changed: - [ ] I included a test for the new code, or existing tests cover it - [ ] I ran my tests locally and they pass (`bun-debug test test-file-name.test`) --> <!-- If Zig files changed: - [ ] I checked the lifetime of memory allocated to verify it's (1) freed and (2) only freed when it should be - [ ] I included a test for the new code, or an existing test covers it - [ ] JSValue used outside of the stack is either wrapped in a JSC.Strong or is JSValueProtect'ed - [ ] I wrote TypeScript/JavaScript tests and they pass locally (`bun-debug test test-file-name.test`) --> <!-- If new methods, getters, or setters were added to a publicly exposed class: - [ ] I added TypeScript types for the new methods, getters, or setters --> <!-- If dependencies in tests changed: - [ ] I made sure that specific versions of dependencies are used instead of ranged or tagged versions --> <!-- If a new builtin ESM/CJS module was added: - [ ] I updated Aliases in `module_loader.zig` to include the new module - [ ] I added a test that imports the module - [ ] I added a test that require() the module --> --------- Co-authored-by: taylor.fish <contact@taylor.fish>
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
{
|
|
"name": "lifecycle-preinstall",
|
|
"versions": {
|
|
"1.0.0": {
|
|
"name": "lifecycle-preinstall",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"preinstall": "bun preinstall.js"
|
|
},
|
|
"_id": "lifecycle-preinstall@1.0.0",
|
|
"_integrity": "sha512-62WGgQIgbtfaxP+eiW2XThZ4m7XOElX/3Wx7afjM5A60XYbPmRXw9TasVm0DXM+wYjf5HLwc0lsvlvJzetyD/A==",
|
|
"_nodeVersion": "24.3.0",
|
|
"_npmVersion": "10.8.3",
|
|
"integrity": "sha512-62WGgQIgbtfaxP+eiW2XThZ4m7XOElX/3Wx7afjM5A60XYbPmRXw9TasVm0DXM+wYjf5HLwc0lsvlvJzetyD/A==",
|
|
"shasum": "bc494b4c920f8a4b09912f0ab6bb22a32d682857",
|
|
"dist": {
|
|
"integrity": "sha512-62WGgQIgbtfaxP+eiW2XThZ4m7XOElX/3Wx7afjM5A60XYbPmRXw9TasVm0DXM+wYjf5HLwc0lsvlvJzetyD/A==",
|
|
"shasum": "bc494b4c920f8a4b09912f0ab6bb22a32d682857",
|
|
"tarball": "http://http://localhost:4873/lifecycle-preinstall/-/lifecycle-preinstall-1.0.0.tgz"
|
|
},
|
|
"contributors": []
|
|
}
|
|
},
|
|
"time": {
|
|
"modified": "2025-07-28T07:46:41.246Z",
|
|
"created": "2025-07-28T07:46:41.246Z",
|
|
"1.0.0": "2025-07-28T07:46:41.246Z"
|
|
},
|
|
"users": {},
|
|
"dist-tags": {
|
|
"latest": "1.0.0"
|
|
},
|
|
"_uplinks": {},
|
|
"_distfiles": {},
|
|
"_attachments": {
|
|
"lifecycle-preinstall-1.0.0.tgz": {
|
|
"shasum": "bc494b4c920f8a4b09912f0ab6bb22a32d682857",
|
|
"version": "1.0.0"
|
|
}
|
|
},
|
|
"_rev": "",
|
|
"_id": "lifecycle-preinstall",
|
|
"readme": ""
|
|
} |