Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): v0.24.1 #167

Merged
merged 1 commit into from
Nov 1, 2024
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
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ Each protocol has its own limitations, corner cases, and features; thus, each ha




1 change: 1 addition & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,4 @@ When you submit changes, your submissions are understood to be under the same [A




6 changes: 3 additions & 3 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $ npm install -g @the-codegen-project/cli
$ codegen COMMAND
running command...
$ codegen (--version)
@the-codegen-project/cli/0.24.0 linux-x64 node-v18.20.4
@the-codegen-project/cli/0.24.1 linux-x64 node-v18.20.4
$ codegen --help [COMMAND]
USAGE
$ codegen COMMAND
Expand Down Expand Up @@ -81,7 +81,7 @@ DESCRIPTION
Generate code based on your configuration, use `init` to get started.
```

_See code: [src/commands/generate.ts](https://github.com/the-codegen-project/cli/blob/v0.24.0/src/commands/generate.ts)_
_See code: [src/commands/generate.ts](https://github.com/the-codegen-project/cli/blob/v0.24.1/src/commands/generate.ts)_

## `codegen help [COMMAND]`

Expand Down Expand Up @@ -139,7 +139,7 @@ DESCRIPTION
Initialize The Codegen Project in your project
```

_See code: [src/commands/init.ts](https://github.com/the-codegen-project/cli/blob/v0.24.0/src/commands/init.ts)_
_See code: [src/commands/init.ts](https://github.com/the-codegen-project/cli/blob/v0.24.1/src/commands/init.ts)_

## `codegen version`

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@the-codegen-project/cli",
"description": "CLI to work with code generation in any environment",
"version": "0.24.0",
"version": "0.24.1",
"bin": {
"codegen": "./bin/run.mjs"
},
Expand Down
6 changes: 2 additions & 4 deletions src/codegen/generators/helpers/payloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ export async function generateAsyncAPIPayloads<GeneratorType>(
const message = messages[0];
let payloadId = message.id() ?? message.name();
if (payloadId.includes('AnonymousSchema_')) {
payloadId = pascalCase(
`${findNameFromChannel(channel)}_Payload`
);
payloadId = pascalCase(`${findNameFromChannel(channel)}_Payload`);
}
if (typeof schema === 'boolean') {
schemaObj = schema;
Expand Down Expand Up @@ -84,7 +82,7 @@ export async function generateAsyncAPIPayloads<GeneratorType>(
}
} else {
const generatedModels = await generator(asyncapiDocument);

otherModels = generatedModels.map((model) => {
return {
messageModel: model,
Expand Down
Loading