From 6ce0b18d7cc0cd1f467b177bf16fcb56427fd962 Mon Sep 17 00:00:00 2001 From: X Date: Wed, 12 Apr 2023 16:50:46 +0800 Subject: [PATCH] v115 --- CHANGELOG.md | 8 ++++++++ README.md | 8 ++++---- server/consts.go | 6 +++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8bd7551..cf2ab7c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## v115 + +- Return JavaScript modules for `?module` query with `wasm` files +- Fix types transformer (close #581) +- Fix incorrect named import of cjs modules (close #583) +- Fix sumodule path resolving (close #584) +- Upgrade `@types/node` to 18 + ## v114 - Add `?conditions` query as esbuild option diff --git a/README.md b/README.md index 9c95bdc9..0b949253 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=v114&dev", - "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v114&dev/", + "react-dom": "https://esm.sh/react-dom@18.2.0?pin=v115&dev", + "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v115&dev/", } } ``` @@ -246,9 +246,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=v114" +import React from "https://esm.sh/react-dom?pin=v115" // or use version prefix -import React from "https://esm.sh/v114/react-dom" +import React from "https://esm.sh/v115/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 4206958c..cc0295f8 100644 --- a/server/consts.go +++ b/server/consts.go @@ -2,7 +2,7 @@ package server const ( // esm.sh build version - VERSION = 114 + VERSION = 115 // esm.sh stable build version, used for UI libraries like react, to make sure the runtime is single copy // change this carefully STABLE_VERSION = 112 @@ -17,8 +17,8 @@ const ( // fix some package versions var fixedPkgVersions = map[string]string{ - "@types/react@17": "17.0.56", - "@types/react@18": "18.0.33", + "@types/react@17": "17.0.57", + "@types/react@18": "18.0.34", "isomorphic-ws@4": "5.0.0", }