{"id":13790169,"url":"https://github.com/yarnpkg/rfcs","last_synced_at":"2025-04-04T13:12:36.740Z","repository":{"id":45571828,"uuid":"68416532","full_name":"yarnpkg/rfcs","owner":"yarnpkg","description":"RFCs for changes to Yarn","archived":false,"fork":false,"pushed_at":"2024-01-06T17:52:20.000Z","size":107,"stargazers_count":426,"open_issues_count":23,"forks_count":147,"subscribers_count":60,"default_branch":"master","last_synced_at":"2024-10-29T14:35:30.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yarnpkg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-16T21:44:14.000Z","updated_at":"2024-10-26T01:11:57.000Z","dependencies_parsed_at":"2024-01-11T13:20:18.592Z","dependency_job_id":null,"html_url":"https://github.com/yarnpkg/rfcs","commit_stats":{"total_commits":57,"total_committers":26,"mean_commits":"2.1923076923076925","dds":0.631578947368421,"last_synced_commit":"f1d11a23cc87c5e89d909521197e6a5028e05e05"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarnpkg%2Frfcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarnpkg%2Frfcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarnpkg%2Frfcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yarnpkg%2Frfcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yarnpkg","download_url":"https://codeload.github.com/yarnpkg/rfcs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182367,"owners_count":20897380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T22:00:37.999Z","updated_at":"2025-04-04T13:12:36.721Z","avatar_url":"https://github.com/yarnpkg.png","language":null,"funding_links":[],"categories":["Tools","rtfs"],"sub_categories":["redux 扩展"],"readme":"# Yarn RFCs\r\n\r\nMany changes, including bug fixes and documentation improvements can be\r\nimplemented and reviewed via the normal GitHub pull request workflow.\r\n\r\nSome changes though are \"substantial\", and we ask that these be put\r\nthrough a bit of a design process and produce a consensus among the Yarn\r\ncore team.\r\n\r\nThe \"RFC\" (request for comments) process is intended to provide a\r\nconsistent and controlled path for new features to enter the project.\r\n\r\n[Active RFC List](https://github.com/yarnpkg/rfcs/pulls)\r\n\r\nAs a new project, Yarn is still **actively developing** this process,\r\nand it will still change as more features are implemented and the\r\ncommunity settles on specific approaches to feature development.\r\n\r\n## When to follow this process\r\n\r\nYou should consider using this process if you intend to make \"substantial\"\r\nchanges to Yarn or its documentation. Some examples that would benefit\r\nfrom an RFC are:\r\n\r\n   - A new feature that creates new API surface area, and would\r\n     require a feature flag if introduced.\r\n   - The removal of features that already shipped as part of the release\r\n     channel.\r\n   - The introduction of new idiomatic usage or conventions, even if they\r\n     do not include code changes to Yarn itself.\r\n\r\nThe RFC process is a great opportunity to get more eyeballs on your proposal\r\nbefore it becomes a part of a released version of Yarn. Quite often, even\r\nproposals that seem \"obvious\" can be significantly improved once a wider\r\ngroup of interested people have a chance to weigh in.\r\n\r\nThe RFC process can also be helpful to encourage discussions about a proposed\r\nfeature as it is being designed, and incorporate important constraints into\r\nthe design while it's easier to change, before the design has been fully\r\nimplemented.\r\n\r\nSome changes do not require an RFC:\r\n\r\n   - Rephrasing, reorganizing or refactoring\r\n   - Addition or removal of warnings\r\n   - Additions that strictly improve objective, numerical quality\r\ncriteria (speedup, better browser support)\r\n   - Additions only likely to be _noticed by_ other implementors-of-Yarn,\r\ninvisible to users-of-Yarn.\r\n\r\n## What the process is\r\n\r\nIn short, to get a major feature added to Yarn, one usually first gets\r\nthe RFC merged into the RFC repo as a markdown file. At that point the RFC\r\nis 'active' and may be implemented with the goal of eventual inclusion\r\ninto Yarn.\r\n\r\n* Fork the RFC repo http://github.com/yarnpkg/rfcs\r\n* Copy `0000-template.md` to `accepted/0000-my-feature.md` (where\r\n'my-feature' is descriptive. don't assign an RFC number yet).\r\n* Fill in the RFC. Put care into the details: **RFCs that do not\r\npresent convincing motivation, demonstrate understanding of the\r\nimpact of the design, or are disingenuous about the drawbacks or\r\nalternatives tend to be poorly-received**.\r\n* Submit a pull request. As a pull request the RFC will receive design\r\nfeedback from the larger community, and the author should be prepared\r\nto revise it in response.\r\n* Build consensus and integrate feedback. RFCs that have broad support\r\nare much more likely to make progress than those that don't receive any\r\ncomments.\r\n* Eventually, the team will decide whether the RFC is a candidate\r\nfor inclusion in Yarn.\r\n* RFCs that are candidates for inclusion in Yarn will enter a \"final comment\r\nperiod\" lasting 7 days. The beginning of this period will be signaled with a\r\ncomment and tag on the RFC's pull request.\r\n* An RFC can be modified based upon feedback from the team and community.\r\nSignificant modifications may trigger a new final comment period.\r\n* An RFC may be rejected by the team after public discussion has settled\r\nand comments have been made summarizing the rationale for rejection. A member of\r\nthe team should then close the RFC's associated pull request.\r\n* An RFC may be accepted at the close of its final comment period. A team\r\nmember will merge the RFC's associated pull request, at which point the RFC will\r\nbecome 'active'.\r\n\r\n## The RFC life-cycle\r\n\r\nOnce an RFC becomes active, then authors may implement it and submit the\r\nfeature as a pull request to the Yarn repo. Becoming 'active' is not a rubber\r\nstamp, and in particular still does not mean the feature will ultimately\r\nbe merged; it does mean that the core team has agreed to it in principle\r\nand are amenable to merging it.\r\n\r\nFurthermore, the fact that a given RFC has been accepted and is\r\n'active' implies nothing about what priority is assigned to its\r\nimplementation, nor whether anybody is currently working on it.\r\n\r\nModifications to active RFC's can be done in followup PR's. We strive\r\nto write each RFC in a manner that it will reflect the final design of\r\nthe feature; but the nature of the process means that we cannot expect\r\nevery merged RFC to actually reflect what the end result will be at\r\nthe time of the next major release; therefore we try to keep each RFC\r\ndocument somewhat in sync with the language feature as planned,\r\ntracking such changes via followup pull requests to the document.\r\n\r\n## Implementing an RFC\r\n\r\nThe author of an RFC is not obligated to implement it. Of course, the\r\nRFC author (like any other developer) is welcome to post an\r\nimplementation for review after the RFC has been accepted.\r\n\r\nIf you are interested in working on the implementation for an 'active'\r\nRFC, but cannot determine if someone else is already working on it,\r\nfeel free to ask (e.g. by leaving a comment on the associated issue).\r\n\r\n## Reviewing RFC's\r\n\r\nEach week the team will attempt to review some set of open RFC\r\npull requests.\r\n\r\nWe try to make sure that any RFC that we accept is accepted at the\r\nFriday team meeting, and reported in [core team notes]. Every\r\naccepted feature should have a core team champion, who will represent\r\nthe feature and its progress.\r\n\r\n**Yarn's RFC process owes its inspiration to the [Rust RFC process] and the [Ember RFC process]**\r\n\r\n[Rust RFC process]: https://github.com/rust-lang/rfcs\r\n[Ember RFC process]: https://github.com/emberjs/rfcs\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyarnpkg%2Frfcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyarnpkg%2Frfcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyarnpkg%2Frfcs/lists"}