@togatherlabs/event-sdk 1.0.6 → 1.0.8

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 +23 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,14 +2,18 @@
2
2
 
3
3
  This repository contains **event schemas** for the toGather event-driven backend system. We use **Protocol Buffers (Protobuf)** as the messaging format for events. It provides type-safe code generation for **TypeScript** and **Python**, enabling services in different languages to share a consistent event schema.
4
4
 
5
+ [![npm package](https://img.shields.io/npm/v/@togatherlabs/event-sdk.svg)](https://www.npmjs.com/package/@togatherlabs/event-sdk)
6
+ [![npm downloads](https://img.shields.io/npm/dm/@togatherlabs/event-sdk.svg)](https://www.npmjs.com/package/@togatherlabs/event-sdk)
7
+ [![license](https://img.shields.io/npm/l/@togatherlabs/event-sdk.svg)](./LICENSE)
5
8
 
6
9
  ## Table of Contents
7
10
 
8
11
  1. [Directory Structure](#directory-structure)
9
- 2. [SDK Development](#development)
12
+ 2. [SDK Development](#sdk-development)
10
13
  * [Adding New Proto Files](#adding-new-proto-files)
11
14
  * [Linting](#linting)
12
15
  * [Code Generation](#code-generation)
16
+ * [Publishing Package](#publishing-package)
13
17
  3. [Using Generated Code](#using-generated-code)
14
18
  * [TypeScript](#typescript)
15
19
  * [Python](#python)
@@ -41,7 +45,7 @@ proto/user/create/v1/user.proto
41
45
 
42
46
 
43
47
 
44
- ## Development
48
+ ## SDK Development
45
49
 
46
50
  ### Adding New Proto Files
47
51
 
@@ -89,6 +93,23 @@ The generated code is placed in the `gen/` directory:
89
93
 
90
94
  > **Tip:** Keep `buf.gen.yaml` updated if you add new languages or plugins.
91
95
 
96
+ ### Publishing Package
97
+
98
+ To publish the package, run the following command:
99
+
100
+ ```bash
101
+ pnpm run release
102
+ ```
103
+
104
+ This command performs the following steps:
105
+ - Deletes the old build artifacts.
106
+ - Lints the proto files.
107
+ - Generates new code for TypeScript and Python.
108
+ - Patches the npm version.
109
+ - Publishes the package to the registry.
110
+
111
+ > **Note:** Ensure all changes are committed and tested before running this command.
112
+
92
113
 
93
114
  ## Using Generated Code
94
115
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togatherlabs/event-sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Shared Protobuf event schemas and generated code for toGather microservices",
5
5
  "main": "./gen/ts/index.js",
6
6
  "types": "./gen/ts/index.d.ts",