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 diff
rather than failing when not set (#1856) - Added warning to mis-cased standard HTTP verbs (#1862)
- Relaxed type constraints for
pageSize
property of the@paginated
trait (#1866) - Improved message for invalid
.errors
entries (#1867) - Added
docId
property toaws.api#service
trait (#1863, #1872, #1881, #1882) - Improved validation for http binding protocols (#1873)
- Expanded valid targets of
@httpPayload
(#1876)
Documentation
- Updated documentation around
timestamp
and 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
@httpPayload
trait to document content type (#1840) - Fixed IDL serializer which would write emtpy
apply
statements 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 init
command, 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
ChangedNullability
events (#1839)
Documentation
Smithy CLI v1.33.0
1.33.0 (2023-06-21)
Features
- Extended event ids for
AddedOperationError
,RemovedOperationError
,AddedEntityBinding
andRemovedEntityBinding
diff events (#1797, #1803) - Added enum values to ids for
ChangedEnumTrait
diff events (#1807) - Added
init
command to Smithy CLI (#1802, #1825, #1832) - Added
smithy-syntax
package andsmithy format
command to Smithy CLI (#1830)
Bug Fixes
- Fixed duplicated events for
ChangedNullability
alongside theAddedInputTrait / RemovedInputTrait
(#1806) - Updated request compression trait protocol tests with regard to HTTP bindings and respective specification (#1831)
Documentation
- Added
smithy-dafny
to 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
list
andmap
shapes. 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
@required
trait is added to existing structures without a default (##1781) - Improved validation output for
@default
collisions (#1780) - Updated
@httpQuery
trait validation to prevent query-literal and query-param conflicts (#1786) - Updated default pagination flags to improve missing-pagination validation (#1764)
- Updated
SdkServiceIdValidator
to emitDANGER
events instead ofERROR
events (#1772) - Updated
ChangedEnumTrait
evaluator to include specific ids, in order to differentiate specific events (#1787) - Added protocol tests to validate http-label escaping in the
restXml
protocol (#1759) - Added support for
@externalDocs
trait 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
migrate
CLI 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
@requestCompression
trait 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
@enum
trait to enum shape to convertinternal
tag to@internal
trait (#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
, andgit
modes
(#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)