字幕表 動画を再生する
BUN is a complete toolkit for building, running, and testing JavaScript and TypeScript applications.
BUNは、JavaScriptおよびTypeScriptアプリケーションを構築、実行、テストするための完全なツールキットです。
With BUN 1.2, we're introducing new features and APIs that make it easier than ever.
BUN 1.2では、新しい機能とAPIを導入し、これまで以上に簡単になりました。
We've also spent a lot of time improving stability and Node.js compatibility.
また、安定性とNode.jsとの互換性の向上にも多くの時間を費やしました。
That's why companies like X are using BUN in production.
だからこそ、Xのような企業は生産現場でBUNを使用しているのだ。
BUN lets them ship features at scale in days instead of months.
BUNは、数ヶ月ではなく数日で大規模な機能を出荷することを可能にする。
Before we talk about the new features in BUN 1.2, let's start with an update on Node compatibility.
BUN 1.2の新機能について話す前に、まずはNodeの互換性に関するアップデートから始めましょう。
BUN is designed to be a drop-in replacement for Node.js.
BUNは、Node.jsのドロップイン・リプレースメントとして設計されている。
BUN supports all the major Node.js APIs like FS, Net, and HTTP.
BUNは、FS、Net、HTTPといったNode.jsの主要なAPIをすべてサポートしている。
In BUN 1.2, we've added support for even more APIs, including DGRAM, HTTP2 Server, and Cluster.
BUN 1.2では、DGRAM、HTTP2 Server、Clusterなど、さらに多くのAPIをサポートするようになりました。
We've also made some major performance improvements.
また、パフォーマンスも大幅に改善した。
In BUN 1.2, a Hello World Express server handles three times more requests per second than in Node.js.
BUN 1.2では、Hello World Expressサーバーは、Node.jsに比べて1秒間に3倍のリクエストを処理する。
In BUN 1.2, we started to run the entire Node.js test suite for every change we make to BUN.
BUN 1.2では、BUNに変更を加えるたびにNode.jsのテスト・スイート全体を実行するようになりました。
It's a suite that includes thousands of tests from Node's repository and ensures that if code works in Node, it also works in BUN.
これはNodeのリポジトリにある何千ものテストを含むスイートで、Nodeで動作するコードがBUNでも動作することを保証する。
For each of the following Node.js modules, BUN passes over 90% of Node's test suite.
以下の各Node.jsモジュールについて、BUNはNodeのテスト・スイートの90%以上をパスしています。
Every day, BUN gets closer to 100% Node compatibility, and we're excited to share more progress on this very soon.
日々、BUNは100%Nodeとの互換性に近づいています。
BUN is designed as a cloud-first JavaScript runtime.
BUNはクラウドファーストのJavaScriptランタイムとして設計されている。
That means providing built-in APIs for all the tools you need when running a production application in the cloud.
つまり、本番アプリケーションをクラウドで実行する際に必要なすべてのツールの組み込みAPIを提供するということだ。
That's why we're excited to introduce S3 object support in BUN.
だからこそ、BUNにS3オブジェクトのサポートを導入できることを嬉しく思う。
S3 is the de facto standard for object storage and even predates Node.js.
S3はオブジェクト・ストレージのデファクト・スタンダードであり、Node.jsよりも古い。
Think of it as the file system API for the cloud.
クラウド用のファイルシステムAPIだと考えてほしい。
There are dozens of S3-compatible services that you can use in production or even on your local machine.
S3互換のサービスは何十種類もあり、本番環境でもローカルマシンでも利用できる。
In BUN 1.2, you can use the new BUN S3 API to read and write files from an S3 bucket.
BUN 1.2では、新しいBUN S3 APIを使ってS3バケットからファイルを読み書きできる。
It uses the same simple APIs as BUN file.
BUNファイルと同じシンプルなAPIを使用する。
It also extends the web standard APIs.
また、ウェブ標準のAPIも拡張している。
That means you can pass it to any API that accepts blobs, like requests and response.
つまり、リクエストやレスポンスなど、blobを受け付けるあらゆるAPIに渡すことができる。
We've also made it possible to read and write S3 files with just a URL.
また、URLだけでS3ファイルを読み書きできるようにした。
BUN looks for well-known environment variables to configure your credentials and bucket.
BUNは、認証情報とバケットを設定するために、よく知られた環境変数を探す。
If you want to customize and create your own S3 client, you can import the S3 client API.
独自のS3クライアントをカスタマイズして作成したい場合は、S3クライアントAPIをインポートすることができる。
BUN's S3 client is implemented in highly optimized native code.
BUNのS3クライアントは、高度に最適化されたネイティブコードで実装されている。
The S3 client in BUN can download files in parallel up to five times faster than the leading MPM package can on Node.js.
BUNのS3クライアントは、Node.js上で主要なMPMパッケージの最大5倍の速度でファイルを並列ダウンロードできる。
Just like object storage, another data store that's widely used in production is Postgres.
オブジェクト・ストレージと同様に、プロダクションで広く使われているデータストアにPostgresがある。
And that's why we're excited to introduce built-in Postgres support for BUN.
だからこそ、PostgresがBUNをビルトインでサポートするようになったのです。
In BUN 1.2, we're expanding the BUN SQLite APIs by introducing BUN SQL.
BUN 1.2では、BUN SQLを導入することで、BUN SQLite APIを拡張しています。
BUN SQL is a fast built-in SQL client for BUN.
BUN SQLは、BUN用の高速な組み込みSQLクライアントです。
Postgres is the first database we support, and we have a PR to add MySQL very soon.
Postgresは私たちがサポートする最初のデータベースで、MySQLを近々追加する予定です。
BUN SQL's APIs use tagged template literals to create queries.
BUN SQLのAPIはタグ付きテンプレート・リテラルを使ってクエリを作成します。
This prevents SQL injection by design without having to manually escape strings.
これにより、手動で文字列をエスケープしなくても、設計上SQLインジェクションを防ぐことができる。
BUN SQL's APIs are inspired by the popular MPM package, Postgres.js.
BUN SQLのAPIは、人気のMPMパッケージであるPostgres.jsにインスパイアされています。
If you're already using Postgres.js, you can switch to BUN SQL by changing the import.
すでにPostgres.jsを使用している場合は、インポートを変更することでBUN SQLに切り替えることができます。
Just like BUN S3, BUN SQL is implemented in native code instead of JavaScript.
BUN S3と同様、BUN SQLもJavaScriptではなくネイティブコードで実装されている。
It can read rows up to 50% faster than the leading MPM package can on Node.js.
Node.js上では、主要なMPMパッケージよりも最大50%速く行を読み込むことができる。
BUN isn't just a JavaScript runtime.
BUNは単なるJavaScriptランタイムではない。
It's also an MPM compatible package manager.
MPM互換のパッケージ・マネージャーでもある。
BUN install is designed to work with Node.js and BUN.
BUNインストールは、Node.jsとBUNで動作するように設計されています。
Even if you aren't ready to migrate your application to BUN, you can still use BUN install with Node.js.
アプリケーションをBUNに移行する準備ができていない場合でも、Node.jsでBUNインストールを使用することができます。
In BUN 1.2, we're introducing the biggest update yet to BUN install, a text-based log file.
BUN 1.2では、テキストベースのログファイルであるBUNインストールに、これまでで最大のアップデートを導入します。
When BUN install was first designed, we decided to use a binary log file for performance reasons, but we heard a lot of your feedback that they're impossible to review in pull requests, hard to fix merge conflicts, and difficult for tooling to use.
BUNインストールが最初に設計されたとき、パフォーマンス上の理由からバイナリログファイルを使うことにしましたが、プルリクエストでのレビューが不可能で、マージ競合を修正するのが難しく、ツールが使いにくいという皆さんのフィードバックをたくさん聞きました。
That's why BUN's new text log file is a JSON C file, which is JSON with support for comments and trailing commas.
そのため、BUNの新しいテキスト・ログ・ファイルはJSON Cファイルであり、コメントと末尾のカンマをサポートするJSONである。
This makes it much easier to view diffs in pull requests, and trailing commas make it much less likely to cause merge conflicts.
これにより、プルリクエストの差分を表示するのが非常に簡単になり、末尾にカンマをつけることで、マージの衝突が起こりにくくなる。
Some projects start out being faster, then get slower as they add new features.
最初は速くても、新しい機能を追加するにつれて遅くなるプロジェクトもある。
BUN is not one of those projects.
BUNはそのようなプロジェクトではない。
That's why we spent a lot of time figuring out how to make the text log file just as fast.
そのため、テキスト・ログファイルを同じように高速化する方法を見つけ出すのに多くの時間を費やした。
In BUN 1.2, we made cached installs 30% faster.
BUN 1.2では、キャッシュインストールを30%高速化した。
For new projects, BUN install will default to generating a text log file.
新規プロジェクトの場合、BUNインストールはデフォルトでテキストログファイルを生成します。
For existing projects, BUN will continue to use the binary log file.
既存のプロジェクトについては、BUNは引き続きバイナリ・ログ・ファイルを使用する。
To migrate to the text log file, you can pass the save text log file flag to BUN install.
テキストログファイルに移行するには、BUNインストールにテキストログファイル保存フラグを渡します。
BUN is a complete toolkit for building full stack applications with JavaScript and TypeScript.
BUNはJavaScriptとTypeScriptでフルスタックアプリケーションを構築するための完全なツールキットです。
And front-end is a really important part of your stack.
そしてフロントエンドはスタックの本当に重要な部分だ。
In BUN 1.2, we're introducing HTML imports.
BUN1.2では、HTMLインポートを導入しています。
HTML imports simplify your entire front-end tool chain into a single import statement.
HTMLインポートは、フロントエンドのツールチェーン全体を単一のインポート文に簡素化します。
BUN scans the HTML and automatically minifies and bundles JavaScript and CSS.
BUNはHTMLをスキャンし、JavaScriptとCSSを自動的に最小化してバンドルする。
Modern tools like React, TypeScript and Tailwind just work.
React、TypeScript、Tailwindのような最新のツールは、まさに機能する。
Together with HTML imports, S3 and BUN SQL, building full stack applications with JavaScript has never been simpler.
HTMLインポート、S3、BUN SQLとともに、JavaScriptによるフルスタック・アプリケーションの構築がかつてないほどシンプルになった。
We're really excited to see what you build with BUN.
私たちは、あなたがBUNで何を作るのか、とても楽しみにしています。
There's so many more features and improvements in BUN 1.2 that we can't go over them all.
BUN 1.2には、まだまだたくさんの機能や改良点があり、とても紹介しきれません。
Check out our blog for everything else that we shipped in BUN 1.2.
BUN 1.2で出荷された他のすべてのものについては、私たちのブログをチェックしてください。
To get started with BUN, run any of the following commands in your terminal.
BUNを使い始めるには、ターミナルで次のいずれかのコマンドを実行する。
That's BUN 1.2.
BUN1.2だ。
And for BUN, it's still just the beginning.
BUNにとっては、まだ始まったばかりだ。