@s2-dev/streamstore 0.16.2 → 0.16.5

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 (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +26 -16
package/README.md CHANGED
@@ -115,7 +115,9 @@ for await (const record of readSession) {
115
115
 
116
116
  ## SDK Docs and Reference
117
117
 
118
- For detailed documentation and API reference, please visit the [S2 Documentation](https://s2.dev/docs).
118
+ For detailed documentation for the SDK, please check the generated type docs [here](https://s2-streamstore.github.io/s2-sdk-typescript/).
119
+
120
+ For API reference, please visit the [S2 Documentation](https://s2.dev/docs).
119
121
 
120
122
  ## Feedback
121
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@s2-dev/streamstore",
3
- "version": "0.16.2",
3
+ "version": "0.16.5",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -9,20 +9,31 @@
9
9
  },
10
10
  "homepage": "https://s2.dev",
11
11
  "scripts": {
12
- "build": "tsc --project tsconfig.build.json",
12
+ "build": "rm -rf dist && tsc --project tsconfig.build.esm.json && tsc --project tsconfig.build.cjs.json && bun scripts/postbuild.ts && attw --pack",
13
13
  "test": "vitest --run",
14
14
  "check": "biome check && tsc --noEmit",
15
15
  "check:write": "biome check --write",
16
16
  "format": "biome format --write",
17
+ "pull:proto": "curl -o proto/s2.proto https://raw.githubusercontent.com/s2-streamstore/s2-protos/refs/heads/main/s2/v1/s2.proto",
18
+ "pull:openapi": "curl -o openapi/s2.json https://raw.githubusercontent.com/s2-streamstore/s2-protos/refs/heads/main/s2/v1/openapi.json",
17
19
  "gen:openapi": "openapi-ts",
18
- "publish": "npm publish"
20
+ "gen:proto": "npx protoc --ts_out src/generated/proto --ts_opt generate_dependencies --proto_path ./proto ./proto/s2.proto",
21
+ "docs": "typedoc"
19
22
  },
20
- "module": "./dist/index.js",
21
- "types": "./dist/index.d.ts",
23
+ "main": "./dist/cjs/index.js",
24
+ "module": "./dist/esm/index.js",
25
+ "types": "./dist/esm/index.d.ts",
26
+ "sideEffects": false,
22
27
  "exports": {
23
28
  ".": {
24
- "default": "./dist/index.js",
25
- "types": "./dist/index.d.ts"
29
+ "import": {
30
+ "types": "./dist/esm/index.d.ts",
31
+ "default": "./dist/esm/index.js"
32
+ },
33
+ "require": {
34
+ "types": "./dist/cjs/index.d.ts",
35
+ "default": "./dist/cjs/index.js"
36
+ }
26
37
  }
27
38
  },
28
39
  "files": [
@@ -31,18 +42,17 @@
31
42
  "LICENSE"
32
43
  ],
33
44
  "devDependencies": {
45
+ "@arethetypeswrong/cli": "^0.18.2",
34
46
  "@biomejs/biome": "2.2.5",
35
47
  "@changesets/cli": "^2.29.7",
36
- "@hey-api/openapi-ts": "0.85.0",
37
- "openapi-typescript": "^7.9.1",
38
- "vitest": "^3.2.4"
48
+ "@hey-api/openapi-ts": "^0.86.0",
49
+ "@protobuf-ts/plugin": "^2.11.1",
50
+ "@types/bun": "^1.3.1",
51
+ "openapi-typescript": "^7.10.1",
52
+ "protoc": "^33.0.0",
53
+ "vitest": "^4.0.2"
39
54
  },
40
55
  "peerDependencies": {
41
- "typescript": "^5.5"
42
- },
43
- "dependencies": {
44
- "effect": "^3.18.4",
45
- "js-base64": "^3.7.8",
46
- "openapi-fetch": "^0.14.1"
56
+ "typescript": "^5.9.3"
47
57
  }
48
58
  }