Skip to content

Commit

Permalink
feat: enhance ESM/CJS support with common __dirname implementation an…
Browse files Browse the repository at this point in the history
…d improve debuglog tests
  • Loading branch information
mceachen committed Jan 8, 2025
1 parent 0104d1c commit d8290c5
Show file tree
Hide file tree
Showing 23 changed files with 1,486 additions and 650 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ Fixed for any bug fixes.
Security in case of vulnerabilities.
-->

## [0.3.3] - 2025-01-07

- `Packaging`: Improved ESM/CJS support with common `__dirname` implementation thanks to `tsup` [shims](https://tsup.egoist.dev/#inject-cjs-and-esm-shims).

This change simplifies the implementation and improves inline jsdocs as the exported code and docs have been inlined.

- `Packaging`: Re-enabled test coverage assertions (after finding the magicks to get istanbul to see what the tests were exercising)

- `Packaging`: Added debuglog tests

- `Packaging`: Fixed `npm run watch`

- `Packaging`: Fixed `npm run watch`


## [0.3.2] - 2025-01-03

- `Fixed`: prior `canReaddir()` (and subsequent `status` of volume metadata) would incorrectly fail if the first directory element wasn't readable.
Expand Down
8 changes: 6 additions & 2 deletions jest.config.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,19 @@ const baseConfig = {
"exports",
"setup",
"/test-utils/",
"\.d.ts$",
"/types/",
...otherPlatforms,
],
coverageThreshold: {
// As of 20250106 on linux:
// | % Stmts | % Branch | % Funcs | % Lines
// | 93.63 | 87.05 | 91.86 | 93.63
global: {
statements: 85,
branches: 80,
functions: 88,
lines: 90,
functions: 85,
lines: 86,
},
},
};
Expand Down
Loading

0 comments on commit d8290c5

Please sign in to comment.