Releases: ezzatron/austenite
Releases · ezzatron/austenite
v0.12.0
v0.11.1
v0.11.0
Changed
- [BREAKING] The
initialize()
function has moved to theaustenite/node
sub-path export. You can now import it fromaustenite/node
instead ofaustenite
.
Fixed
- This library now works better with Next.js. Previously Next.js would complain about various imports that were incompatible with the Edge Runtime. This has been improved in two ways:
- The
initialize()
function, which uses some Node.js APIs, has been moved to theaustenite/node
sub-path export. Importing declaration functions from the mainaustenite
module will no longer cause these Node.js APIs to be included in the Next.js server bundle. - Any remaining Node.js API imports have been updated to use the
node:
protocol, which allows Next.js to provide Edge Runtime polyfills. An example of this is the use of thebuffer
module, which is essential forbinary()
declarations, and can only be polyfilled by Next.js when imported asnode:buffer
.
- The
- Fixed incorrect CommonJS type definitions.
v0.10.1
Fixed
- Removed unused
mdast
dependency.
v0.10.0
Added
- Custom constraints can now be defined for all declarations.
Changed
- [BREAKING] The
initialize()
function is nowasync
. - If you have Prettier installed in your project, Austenite will now use it to format generated Markdown specification output.
- The generated specification output has been improved.
- Markdown phrasing content is now supported in variable and constraint descriptions.
v0.9.1
Fixed
- Replaced usage of
node:
imports to avoid issues when Austenite is included in a Webpack server bundle.
v0.9.0
Added
- Example values can now be overridden in any declaration.
Changed
- [BREAKING] Explicit examples must be provided in a declaration if the declaration uses constraints that would make the auto-generated examples invalid.
v0.8.0
Added
- Declarations can now be marked as sensitive, which will cause their default values and actual values to be redacted in validation summaries, generated specifications, and exception messages.
- Length constraints can now be set on
binary
andstring
variable declarations. - Range constraints can now be set on
number
,integer
,bigInteger
,networkPortNumber
, andduration
variable declarations.
Changed
- The generated specification output has been improved to be easier to read.
- The validation summary output uses "not set" instead of "undefined" to describe values that are not set, or are set to empty values.
v0.7.0
Added
- Added
binary
variable declarations.
v0.6.2
Fixed
- Fixed badge images and links in the README.