diff --git a/CHANGELOG.md b/CHANGELOG.md index c355b35e..61e06a56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## v118 + +- feat: Publish system (#607) +- **esm-cjs-lexer**: Support `__export(require("..."))` pattern (close #611) +- Add `Auth` middleware +- Upgrade `stableBuild` to v118 +- Remove **lit** from `stableBuild` +- Fix submodule types (close #606) +- Fix arch for darwin arm64 (#617 by @JLugagne) + ## v117 - Fix Buffer polyfill for deno (close #574) diff --git a/CLI.ts b/CLI.ts index 362de829..d184f0ac 100644 --- a/CLI.ts +++ b/CLI.ts @@ -20,8 +20,10 @@ const VERSION = /^\/v\d+$/.test(importUrl.pathname) // stable build for UI libraries like react, to make sure the runtime is single copy const stableBuild = new Set([ - "react", "preact", + "react", + "solid-js", + "svelte", "vue", ]); diff --git a/Dockerfile b/Dockerfile index b0a2bc48..7cd1424d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ RUN apt-get update -y && apt-get install -y xz-utils RUN useradd -u 1000 -m esm RUN mkdir /esm && chown esm:esm /esm RUN git clone https://github.com/esm-dev/esm.sh /esm/esm.sh -RUN git checkout v117 +RUN git checkout v118 USER esm WORKDIR /esm diff --git a/README.md b/README.md index 7252ea1a..9572045c 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,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=v117&dev", - "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v117&dev/", + "react-dom": "https://esm.sh/react-dom@18.2.0?pin=v118&dev", + "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v118&dev/", } } ``` @@ -272,9 +272,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=v117" +import React from "https://esm.sh/react-dom?pin=v118" // or use version prefix -import React from "https://esm.sh/v117/react-dom" +import React from "https://esm.sh/v118/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 029f1d9f..4a51a25f 100644 --- a/server/consts.go +++ b/server/consts.go @@ -2,10 +2,10 @@ package server const ( // esm.sh build version - VERSION = 117 + VERSION = 118 // 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 + STABLE_VERSION = 118 ) const ( @@ -32,7 +32,6 @@ var cssPackages = map[string]string{ // stable build for UI libraries like react, to make sure the runtime is single copy var stableBuild = map[string]bool{ - "lit": true, "preact": true, "react": true, "solid-js": true,