{"id":96753,"date":"2020-10-14T13:42:22","date_gmt":"2020-10-14T11:42:22","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/dostupen-paketnyj-menedzher-npm-7-0"},"modified":"2020-10-14T13:42:22","modified_gmt":"2020-10-14T11:42:22","slug":"dostupen-paketnyj-menedzher-npm-7-0","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/news\/dostupen-paketnyj-menedzher-npm-7-0","title":{"rendered":"Megjelent a 7.0 verzi\u00f3j\u00fa NPM csomagmenedzser","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><noindex><a rel=\"nofollow\" href=\"https:\/\/blog.npmjs.org\/post\/631877012766785536\/release-v700\">Megjelent<\/a><\/noindex> a csomagkezel\u0151 kiad\u00e1sa <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/npm\/cli\/\">NPM 7.0<\/a><\/noindex>, amely a Node.js sz\u00e1ll\u00edt\u00e1s\u00e1nak r\u00e9sze, \u00e9s a JavaScript modulok terjeszt\u00e9s\u00e9re haszn\u00e1lj\u00e1k. Az NPM t\u00e1rol\u00f3ja t\u00f6bb mint 1,3 milli\u00f3 csomagot szolg\u00e1l ki, amelyet k\u00f6r\u00fclbel\u00fcl 12 milli\u00f3 fejleszt\u0151 haszn\u00e1l. Havonta k\u00f6r\u00fclbel\u00fcl 75 milli\u00e1rd let\u00f6lt\u00e9st regisztr\u00e1lnak. Az NPM 7.0 az els\u0151 jelent\u0151s kiad\u00e1s, amely a <noindex><a rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=52746\">megv\u00e1s\u00e1rl\u00e1sa<\/a><\/noindex> NPM Inc a GitHub \u00e1ltal. Az \u00faj verzi\u00f3 a j\u00f6v\u0151beli  <noindex><a rel=\"nofollow\" href=\"https:\/\/nodejs.org\/\">Node.js 15<\/a><\/noindex>, amely okt\u00f3ber 20-\u00e1ra v\u00e1rhat\u00f3. Az NPM 7.0 telep\u00edt\u00e9s\u00e9hez, an\u00e9lk\u00fcl hogy meg kellene v\u00e1rni az \u00faj Node.js verzi\u00f3t, a k\u00f6vetkez\u0151 parancsot lehet v\u00e9grehajtani: &#171;npm i -g npm@7&#187;.<\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/blog.npmjs.org\/post\/618653678433435649\/npm-v7-series-arborist-deep-dive\">Kulcsok<\/a><\/noindex> <noindex><a rel=\"nofollow\" href=\"https:\/\/github.blog\/2020-10-13-presenting-v7-0-0-of-the-npm-cli\/\">\u00fajdons\u00e1gok<\/a><\/noindex>:<\/p>\n<ul>\n<li class=\"l\"> A munkater\u00fcletek (<noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/npm\/rfcs\/blob\/latest\/implemented\/0026-workspaces.md\">Workspaces<\/a><\/noindex>), amelyek lehet\u0151v\u00e9 teszik t\u00f6bb csomag f\u00fcgg\u0151s\u00e9geinek egy csomagba aggreg\u00e1l\u00e1s\u00e1t, hogy azok egy l\u00e9p\u00e9sben telep\u00edthet\u0151k legyenek.\n<li class=\"l\"> Automatikus telep\u00edt\u00e9s <noindex><a rel=\"nofollow\" href=\"https:\/\/nodejs.org\/es\/blog\/npm\/peer-dependencies\/\">peer-f\u00fcgg\u0151s\u00e9gekb\u0151l<\/a><\/noindex> (a pluginekben haszn\u00e1latosak a jelenlegi csomaggal kompatibilis alapcsomagok meghat\u00e1roz\u00e1s\u00e1ra, m\u00e9g akkor is, ha azok k\u00f6zvetlen\u00fcl nincsenek haszn\u00e1latban). A peer-f\u00fcgg\u0151s\u00e9gek a package.json f\u00e1jl &#171;peerDependencies&#187; szakasz\u00e1ban vannak megadva. Kor\u00e1bban az ilyen f\u00fcgg\u0151s\u00e9geket a fejleszt\u0151k k\u00e9zileg telep\u00edtett\u00e9k, de az NPM 7.0 bevezetett egy algoritmust, amely garant\u00e1lja, hogy a helyesen meghat\u00e1rozott peer-f\u00fcgg\u0151s\u00e9g az adott csomag szintj\u00e9n vagy f\u00f6l\u00f6tt tal\u00e1lhat\u00f3 a node_modules f\u00e1jlrendszerf\u00e1ban.\n<li class=\"l\"> A z\u00e1rol\u00e1si f\u00e1jlok m\u00e1sodik verzi\u00f3ja (package-lock v2) \u00e9s a yarn.lock f\u00e1jl t\u00e1mogat\u00e1sa. Az \u00faj form\u00e1tum lehet\u0151v\u00e9 teszi a megism\u00e9telhet\u0151 build-ek v\u00e9grehajt\u00e1s\u00e1t, \u00e9s mindent tartalmaz, ami a csomagf\u00e1k teljes fel\u00e9p\u00edt\u00e9s\u00e9hez sz\u00fcks\u00e9ges. Az NPM mostant\u00f3l a yarn.lock f\u00e1jlokat is felhaszn\u00e1lhatja a csomag metainform\u00e1ci\u00f3inak \u00e9s z\u00e1rol\u00e1si inform\u00e1ci\u00f3inak forr\u00e1sak\u00e9nt.\n<li class=\"l\"> Jelent\u0151s refaktoriz\u00e1l\u00e1s t\u00f6rt\u00e9nt a bels\u0151 komponensekben, amely a funkcionalit\u00e1s elk\u00fcl\u00f6n\u00edt\u00e9s\u00e9re ir\u00e1nyult a karbantart\u00e1s egyszer\u0171s\u00edt\u00e9se \u00e9s a megb\u00edzhat\u00f3s\u00e1g n\u00f6vel\u00e9se \u00e9rdek\u00e9ben. P\u00e9ld\u00e1ul a node_modules f\u00e1jlfa ellen\u0151rz\u00e9s\u00e9\u00e9rt \u00e9s kezel\u00e9s\u00e9\u00e9rt felel\u0151s k\u00f3d egy k\u00fcl\u00f6n modulba ker\u00fclt \u00e1thelyez\u00e9sre. <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/npm\/arborist\">Arborist<\/a><\/noindex>.\n<li class=\"l\"> A package.exports mez\u0151 haszn\u00e1lat\u00e1ra val\u00f3 \u00e1tt\u00e9r\u00e9s megt\u00f6rt\u00e9nt, amely lehetetlenn\u00e9 teszi a bels\u0151 modulok \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435j\u00e1t a require() h\u00edv\u00e1sa r\u00e9v\u00e9n.\n<li class=\"l\"> Teljesen \u00fajra\u00edrt csomag <noindex><a rel=\"nofollow\" href=\"https:\/\/www.npmjs.com\/package\/npx\">npx<\/a><\/noindex>, amely most az &#171;npm exec&#187; parancsot haszn\u00e1lja az csomagokb\u00f3l sz\u00e1rmaz\u00f3 v\u00e9grehajthat\u00f3 f\u00e1jlok futtat\u00e1s\u00e1hoz.\n<li class=\"l\"> Jav\u00edtott\u00e1k az &#171;npm audit&#187; parancs kimenet\u00e9t, mind az olvashat\u00f3 form\u00e1tumban, mind az &#171;&#8212;json&#187; m\u00f3d v\u00e1laszt\u00e1sakor.\n<\/ul>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Forr\u00e1s: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=53884\">opennet.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 NPM 7.0, \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0432 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0443 Node.js \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 JavaScript. \u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 NPM \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 1.3 \u043c\u043b\u043d \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043e\u043a\u043e\u043b\u043e 12 \u043c\u043b\u043d \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0412 \u043c\u0435\u0441\u044f\u0446 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u043a\u043e\u043b\u043e 75 \u043c\u0438\u043b\u043b\u0438\u0430\u0440\u0434\u043e\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a. NPM 7.0 \u0441\u0442\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u043f\u0443\u0441\u043a\u043e\u043c, \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 NPM Inc \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 GitHub. \u041d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-96753","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 NPM.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/news\/dostupen-paketnyj-menedzher-npm-7-0\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 NPM 7.0 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 NPM.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/news\/dostupen-paketnyj-menedzher-npm-7-0\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-10-14T11:42:22+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-10-14T11:42:22+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47El\u00e9rhet\u0151 az NPM 7.0 csomagkezel\u0151 | ProHoster","description":"Kiad\u00e1sra ker\u00fclt a NPM csomagkezel\u0151.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/news\/dostupen-paketnyj-menedzher-npm-7-0","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 NPM 7.0 | ProHoster","og:description":"\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 NPM.","og:url":"https:\/\/prohoster.info\/hu\/blog\/news\/dostupen-paketnyj-menedzher-npm-7-0","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-10-14T11:42:22+00:00","article:modified_time":"2020-10-14T11:42:22+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"96753","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 10:35:12","updated":"2022-10-09 11:52:03","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/96753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=96753"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/96753\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=96753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=96753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=96753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}