Skip to content

Releases: lukeed/hexoid

v2.0.0

12 Oct 09:01
Compare
Choose a tag to compare

Breaking

  • Replace default export with named hexoid export: cdbae71
    This is to avoid CommonJS vs ESM usage -- it's now standardized, which also makes TypeScript happy!

    // Before:
    import hexoid from 'hexoid';
    const hexoid = require('hexoid');
    
    // After
    import { hexoid } from 'hexoid';
    const { hexoid } = require('hexoid');
  • Add "exports" map for native ESM support (#1): dfdfd16
    Also supports TypeScript's node16/nodenext module resolution
    Maintains CommonJS support (with fixed TS definitions)
    Thank you @line0

  • Remove UMD distribution for unpkg.com: 43f5e28
    Previously https://unpkg.com/hexoid provided a UMD module. This has been removed.
    Now unpkg.com will serve the CommonJS module by default. Use https://unpkg.com/hexoid?module for ESM.

Chores


Full Changelog: v1.0.0...v2.0.0