Skip to content

Commit

Permalink
v115
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Apr 12, 2023
1 parent 1a63efd commit 6ce0b18
Show file tree
Hide file tree
Showing 3 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

## 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
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Import maps supports [**trailing slash**](https://github.com/WICG/import-maps#pa
```json
{
"imports": {
"react-dom": "https://esm.sh/[email protected]?pin=v114&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v114&dev/",
"react-dom": "https://esm.sh/[email protected]?pin=v115&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v115&dev/",
}
}
```
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions 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 = 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
Expand All @@ -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",
}

Expand Down

0 comments on commit 6ce0b18

Please sign in to comment.