@gurezo/web-serial-rxjs 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.ja.md +47 -8
  2. package/README.md +64 -7
  3. package/package.json +1 -1
package/README.ja.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # web-serial-rxjs
2
2
 
3
3
  <p align="center">
4
- <img src="https://raw.githubusercontent.com/gurezo/web-serial-rxjs/main/packages/web-serial-rxjs/web-serial-rxjs-icon.png" alt="web-serial-rxjs プロジェクトアイコン" width="512" />
4
+ <img src="https://raw.githubusercontent.com/gurezo/web-serial-rxjs/main/assets/icon/web-serial-rxjs-icon.png" alt="web-serial-rxjs プロジェクトアイコン" width="512" />
5
5
  </p>
6
6
 
7
7
  Web Serial API を RxJS ベースのリアクティブなラッパーで提供する TypeScript ライブラリです。Web アプリケーションでシリアルポート通信を簡単に実現できます。
@@ -9,10 +9,13 @@ Web Serial API を RxJS ベースのリアクティブなラッパーで提供
9
9
  ## 目次
10
10
 
11
11
  - [機能](#機能)
12
+ - [対応フレームワーク](#対応フレームワーク)
12
13
  - [ブラウザサポート](#ブラウザサポート)
13
14
  - [インストール](#インストール)
14
15
  - [ドキュメント](#ドキュメント)
15
- - [フレームワーク別の例](#フレームワーク別の例)
16
+ - [サンプル](#サンプル)
17
+ - [プロジェクトアイコンについて](#プロジェクトアイコンについて)
18
+ - [開発とリリース戦略](#開発とリリース戦略)
16
19
  - [貢献](#貢献)
17
20
  - [ライセンス](#ライセンス)
18
21
  - [リンク](#リンク)
@@ -25,6 +28,15 @@ Web Serial API を RxJS ベースのリアクティブなラッパーで提供
25
28
  - **エラーハンドリング**: カスタムエラークラスとエラーコードによる包括的なエラーハンドリング
26
29
  - **フレームワーク非依存**: 任意の JavaScript/TypeScript フレームワークまたはバニラ JavaScript で使用可能
27
30
 
31
+ ## 対応フレームワーク
32
+
33
+ このライブラリはフレームワーク非依存で、以下の環境で利用できます。
34
+
35
+ - Angular
36
+ - React
37
+ - Svelte
38
+ - Vanilla JavaScript / TypeScript
39
+
28
40
  ## ブラウザサポート
29
41
 
30
42
  Web Serial API は現在、Chromium ベースのブラウザでのみサポートされています:
@@ -59,23 +71,47 @@ pnpm add rxjs
59
71
 
60
72
  ## ドキュメント
61
73
 
62
- - **[クイックスタート](docs/QUICK_START.ja.md)** - 基本的な例と使用方法のパターンで始める
74
+ - **[クイックスタート](docs/QUICK_START.ja.md)** - 基本的な例と使用方法で始める
63
75
  - **[API リファレンス](docs/API_REFERENCE.ja.md)** - 詳細な説明を含む完全な API ドキュメント
64
76
  - **[高度な使用方法](docs/ADVANCED_USAGE.ja.md)** - 高度なパターン、ストリーム処理、エラー回復
65
77
 
66
- ## フレームワーク別の例
78
+ ## サンプル
67
79
 
68
- このリポジトリには、さまざまなフレームワークで web-serial-rxjs を使用する方法を示すサンプルアプリケーションが含まれています:
80
+ 以下の環境向けのサンプルを用意しています。
69
81
 
82
+ - **[Angular](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-angular)** - Service を使用した Angular の例
83
+ - **[React](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-react)** - カスタムフック(`useSerialClient`)を使用した React の例
84
+ - **[Svelte](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-svelte)** - Svelte Store を使用した Svelte の例
70
85
  - **[Vanilla JavaScript](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-vanilla-js)** - バニラ JavaScript での基本的な使用方法
71
86
  - **[Vanilla TypeScript](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-vanilla-ts)** - RxJS を使用した TypeScript の例
72
- - **[React](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-react)** - カスタムフック(`useSerialClient`)を使用した React の例
73
87
  - **[Vue](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-vue)** - Composition API を使用した Vue 3 の例
74
- - **[Svelte](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-svelte)** - Svelte Store を使用した Svelte の例
75
- - **[Angular](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-angular)** - Service を使用した Angular の例
76
88
 
77
89
  各例には、セットアップと使用方法の説明を含む README が含まれています。
78
90
 
91
+ ## プロジェクトアイコンについて
92
+
93
+ このプロジェクトのアイコンには、[RxJS](https://rxjs.dev/) のロゴから着想を得たデザインに、
94
+ Web Serial を表すシリアルコネクタのモチーフを組み合わせたものを使用しています。
95
+
96
+ このアイコンは、本ライブラリが Web Serial API を RxJS ベースで扱うための
97
+ ライブラリであることを示す目的でのみ使用しています。
98
+
99
+ 本プロジェクトは **[ReactiveX](http://reactivex.io/) / [RxJS](https://rxjs.dev/) 公式とは関係のない独立したオープンソースプロジェクト** であり、
100
+ 公式な提携・承認・スポンサー関係はありません。
101
+
102
+ ## 開発とリリース戦略
103
+
104
+ このプロジェクトは**trunk-based開発**アプローチに従います:
105
+
106
+ - **`main`ブランチ**: 常にリリース可能な状態
107
+ - **短命ブランチ**: `feature/*`, `fix/*`, `docs/*` はプルリクエスト用
108
+ - **リリース**: ブランチではなくGitタグ(例: `v1.0.0`)で管理
109
+ - **バージョン保守**: 複数のメジャーバージョンを保守する必要がある場合のみ `release/v*` ブランチを追加
110
+
111
+ 詳細な貢献ガイドラインについては、[CONTRIBUTING.ja.md](https://github.com/gurezo/web-serial-rxjs/blob/main/CONTRIBUTING.ja.md) を参照してください。
112
+
113
+ 詳細なリリース手順については、[RELEASING.ja.md](https://github.com/gurezo/web-serial-rxjs/blob/main/RELEASING.ja.md) を参照してください。
114
+
79
115
  ## 貢献
80
116
 
81
117
  貢献を歓迎します!詳細については、[貢献ガイド](https://github.com/gurezo/web-serial-rxjs/blob/main/CONTRIBUTING.ja.md)を参照してください:
@@ -84,9 +120,12 @@ pnpm add rxjs
84
120
  - コードスタイルガイドライン
85
121
  - コミットメッセージの規約
86
122
  - プルリクエストのプロセス
123
+ - リリースプロセス
87
124
 
88
125
  英語版の貢献ガイドは [CONTRIBUTING.md](https://github.com/gurezo/web-serial-rxjs/blob/main/CONTRIBUTING.md) を参照してください。
89
126
 
127
+ リリース手順については、[RELEASING.ja.md](https://github.com/gurezo/web-serial-rxjs/blob/main/RELEASING.ja.md)(または英語版は [RELEASING.md](https://github.com/gurezo/web-serial-rxjs/blob/main/RELEASING.md))を参照してください。
128
+
90
129
  ## ライセンス
91
130
 
92
131
  このプロジェクトは MIT ライセンスの下で公開されています。詳細は [LICENSE](https://github.com/gurezo/web-serial-rxjs/blob/main/LICENSE) ファイルを参照してください。
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # web-serial-rxjs
2
2
 
3
3
  <p align="center">
4
- <img src="https://raw.githubusercontent.com/gurezo/web-serial-rxjs/main/packages/web-serial-rxjs/web-serial-rxjs-icon.png" alt="web-serial-rxjs project icon" width="512" />
4
+ <img src="https://raw.githubusercontent.com/gurezo/web-serial-rxjs/main/assets/icon/web-serial-rxjs-icon.png" alt="web-serial-rxjs project icon" width="512" />
5
5
  </p>
6
6
 
7
7
  A TypeScript library that provides a reactive RxJS-based wrapper for the Web Serial API, enabling easy serial port communication in web applications.
@@ -9,10 +9,14 @@ A TypeScript library that provides a reactive RxJS-based wrapper for the Web Ser
9
9
  ## Table of Contents
10
10
 
11
11
  - [Features](#features)
12
+ - [Framework Support](#framework-support)
12
13
  - [Browser Support](#browser-support)
13
14
  - [Installation](#installation)
14
15
  - [Documentation](#documentation)
15
- - [Framework Examples](#framework-examples)
16
+ - [Examples](#examples)
17
+ - [Project Icon](#project-icon)
18
+ - [AI Assistant (MCP)](#ai-assistant-mcp)
19
+ - [Development and Release Strategy](#development-and-release-strategy)
16
20
  - [Contributing](#contributing)
17
21
  - [License](#license)
18
22
  - [Links](#links)
@@ -25,6 +29,15 @@ A TypeScript library that provides a reactive RxJS-based wrapper for the Web Ser
25
29
  - **Error handling**: Comprehensive error handling with custom error classes and error codes
26
30
  - **Framework agnostic**: Works with any JavaScript/TypeScript framework or vanilla JavaScript
27
31
 
32
+ ## Framework Support
33
+
34
+ This library is framework-agnostic and can be used with:
35
+
36
+ - Angular
37
+ - React
38
+ - Svelte
39
+ - Vanilla JavaScript / TypeScript
40
+
28
41
  ## Browser Support
29
42
 
30
43
  The Web Serial API is currently only supported in Chromium-based browsers:
@@ -63,19 +76,60 @@ pnpm add rxjs
63
76
  - **[API Reference](docs/API_REFERENCE.md)** - Complete API documentation with detailed descriptions
64
77
  - **[Advanced Usage](docs/ADVANCED_USAGE.md)** - Advanced patterns, stream processing, and error recovery
65
78
 
66
- ## Framework Examples
79
+ ## Examples
67
80
 
68
- This repository includes example applications demonstrating how to use web-serial-rxjs with different frameworks:
81
+ Examples are available for the following environments:
69
82
 
83
+ - **[Angular](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-angular)** - Angular example using a Service
84
+ - **[React](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-react)** - React example with custom hook (`useSerialClient`)
85
+ - **[Svelte](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-svelte)** - Svelte example using Svelte Store
70
86
  - **[Vanilla JavaScript](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-vanilla-js)** - Basic usage with vanilla JavaScript
71
87
  - **[Vanilla TypeScript](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-vanilla-ts)** - TypeScript example with RxJS
72
- - **[React](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-react)** - React example with custom hook (`useSerialClient`)
73
88
  - **[Vue](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-vue)** - Vue 3 example using Composition API
74
- - **[Svelte](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-svelte)** - Svelte example using Svelte Store
75
- - **[Angular](https://github.com/gurezo/web-serial-rxjs/tree/main/apps/example-angular)** - Angular example using a Service
76
89
 
77
90
  Each example includes a README with setup and usage instructions.
78
91
 
92
+ ## Project Icon
93
+
94
+ The project icon includes a modified design inspired by the [RxJS](https://rxjs.dev/) logo,
95
+ combined with a serial connector motif to represent Web Serial communication.
96
+
97
+ The icon is used only to indicate that this library provides
98
+ RxJS-based abstractions for the Web Serial API.
99
+
100
+ This project is an independent open source project and is **not affiliated with,
101
+ endorsed by, or sponsored by the [ReactiveX](http://reactivex.io/) or [RxJS](https://rxjs.dev/) project**.
102
+
103
+ ## AI Assistant (MCP)
104
+
105
+ This project includes [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server configuration for AI-assisted development. The following MCP servers are available:
106
+
107
+ | Server | Purpose |
108
+ | --------------- | -------------------------------------------------------------------------------------- |
109
+ | **nx-mcp** | Nx workspace analysis, project graph, CI monitoring, and documentation |
110
+ | **angular-cli** | Angular CLI tools for example-angular (code generation, documentation, best practices) |
111
+ | **svelte** | Svelte/SvelteKit documentation and code analysis for example-svelte |
112
+
113
+ **Configuration files:**
114
+
115
+ - `.mcp.json` - Standard MCP configuration (Cursor, VS Code, Claude, etc.)
116
+ - `.cursor/mcp.json` - Cursor-specific configuration
117
+
118
+ To use MCP servers in Cursor, the configuration is automatically loaded from `.cursor/mcp.json`. For VS Code, add the MCP extension and configure it to use `.mcp.json`, or add the server definitions to your MCP settings.
119
+
120
+ ## Development and Release Strategy
121
+
122
+ This project follows a **trunk-based development** approach:
123
+
124
+ - **`main` branch**: Always in a release-ready state
125
+ - **Short-lived branches**: `feature/*`, `fix/*`, `docs/*` for pull requests
126
+ - **Releases**: Managed via Git tags (e.g., `v1.0.0`), not branches
127
+ - **Version maintenance**: `release/v*` branches are added only when needed for maintaining multiple major versions
128
+
129
+ For detailed contribution guidelines, see [CONTRIBUTING.md](https://github.com/gurezo/web-serial-rxjs/blob/main/CONTRIBUTING.md).
130
+
131
+ For detailed release instructions, see [RELEASING.md](https://github.com/gurezo/web-serial-rxjs/blob/main/RELEASING.md).
132
+
79
133
  ## Contributing
80
134
 
81
135
  We welcome contributions! Please see our [Contributing Guide](https://github.com/gurezo/web-serial-rxjs/blob/main/CONTRIBUTING.md) for details on:
@@ -84,9 +138,12 @@ We welcome contributions! Please see our [Contributing Guide](https://github.com
84
138
  - Code style guidelines
85
139
  - Commit message conventions
86
140
  - Pull request process
141
+ - Release process
87
142
 
88
143
  For Japanese contributors, please see [CONTRIBUTING.ja.md](https://github.com/gurezo/web-serial-rxjs/blob/main/CONTRIBUTING.ja.md).
89
144
 
145
+ For release instructions, see [RELEASING.md](https://github.com/gurezo/web-serial-rxjs/blob/main/RELEASING.md) (or [RELEASING.ja.md](https://github.com/gurezo/web-serial-rxjs/blob/main/RELEASING.ja.md) for Japanese).
146
+
90
147
  ## License
91
148
 
92
149
  This project is licensed under the MIT License - see the [LICENSE](https://github.com/gurezo/web-serial-rxjs/blob/main/LICENSE) file for details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gurezo/web-serial-rxjs",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "RxJS-based utilities for the Web Serial API, usable from Angular, React, Svelte, and Vanilla JavaScript/TypeScript.",
5
5
  "author": "Akihiko Kigure <akihiko.kigure@gmail.com>",
6
6
  "license": "MIT",