feat: Add @snowluma/protobuf package

Introduce a new @snowluma/protobuf package (v0.0.4) that provides a lightweight protobuf-ts wrapper (NapProto/NapProtoMsg) with type helpers, ProtoField factory, and encode/decode utilities. Adds package.json, tsconfig.json, and the implementation at src/NapProto.ts. pnpm-lock.yaml was updated to include the @protobuf-ts/runtime dependency resolution.
This commit is contained in:
手瓜一十雪 committed 2026-05-18 19:31:42 +08:00
1 parent 4d7302a13f
commit 9f9db8d16f
4 files changed
+232

No files matched your search

+11
View File
@@ -64,6 +64,12 @@ importers:
specifier: ^4.1.4
version: 4.1.4(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))
packages/protobuf:
dependencies:
'@protobuf-ts/runtime':
specifier: ^2.9.4
version: 2.11.1
packages/runtime: {}
packages/sdk:
@@ -680,6 +686,9 @@ packages:
resolution: {integrity: sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==}
engines: {node: '>= 10.0.0'}
'@protobuf-ts/[email protected]':
resolution: {integrity: sha512-KuDaT1IfHkugM2pyz+FwiY80ejWrkH1pAtOBOZFuR6SXEFTsnb/jiQWQ1rCIrcKx2BtyxnxW6BWwsVSA/Ie+WQ==}
'@radix-ui/[email protected]':
resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}
@@ -3019,6 +3028,8 @@ snapshots:
'@parcel/watcher-win32-x64': 2.5.6
optional: true
'@protobuf-ts/[email protected]': {}
'@radix-ui/[email protected]': {}
'@radix-ui/[email protected]': {}