Skip to content

feat(micro-utilities): add relative to replacements - #1147

Merged
43081j merged 1 commit into
e18e:mainfrom
RizgarOzan:feat/relative-micro-utility
Oct 19, 2026
Merged

43081j merged 1 commit into
e18e:mainfrom
RizgarOzan:feat/relative-micro-utility

Conversation

@RizgarOzan

Copy link
Copy Markdown
Contributor

🔗 Linked issue

resolves #874

📚 Description

Adds relative to the micro-utilities manifest with a snippet::path-relative snippet. Following the comment on the issue, the snippet only shows the file-to-file case (relative(dirname(fromFile), to)), since that's what the package is mostly used for and a micro-utility entry has no doc page for the other two.

Checked against relative 3.0.2 on Node 24: the snippet gives the same result as relative(a, b) for file-to-file paths, nested or in the same folder, relative and absolute. The package uses the platform path, so node:path (not node:path/posix) is the matching import. Ran tsc, validate-modules.js (OK) and prettier --check on the manifest; sort-manifests keeps the same key order.

@43081j
43081j merged commit 07e3afb into e18e:main Oct 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Replacement]: relative

2 participants