Skip to content

Commit 71b55d7

Browse files
committed
version 4.4.0. update libs. migrate to latest eslint. fix lint. Updated vite config.
1 parent 406f3c2 commit 71b55d7

12 files changed

+1130
-1487
lines changed

.eslintrc

-12
This file was deleted.

Changelog.md

+54-51
Original file line numberDiff line numberDiff line change
@@ -1,184 +1,187 @@
11
# Changelog: openapi3-ts
22

3-
## Next version
3+
## Version 4.4.0
44

5-
yyyy.mm.dd
5+
2024.08.27
66

7-
- Added basic documentation. Fix [#75](https://github.com/metadevpro/openapi3-ts/pull/75). PR[#139](https://github.com/metadevpro/openapi3-ts/pull/139)
8-
- Feat: `getSpecAsYaml` accepts the same options as `yaml.stringify`. Fix [#143](https://github.com/metadevpro/openapi3-ts/issues/143). PR[#144](https://github.com/metadevpro/openapi3-ts/pull/144)
7+
- Updated libs
8+
- Updated lo latest eslint (migrated config file)
9+
- Updated vite config to mts
10+
- Added basic documentation. Fix [#75](https://github.com/metadevpro/openapi3-ts/pull/75). PR[#139](https://github.com/metadevpro/openapi3-ts/pull/139)
11+
- Feat: `getSpecAsYaml` accepts the same options as `yaml.stringify`. Fix [#143](https://github.com/metadevpro/openapi3-ts/issues/143). PR[#144](https://github.com/metadevpro/openapi3-ts/pull/144) by @urugator
912

1013
## Version 4.3.3
1114

1215
2024.06.10
1316

14-
- Add mising types definitions. PR [#138](https://github.com/metadevpro/openapi3-ts/pull/138) by @andreujuanc
17+
- Add mising types definitions. PR [#138](https://github.com/metadevpro/openapi3-ts/pull/138) by @andreujuanc
1518

1619
## Version 4.3.2
1720

1821
2024.05.23
1922

20-
- Fix [#134](https://github.com/metadevpro/openapi3-ts/pull/134) exceisve files in distributed package. PR [136](https://github.com/metadevpro/openapi3-ts/pull/136) by @RobinTail
23+
- Fix [#134](https://github.com/metadevpro/openapi3-ts/pull/134) exceisve files in distributed package. PR [136](https://github.com/metadevpro/openapi3-ts/pull/136) by @RobinTail
2124

2225
## Version 4.3.1
2326

2427
2024.04.01
2528

26-
- Bug fix. `const` must be of type any. [#133](https://github.com/metadevpro/openapi3-ts/pull/133) by @RobinTail
29+
- Bug fix. `const` must be of type any. [#133](https://github.com/metadevpro/openapi3-ts/pull/133) by @RobinTail
2730

2831
## Version 4.3.0
2932

3033
2024.04.01
3134

32-
- Added support for `const` keyword [#132](https://github.com/metadevpro/openapi3-ts/pull/132) by @remidewitte
33-
- Update dependences.
35+
- Added support for `const` keyword [#132](https://github.com/metadevpro/openapi3-ts/pull/132) by @remidewitte
36+
- Update dependences.
3437

3538
## Version 4.2.2
3639

3740
2024.02.22
3841

39-
- Fixed [131](https://github.com/metadevpro/openapi3-ts/pull/131) `responses` to be optional by @remidewitte
42+
- Fixed [131](https://github.com/metadevpro/openapi3-ts/pull/131) `responses` to be optional by @remidewitte
4043

4144
## Version 4.2.1
4245

4346
2023.12.21
4447

45-
- Merged [#128](https://github.com/metadevpro/openapi3-ts/pull/128) Revert [#126](https://github.com/metadevpro/openapi3-ts/pull/128) `examples` typings by @RobinTail
48+
- Merged [#128](https://github.com/metadevpro/openapi3-ts/pull/128) Revert [#126](https://github.com/metadevpro/openapi3-ts/pull/128) `examples` typings by @RobinTail
4649

4750
2023.12.20
4851

49-
- Added [#126](https://github.com/metadevpro/openapi3-ts/pull/126) Adding contentEncoding and contentMediaType to 3.1 by @RobinTail
50-
- Updated dependencies
52+
- Added [#126](https://github.com/metadevpro/openapi3-ts/pull/126) Adding contentEncoding and contentMediaType to 3.1 by @RobinTail
53+
- Updated dependencies
5154

5255
## Version 4.1.2
5356

5457
2023.04.25
5558

56-
- Fix [#113](https://github.com/metadevpro/openapi3-ts/pull/113) Fix nullable on 3.0 types by @samchungy
57-
- Fix [#116](https://github.com/metadevpro/openapi3-ts/pull/116) Export with .mjs extension by @koooge
58-
- Fix [#117](https://github.com/metadevpro/openapi3-ts/pull/117) Support subpath for tsc with moduleResolutin node by @koooge
59-
- Fix [#118](https://github.com/metadevpro/openapi3-ts/pull/118) Bump yaml from 2.2.1 to 2.2.2
60-
- Update dependencies to latest.
59+
- Fix [#113](https://github.com/metadevpro/openapi3-ts/pull/113) Fix nullable on 3.0 types by @samchungy
60+
- Fix [#116](https://github.com/metadevpro/openapi3-ts/pull/116) Export with .mjs extension by @koooge
61+
- Fix [#117](https://github.com/metadevpro/openapi3-ts/pull/117) Support subpath for tsc with moduleResolutin node by @koooge
62+
- Fix [#118](https://github.com/metadevpro/openapi3-ts/pull/118) Bump yaml from 2.2.1 to 2.2.2
63+
- Update dependencies to latest.
6164

6265
## Version 4.1.1
6366

6467
2023.04.15
6568

66-
- Fix [#112](https://github.com/metadevpro/openapi3-ts/pull/112) Remove `nullable` & deprecate `example` in OAS 3.1 by @samchungy.
69+
- Fix [#112](https://github.com/metadevpro/openapi3-ts/pull/112) Remove `nullable` & deprecate `example` in OAS 3.1 by @samchungy.
6770

6871
## Version 4.1.0
6972

7073
2023.04.14
7174

72-
- [#111](https://github.com/metadevpro/openapi3-ts/pull/111) Improved exports by @koooge
75+
- [#111](https://github.com/metadevpro/openapi3-ts/pull/111) Improved exports by @koooge
7376

7477
## Version 4.0.4
7578

7679
2023.04.10
7780

78-
- [#108](https://github.com/metadevpro/openapi3-ts/pull/108) Bug fix: Remove any type from `paths` by @samchungy.
79-
- [#109](https://github.com/metadevpro/openapi3-ts/pull/109) Bug fix: Fixup types `example` & `prefixItems` by @samchungy.
81+
- [#108](https://github.com/metadevpro/openapi3-ts/pull/108) Bug fix: Remove any type from `paths` by @samchungy.
82+
- [#109](https://github.com/metadevpro/openapi3-ts/pull/109) Bug fix: Fixup types `example` & `prefixItems` by @samchungy.
8083

8184
## Version 4.0.3
8285

8386
2023.03.30
8487

85-
- Bug fix. Stricter TS compilation. Fix issue [#105](https://github.com/metadevpro/openapi3-ts/issues/105)
88+
- Bug fix. Stricter TS compilation. Fix issue [#105](https://github.com/metadevpro/openapi3-ts/issues/105)
8689

8790
## Version 4.0.2
8891

8992
2023.03.30
9093

91-
- PR [#104](https://github.com/metadevpro/openapi3-ts/pull/104) Fix export for cjs by @RobinTail
94+
- PR [#104](https://github.com/metadevpro/openapi3-ts/pull/104) Fix export for cjs by @RobinTail
9295

9396
## Version 4.0.1
9497

9598
2023.03.29
9699

97-
- Added instructions to README for consuing the library for v. 3.1.0 vs 3.0.0
98-
- PR [#100](https://github.com/metadevpro/openapi3-ts/pull/99) Fix typo by @RobinTail
99-
- PR [#99](https://github.com/metadevpro/openapi3-ts/pull/99) Fix typo by @RobinTail
100-
- PR [#97](https://github.com/metadevpro/openapi3-ts/pull/97) Export type `SchemaObjectType` by @RobinTail
101-
- PR [#96](https://github.com/metadevpro/openapi3-ts/pull/96) Support prefixItems by @samchungy
100+
- Added instructions to README for consuing the library for v. 3.1.0 vs 3.0.0
101+
- PR [#100](https://github.com/metadevpro/openapi3-ts/pull/99) Fix typo by @RobinTail
102+
- PR [#99](https://github.com/metadevpro/openapi3-ts/pull/99) Fix typo by @RobinTail
103+
- PR [#97](https://github.com/metadevpro/openapi3-ts/pull/97) Export type `SchemaObjectType` by @RobinTail
104+
- PR [#96](https://github.com/metadevpro/openapi3-ts/pull/96) Support prefixItems by @samchungy
102105

103106
## Version 4.0.0
104107

105108
2023.03.27
106109

107-
- Breaking change. Adds explicit support for OAS 3.0 and OAS 3.1 as separate implementations.
110+
- Breaking change. Adds explicit support for OAS 3.0 and OAS 3.1 as separate implementations.
108111

109112
## Version 3.2.0
110113

111-
- PR [#94](https://github.com/metadevpro/openapi3-ts/pull/94) Export type `SchemaObjectType`.
112-
- PR [#95](https://github.com/metadevpro/openapi3-ts/pull/95) Export type `SchemaObjectFormat`. Both contributed by @beautyfree
114+
- PR [#94](https://github.com/metadevpro/openapi3-ts/pull/94) Export type `SchemaObjectType`.
115+
- PR [#95](https://github.com/metadevpro/openapi3-ts/pull/95) Export type `SchemaObjectFormat`. Both contributed by @beautyfree
113116

114117
## Version 3.1.2
115118

116119
2022.11.19
117120

118-
- PR [#91](https://github.com/metadevpro/openapi3-ts/pull/91) Fix `addPath` to include merge semantics. Contributed by @MaurerKrisztian
121+
- PR [#91](https://github.com/metadevpro/openapi3-ts/pull/91) Fix `addPath` to include merge semantics. Contributed by @MaurerKrisztian
119122

120123
## Version 3.1.1
121124

122125
2022.10.10
123126

124-
- PR [#89](https://github.com/metadevpro/openapi3-ts/pull/89) Make Webhooks optional (not supportet in OPenAPI 3.0). Contributed by @samchungy
127+
- PR [#89](https://github.com/metadevpro/openapi3-ts/pull/89) Make Webhooks optional (not supportet in OPenAPI 3.0). Contributed by @samchungy
125128

126129
## Version 3.1.0
127130

128131
2022.10.06
129132

130-
- PR [#88](https://github.com/metadevpro/openapi3-ts/pull/88) Added support to Webhooks. Contributed by @samchungy
133+
- PR [#88](https://github.com/metadevpro/openapi3-ts/pull/88) Added support to Webhooks. Contributed by @samchungy
131134

132135
## Version 3.0.3
133136

134137
2022.10.06
135138

136-
- PR [#87](https://github.com/metadevpro/openapi3-ts/pull/87) Enable type array for schema object on OpenAPI 3.1. contributed by @samchungy
139+
- PR [#87](https://github.com/metadevpro/openapi3-ts/pull/87) Enable type array for schema object on OpenAPI 3.1. contributed by @samchungy
137140

138141
## Version 3.0.2
139142

140143
2022.08.29
141144

142-
- PR [#85](https://github.com/metadevpro/openapi3-ts/pull/85) Enable support for version 3.0.1 and 3.1.0 (Lax typing for `exclusiveMinimum` and `exclusiveMaximum`). contributed by @RobinTail
145+
- PR [#85](https://github.com/metadevpro/openapi3-ts/pull/85) Enable support for version 3.0.1 and 3.1.0 (Lax typing for `exclusiveMinimum` and `exclusiveMaximum`). contributed by @RobinTail
143146

144147
## Version 3.0.1
145148

146149
2022.08.16
147150

148-
- PR [#82](https://github.com/metadevpro/openapi3-ts/pull/82) Emit helpers for the CJS build. contributed by @RobinTail
151+
- PR [#82](https://github.com/metadevpro/openapi3-ts/pull/82) Emit helpers for the CJS build. contributed by @RobinTail
149152

150153
## Version 3.0.0
151154

152155
2022.08.07
153156

154-
- PR [#80](https://github.com/metadevpro/openapi3-ts/pull/80) contributed by @jonluca
155-
- Updated libs
156-
- Breaking change: Changed build system to output esm as well as cjs (folders `dist/mjs` and `dist/cjs` now respectively, instead of `dist` for cjs previously).
157-
- Changed test system to use vite
158-
- Added stricter extension prefix typing
157+
- PR [#80](https://github.com/metadevpro/openapi3-ts/pull/80) contributed by @jonluca
158+
- Updated libs
159+
- Breaking change: Changed build system to output esm as well as cjs (folders `dist/mjs` and `dist/cjs` now respectively, instead of `dist` for cjs previously).
160+
- Changed test system to use vite
161+
- Added stricter extension prefix typing
159162

160163
## Version 2.0.2
161164

162165
2022.02.17
163166

164-
- Updated libs
167+
- Updated libs
165168

166169
## Version 2.0.1
167170

168171
2020.12.31
169172

170-
- Updated testing libs
171-
- Added ESList + Prettier, removed TSList support
172-
- Refactor to be consistent with ESLint + Prettier code-style rules
173-
- No functional changes in this version: just end of year house-keeping.
173+
- Updated testing libs
174+
- Added ESList + Prettier, removed TSList support
175+
- Refactor to be consistent with ESLint + Prettier code-style rules
176+
- No functional changes in this version: just end of year house-keeping.
174177

175178
## Version 2.0.0
176179

177180
2020.09.18
178181

179-
- Added Yaml Support and the first dependence to `yaml` library. Thanks to @DMavani
180-
- Better typing for `type` and `format` properties. Thanks to @xeptore
181-
- Keeping extensibility on `format`.
182+
- Added Yaml Support and the first dependence to `yaml` library. Thanks to @DMavani
183+
- Better typing for `type` and `format` properties. Thanks to @xeptore
184+
- Keeping extensibility on `format`.
182185

183186
## Version 1.4.0
184187

eslint.config.mjs

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import tsParser from "@typescript-eslint/parser";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
});
15+
16+
export default [...compat.extends(
17+
"eslint:recommended",
18+
"plugin:@typescript-eslint/eslint-recommended",
19+
"plugin:@typescript-eslint/recommended",
20+
), {
21+
plugins: {
22+
"@typescript-eslint": typescriptEslint,
23+
},
24+
25+
languageOptions: {
26+
parser: tsParser,
27+
},
28+
}];

0 commit comments

Comments
 (0)