Skip to content

Commit 1fca088

Browse files
authored
chore(release): v0.55.1 (#274)
1 parent 3ddaf19 commit 1fca088

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,6 @@ Get an overview of how to contribute to the project
8686

8787

8888

89+
8990

9091

docs/contributing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,6 @@ Prefix that follows specification is not enough though. Remember that the title
170170

171171

172172

173+
173174

174175

docs/migrations/v0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ const subscriber = await jetStreamPullSubscribeToReceiveUserSignedup({
7171

7272

7373

74+

docs/usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $ npm install -g @the-codegen-project/cli
99
$ codegen COMMAND
1010
running command...
1111
$ codegen (--version)
12-
@the-codegen-project/cli/0.55.0 linux-x64 node-v18.20.8
12+
@the-codegen-project/cli/0.55.1 linux-x64 node-v18.20.8
1313
$ codegen --help [COMMAND]
1414
USAGE
1515
$ codegen COMMAND
@@ -84,7 +84,7 @@ DESCRIPTION
8484
Generate code based on your configuration, use `init` to get started.
8585
```
8686

87-
_See code: [src/commands/generate.ts](https://github.com/the-codegen-project/cli/blob/v0.55.0/src/commands/generate.ts)_
87+
_See code: [src/commands/generate.ts](https://github.com/the-codegen-project/cli/blob/v0.55.1/src/commands/generate.ts)_
8888

8989
## `codegen help [COMMAND]`
9090

@@ -142,7 +142,7 @@ DESCRIPTION
142142
Initialize The Codegen Project in your project
143143
```
144144

145-
_See code: [src/commands/init.ts](https://github.com/the-codegen-project/cli/blob/v0.55.0/src/commands/init.ts)_
145+
_See code: [src/commands/init.ts](https://github.com/the-codegen-project/cli/blob/v0.55.1/src/commands/init.ts)_
146146

147147
## `codegen version`
148148

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@the-codegen-project/cli",
33
"description": "CLI to work with code generation in any environment",
4-
"version": "0.55.0",
4+
"version": "0.55.1",
55
"bin": {
66
"codegen": "./bin/run.mjs"
77
},

src/codegen/inputs/asyncapi/generators/parameters.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export function unwrap(channelParameters: ConstrainedObjectModel) {
8181
);
8282

8383
const parameterInitializer = Object.values(channelParameters.properties)
84-
.filter(parameter => parameter.property.options.const?.value === undefined)
84+
.filter(
85+
(parameter) => parameter.property.options.const?.value === undefined
86+
)
8587
.map((parameter) => {
8688
if (parameter.property.options.isNullable) {
8789
return `${parameter.propertyName}: null`;
@@ -94,8 +96,7 @@ export function unwrap(channelParameters: ConstrainedObjectModel) {
9496
return `${parameter.propertyName}: ${property.ref.values[0].value}`;
9597
}
9698
return `${parameter.propertyName}: ''`;
97-
}
98-
);
99+
});
99100

100101
return `const parameters = new ${channelParameters.name}({${parameterInitializer.join(', ')}});
101102
const match = msgSubject.match(regex);

0 commit comments

Comments
 (0)