Releases: cyberuni/path-equal
Release list
path-equal@1.2.8
Patch Changes
-
e2cb9c7: Serve CJS type declarations to CJS consumers.
The
exportsmap carried one top-leveltypespointing at./esm/index.d.ts, and norequirecondition. A CommonJS consumer resolving undernode16/nodenextwas therefore handed the ESM declarations and told the package was ESM, failing withTS1479: the referenced file is an ECMAScript module and cannot be imported with 'require'.Nothing was wrong with the emitted code —
cjs/package.jsonalready declares{"type":"commonjs"}andcjs/index.d.tsalready shipped. The manifest simply never pointed at it.moduleResolution: "node"ignoresexportsmaps entirely, which is why this went unnoticed.exportsnow resolvesrequireandimportseparately, each with the declarations that match its format, and the top-leveltypesagrees withmaininstead of contradicting it.
path-equal@1.2.7
Patch Changes
-
8403d02: Build the published
cjs/andesm/output with tsdown instead of twotscpasses.Every published path is unchanged (
esm/index.js,cjs/index.js, the.d.tsand.d.ts.map
beside each, andcjs/package.json). Two things about the emitted output do change:- The CJS build targets ES2015 rather than ES5. rolldown's floor is ES2015, and the only
down-levelled syntax in this package is one arrow function. - An
esm/index.js.mapnow ships alongside the ESM output. The TypeScript sources already
shipped, so this adds no information — only a working sourcemap.
Also points
homepageandrepositoryat the repository's current home,cyberuni/path-equal. - The CJS build targets ES2015 rather than ES5. rolldown's floor is ES2015, and the only
path-equal@1.2.6
Patch Changes
- 0d4e3e1: Move the release pipeline to GitHub OIDC trusted publishing on
cyberuni, removing the
NPM_TOKENandCI_GITHUB_TOKENdependency, and point the package metadata at the new
repository home.
v1.2.5
v1.2.4
v1.2.2
v1.2.1
Patch Changes
- cf4f7ef: remove extra source files