# Backwards compatibility (2.4.0 → 3.0.0) Audit date: 2026-08-06. Reference: [hashmap 3.0.0](https://github.com/flesler/hashmap/releases/tag/3.0.0). ## Import patterns | Pattern | 2.4.0 | 3.0.0 | Notes | |---|---|---|---| | `const HashMap = require('hashmap')` | ✅ | ✅ | CJS patch makes export the constructor | | `require('hashmap').HashMap` | ✅ | ✅ | Same function as default export | | `import HashMap from 'hashmap'` | ⚠️ | ✅ | ESM default; 2.4 was CJS-only publish | | `import { HashMap } from 'hashmap'` | ❌ | ✅ | Named export added in 3.0 | | `import * as NS from 'hashmap'; new NS.default()` | — | ✅ | Bare namespace is not constructible | | `