From b7dee4bfdefc418e5fe22e84550154dbb4ed4680 Mon Sep 17 00:00:00 2001 From: X Date: Fri, 21 Apr 2023 22:13:57 +0800 Subject: [PATCH] v117 --- CHANGELOG.md | 8 ++++++++ Dockerfile | 2 +- README.md | 10 +++++----- server/consts.go | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 276cf5f3..c355b35e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## v117 + +- Fix Buffer polyfill for deno (close #574) +- Fix dts transformer with submodule (close #599) +- Fix importing `.json` as a module (close #601) +- Fix `.wasm` module importing (close #602) +- Fix path `/v100/PKG/TARGET/index.js` + ## v116 - Support modules/assets from Github repo (close #588) diff --git a/Dockerfile b/Dockerfile index 18704c13..b0a2bc48 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 v116 +RUN git checkout v117 USER esm WORKDIR /esm diff --git a/README.md b/README.md index e92ed7b1..41f7abab 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ import "https://esm.sh/react@18.2.0/package.json" assert { type: "json" } ## Import from GitHub Repo -You can also import modules/assets from a github repo: `/gh/OWNER/REPO/PATH`. For example: +You can also import modules/assets from a github repo: `/gh/OWNER/REPO[@TAG]/PATH`. For example: ```javascript import tslib from "https://esm.sh/gh/microsoft/tslib" @@ -86,8 +86,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=v116&dev", - "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v116&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=v117&dev/", } } ``` @@ -271,9 +271,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=v116" +import React from "https://esm.sh/react-dom?pin=v117" // or use version prefix -import React from "https://esm.sh/v116/react-dom" +import React from "https://esm.sh/v117/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 f9877797..29d83653 100644 --- a/server/consts.go +++ b/server/consts.go @@ -2,7 +2,7 @@ package server const ( // esm.sh build version - VERSION = 116 + VERSION = 117 // 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