diff --git a/CHANGELOG.md b/CHANGELOG.md index 871def3eb..0acf379c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## v108 + +- Add `denonext` target to use [deno 1.31 node compatibility layer](https://deno.com/blog/v1.31#compatibility-layer-is-now-part-of-the-runtime) +- Redirect to css file for css packages + ``` + https://esm.sh/normalize.css -> https://esm.sh/normalize.css/normalize.css + ``` +- Fix wasm packages can't get the wasm file. + ```js + import init, { transform } from "https://esm.sh/lightningcss-wasm"; + // before: you need to specify the wasm file path + await init("https://esm.sh/lightningcss-wasm/lightningcss_node.wasm") + // after: you don't need to specify it + await init() + ``` +- Disable `bundle` mode for stable builds +- Fix alias export (close [#527](https://github.com/ije/esm.sh/issues/527)) +- Update references to reqOrigin to use cdnOrigin ([#529](https://github.com/ije/esm.sh/pull/529) by [@jaredcwhite](https://github.com/jaredcwhite)) + ## v107 - Add `?cjs-export` query (close [#512](https://github.com/ije/esm.sh/issues/512))
diff --git a/README.md b/README.md index 10c1e744a..a05b15dab 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=v107&dev", - "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v107&dev/", + "react-dom": "https://esm.sh/react-dom@18.2.0?pin=v108&dev", + "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v108&dev/", } } ``` @@ -242,11 +242,15 @@ 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@17.0.2?pin=v107" +import React from "https://esm.sh/react-dom?pin=v108" +// or use version prefix +import React from "https://esm.sh/v108/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. +For UI libraries like [React](https://reactjs.org/) and [Vue](https://vuejs.org/), esm.sh uses a special build version `stable` to ensure single version of the library is used in the whole application. + ## Global CDN diff --git a/server/consts.go b/server/consts.go index 3dbd80265..76944b66f 100644 --- a/server/consts.go +++ b/server/consts.go @@ -2,7 +2,7 @@ package server const ( // esm.sh build version - VERSION = 107 + VERSION = 108 nodejsMinVersion = 16 denoStdVersion = "0.177.0" nodejsLatestLTS = "16.19.1"