Skip to content

Commit

Permalink
v117
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Apr 21, 2023
1 parent 3c509c7 commit b7dee4b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import "https://esm.sh/[email protected]/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"
Expand Down Expand Up @@ -86,8 +86,8 @@ Import maps supports [**trailing slash**](https://github.com/WICG/import-maps#pa
```json
{
"imports": {
"react-dom": "https://esm.sh/[email protected]?pin=v116&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v116&dev/",
"react-dom": "https://esm.sh/[email protected]?pin=v117&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v117&dev/",
}
}
```
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion server/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7dee4b

Please sign in to comment.