All notable changes to the "pubspec-assist" extension will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- fix: fix null reference exception when sorting dependencies with unbounded constraints using the legacy sorting system (fixes #97, #95, #89, #88, #76, #74, #73, #63)
- fix: don't display "null" string for dependencies with unbounded constraints
- feat: properly handle errors when user's YAML file is not valid (closes #135, #134, #133, #131, #130, #129, #128, #127, #126, #125, #124, #123, #122, #121, #120, #116, #113, #112, #110, #108, #105, #104, #103, #102, #101, #100, #92, #90, #82, #79, #78, #75, #72, #67, #61)
- Added new sorting algorithm that satisfies the "sort_pub_dependencies" Dart lint rule.
- Added option to use legacy sorting algorithm and set to disabled by default.
- Various dependabot vulnerability fixes (again).
- Updated README with new demo video.
- Remove old roadmap item.
- Functionality to add multiple packages in once query.
- Using the
autoAddPackage
option now automatically picks the first package that has the exact same name as the search query.
- Turns out that recent changes have broken the comments functionality in most places. Whoops. The README now reflects this fact.
- Added command that sorts all
dependencies
anddev_dependencies
. - Added option to sorts all
dependencies
anddev_dependencies
automatically when running an import (turned on by default). (Thanks @JCKodel for feature request #19!) - Removed old text parser.
- Fixed several bugs where the extension would crash when adding dependencies to an empty pubspec or empty
(dev_)dependencies
. (Thank you to @cverdes for #56, @JCKodel for #54, @simphotonics for #49 and @ernestsheldon for #47!)
- BREAKING: Replaced old "text parser" with a proper implementation that uses the
yaml
package. - Added option for using the legacy text parser.
- Added option for disabling the caret (
^
) for dependencies. - Filtered
dart:...
packages from search results. - Improved and updated README.md
- Upgrade dependency versions for security reasons (again again).
- Changed status bar message icon to spinning sync icon.
- Removed console logs.
- Fixed bug where the opened file would be formatted even if the
pubspec.yaml
isn't opened.
- Improved and updated README.md
First official release! 🎉
- Add dependencies to your pubspec without having the file open (thank you to @mychaelgo!). (Merged from PR: #17)
- Ability to add
dev_dependencies
.
- Changed "Add dependency" to "Add/update dependency" to better represent actual behavior.
- Improved and enforced formatting rules.
- Upgrade dependency versions for security reasons (again).
- Preserve newline characters at the end of the file if present before formatting. (Mentioned in issues: #8)
- Refactor some methods for simplicity.
- Catch errors related to http fetching and improve feedback to user. (Mentioned in issues: #3, #4, #5 and #6)
- Fix bug where new imported packages would replace existing similarly named packages. (Mentioned in issues: #2)
- Updated dependencies.
- Improve bug reporting and error handling.
- Update existing dependency entry with latest version if it's already there instead of adding a second entry.
- Change default search threshold to 0.5 (from 1.0).
- Change extension entry point to
pubspec-assist.openInput
(fromextension.openInput
). - New changelog formatting based on Keep a Changelog.
- Add boolean setting for automatically adding a package on a very close match to search query (
pubspec-assist.autoAddPackage
).
- Initial beta release.