Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esm: do not interpret "main" as a URL #55003

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Sep 19, 2024

As documented, its value is a path.

node/doc/api/packages.md

Lines 1210 to 1211 in c42d846

The `"main"` field defines the entry point of a package when imported by name
via a `node_modules` lookup. Its value is a path.

As documented, its value is a path.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. esm Issues and PRs related to the ECMAScript Modules implementation. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Sep 19, 2024
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.03%. Comparing base (c42d846) to head (f0c3a2c).
Report is 123 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #55003   +/-   ##
=======================================
  Coverage   88.03%   88.03%           
=======================================
  Files         652      652           
  Lines      183759   183744   -15     
  Branches    35861    35853    -8     
=======================================
- Hits       161770   161766    -4     
+ Misses      15239    15229   -10     
+ Partials     6750     6749    -1     
Files with missing lines Coverage Δ
lib/internal/modules/esm/resolve.js 96.62% <100.00%> (-0.01%) ⬇️
src/node_file.cc 77.36% <100.00%> (+0.26%) ⬆️

... and 31 files with indirect coverage changes

@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Sep 20, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 20, 2024
@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 27, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 27, 2024
@nodejs-github-bot nodejs-github-bot merged commit fb85279 into nodejs:main Sep 27, 2024
58 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in fb85279

@aduh95 aduh95 deleted the main-is-a-path branch September 27, 2024 14:45
targos pushed a commit that referenced this pull request Oct 4, 2024
As documented, its value is a path.

PR-URL: #55003
Reviewed-By: Benjamin Gruenbaum <[email protected]>
targos pushed a commit that referenced this pull request Oct 4, 2024
As documented, its value is a path.

PR-URL: #55003
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@aduh95 aduh95 mentioned this pull request Oct 9, 2024
louwers pushed a commit to louwers/node that referenced this pull request Nov 2, 2024
As documented, its value is a path.

PR-URL: nodejs#55003
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. esm Issues and PRs related to the ECMAScript Modules implementation. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants