diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ac8b9a95..cb198e300 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## v70 + +- Return `bare` code when `target` and `pin` provided to reduce requests + ```js + // https://esm.sh/react@17.0.2 + export * from "https://cdn.esm.sh/v69/react@17.0.2/es2021/react.js"; + ``` + ```js + // https://esm.sh/react@17.0.2?target=es2020&pin=v70 + {content just from https://cdn.esm.sh/v69/react@17.0.2/es2021/react.js} + ``` +- Rollback `parseCJSModuleExports` function to v68 (close [#277](https://github.com/esm-dev/esm.sh/issues/277), [#279](https://github.com/esm-dev/esm.sh/issues/279)) +- Fix `exports` resolving in package.json (close [#278](https://github.com/esm-dev/esm.sh/issues/278), [#280](https://github.com/esm-dev/esm.sh/issues/280)) +- Upgrade deno `std/node` to **0.130.0** + ## v69 - Force the dependency version of react equals to react-dom's version diff --git a/README.md b/README.md index 8fe334135..3dcdca4b9 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=v69" +import React from "https://esm.sh/react@17.0.2?pin=v70" ``` ## Global CDN diff --git a/server/consts.go b/server/consts.go index de21f238d..a3759c8af 100644 --- a/server/consts.go +++ b/server/consts.go @@ -1,7 +1,7 @@ package server // ems.sh version -const VERSION = 69 +const VERSION = 70 const ( pkgCacheTimeout = 10 * 60 // 10 minutes