Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 2.97 KB

File metadata and controls

42 lines (33 loc) · 2.97 KB

5.1.0 - 2025-08-27

Maintenance / Tooling

  • Dev toolchain upgrade: ESLint 9 (flat config), Mocha 11, Sinon 21, Commitlint 19, Semantic-Release latest.
  • Migrated all tests from deprecated sinon.sandbox.create() to sinon.createSandbox(); removed .usingPromise usage.
  • Added flat config eslint.config.js and removed legacy eslintConfig + .eslintignore (ignored paths migrated).
  • Minor test refactors for lint (unused vars) and stabilized cleanup logic.
  • No runtime code changes besides prior fs async modernization; public API unchanged.

Notes

  • Version bump minor (5.0.x -> 5.1.0) because internal tooling changes may affect contributors (new lint rules) though consumer API is stable.

5.0.0-fork.1 - 2025-08-27

Maintenance

  • Removed legacy dependencies bluebird and moment from runtime e test suite. Tutti i flussi async ora usano solo Promises native; formattazione date/tempo reimplementata con API Date.
  • Rimpiazzate utility Bluebird (Promise.try, Promise.mapSeries, .tap, timeouts/delays) con pattern nativi equivalenti (sequenza via Array.reduce, side-effect in .then, polling manuale per i timeout delle connessioni dati passive/attive).
  • Rimosso l'handling specifico di Promise.TimeoutError; i percorsi di timeout ora propagano un semplice Error('TimeoutError') (solo nei test per simulazione).
  • Adeguati i test: eliminato ogni uso di Bluebird; mantenuto sinon.sandbox.create() (la versione corrente di sinon non espone createSandbox).
  • Pulite le dipendenze: rimossi bluebird e moment; versione bump a 5.0.0-fork.1.

5.0.0-fork.0 - 2025-08-27

Breaking

  • Dropped support for Node <20; engines.node is now >=20 (Node 18 is EOL). This enables using only modern core APIs without polyfills.

Maintenance

  • Logger migration: bunyan removed in favor of pino (smaller, no deprecated transitive deps).
  • Planned follow-up: replace remaining fs.rmdirSync(...,{recursive:true}) in tests with fs.rmSync (already supported) and progressively remove Bluebird (will land in subsequent patch without further breaking changes).

Changelog

All notable changes for the forked package @n-car/ftp-srv.

4.6.3-fork.2 - 2025-08-27

Security

  • Removed vulnerable transient dependency ip and replaced usage with internal wrapper over ipaddr.js (src/helpers/ip-wrapper.js). Currently only equality comparison is required by the codebase (active/passive connector host matching).

Fixes / Maintenance

  • Reworked FileSystem._resolvePath to enforce POSIX-style client paths consistently across platforms while preventing directory traversal above the root.
  • Adjusted test expectations to reflect POSIX client path contract; added Windows-safe conditional for CHMOD integration test (POSIX mode bits unreliable on win32).

Notes

  • Future parity helpers from original ip (e.g., CIDR, private/public checks) can be added to the wrapper if needed.
  • Recommend pinning this version via git tag instead of branch reference for reproducible builds.