oxc/npm
Luiz Felipe Weber 79ba9b5970
feat(linter): added support to run in Node.JS legacy versions (#8648)
With a few adjustments It is possible to run _oxlint_ in projects which
use legacy **Node.js** versions, such as **8.x.x**. Basically this is
possible by removing spread operator in 'binpath' environment assemble
and changing a catch command to inform an error variable.

Without this modification, we got always this error:

```
node_modules/oxlint/bin/oxlint:23
  } catch {
          ^

SyntaxError: Unexpected token {
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3
```
2025-01-23 21:17:48 +08:00
..
oxc-minify release(crates): v0.47.1 (#8593) 2025-01-19 09:44:29 +08:00
oxc-parser release(crates): v0.47.1 (#8593) 2025-01-19 09:44:29 +08:00
oxc-transform release(crates): v0.47.1 (#8593) 2025-01-19 09:44:29 +08:00
oxc-types release(crates): v0.47.1 (#8593) 2025-01-19 09:44:29 +08:00
oxc-wasm refactor(semantic): remove serialize (#8015) 2024-12-19 09:51:12 +00:00
oxlint feat(linter): added support to run in Node.JS legacy versions (#8648) 2025-01-23 21:17:48 +08:00
parser-wasm chore(deps): update dependency rust to v1.82.0 (#6649) 2024-11-29 05:11:03 +00:00