Skip to content

Commit 26a5410

Browse files
authored
chore(release): v0.42.0 (#219)
1 parent ba3107f commit 26a5410

File tree

7 files changed

+16
-9
lines changed

7 files changed

+16
-9
lines changed

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ Get an overview of how to contribute to the project
7070

7171

7272

73+

docs/contributing.md

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

154154

155155

156+
156157

157158

docs/migrations/v0.md

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

6262

6363

64+

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.41.0 win32-x64 node-v18.20.4
12+
@the-codegen-project/cli/0.42.0 linux-x64 node-v18.20.8
1313
$ codegen --help [COMMAND]
1414
USAGE
1515
$ codegen COMMAND
@@ -81,7 +81,7 @@ DESCRIPTION
8181
Generate code based on your configuration, use `init` to get started.
8282
```
8383

84-
_See code: [src/commands/generate.ts](https://github.com/the-codegen-project/cli/blob/v0.41.0/src/commands/generate.ts)_
84+
_See code: [src/commands/generate.ts](https://github.com/the-codegen-project/cli/blob/v0.42.0/src/commands/generate.ts)_
8585

8686
## `codegen help [COMMAND]`
8787

@@ -139,7 +139,7 @@ DESCRIPTION
139139
Initialize The Codegen Project in your project
140140
```
141141

142-
_See code: [src/commands/init.ts](https://github.com/the-codegen-project/cli/blob/v0.41.0/src/commands/init.ts)_
142+
_See code: [src/commands/init.ts](https://github.com/the-codegen-project/cli/blob/v0.42.0/src/commands/init.ts)_
143143

144144
## `codegen version`
145145

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.41.0",
4+
"version": "0.42.0",
55
"bin": {
66
"codegen": "./bin/run.mjs"
77
},

src/codegen/inputs/openapi/parser.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ import {parse, dereference} from '@readme/openapi-parser';
22
import {RunGeneratorContext} from '../../types';
33
import {readFileSync} from 'fs';
44
import {parse as parseYaml} from 'yaml';
5-
import { OpenAPIV2, OpenAPIV3, OpenAPIV3_1} from 'openapi-types';
5+
import {OpenAPIV2, OpenAPIV3, OpenAPIV3_1} from 'openapi-types';
66

7-
export async function loadOpenapi(context: RunGeneratorContext): Promise<OpenAPIV3.Document | OpenAPIV2.Document | OpenAPIV3_1.Document> {
7+
export async function loadOpenapi(
8+
context: RunGeneratorContext
9+
): Promise<OpenAPIV3.Document | OpenAPIV2.Document | OpenAPIV3_1.Document> {
810
const documentPath = context.documentPath;
911
return loadOpenapiDocument(documentPath);
1012
}
1113

12-
export async function loadOpenapiDocument(documentPath: string): Promise<OpenAPIV3.Document | OpenAPIV2.Document | OpenAPIV3_1.Document> {
14+
export async function loadOpenapiDocument(
15+
documentPath: string
16+
): Promise<OpenAPIV3.Document | OpenAPIV2.Document | OpenAPIV3_1.Document> {
1317
try {
1418
// Read the file content
1519
let documentContent: string;

0 commit comments

Comments
 (0)