タグ

articleとnpmに関するefclのブックマーク (71)

  • How we built JSR

    We recently launched the JavaScript Registry - JSR. It’s a new registry for JavaScript and TypeScript designed to offer a significantly better experience than npm for both package authors and users: It natively supports publishing TypeScript source code, which is used to auto-generate documentation for your package It’s secure-by-default, supporting token-less publishing from GitHub Actions and pa

    How we built JSR
    efcl
    efcl 2024/04/14
    JSRの技術的な作りについて。 APIサーバはRustで書かれていて、DBにはPostgresを利用している。 フロントエンドにはFreshを使ったIslandsアーキテクチャにしている。 Freshを動かすRendering Serverは各地にデプロイされるがAPI ServerはUS
  • Why Should You Care About Package Metadata Interoperability? | OpenJS Foundation

    Community Why Should You Care About Package Metadata Interoperability? A neutral industry group called the Package Metadata Interoperability Collab Space has formed at the OpenJS Foundation to iterate on the informal standardization of package.json and improve the interoperability of JavaScript package metadata for application developers. The package.json file is the entry point for nearly all Jav

    Why Should You Care About Package Metadata Interoperability? | OpenJS Foundation
    efcl
    efcl 2024/03/10
    OpenJSで`package.json`のメタデータの相互運用性を向上させるためのワーキンググループが発足した。
  • Node.js Community Debate Intensifies Over Enabling Corepack by Default and Potentially Unbundling npm - Socket

    Node.js Community Debate Intensifies Over Enabling Corepack by Default and Potentially Unbundling npmThe Node community is wrestling with the decision to enable Corepack by default, which has sparked a debate about the potential of removing npm from the Node.js binary. A heated debate is happening in the Node.js community over a proposal to enable Corepack by default that was opened in November 20

    Node.js Community Debate Intensifies Over Enabling Corepack by Default and Potentially Unbundling npm - Socket
    efcl
    efcl 2024/02/11
    Node.jsのcorepackをデフォルト有効化した場合に、`npm`をNode.jsにバンドルするかどうかの議論について。
  • Node.jsで機能やパッケージの非推奨メッセージを通知する方法

    ライブラリやツールなどを作っているときに、特定の機能やパッケージを非推奨にする場合があります。 これらの非推奨はリポジトリ上のREADMEやIssueなどに書いても、利用者が気づかないことがあります。 そのため、利用者が気付けるように非推奨の機能やパッケージを使った場合に警告を出す方法を紹介します。 非推奨にはいくつかの段階があり、それに応じてやり方を変えられるので、それぞれの方法を紹介します。 パッケージの非推奨化: npm deprecate <package> <message> コードレベルの非推奨化: JSDocタグの@deprecated 実行時の非推奨化: process.emitWarning() パッケージの非推奨化: npm deprecate <package> <message> npmのパッケージレベルで、そのパッケージが非推奨であることを通知するにはnpm de

    Node.jsで機能やパッケージの非推奨メッセージを通知する方法
    efcl
    efcl 2024/02/04
    npmやNode.jsで非推奨のメッセージを通知する方法について。 パッケージの非推奨化コードレベルの非推奨化、実行時の非推奨化について
  • npm in Review: A 2023 Retrospective on Growth, Security, and Quirky Facts - Socket

    npm in Review: A 2023 Retrospective on Growth, Security, and Quirky FactsFrom unprecedented expansion to security challenges: A comprehensive look at npm's dynamic year. It's a new year! So let's look back at how npm, the most popular package manager in the world, fared in 2023. We will look at some of the major trends in the ecosystem and investigate what the data reveal about how npm grew over t

    npm in Review: A 2023 Retrospective on Growth, Security, and Quirky Facts - Socket
    efcl
    efcl 2024/01/21
    npmレジストリ上のパッケージの分析記事。 毎月のダウンロード数、依存関係数が多いパッケージ、ダウンロード数が多いパッケージ、2023年に初めてリリースされてダウンロードが多いパッケージ。 そのほかには、パッケー
  • NPM registry prank leaves developers unable to unpublish packages

    NPM registry prank leaves developers unable to unpublish packagesLaura FrenchJanuary 3, 2024 A prank on npm included a meme image of Gary Oldman from the film “Léon." (Photo by Patrick Camboulive / Sygma via Getty Images) Update Jan. 4, 2024: GitHub told SC Media Wednesday night that disruptions related to the "everything" package, and its registry-wide dependencies, were being resolved. "We found

    NPM registry prank leaves developers unable to unpublish packages
    efcl
    efcl 2024/01/10
    npmの全てに依存するパッケージが公開されたので、unpublish policyにより全てのパッケージがunpublishできなくなったという問題
  • npm install --productionみたいなの色々ありすぎ問題


    使npmv10.2.3稿node.jsLTS   $ node -v v20.10.0 $ npm -v 10.2.3 $ system_profiler SPHardwareDataType | grep -E 'Model Name|Chip' Model Name: MacBook Air Chip: Apple M2 $ sw_vers ProductName: macOS ProductVersion: 14.1.1 BuildVersion: 23B81 調 packag
    npm install --productionみたいなの色々ありすぎ問題
    efcl
    efcl 2023/12/12
    `npm install --omit=dev`や`--production`、`--inculde`フラグについて
  • Introducing auto-triage rules for Dependabot

    ProductSecurityIntroducing auto-triage rules for DependabotMake quick work of alerts with preset and custom rules. Since the May beta release of our GitHub-curated Dependabot policies that detect and close false positive alerts, over 250k repositories have manually opted in, with an average improvement of over 1 in 10 alerts. The impact so far: auto-dismissal of millions of alerts that would have

    Introducing auto-triage rules for Dependabot
    efcl
    efcl 2023/09/15
    dependabotにカスタムルールが追加できるようになって柔軟性が上がった
  • ni.zsh: npmインストール時のサプライチェーン攻撃を検知する機能を追加


    npm/yarn/pnpm/bunni.zshnpm ni.zshnpm/yarn/pnpm/bunnizsh | Web Scratchnpmnpmpublish emails-helperNPM Package Masquerading as Email Validator Contains C2 and Sophisticated Data Exfiltration typosquatting
    ni.zsh: npmインストール時のサプライチェーン攻撃を検知する機能を追加
    efcl
    efcl 2023/08/30
    ni.zshでnpmパッケージをインストール(`ni add <pkg>`)する際に、socket.dev を使ったマルウェアチェックができる機能について
  • Blogged Answers: My Experience Modernizing Packages to ESM

    Random musings on React, Redux, and more, by Redux maintainer Mark "acemarke" Erikson This is a post in the Blogged Answers series. Details on the painful experiences and hard-earned lessons I've learned migrating the Redux packages to ESM Table of Contents 🔗︎ Introduction Redux Packages Background Packages and Configurations Issue History Early Attempts Migrating to Vitest Initial Alpha Testing

    Blogged Answers: My Experience Modernizing Packages to ESM
    efcl
    efcl 2023/08/11
     JavaScript CJSESMdual packageTypeScript`moduleResolution`UMDwebpack 4 Next.jsReact Server Component  

    JavaScript

    npm

    redux

    article

    opinion
     
  • Security alert: social engineering campaign targets technology industry employees

    SecuritySecurity alert: social engineering campaign targets technology industry employeesGitHub has identified a low-volume social engineering campaign that targets the personal accounts of employees of technology firms. No GitHub or npm systems were compromised in this campaign. We’re publishing this blog post as a warning for our customers to prevent exploitation by this threat actor. GitHub has

    Security alert: social engineering campaign targets technology industry employees
    efcl
    efcl 2023/07/19
    採用担当者や開発者になりすまし、プライベートリポジトリに招待、そのリポジトリをcloneしてインストールすると感染するマルウェアが仕込まれているという攻撃が増えている話。 マルウェアはnpm install時に、ダウンロー
  • 時期を決めて定期的に更新するnpmパッケージをChangesetsで管理する

    毎月や半年に一回といったように、リリースする時期(間隔)を決めて更新するタイプのパッケージがあります。 具体的には、次のtextlintのプリセットルールは1月と7月という形で半年に一回リリースしています。 textlint-ja/textlint-rule-preset-japanese: textlint rule preset for Japanese. textlint-ja/textlint-rule-preset-ja-technical-writing: 技術文書向けのtextlintルールプリセット なぜ、このようにリリースする時期を決めているかというと、これらのパッケージは他のパッケージに依存していて、他のパッケージの更新がそのままメジャーアップデートになりやすい性質があるためです。 そのため、依存を更新してリリースすると、頻繁にメジャーアップデートしないといけなくなりま

    時期を決めて定期的に更新するnpmパッケージをChangesetsで管理する
    efcl
    efcl 2023/07/17
    changesetsでPRごとに変更内容を記録して、それをまとまったものとしてリリースできるので、時間が空いても楽にリリースできるという話
  • The massive bug at the heart of the npm ecosystem

    Disclosure: I was the Staff Engineering Manager for the npm CLI team between July 2019 & December 2022. I was a part of the GitHub acquistion of npm inc. in 2020. I left GitHub, for various reasons, in December. tldr;a npm package's manifest is published independently from its tarballmanifests are never fully validated against the tarball's contentsthe ecosystem has broadly assumed the contents of

    The massive bug at the heart of the npm ecosystem
    efcl
    efcl 2023/07/03
    npmのパッケージはパッケージのtarballとマニフェストが別々に扱われるので完全に検証されるわけではないという問題について
  • Introducing npm package provenance

    Open SourceSecurityIntroducing npm package provenanceHow to verifiably link npm packages to their source repository and build instructions. Starting today, when you build your npm projects on GitHub Actions, you can publish provenance alongside your package by including the --provenance flag. This provenance data gives consumers a verifiable way to link a package back to its source repository and

    Introducing npm package provenance
    efcl
    efcl 2023/04/26
    npmパッケージが、どのソースコードのコミット、ビルドの設定なのかのprovenanceを紐づけられる`--provenance`フラグをサポート。 現在はGitHub Actionsからのpublishにおける紐付けをサポートしてる。 サプライチェーンの問題が起き
  • npm/yarn/pnpm/bunを同じコマンドで扱える ni のzsh実装を書いた


    ninpm/yarn/pnpm/bun / antfu/ni: 💡 Use the right package manager CorepackpackageManager使 package-lock.jsonnpm 使ninpm  packageManageryarn@<version>ni yarn  npm  yarn 
    npm/yarn/pnpm/bunを同じコマンドで扱える ni のzsh実装を書いた
    efcl
    efcl 2023/03/24
    $ ni add lodash でそのプロジェクトが使ってるパッケージマネージャーを自動判定して、パッケージをインストールする ということをやる `ni` というツールのzsh版
  • npm installとnpm ciの動作確認を簡単にやっておいた - Mitsuyuki.Shiiba


    npm installnpmci調 bufferings.hatenablog.com   (1)(2)npmcinpm installnpmcinode_modulesnpmcinpm_modulesnpm installnode_modulespackage.jsonpackage-lock.json
    npm installとnpm ciの動作確認を簡単にやっておいた - Mitsuyuki.Shiiba
    efcl
    efcl 2023/03/22
     npm installnpm ci `npm install``node_modules/` `npm ci``node_modules/``~/.npm`使  

    npm

    article

    CI

  • Introducing "safe npm", a Socket npm Wrapper - Socket

    Introducing "safe npm", a Socket npm WrapperSocket is proud to introduce an exciting new tool—“safe npm”—that protects developers whenever they use npm install. Socket is proud to introduce an exciting new tool—“safe npm”—that protects developers whenever they use npm install. Socket’s “safe npm” CLI tool transparently wraps the npm command and protects developers from malware, typosquats, install

    Introducing "safe npm", a Socket npm Wrapper - Socket
    efcl
    efcl 2023/03/20
    `npm`と`npx`にaliasして利用できるコマンド。 インストール時にパッケージがマルウェアかインストール時にスクリプト実行するかなどをチェックしてからインストールできる
  • NPM Kiosk - A new way to sell NPM packages

    Selling NPM packages could be a great way for creators to earn money and in return make better software for buyers. But almost nobody is doing it. We think it is because the process is too cumbersome for both parties. NPM Kiosk is an idea for how the ergonomics can be improved - it is also a template for selling and installing private NPM packages without the need for private registries. The probl

    efcl
    efcl 2023/01/13
    npmパッケージを販売するために、パッケージをインストールできるアクセストークン付きのパッケージを作成する方法について
  • New npm features for secure publishing and safe consumption

    Open SourceProductNew npm features for secure publishing and safe consumptionNow you can create tokens with fine-grained permissions for automating your publishing and organization management workflows. And a new code explorer allows you to view content of a package directly in the npm portal. We are excited to announce two new features for a safer npm package ecosystem experience: granular access

    New npm features for secure publishing and safe consumption
    efcl
    efcl 2022/12/07
    npmにアクセスするスコープを設定できるfine-grained access tokenの追加、npmのウェブサイト上のCode explorerでコードを閲覧できるようになるなど
  • npm v9.0.0 released

    October 24, 2022 The npm CLI team has been working hard over the past few months and are happy to announce the release of the next major version – v9.0.0 Installation You can start using npm v9.0.0 today by running: $ npm i -g npm@9 About this release Our goal with this major release was to standardize appropriate defaults and clean up legacy configurations where possible. We believe the changes m

    npm v9.0.0 released
    efcl
    efcl 2022/10/25
    npm 9のリリースとlatestとまでのマイルストーンについて。 2022年11月9日に`@latest`のdist-tagが貼られてGAとなる。その後Node.js 19と18にも同梱される予定となっている