Have product id's changed? Is there a way to access previous id versions?

Has each product’s id changed in the last couple of years/with the latest api version?

I had built a cms that used a product’s id, but now I check back and each id seems to have changed from a normal uid, e.g. “Z2lkOi8vc2hvcGlmeS9Qcm9kxxxxxxxxxxxxxxxxxxxxxxx1234=”, to something along the lines of “gid://shopify/Product/7641xxx0123456”.

My understanding of id’s within programming is that they’re unchanging. Why has Shopify decided to change them? Might they change again?

Is there a way to acess the old ids? My app has broken now and there’s no quick fix since I used a CMS that referred to the previous ids.

Thanks

In answer to my own question, it’s possible to use the npm package “shopify-gid” to encode/decode between the new numeric gid values and the previous raw uid values.