@alepha/protobuf 0.16.0 → 0.16.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.
package/README.md CHANGED
@@ -27,16 +27,4 @@ Protocol Buffers support.
27
27
 
28
28
  ### Providers
29
29
 
30
- Providers are classes that encapsulate specific functionality and can be injected into your application. They handle initialization, configuration, and lifecycle management.
31
-
32
- For more details, see the [Providers documentation](https://feunard.github.io/alepha/).
33
-
34
- #### ProtobufSchemaCodec
35
-
36
- ProtobufSchemaCodec handles encoding/decoding for Protobuf format.
37
-
38
- Key differences from JSON codec:
39
- - BigInt values are kept as BigInt (not converted to string)
40
- - Date values are converted to ISO strings for protobuf compatibility
41
- - Binary data (Uint8Array) is kept as-is
42
- - Proto3 default values are applied when decoding (to handle omitted fields)
30
+ - [`ProtobufSchemaCodec`](https://alepha.dev/docs/reference-providers-protobufschemacodec) ProtobufSchemaCodec handles encoding/decoding for Protobuf format.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as alepha0 from "alepha";
1
+ import * as alepha from "alepha";
2
2
  import { Alepha, SchemaCodec, Static, TObject, TSchema } from "alepha";
3
3
  import protobufjs, { Type } from "protobufjs";
4
4
  import "alepha/datetime";
@@ -112,7 +112,7 @@ declare class ProtobufSchemaCodec extends SchemaCodec {
112
112
  *
113
113
  * @module alepha.protobuf
114
114
  */
115
- declare const AlephaProtobuf: alepha0.Service<alepha0.Module>;
115
+ declare const AlephaProtobuf: alepha.Service<alepha.Module>;
116
116
  //#endregion
117
117
  export { AlephaProtobuf, CreateProtobufSchemaOptions, ProtobufProvider, ProtobufSchema, ProtobufSchemaCodec };
118
118
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@alepha/protobuf",
3
3
  "description": "Protocol Buffers (Protobuf) codec support for Alepha framework.",
4
4
  "author": "Nicolas Foures",
5
- "version": "0.16.0",
5
+ "version": "0.16.2",
6
6
  "type": "module",
7
7
  "engines": {
8
8
  "node": ">=22.0.0"
@@ -18,13 +18,13 @@
18
18
  "protobufjs": "^8.0.0"
19
19
  },
20
20
  "devDependencies": {
21
- "alepha": "0.16.0",
22
- "tsdown": "^0.20.1",
21
+ "alepha": "0.16.2",
22
+ "tsdown": "^0.20.3",
23
23
  "typescript": "^5.9.3",
24
24
  "vitest": "^4.0.18"
25
25
  },
26
26
  "peerDependencies": {
27
- "alepha": "0.16.0"
27
+ "alepha": "0.16.2"
28
28
  },
29
29
  "scripts": {
30
30
  "lint": "alepha lint",