@apifreaks/openapi-specs 0.4.9 → 0.4.11

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/README.md CHANGED
@@ -37,8 +37,6 @@ const ipSlugs = getSpecsByCategory(SpecCategory.IP_INTELLIGENCE);
37
37
 
38
38
  `SpecSlug` and `SpecCategory` are generated from `specs/`. If you write `SpecSlug.IP_LOCATOR` and that file is later renamed or removed, TypeScript fails at compile time. Raw strings (`getSpecJson("ip-locator")`) still typecheck; unknown slugs return `undefined` at runtime. Unknown categories return `[]`.
39
39
 
40
- `getSpec` is a deprecated alias for `getSpecJson` and will be removed in the next major version.
41
-
42
40
  ### Single spec
43
41
 
44
42
  JSON is published from `specs/`. TypeScript JSON imports need `"resolveJsonModule": true`.
@@ -63,7 +61,6 @@ Importing any of these from `@apifreaks/openapi-specs` loads every spec.
63
61
  | ------ | ---- | ----------- |
64
62
  | `getSpecJson(slug)` | `(string) => OpenAPISpec \| undefined` | Spec object for a slug |
65
63
  | `getSpecYaml(slug)` | `(string) => string \| undefined` | Pre-rendered YAML text for a slug |
66
- | `getSpec(slug)` | `(string) => OpenAPISpec \| undefined` | **Deprecated.** Alias for `getSpecJson`, removed in the next major version |
67
64
  | `getSpecsByCategory(category)` | `(string) => string[]` | Slugs in a category, or `[]` |
68
65
  | `SpecSlug` | `{ IP_LOCATOR: "ip-locator", … }` | Enumerated slugs |
69
66
  | `SpecCategory` | `{ IP_INTELLIGENCE: "ip-intelligence", … }` | Enumerated categories |