From fa4a08c4158fad133a3973e8aa40af12ace0e14e Mon Sep 17 00:00:00 2001 From: X Date: Thu, 23 Mar 2023 03:27:10 +0800 Subject: [PATCH] v112 --- CHANGELOG.md | 16 ++++++++++++++++ README.md | 8 ++++---- server/consts.go | 4 ++-- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89f016749..298510f55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## v112 + +- Use `.mjs` extension for the package main module to resolve subpath conflicts +- Ignore `?exports` query when importing stable modules +- Fix npm naming regexp (close [#541](https://github.com/esm-dev/esm.sh/issues/541)) +- Fix node buffer import for denonext target (closed [#556](https://github.com/esm-dev/esm.sh/issues/556)) +- Fix tree shaking (close [#521](https://github.com/esm-dev/esm.sh/issues/521)) +- Fix package nested conditions export ([#546](https://github.com/esm-dev/esm.sh/pull/546) by @Justinidlerz) +- Fix esm imports in cjs (close [#557](https://github.com/esm-dev/esm.sh/issues/557)) +- Improve server performance ([#543](https://github.com/esm-dev/esm.sh/pull/543) by @Justinidlerz) +- Update requireModeAllowList (close [#540](https://github.com/esm-dev/esm.sh/issues/540), [#548](https://github.com/esm-dev/esm.sh/issues/548)) + +For Deno: +- Inject `XHR` polyfill for `axios`, `cross-fetch`, `whatwg-fetch` automatically +- CLI: Use user-specified indent size ([#551](https://github.com/esm-dev/esm.sh/pull/551) by @npg418) + ## v111 - Print package `deprecated` message diff --git a/README.md b/README.md index c105732ea..fc4bc273d 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,8 @@ Import maps supports [**trailing slash**](https://github.com/WICG/import-maps#pa ```json { "imports": { - "react-dom": "https://esm.sh/react-dom@18.2.0?pin=v111&dev", - "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v111&dev/", + "react-dom": "https://esm.sh/react-dom@18.2.0?pin=v112&dev", + "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v112&dev/", } } ``` @@ -242,9 +242,9 @@ To ensure stable and consistent behavior, you may want to pin the build version The `?pin` query allows you to specify a specific build version of a module, which is an **immutable** cached version stored on the esm.sh CDN. ```javascript -import React from "https://esm.sh/react-dom?pin=v111" +import React from "https://esm.sh/react-dom?pin=v112" // or use version prefix -import React from "https://esm.sh/v111/react-dom" +import React from "https://esm.sh/v112/react-dom" ``` By using the `?pin` query in the import statement, you can rest assured that the version of the module you're using will not change, even if updates are pushed to the esm.sh server. This helps ensure the stability and reliability of your application. diff --git a/server/consts.go b/server/consts.go index e5419c6ad..8b262e17d 100644 --- a/server/consts.go +++ b/server/consts.go @@ -2,10 +2,10 @@ package server const ( // esm.sh build version - VERSION = 111 + VERSION = 112 // esm.sh stable build version, used for UI libraries like react, to make sure the runtime is single copy // change this carefully - STABLE_VERSION = 110 + STABLE_VERSION = 112 ) const (