Li-ion has a shelf life of perhaps 10 years, but a limited number of charge cycles after which the capacity starts to reduce quickly. Very little progress has been made on extending the number of charge cycles much beyond 500 as the focus has been on increasing energy density and to secondary extent, charge time.Battery life is typically about 10 yrs, give or take. And now the they have been going into other uses, like power banks after being refurbed.
ETA: I have about 200,000 li-ion batteries scattered around the world, that have, in the main been pretty well looked after, and I have maintained a spread-sheet of replacements etc. Excluding those that have been charged and/or stored in hot conditions (>35C), and those which have exceeded 500 charge cycles (which is not many, actually) I would say that the mean life is around 7 years rather than 10 years.