Skip to content

Commit 6f1abb6

Browse files
js2meApacheExqboot
authored
Release 10.0.3 (#427)
* fix: problem with default http request headers in axios client * feat: improve type declaration for inline types; fix: nullable option for objects * fix: problem with sortTypes option; docs: update CHANGELOG * docs: update README linked with custom templates * feat: separate data-contracts.ejs onto 4 pieces (enum, interface, type, jsdoc) * fix createFormData code duplication (#392) * chore: add title for DC in jsdoc; internal: add templates for future improvements * fix: problem with host.fileExists is not a function chore: set all deps as fixed versions * fix: order of headers in fetch http client * fix: max file size for axios (fetching swagger file) * fix: fs.rmSync usage * fix: getNewLine, readFile in LanguageServicehost (ts) * docs: add docs for unwrapResponseData flag * fix: problems with nested required properties based with upper required properties * chore: refresh test generated schemas * bump: up version to 10.0.3, update CHANGELOG * docs: update changelog * test: add module assertions in spec tests * chore: remove useless trailing whitespaces which make test edit harder (#422) * fix: replace CRLF -> LF (unix support) * fix: replace CRLF -> LF (unix support) (test schemas) * docs: add missing addReadonly property * chore: add logging (project version, node version, npm version) * bump: up version to 10.0.3; docs: update CHANGELOG Co-authored-by: Oleg Kuzava <[email protected]> Co-authored-by: Quentin Brunet <[email protected]>
1 parent f9bc7d1 commit 6f1abb6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+50797
-247
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# next release
1+
# next release
2+
3+
# 10.0.3
4+
fix: CRLF -> LF (#423)
5+
docs: add docs for addReadonly nodeJS api flag (#425)
6+
chore: remove useless trailing whitespaces which make test edit harder (thanks @qboot, #422)
7+
internal: add test snapshots (git diff + nodejs assertions)
8+
chore: add logging (project version, node version, npm version)
29

310
# 10.0.2
411

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ generateApi({
120120
enumNamesAsValues: false,
121121
moduleNameFirstTag: false,
122122
generateUnionEnums: false,
123+
addReadonly: false,
123124
extraTemplates: [],
124125
hooks: {
125126
onCreateComponent: (component) => {},

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ interface GenerateApiParamsBase {
123123
* authorization token
124124
*/
125125
authorizationToken?: string;
126+
/**
127+
* generate readonly properties (default: false)
128+
*/
129+
addReadonly?: boolean;
126130
}
127131

128132
interface GenerateApiParamsFromPath extends GenerateApiParamsBase {

0 commit comments

Comments
 (0)