From a27e1628a822ac8f0d3a44246df37217bf948719 Mon Sep 17 00:00:00 2001 From: X Date: Wed, 9 Mar 2022 17:06:27 +0800 Subject: [PATCH] v68 --- CHANGELOG.md | 19 +++++++++++++++++++ README.md | 2 +- server/consts.go | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b712f0848..ef4a06a0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## v68 + +- Fix `bundle` mode (close [#271](https://github.com/esm-dev/esm.sh/issues/271)) +- Support `jsnext:main` in package.json (close [#272](https://github.com/esm-dev/esm.sh/issues/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 - Force `react/jsx-dev-runtime` and `react-refresh` into **dev** mode diff --git a/README.md b/README.md index 468c7f9b6..3e80f0add 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ import unescape from "https://esm.sh/lodash/unescape?no-check" Since we update esm.sh server frequently, sometime we may break packages that work fine previously by mistake, the server will rebuild all modules when the patch pushed. To avoid this, you can **pin** the build version by the `?pin=BUILD_VERSON` query. This will give you an **immutable** cached module. ```javascript -import React from "https://esm.sh/react@17.0.2?pin=v67" +import React from "https://esm.sh/react@17.0.2?pin=v68" ``` ## Global CDN diff --git a/server/consts.go b/server/consts.go index 086c6faaa..acd0a8931 100644 --- a/server/consts.go +++ b/server/consts.go @@ -1,7 +1,7 @@ package server // ems.sh version -const VERSION = 67 +const VERSION = 68 const ( pkgCacheTimeout = 10 * 60 // 10 minutes