Allow overrides to affect dependencies bundled in a dependency
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, nodejs
- Lĩnh vực
- devtools
Hướng nghiên cứu
The payload names no source files or tests. Start with the linked discussion in npm/cli#8938 and with how overrides and bundleDependencies are documented, to see where they conflict. The issue asks whether npm would take this on, so there is no defined patch yet. It is done when maintainers agree on a design for applying overrides to bundled dependencies.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The discussion about the removal of npm-shrinkwrap mentions a few times allowing overrides to apply when bundleDependencies is used, with what looks like some agreement that it’d be useful.
Quotes from the discussion
The real issue to solve here, and one which I think is worth exploring, is allowing for overrides to take place even in a bundled/shrinkwrap setting. The discussion would be one of priority, I think.
https://github.com/npm/cli/issues/8938#issuecomment-3862766889
... I think the goal should be:
- Have a standard way that npm itself uses for it’s CLI to deliver an optimized CLI package for use primarily via npx
- Have a standard way for package authors to ship opinions on the shape of their dependencies that consumers can take control of via overrides
- Allow for package authors to specify dependencies included in the package source but not via npm managed tooling
https://github.com/npm/cli/issues/8938#issuecomment-3873277646
I think those goals are on the money, and that right now we have 1. and 3. but not 2. due to overrides not having the highest priority
https://github.com/npm/cli/issues/8938#issuecomment-3873406454
We’re raising this issue to discuss whether you’d consider implementing it in npm.
This is something that’d be helpful for our GOV.UK Prototype Kit project. Our package is used:
- As a CLI run with
npxthat lets users easily create new prototypes - As a dependency of the created prototypes, where it provides the server for the prototype
Our main audience is designers/user researchers that cannot be expected to know the ins and out of dependency management and software vulnerability. To take on the dependency management for them, we've set up bundleDependencies to control which dependencies get installed. Previously we used shrinkwrap to that same effect.
However, this prevents teams with more developer support from taking more control over the prototypes’ dependencies, leaving them unable to address vulnerabilities as quickly as their organisations expect to meet their security policies.
This is where having overrides apply to bundled dependencies would be great! We could still abstract dependency management for less tech-savy users while giving control to teams that need quicker vulnerability resolutions.
- Ngôn ngữ chính
- JavaScript
- Star
- 10.3k
- Fork
- 5k
- Merge trung bình
- 4 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 26
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của npm/cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[BUG] scripts/dependency-graph.js splits npm-cli-repos.txt on os.EOL, so DEPENDENCIES.md depends on the checkout's line endingsCó thể đã có người làm @saruk-vedant đã nhận 7 ngày trước. Đang mởBug Needs Triage Triage Requested
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[BUG] npm pkg delete removes the first array item for a nonexistent propertyCó thể đã có người làm @drawliin đã nhận 42 ngày trước. Đang mởcmd:delete Priority 3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 2 ngày
-
create node pr: Node.js 20 deprecation & `DEP0040` warnings loggedCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởEngineering Priority 1
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 2 ngày
-
`npm audit signatures` does not report how many packages it skipped for want of registry keysCó thể đã có người làm @greenlincoln05 đã nhận 63 ngày trước. Đang mởPriority 3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 2 ngày
Issue tương tự
-
docs: add SECURITY.md vulnerability reporting policyCó thể đã có người làm @AK-Lmn đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
flisk-sh/linux2wasm#12 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
possible bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Mintplex-Labs/anything-llm#7388 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 60/100
Maintainer thường phản hồi trong vòng 1 ngày
-
v6: Minified bootstrap.min.css is missing header infoCó thể đã có người làm @lazerg đã nhận hôm nay. Đang mởbug build confirmed has-pr v6
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[workshop-sync] workshop/side-quest-26-01-forecast-costs.md: forecast default history window is inaccurateCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
githubnext/gh-aw-workshop#6332 ·
Maintainer thường phản hồi trong vòng 1 ngày