fix(modules): harden @use paths (backslash, null byte, '..' folder) #306
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!306
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/use-path-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lot 1a of
.notes/v1.6/plan-finitions-techniques-1.6.md.validateSpecifier()rejects\(with a "use forward slashes" hint, checked first soC:\foo.gramgets it) and null bytes, and is now exported from@gram-lang/modules.confine()(CLI and LSP hosts):rel === ".." || rel.startsWith("..${sep}")instead ofstartsWith(".."), so..notes/a.gramis no longer a false positive...notesfolder (CLI + LSP, file: URI)./only in@usepaths.The
@use … as {…}completion check from the plan is adev/1.6-only feature: it goes there aftermainis merged intodev/1.6.