Commit a7e74c4
committed
fix(ai): drop the getImagenModel wrapper, removed in firebase 12.18
Firebase shut the Imagen models down in August 2026 and @firebase/ai
2.15.0 (firebase 12.18.0) removed the API. Our ai entry point
named-imports getImagenModel, so any install resolving firebase
12.18.0, which ^12.4.0 does on every fresh install, fails to build.
The generator now excludes getImagenModel from the wrapped named
imports. Installs whose firebase still includes the symbol (12.17
and older) keep compiling, because the entry point re-exports
everything from firebase/ai with export *. That is compile-time
grace only: the models are shut down, so the calls fail at the
service on any firebase version. The package keeps building against
firebase 12.4.0, the lowest version the published ^12.4.0 range
allows, so every symbol the generated file imports by name exists in
every firebase version a user's install can resolve: a sweep of every
wrapped @firebase package between the 12.4.0- and 12.18.0-mapped
versions found getImagenModel to be the only removed export.
The ng update migration now warns on getImagenModel imports with
guidance to move image generation to the Gemini image models via
getGenerativeModel, with a spec. The upgrade guide documents the
removal and its migration section is restructured for readability.1 parent fb6796b commit a7e74c4
6 files changed
Lines changed: 46 additions & 5 deletions
File tree
- docs
- src
- ai
- schematics/update/v21
- vertexai-to-ai
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
39 | 57 | | |
40 | 58 | | |
41 | 59 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
749 | 767 | | |
750 | 768 | | |
751 | 769 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
0 commit comments