Skip to content

2.6.4

Choose a tag to compare

@james-pre james-pre released this 20 Aug 20:30
· 105 commits to main since this release
v2.6.4
02da652

The release focuses on improvements to how tests are run and imports.

Imports

The package.json exports have been updated so that you no longer have to add .js to the end of imports. For example, you can now import from @zenfs/core/config instead of having to write @zenfs/core/config.js. Note that only a few public-facing import paths are meant to be stable and that you should almost always be importing from @zenfs/core.

Tests

  • Updated tests to work without tsx
    • This is an opt-in via the --node/-n flag to zenfs-test for backward compatibility
  • Updated the native node:fs tests
    • Added test:native npm script (this replaces the tests/native/run.sh)
    • Added root test flag which is used on tests that require root when running against the actual node:fs module
    • sudo is no longer used, though this means the root-flagged tests will be skipped
  • Updated zenfs-test coverage reporting
    • --report not controls whether to display a coverage report when running tests. This means by default a coverage report will no longer by shown, which should reduce the amount of unwanted output.
    • The old "exclusive" --report functionality has been moved to --report-only
  • Updated tests so that fs.promises.exists isn't used other than in the actual fs.promises.exists test
    • Changed since it is not part of the Node.js API
    • Added promises.exists test flag
  • Fixed some FileHandles in tests not being closed
  • Changed instanceof Error usage in tests to Error.isError