未加星标

Hello, Yarn

字体大小 | |
[数据库(综合) 所属分类 数据库(综合) | 发布者 店小二05 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

Today, Facebook announced that they have open sourced Yarn , a backwards-compatible client for the npm registry. This joins a list of other third-party registry clients that include ied , pnpm , npm-install and npmd . (Apologies if we missed any.) Yarn’s arrival is great news for npm’s users worldwide and we’re happy to see it.

Like other third-party registry clients, Yarn takes the list of priorities that our official npm client balances, and shifts them around a little. It also solves a number of problems that Facebook was encountering using npm at their unique global scale. Yarn includes another take on npm’s shrinkwrap feature and some clever performance work. We’ve also been working on these specific features, so we’ll be paying close attention.

Does it work with npm?

Mostly! We haven’t had time to run extensive tests on the compatibility of Yarn, but it seems to work great with public packages. It does not authenticate to the registry the way the official client does, so it’s currently unable to work with private packages. The Yarn team is aware of this issue and have said they’ll address it.

Is Facebook forking the community?

Whenever a big company gets involved in an open source project, there’s some understandable anxiety from the community about its intentions.

Yarn publishes to npm’s own registry by default, so Yarn users continue to be part of the existing community and benefit from the same 350,000+ packages as users of the official npm client. Yarn pulls packages from registry.yarnpkg.com , which allows them to run experiments with the Yarn client. This is a proxy that pulls packages from the official npm registry, much like npmjs.cf .

Like so many other companies around the world, Facebook benefits from the united open source javascript community on npm.

This is how open source works

As I said at the start, we’re happy to see Yarn join the ranks of open source npm clients. This is how open source software is supposed to work!

The developers behind Yarn ― Seb , James , Christoph , and Konstantin ― are prolific publishers of npm packages and pillars of the npm community.

Through their efforts, Facebook and others have put a lot of developer time into this project to solve problems they encountered. Sharing the fruits of their labor will allow ideas and bugfixes to flow back and forth between npm’s official client and all the others. Everyone benefits as a result.

Yarn also shows that one of the world’s largest tech companies, which is already behind hugely popular JavaScript projects like React , is invested in and committed to the ongoing health of the npm community. That’s great news for JavaScript devs everywhere.

We’re pleased to see Yarn get off to such a great start, and look forward to seeing where it goes.

本文数据库(综合)相关术语:系统安全软件

主题: FacebookJavaScriptJavaReact
分页:12
转载请注明
本文标题:Hello, Yarn
本站链接:http://www.codesec.net/view/482226.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 数据库(综合) | 评论(0) | 阅读(117)