Skip to content

Releases: esm-dev/esm.sh

v74

26 Mar 09:49
@ije ije
Compare
Choose a tag to compare
v74
  • Support ?no-require flag, with this option you can ignore the require(...) call in ESM packages. To support logic like below:
    // index.mjs
    
    let depMod;
    try {
      depMod = await import("/path")
    } finally {
      // `?no-require` will skip next line when resolving
      depMod = require("/path")
    }

v73

26 Mar 09:48
@ije ije
Compare
Choose a tag to compare
v73
  • Fix types dependency path (close #287)

v72

22 Mar 01:19
@ije ije
Compare
Choose a tag to compare
v72
  • Support jsx-runtime with query: https://esm.sh/react?pin=v72/jsx-runtime -> https://esm.sh/react/jsx-runtime?pin=v72
  • Support pure types package (close #284)

v71

20 Mar 05:25
@ije ije
Compare
Choose a tag to compare
v71
  • Fix version resolving of dts transformer (close #274)

v70

18 Mar 17:01
@ije ije
Compare
Choose a tag to compare
v70
  • Return bare code when target and pin provided to reduce requests
    // https://esm.sh/[email protected]
    export * from "https://cdn.esm.sh/v69/[email protected]/es2021/react.js";
    // https://esm.sh/[email protected]?target=es2020&pin=v70
    {content just from https://cdn.esm.sh/v69/[email protected]/es2021/react.js}
  • Rollback parseCJSModuleExports function to v68 (close #277, #279)
  • Fix exports resolving in package.json (close #278, #280)
  • Upgrade deno std/node to 0.130.0

v69

14 Mar 04:59
@ije ije
Compare
Choose a tag to compare
v69

v68

09 Mar 09:07
@ije ije
Compare
Choose a tag to compare
v68
  • Fix bundle mode (close #271)
  • Support jsnext:main in package.json (close #272)
  • Improve cjs-esm-exports to support UMD format
    // exports: ['foo']
    const { exports } = parse('index.cjs', `
      (function (global, factory) {
        typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
        typeof define === 'function' && define.amd ? define(['exports'], factory) :
        (factory((global.MMDParser = global.MMDParser || {})));
      }(this, function (exports) {
        exports.foo = "bar";
      }))
    `);
  • Upgrade deno node polyfill to 0.128.0

v67

07 Mar 15:29
@ije ije
Compare
Choose a tag to compare
v67
  • Force react/jsx-dev-runtime and react-refresh into dev mode
  • Replace typeof window !== undefined to typeof document !== undefined for deno target
  • Replace object-assign with Object.assign
  • Upgrade esbuild to 0.14.25

v66

07 Feb 14:23
@ije ije
Compare
Choose a tag to compare
v66
  • Improve exports resloving of package.json (close #179)

v65

05 Feb 19:18
@ije ije
Compare
Choose a tag to compare
v65
  • Feature: Support ?path query to specify the submodule, this is friendly for import maps with options (close #260)
    // import-map.json
    {
      imports: {
        "react-dom/": "https://esm.sh/react-dom?target=es2015&path=/"
      }
    }
     // equals to https://esm.sh/react-dom/server?target=es2015
     import { renderToString } from "react-dom/server"
  • Upgrade deno.land/std/node polyfill to 0.125.0
  • Upgrade esbuild to v0.14.18
  • bugfixs for #251, #256, #261, #262