Skip to content

Commit e7295a8

Browse files
authored
Prepare release v4.2.0 (#1010)
1 parent 45143aa commit e7295a8

File tree

6 files changed

+113
-8
lines changed

6 files changed

+113
-8
lines changed

CHANGELOG.md

+105
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,108 @@
1+
## 4.2.0 (Nov 1, 2024)
2+
3+
High level enhancements
4+
5+
- Massive refactor of plugin and theme that dramatically optimizes and reduces generated MDX.
6+
- Added sample JSON code snippet component to schema pages.
7+
- Improvements to how allOf, additonalProperties and discriminators are processed/handled.
8+
9+
Other enhancements and bug fixes
10+
11+
### Features/Enhancements
12+
13+
- **discriminators**
14+
- Improve handling of discriminators ([#1009](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/1009))
15+
- **schema**
16+
- Migrate schema page to Schema component and refactor layout ([#1001](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/1001))
17+
- Refactor to use new theme components
18+
- Add new RequestSchema and Schema components
19+
- **additional properties**
20+
- Add additionalProperties examples to tests
21+
- Support object as primitive additional properties
22+
- Improve Items support for allOf and primitives
23+
- **allOf handling**
24+
- Refactor items allOf to new pattern/library
25+
- Extend allOf tests
26+
- Migrate to allof-merge library to improve merging
27+
- Improve handling of top-level primitives
28+
- Improve support for allOf
29+
- Avoid returning on first schema match and improve support for AnyOneOf
30+
- **UI/UX improvements**
31+
- Implement skeleton loader component
32+
- Try lazy loading on all
33+
- Implement lazy loading without BrowserOnly
34+
- Render loading spinner instead of text
35+
- Add language tabs back
36+
- Add default logo for http and shell
37+
- Add margin top to enum descriptions
38+
- Change label from generated to auto
39+
- Add Summary component, cleanup PropertyDiscriminator and SchemaNodeDetails
40+
- Rename Edge to SchemaEdge and fix props and types
41+
- Rename SchemaComponent to SchemaNode
42+
- Cleanup Properties and add missing props
43+
- Port x-enumDescription fix from [#981](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/981)
44+
- Add additional schema support to edge
45+
- Support single mime type schemas
46+
- Make props optional
47+
- Add DetailsNode component and markdown rendering for description and qualifier
48+
- Add StatusCodes component
49+
- Use ExecutionEnvironment to avoid SSR
50+
- Render ParamsDetails client-side
51+
- Add response examples
52+
- Add ResponseExamples component
53+
- Import new ResponseSchema component
54+
- Switch to new ResponseSchema component
55+
- Add new ResponseSchema component
56+
- Reduce params details to single component for all types
57+
- Switch to docusaurus Details component
58+
- Fix details summaries
59+
- Add ParamsDetails to imports
60+
- Refactor createParamsDetails to use component
61+
- Add className to Props
62+
- Add new ParamsDetails component
63+
64+
### Bug Fixes
65+
66+
- **allOf items**
67+
- [Fix] All of items in array for API response ([#995](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/995))
68+
- Fix linter errors
69+
- Update test snapshot
70+
- Fix create allof request/response samples
71+
- **empty language tabs**
72+
- Fix bug in CodeSnippets component ([#988](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/988))
73+
- **contact info**
74+
- Fix bug in createContactInfo.ts, protocol was set to mailto even though it was a URL ([#992](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/992))
75+
- **import names**
76+
- Fix import name
77+
78+
### Refactoring
79+
80+
- **schema**
81+
- Refactor create schema tests to cypress ([#997](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/997))
82+
- Rename 'from schema' to 'generated' and cleanup examples
83+
- **imports**
84+
- Remove unused imports
85+
- Cleanup API doc template imports
86+
- Update imports
87+
- Remove unused imports
88+
- Update imports
89+
- **code cleanup**
90+
- Remove unused import
91+
- Cleanup AdditionalProperties types and logic
92+
- Cleanup PropertyDiscriminator and Markdown types
93+
- Cleanup code comments
94+
- Remove unnecessary div
95+
- Revert CSR experiment
96+
- Remove unnecessary div
97+
- Remove code comment
98+
99+
### Other
100+
101+
- **internal**
102+
- Migrate branch 'main' into params-details
103+
- Update build-perf.yml
104+
- Update build-perf.yml
105+
1106
## 4.1.0 (Oct 4, 2024)
2107

3108
High level enhancements

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Key Features:
4141

4242
| Docusaurus OpenAPI Docs | Docusaurus |
4343
| ----------------------- | --------------- |
44-
| 4.0.x (current) | `3.5.0 - 3.5.2` |
44+
| 4.x.x (current) | `3.5.0 - 3.5.2` |
4545
| 3.0.x (end-of-support) | `3.0.1 - 3.4.0` |
4646
| 2.2.3 (legacy) | `2.4.1 - 2.4.3` |
4747
| 1.7.3 (end-of-support) | `2.0.1 - 2.2.0` |

demo/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "demo",
3-
"version": "4.1.0",
3+
"version": "4.2.0",
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",
@@ -25,8 +25,8 @@
2525
"@docusaurus/plugin-google-gtag": "3.5.2",
2626
"@docusaurus/preset-classic": "3.5.2",
2727
"clsx": "^1.1.1",
28-
"docusaurus-plugin-openapi-docs": "^4.1.0",
29-
"docusaurus-theme-openapi-docs": "^4.1.0",
28+
"docusaurus-plugin-openapi-docs": "^4.2.0",
29+
"docusaurus-theme-openapi-docs": "^4.2.0",
3030
"prism-react-renderer": "^2.3.0",
3131
"react": "^18.2.0",
3232
"react-dom": "^18.2.0"

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "4.1.0",
2+
"version": "4.2.0",
33
"npmClient": "yarn"
44
}

packages/docusaurus-plugin-openapi-docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "docusaurus-plugin-openapi-docs",
33
"description": "OpenAPI plugin for Docusaurus.",
4-
"version": "4.1.0",
4+
"version": "4.2.0",
55
"license": "MIT",
66
"keywords": [
77
"openapi",

packages/docusaurus-theme-openapi-docs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "docusaurus-theme-openapi-docs",
33
"description": "OpenAPI theme for Docusaurus.",
4-
"version": "4.1.0",
4+
"version": "4.2.0",
55
"license": "MIT",
66
"keywords": [
77
"openapi",
@@ -43,7 +43,7 @@
4343
"clsx": "^1.1.1",
4444
"copy-text-to-clipboard": "^3.1.0",
4545
"crypto-js": "^4.1.1",
46-
"docusaurus-plugin-openapi-docs": "^4.1.0",
46+
"docusaurus-plugin-openapi-docs": "^4.2.0",
4747
"docusaurus-plugin-sass": "^0.2.3",
4848
"file-saver": "^2.0.5",
4949
"lodash": "^4.17.20",

0 commit comments

Comments
 (0)