Pinia v4.1.0 introduces the `getStores()` feature for improved store management and adds warnings for disposing of replaced stores. Bug fixes include enhancements for shallow refs, HMR state preservation, and improved Nuxt integration for store directories.