Gas giant
The smallest known extrasolar planet that is likely a "gas planet" is Kepler-138d, which has the same mass as Earth but is 60% larger and therefore has a density that indicates a thick gas envelope.
Kepler-186f
The nearest-to-Earth-size planet in a habitable zone previously known was Kepler-62f with 1.4 Earth radii. Kepler-186f orbits an M-dwarf star, while Kepler-62f orbits a K-type star. A study of atmospheric evolution in Earth-size planets in habitable zones of G-Stars (a class containing the Sun, but not Kepler-186) suggested that 0.8–1.15 R is the size range for planets small enough to lose their initial accreted hydrogen envelope but large enough to retain an outgassed secondary atmosphere such as Earth's.