analyzer_buffer
A package to help writing code-generators while supporting import prefixes and default values
What this package is like to depend on
Last release 2 months ago
11 Jun 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 24 of 24 stable releases
1 version withdrawn
withdrawn after publishing
1 years old
25 releases · first in 2025
7 releases in the last 12 months
see the full history below
Release timeline
25 releases · Jul 2025 to Jun 2026Releases
latest 25-
0.3.311 Jun 2026 -
0.3.223 Apr 2026 -
0.3.103 Feb 2026 -
0.3.006 Jan 2026Release notes
Open source →- Removed deprecated
writeType #{{myPackage|MyClass}}now matches with classes defined in files such aspackage:myPackage/src/file.dart. If you don't want this, explicitly define the expected path in the code, such as#{{myPackage/src/another|MyClass}}
- Removed deprecated
-
0.2.030 Dec 2025 -
0.1.1203 Nov 2025 withdrawnRelease notes
Open source →- Fixed a bug when two imports contain classes with the same name.
- Deprecated
writeTypein favour ofDartType.toCode+write
-
0.1.1109 Sep 2025Release notes
Open source →Updated dependencies to support analyzer v8 This allows for compatibility with upgraded generators using analyzer v8 and source_gen v4 (thanks to @TekExplorer)
analyzer: '>=7.3.0 <9.0.0'source_gen: '>=3.0.0 <5.0.0'
-
0.1.1026 Aug 2025Release notes
Open source →- Fix some issue with
functionType.toCodenot includingrequired(thanks to @TekExplorer)
- Fix some issue with
-
0.1.911 Aug 2025 -
0.1.811 Aug 2025 -
0.1.711 Aug 2025 -
0.1.610 Aug 2025 -
0.1.522 Jul 2025 -
0.1.422 Jul 2025 -
0.1.321 Jul 2025 -
0.1.221 Jul 2025Release notes
Open source →- Fixed auto-import incorrectly using the same prefix for all added imports.
-
0.1.121 Jul 2025 -
0.1.021 Jul 2025Release notes
Open source →- Removed
fromLibraryin favour ofpart/part2. - Fixed various issues with prefixes
- Removed
-
0.0.709 Jul 2025 -
0.0.609 Jul 2025Release notes
Open source →fix:
buffer.writeTypeno-longer imports the same package multiple times. -
0.0.507 Jul 2025Release notes
Open source →breaking:
AnalyzerBufferconstructors now take a mandatorysourcePathparameter. It is necessary for certain edge-cases around types/defaults.
fix: Fixes an issue whereAnalyzerBuffercould not be applied totestfolders. -
0.0.404 Jul 2025Release notes
Open source →fix: correctly use prefix when an import is re-exporting an element used by generated code.
-
0.0.304 Jul 2025Release notes
Open source →fix:
buffer.writenow correctly respects import prefixes if created usingAnalyzerBuffer.fromLibrary -
0.0.204 Jul 2025Release notes
Open source →fix:
buffer.toStringnow returns''if the buffer is empty. feat: addedbuffer.isEmpty -
0.0.104 Jul 2025