clawchain/solar/crates/sema/CHANGELOG.md

268 lines
14 KiB
Markdown

# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.1.8](https://github.com/paradigmxyz/solar/releases/tag/v0.1.8)
### Bug Fixes
- [sema] Remap Sources::file_to_id when sorting ([#548](https://github.com/paradigmxyz/solar/issues/548))
- [sema] Do not expose mutable Session access while entered ([#542](https://github.com/paradigmxyz/solar/issues/542))
- [sema] Peel parens when lowering call args ([#495](https://github.com/paradigmxyz/solar/issues/495))
### Features
- [ast] Spanned optional commasep elements ([#543](https://github.com/paradigmxyz/solar/issues/543))
- Add `ItemId::as_struct` ([#544](https://github.com/paradigmxyz/solar/issues/544))
- [sema] Allow delaying/manual import resolution ([#531](https://github.com/paradigmxyz/solar/issues/531))
- [sema] Add sources getters ([#528](https://github.com/paradigmxyz/solar/issues/528))
- Checks on upper bounds of contract storage sizes ([#169](https://github.com/paradigmxyz/solar/issues/169))
- [sema] Add validation for assembly memory-safe flags ([#263](https://github.com/paradigmxyz/solar/issues/263))
### Miscellaneous Tasks
- Add some traits to AstPath ([#549](https://github.com/paradigmxyz/solar/issues/549))
- Simplify pointer projection ([#541](https://github.com/paradigmxyz/solar/issues/541))
- Remove feature(doc_auto_cfg) ([#540](https://github.com/paradigmxyz/solar/issues/540))
- [sema] Simplify perform_imports ([#530](https://github.com/paradigmxyz/solar/issues/530))
- [sema] Fix parse dbg log ([#527](https://github.com/paradigmxyz/solar/issues/527))
### Performance
- [ast] Use ThinSlice ([#546](https://github.com/paradigmxyz/solar/issues/546))
- [sema] Pre-compute topo_sort map ([#533](https://github.com/paradigmxyz/solar/issues/533))
- [sema] Use a map in AST Sources ([#535](https://github.com/paradigmxyz/solar/issues/535))
### Styling
- Implement fmt::Debug for more types ([#537](https://github.com/paradigmxyz/solar/issues/537))
### Testing
- Add unit test and debug assertion for sources inconsistency ([#550](https://github.com/paradigmxyz/solar/issues/550))
- Track node sizes ([#497](https://github.com/paradigmxyz/solar/issues/497))
## [0.1.7](https://github.com/paradigmxyz/solar/releases/tag/v0.1.7)
### Bug Fixes
- [sema] Handle linearization failure fallout ([#472](https://github.com/paradigmxyz/solar/issues/472))
### Features
- [sema] Add Compiler::stage getter ([#490](https://github.com/paradigmxyz/solar/issues/490))
- Diagnostic suggestions ([#474](https://github.com/paradigmxyz/solar/issues/474))
- Bump to annotate-snippets 0.12, diagnostic tweaks ([#465](https://github.com/paradigmxyz/solar/issues/465))
- [sema] Add `Compiler::enter{,_mut}_sequential` ([#457](https://github.com/paradigmxyz/solar/issues/457))
### Miscellaneous Tasks
- Improve 'parsed' debug log ([#489](https://github.com/paradigmxyz/solar/issues/489))
- Use json_type to sort ABIs ([#456](https://github.com/paradigmxyz/solar/issues/456))
- Move VERSION to config::version::SEMVER_VERSION and log it ([#454](https://github.com/paradigmxyz/solar/issues/454))
- Hide more source map implementation details ([#450](https://github.com/paradigmxyz/solar/issues/450))
- Chore!(data-structures): remove aliases in sync re-exports ([#452](https://github.com/paradigmxyz/solar/issues/452))
- [meta] Update solidity links ([#448](https://github.com/paradigmxyz/solar/issues/448))
- Make all features reachable from meta crate ([#444](https://github.com/paradigmxyz/solar/issues/444))
### Performance
- [interface] Cache thread pool inside of session ([#458](https://github.com/paradigmxyz/solar/issues/458))
## [0.1.6](https://github.com/paradigmxyz/solar/releases/tag/v0.1.6)
### Bug Fixes
- Error on dummy instead of empty args ([#407](https://github.com/paradigmxyz/solar/issues/407))
- OnDrop drops, rename to DropGuard ([#399](https://github.com/paradigmxyz/solar/issues/399))
### Features
- Add getters for source by file name (path) ([#442](https://github.com/paradigmxyz/solar/issues/442))
- [interface] Add FileLoader abstraction for fs/io ([#438](https://github.com/paradigmxyz/solar/issues/438))
- Implement base_path, streamline creating pcx ([#436](https://github.com/paradigmxyz/solar/issues/436))
- Allow session mutable access ([#435](https://github.com/paradigmxyz/solar/issues/435))
- Make `Lit`erals implement `Copy` ([#414](https://github.com/paradigmxyz/solar/issues/414))
- Add Compiler ([#397](https://github.com/paradigmxyz/solar/issues/397))
- [sema] Add helper methods to Function ([#385](https://github.com/paradigmxyz/solar/issues/385))
### Miscellaneous Tasks
- Downgrade some debug spans to trace ([#412](https://github.com/paradigmxyz/solar/issues/412))
- Abstract implementation of Declarations ([#410](https://github.com/paradigmxyz/solar/issues/410))
- Remove query tracing ([#406](https://github.com/paradigmxyz/solar/issues/406))
- Clean up contract inheritance linearization ([#405](https://github.com/paradigmxyz/solar/issues/405))
### Other
- Enforce typos ([#423](https://github.com/paradigmxyz/solar/issues/423))
### Performance
- Load input source files in parallel ([#429](https://github.com/paradigmxyz/solar/issues/429))
- [sema] Better parallel parser scheduling ([#428](https://github.com/paradigmxyz/solar/issues/428))
- Pool symbol resolver scopes, refactor ([#413](https://github.com/paradigmxyz/solar/issues/413))
- [sema] Add some reserve calls ([#411](https://github.com/paradigmxyz/solar/issues/411))
- [sema] Use `Cell<usize>` in lowering ([#408](https://github.com/paradigmxyz/solar/issues/408))
## [0.1.5](https://github.com/paradigmxyz/solar/releases/tag/v0.1.5)
### Bug Fixes
- Visit modifiers in hir visitor ([#373](https://github.com/paradigmxyz/solar/issues/373))
### Dependencies
- Bump to edition 2024, MSRV 1.88 ([#375](https://github.com/paradigmxyz/solar/issues/375))
- [deps] Weekly `cargo update` ([#351](https://github.com/paradigmxyz/solar/issues/351))
### Features
- Resolve ctor base args ([#322](https://github.com/paradigmxyz/solar/issues/322))
- Add span visitor debug tool ([#355](https://github.com/paradigmxyz/solar/issues/355))
### Miscellaneous Tasks
- Use Option<StateMutability> in the AST ([#374](https://github.com/paradigmxyz/solar/issues/374))
- Fn header spans ([#371](https://github.com/paradigmxyz/solar/issues/371))
- Misc cleanup, util methods ([#367](https://github.com/paradigmxyz/solar/issues/367))
- Add span to `TryCatchClause` ([#364](https://github.com/paradigmxyz/solar/issues/364))
- [parser] Move unescaping from lexer to parser ([#360](https://github.com/paradigmxyz/solar/issues/360))
## [0.1.4](https://github.com/paradigmxyz/solar/releases/tag/v0.1.4)
### Bug Fixes
- [sema] Don't warn 3628 if no interface functions ([#330](https://github.com/paradigmxyz/solar/issues/330))
### Features
- [sema] Implement receive function checks ([#321](https://github.com/paradigmxyz/solar/issues/321))
- [sema] Display more types, add Ty::display ([#328](https://github.com/paradigmxyz/solar/issues/328))
- Add span in FunctionHeader ([#318](https://github.com/paradigmxyz/solar/issues/318))
- [ast] Add spans to blocks ([#314](https://github.com/paradigmxyz/solar/issues/314))
- Typecheck for external type clashes ([#312](https://github.com/paradigmxyz/solar/issues/312))
## [0.1.3](https://github.com/paradigmxyz/solar/releases/tag/v0.1.3)
### Bug Fixes
- [sema] Declare selfdestruct builtin ([#297](https://github.com/paradigmxyz/solar/issues/297))
- [sema] Correct variable declaration scopes ([#300](https://github.com/paradigmxyz/solar/issues/300))
- Invalid underscores check ([#281](https://github.com/paradigmxyz/solar/issues/281))
### Features
- Warn when payable fallback function found but no receive function ([#170](https://github.com/paradigmxyz/solar/issues/170))
- Literal checks ([#287](https://github.com/paradigmxyz/solar/issues/287))
- [ast] Store concatenated string literals ([#266](https://github.com/paradigmxyz/solar/issues/266))
- [ast] Add span to CallArgs ([#265](https://github.com/paradigmxyz/solar/issues/265))
- Add CompilerStage::ParsedAndImported ([#259](https://github.com/paradigmxyz/solar/issues/259))
### Miscellaneous Tasks
- Shorter Debug impls ([#291](https://github.com/paradigmxyz/solar/issues/291))
- Misc map cleanups ([#277](https://github.com/paradigmxyz/solar/issues/277))
- Add some more non_exhaustive ([#261](https://github.com/paradigmxyz/solar/issues/261))
- Tweak tracing events ([#255](https://github.com/paradigmxyz/solar/issues/255))
- Revert extra changelog
## [0.1.2](https://github.com/paradigmxyz/solar/releases/tag/v0.1.2)
### Bug Fixes
- Hir call visiting ([#250](https://github.com/paradigmxyz/solar/issues/250))
- Public transient assert ([#248](https://github.com/paradigmxyz/solar/issues/248))
- [parser] Glob imports require an alias ([#245](https://github.com/paradigmxyz/solar/issues/245))
- Point resolution errors to the import string ([#244](https://github.com/paradigmxyz/solar/issues/244))
- Unsound transmute ([#239](https://github.com/paradigmxyz/solar/issues/239))
- Variable getter functions are external ([#202](https://github.com/paradigmxyz/solar/issues/202))
- Error when func type has named return param ([#173](https://github.com/paradigmxyz/solar/issues/173))
- Don't check placeholders in virtual modifiers ([#201](https://github.com/paradigmxyz/solar/issues/201))
- Correctly resolve try/catch scopes ([#200](https://github.com/paradigmxyz/solar/issues/200))
- Correctly evaluate public constants ([#187](https://github.com/paradigmxyz/solar/issues/187))
- Allow storage in modifiers ([#185](https://github.com/paradigmxyz/solar/issues/185))
### Dependencies
- Bump solidity submodule to 0.8.29 ([#230](https://github.com/paradigmxyz/solar/issues/230))
- [deps] Weekly `cargo update` ([#225](https://github.com/paradigmxyz/solar/issues/225))
### Features
- Align input options with solc, implement remapping context ([#238](https://github.com/paradigmxyz/solar/issues/238))
- Refactor FileResolver to allow custom current_dir ([#235](https://github.com/paradigmxyz/solar/issues/235))
- [hir] Expose hir from parsing context ([#210](https://github.com/paradigmxyz/solar/issues/210))
- Parse storage layout specifiers ([#232](https://github.com/paradigmxyz/solar/issues/232))
- Make current_dir configurable ([#231](https://github.com/paradigmxyz/solar/issues/231))
- Implement minimal HIR visitor ([#195](https://github.com/paradigmxyz/solar/issues/195))
## [0.1.1](https://github.com/paradigmxyz/solar/releases/tag/v0.1.1)
### Bug Fixes
- Display order in AST stats ([#180](https://github.com/paradigmxyz/solar/issues/180))
- Reduce width of subnode name in ast-stats ([#157](https://github.com/paradigmxyz/solar/issues/157))
- Exclude arrays from mapping getter returns ([#148](https://github.com/paradigmxyz/solar/issues/148))
- Properly handle recursive types ([#133](https://github.com/paradigmxyz/solar/issues/133))
- Validate placeholder is within modifier ([#132](https://github.com/paradigmxyz/solar/issues/132))
### Documentation
- Add icons ([#109](https://github.com/paradigmxyz/solar/issues/109))
### Features
- Add some more Span utils ([#179](https://github.com/paradigmxyz/solar/issues/179))
- Unify CLI and Session options ([#176](https://github.com/paradigmxyz/solar/issues/176))
- Check placeholders inside unchecked blocks ([#172](https://github.com/paradigmxyz/solar/issues/172))
- Library requirements syntax checker ([#168](https://github.com/paradigmxyz/solar/issues/168))
- Set up codspeed ([#167](https://github.com/paradigmxyz/solar/issues/167))
- Underscores and literals validation ([#165](https://github.com/paradigmxyz/solar/issues/165))
- Receive function validation ([#166](https://github.com/paradigmxyz/solar/issues/166))
- Func visibility checks for free functions ([#163](https://github.com/paradigmxyz/solar/issues/163))
- Syntax checker for functions with modifiers ([#164](https://github.com/paradigmxyz/solar/issues/164))
- Variable declaration statements are not allowed as the body of loop ([#158](https://github.com/paradigmxyz/solar/issues/158))
- Validate functions with no visibility specified ([#160](https://github.com/paradigmxyz/solar/issues/160))
- Modifier definitions must have a placeholder ([#159](https://github.com/paradigmxyz/solar/issues/159))
- Add more methods to index types ([#156](https://github.com/paradigmxyz/solar/issues/156))
- Update to Rust 1.83 ([#150](https://github.com/paradigmxyz/solar/issues/150))
- Validate variable data locations ([#149](https://github.com/paradigmxyz/solar/issues/149))
- Make TyAbiPrinter public ([#145](https://github.com/paradigmxyz/solar/issues/145))
- Add some methods to CallArgs ([#140](https://github.com/paradigmxyz/solar/issues/140))
- Print AST statistics with -Zast-stats flag ([#125](https://github.com/paradigmxyz/solar/issues/125))
- Return ControlFlow from AST visitor methods ([#115](https://github.com/paradigmxyz/solar/issues/115))
### Miscellaneous Tasks
- Add TyAbiPrinterMode ([#147](https://github.com/paradigmxyz/solar/issues/147))
- Mark TyKind as non_exhaustive ([#146](https://github.com/paradigmxyz/solar/issues/146))
- Use unimplemented! instead of todo! in eval.rs ([#110](https://github.com/paradigmxyz/solar/issues/110))
### Other
- Initial AST validation for using-for ([#119](https://github.com/paradigmxyz/solar/issues/119))
- AST validate that a contract does not have a function with contract name ([#117](https://github.com/paradigmxyz/solar/issues/117))
- Validate num. variants in enum declaration ([#120](https://github.com/paradigmxyz/solar/issues/120))
- Better error for struct without any fields ([#121](https://github.com/paradigmxyz/solar/issues/121))
- AST validate unchecked nested blocks ([#116](https://github.com/paradigmxyz/solar/issues/116))
- AST validate check statement only in while/for loops ([#111](https://github.com/paradigmxyz/solar/issues/111))
### Refactor
- Split Ty printers ([#144](https://github.com/paradigmxyz/solar/issues/144))
- Re-export ast::* internal module ([#141](https://github.com/paradigmxyz/solar/issues/141))
### Testing
- Add some more tests ([#122](https://github.com/paradigmxyz/solar/issues/122))
## [0.1.0](https://github.com/paradigmxyz/solar/releases/tag/v0.1.0)
Initial release.
<!-- generated by git-cliff -->