oas 20.2.0 → 20.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 20.3.0 (2023-01-03)
2
+
3
+ * chore: bumping deps ([ed5e473](https://github.com/readmeio/oas/commit/ed5e473))
4
+
5
+
6
+
7
+ ## <small>20.2.1 (2022-12-19)</small>
8
+
9
+ * fix: broken badge, remove unnecessary `.svg` extension ([9f3fdea](https://github.com/readmeio/oas/commit/9f3fdea))
10
+ * fix: typing on `oas.getTags()` ([e54ba8e](https://github.com/readmeio/oas/commit/e54ba8e))
11
+
12
+
13
+
1
14
  ## 20.2.0 (2022-12-07)
2
15
 
3
16
  * chore(deps-dev): bumping prettier ([e936e32](https://github.com/readmeio/oas/commit/e936e32))
package/README.md CHANGED
@@ -9,10 +9,10 @@
9
9
  </p>
10
10
 
11
11
  <p align="center">
12
- <a href="https://npm.im/oas"><img src="https://img.shields.io/npm/v/oas.svg?style=for-the-badge" alt="NPM Version" /></a>
13
- <a href="https://npm.im/oas"><img src="https://img.shields.io/node/v/oas.svg?style=for-the-badge" alt="Node Version" /></a>
14
- <a href="https://npm.im/oas"><img src="https://img.shields.io/npm/l/oas.svg?style=for-the-badge" alt="MIT License" /></a>
15
- <a href="https://github.com/readmeio/oas"><img src="https://img.shields.io/github/workflow/status/readmeio/oas/CI.svg?style=for-the-badge" alt="Build status" /></a>
12
+ <a href="https://npm.im/oas"><img src="https://img.shields.io/npm/v/oas?style=for-the-badge" alt="NPM Version" /></a>
13
+ <a href="https://npm.im/oas"><img src="https://img.shields.io/node/v/oas?style=for-the-badge" alt="Node Version" /></a>
14
+ <a href="https://npm.im/oas"><img src="https://img.shields.io/npm/l/oas?style=for-the-badge" alt="MIT License" /></a>
15
+ <a href="https://github.com/readmeio/oas"><img src="https://img.shields.io/github/actions/workflow/status/readmeio/oas/ci.yml?branch=main&style=for-the-badge" alt="Build status" /></a>
16
16
  </p>
17
17
 
18
18
  <p align="center">
package/dist/index.d.ts CHANGED
@@ -201,7 +201,7 @@ export default class Oas {
201
201
  * @param setIfMissing If a tag is not present on an operation that operations path will be added
202
202
  * into the list of tags returned.
203
203
  */
204
- getTags(setIfMissing?: boolean): unknown[];
204
+ getTags(setIfMissing?: boolean): string[];
205
205
  /**
206
206
  * Determine if a given a custom specification extension exists within the API definition.
207
207
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oas",
3
- "version": "20.2.0",
3
+ "version": "20.3.0",
4
4
  "description": "Comprehensive tooling for working with OpenAPI definitions",
5
5
  "license": "MIT",
6
6
  "author": "ReadMe <support@readme.io> (https://readme.com)",
@@ -52,26 +52,26 @@
52
52
  "jsonpath-plus": "^7.2.0",
53
53
  "jsonpointer": "^5.0.0",
54
54
  "memoizee": "^0.4.14",
55
- "oas-normalize": "^8.1.4",
56
- "openapi-types": "^12.0.0",
55
+ "oas-normalize": "^8.3.0",
56
+ "openapi-types": "^12.1.0",
57
57
  "path-to-regexp": "^6.2.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@commitlint/cli": "^17.3.0",
61
61
  "@commitlint/config-conventional": "^17.3.0",
62
- "@readme/eslint-config": "^10.3.1",
62
+ "@readme/eslint-config": "^10.3.2",
63
63
  "@readme/oas-examples": "^5.7.1",
64
64
  "@readme/openapi-parser": "^2.4.0",
65
- "@types/jest": "^29.2.4",
65
+ "@types/jest": "^29.2.5",
66
66
  "@types/json-schema-merge-allof": "^0.6.1",
67
67
  "@types/memoizee": "^0.4.6",
68
- "@types/node": "^18.11.11",
69
- "eslint": "^8.29.0",
70
- "husky": "^8.0.2",
68
+ "@types/node": "^18.11.18",
69
+ "eslint": "^8.31.0",
70
+ "husky": "^8.0.3",
71
71
  "jest": "^29.3.1",
72
72
  "prettier": "^2.8.1",
73
73
  "ts-jest": "^29.0.3",
74
- "typescript": "^4.9.3"
74
+ "typescript": "^4.9.4"
75
75
  },
76
76
  "prettier": "@readme/eslint-config/prettier",
77
77
  "commitlint": {
package/src/index.ts CHANGED
@@ -727,7 +727,7 @@ export default class Oas {
727
727
  * into the list of tags returned.
728
728
  */
729
729
  getTags(setIfMissing = false) {
730
- const allTags = new Set();
730
+ const allTags = new Set<string>();
731
731
 
732
732
  Object.entries(this.getPaths()).forEach(([path, operations]) => {
733
733
  Object.values(operations).forEach(operation => {