Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.18.2
22.14.0
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.0.23

- Remove hardcoded compiler path on Windows to support monorepos. Thanks @lordvlad!

## v0.0.22

- Fix Timestamp and Duration JSON serialization. Previously, when either seconds or nanos were 0, the Timestamp / Duration was omitted from the serialized json. Thanks @martynchamberlin!
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
"prettier-package-json": "^2.8.0",
"typescript": "^5.2.2"
},
"packageManager": "pnpm@8.6.9"
"packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af"
}
7 changes: 2 additions & 5 deletions packages/protoscript/src/codegen/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,7 @@ export function processTypes(
return;
}

const _enum = types.filter((t) => t.type === "enum")[idx]
.content as EnumOpts;
const _enum = types.filter((t) => t.type === "enum")[idx].content;

// enum comment
if (path.length === 0) {
Expand All @@ -1069,9 +1068,7 @@ export function processTypes(
return;
}

const message = types.filter((t) => t.type === "message")[
idx
] as MessageType;
const message = types.filter((t) => t.type === "message")[idx];

// message comment
if (path.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/protoscript/src/compiler.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@echo off
node %~p0compiler.js %*
node "%~dp0\compiler.js" %*
4 changes: 2 additions & 2 deletions packages/protoscript/src/runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type PartialDeep<T> = {
[P in keyof T]?: NonNullable<T[P]> extends any[] | Uint8Array
? T[P]
: NonNullable<T[P]> extends object
? PartialDeep<T[P]>
: T[P];
? PartialDeep<T[P]>
: T[P];
/* eslint-enable @typescript-eslint/no-explicit-any */
};
Loading
Loading