necoherence-http-adapter 0.2.0 → 0.2.2

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 +28 -0
  2. package/README.md +1 -1
  3. package/package.json +23 -4
package/README-ja.md ADDED
@@ -0,0 +1,28 @@
1
+ # TypeScript 向けの Necoherence の HTTP アダプター
2
+
3
+ [プロジェクトの概要](https://github.com/barineco/necoherence/blob/publish/README-ja.md) | [English](README.md)
4
+
5
+ この任意のパッケージは、Necoherence のネットワーク副作用のコマンドを `fetch` で実行します。ライセンスは MIT です。
6
+ 核の `necoherence` パッケージは、台帳を持ち、呼び出し側が渡す観測を受け取ります。
7
+ 2 つのパッケージは、同じ版で導入します。
8
+
9
+ ```bash
10
+ npm install necoherence@0.2.2 necoherence-http-adapter@0.2.2
11
+ ```
12
+
13
+ ```typescript
14
+ import { FetchHttpAdapter } from "necoherence-http-adapter";
15
+
16
+ const adapter = new FetchHttpAdapter();
17
+ ```
18
+
19
+ 開発では、先に `../typescript` をビルドします。開発時の依存は、ローカルの核のパッケージを参照します。公開するパッケージは、核を peer dependency として宣言します。
20
+
21
+ ```bash
22
+ npm ci
23
+ npm run typecheck
24
+ npm test
25
+ npm pack
26
+ ```
27
+
28
+ [MIT ライセンス](LICENSE)
package/README.md CHANGED
@@ -7,7 +7,7 @@ The core `necoherence` package contains the ledger and accepts caller-supplied o
7
7
  Install both packages at matching versions:
8
8
 
9
9
  ```bash
10
- npm install necoherence@0.2.0 necoherence-http-adapter@0.2.0
10
+ npm install necoherence@0.2.2 necoherence-http-adapter@0.2.2
11
11
  ```
12
12
 
13
13
  ```typescript
package/package.json CHANGED
@@ -1,24 +1,43 @@
1
1
  {
2
2
  "name": "necoherence-http-adapter",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "HTTP host adapter for Necoherence",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": {
8
- ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" }
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ }
9
12
  },
10
- "files": ["dist/", "README.md", "LICENSE"],
13
+ "files": [
14
+ "dist/",
15
+ "README.md",
16
+ "README-ja.md",
17
+ "LICENSE"
18
+ ],
11
19
  "scripts": {
12
20
  "build": "tsc --project tsconfig.build.json",
13
21
  "typecheck": "tsc --project tsconfig.json --noEmit",
14
22
  "pretest": "npm run build",
15
23
  "test": "vitest run --fileParallelism=false"
16
24
  },
17
- "peerDependencies": { "necoherence": "0.2.0" },
25
+ "peerDependencies": {
26
+ "necoherence": "0.2.2"
27
+ },
18
28
  "devDependencies": {
19
29
  "necoherence": "file:../typescript",
20
30
  "@types/node": "^26.1.2",
21
31
  "typescript": "^5.7.3",
22
32
  "vitest": "^2.1.8"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/barineco/necoherence.git",
37
+ "directory": "typescript-http-adapter"
38
+ },
39
+ "homepage": "https://github.com/barineco/necoherence",
40
+ "bugs": {
41
+ "url": "https://github.com/barineco/necoherence/issues"
23
42
  }
24
43
  }