Releases: smithy-lang/smithy
Releases · smithy-lang/smithy
Smithy CLI v1.35.0
1.35.0 (2023-07-27)
Features
- Enabled support for SNAPSHOT dependencies (#1853, #1857, #1884)
- Enabled default mode for
smithy diffrather than failing when not set (#1856) - Added warning to mis-cased standard HTTP verbs (#1862)
- Relaxed type constraints for
pageSizeproperty of the@paginatedtrait (#1866) - Improved message for invalid
.errorsentries (#1867) - Added
docIdproperty toaws.api#servicetrait (#1863, #1872, #1881, #1882) - Improved validation for http binding protocols (#1873)
- Expanded valid targets of
@httpPayload(#1876)
Documentation
- Updated documentation around
timestampand added more specificity to the definition (#1858)
Bug Fixes
- Removed unrecognized models from sources (#1851, #1860)
- Updated the content type of list & map shapes with the
@httpPayloadtrait to document content type (#1840) - Fixed IDL serializer which would write emtpy
applystatements to mixed in members ofenums(#1865) - Fixed indentation when formatting text blocks (#1875)
- Added resource files to source jars (#1877, #1880)
- Fixed a potential resource leak by using a try with resources (#1878)
Other
Smithy CLI v1.34.0
1.34.0 (2023-07-10)
Features
- Added a default template for the
smithy initcommand, making specifying templates optional (#1843) - Updated the model loader to skip unrecognized non-Smithy JSON files (#1846)
Bug Fixes
- Fixed basic HTTP authentication when resolving dependencies in the Smithy CLI (#1838)
- Fixed a bug when deduping
ChangedNullabilityevents (#1839)
Documentation
Smithy CLI v1.33.0
1.33.0 (2023-06-21)
Features
- Extended event ids for
AddedOperationError,RemovedOperationError,AddedEntityBindingandRemovedEntityBindingdiff events (#1797, #1803) - Added enum values to ids for
ChangedEnumTraitdiff events (#1807) - Added
initcommand to Smithy CLI (#1802, #1825, #1832) - Added
smithy-syntaxpackage andsmithy formatcommand to Smithy CLI (#1830)
Bug Fixes
- Fixed duplicated events for
ChangedNullabilityalongside theAddedInputTrait / RemovedInputTrait(#1806) - Updated request compression trait protocol tests with regard to HTTP bindings and respective specification (#1831)
Documentation
- Added
smithy-dafnyto code generators table (#1813) - Updated stale docs around
MissingPaginatedTrait(#1814) - Fixed grammar rendering (#1815)
- Updated recommendation for HTTP status code (#1818)
- Fixed selector example (#1824)
- Added note about how constraint traits affect backward compatibility (#1826)
- Added guide on disabling authentication (#1791)
Smithy CLI v1.32.0
1.32.0 (2023-06-06)
Features
- Refactor parsing and validation of
listandmapshapes. This improved validation output when unexpected members were present in these shapes (#1782) - Updated smithy-build to output projection failures only after all plugins finish running (failed or otherwise) (#1762)
- Added new pluggable validation-event decorator capability. This allows for customizing of validation events through a service provider interface (#1774)
- Added new diff-evaluator to emit events for when the
@requiredtrait is added to existing structures without a default (##1781) - Improved validation output for
@defaultcollisions (#1780) - Updated
@httpQuerytrait validation to prevent query-literal and query-param conflicts (#1786) - Updated default pagination flags to improve missing-pagination validation (#1764)
- Updated
SdkServiceIdValidatorto emitDANGERevents instead ofERRORevents (#1772) - Updated
ChangedEnumTraitevaluator to include specific ids, in order to differentiate specific events (#1787) - Added protocol tests to validate http-label escaping in the
restXmlprotocol (#1759) - Added support for
@externalDocstrait when converting operations in the OpenAPI converter (#1767) - Updated a handful of specifications in the smithy-grammar to improve parsability (#1788, #1790, #1792, #1793, #1800)
Bug Fixes
- Fixed
migrateCLI command to properly upgrade 1/1.0 models to 2/2.0 (#1579, #1769) - Fixed application of enum-mixins on empty enums (#1794)
- Fixed handling of dangling doc-comments in structures (#1776)
- Fixed several smithy-grammar typos and consistency issues (#1783)
Documentation
Smithy CLI v1.31.0
1.31.0 (2023-04-25)
Features
- Added
@requestCompressiontrait which indicates whether an operation supports compressed requests (#1748) - Improved IDL parser and added basic error recovery (#1733)
- Added restJson1 protocol test for a list of structures missing a required key (#1735)
- Added ability to order the output of the IDL serializer (#1727)
Bug Fixes
- Updated conversion from string shape with
@enumtrait to enum shape to convertinternaltag to@internaltrait (#1739)
Documentation
- Added documentation for changeStringEnumsToEnumShapes transformation (#1740)
Smithy CLI v1.30.0
1.30.0 (2023-04-10)
Features
- Updated smithy-diff and smithy-build to use pretty validation output and color theming options (#1712)
- Added --mode flag to smithy diff command with support for
aribtrary,project, andgitmodes
(#1724, #1721, #1718) - Added --flatten flag to AST command which flattens and removes mixins from the model (#1723)
- Expose functions to make ruleEvaluator more flexible to support coverage checking (#1681)
Bug Fixes
- Updated mixins to allow multiple mixins to override the same member if they all target the same shape (#1715)
- Fixed an issue where source file names impacted the ordering of metadata (#1716)
- Fixed error messages for invalid operation input/output bindings (#1728)
- Fixed bugs in smithy-rules-engine boolEquals and stringEquals which could cause unexpected results when visitors are
invoked (#1681) - Remove unnecessary member from
aws.iam#actionName(#1726)