Skip to content

Commit

Permalink
v113
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Mar 25, 2023
1 parent bdaecf3 commit 03851b0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## v113

- `express` is working in Deno
- Fix lost non-mjs-extension module caused by v112 (close [#559](https://github.com/esm-dev/esm.sh/issues/559))
- Fix exports of `netmask` and `xml2js` ([#561](https://github.com/esm-dev/esm.sh/pull/561) @jcc10)
- Fix `default` import of deps for cjs (close [#565](https://github.com/esm-dev/esm.sh/issues/565), [#566](https://github.com/esm-dev/esm.sh/issues/566))

## v112

- Use `.mjs` extension for the package main module to resolve subpath conflicts
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=v112&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v112&dev/",
"react-dom": "https://esm.sh/[email protected]?pin=v113&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v113&dev/",
}
}
```
Expand Down Expand Up @@ -242,9 +242,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=v112"
import React from "https://esm.sh/react-dom?pin=v113"
// or use version prefix
import React from "https://esm.sh/v112/react-dom"
import React from "https://esm.sh/v113/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
9 changes: 5 additions & 4 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 = 112
VERSION = 113
// 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 Expand Up @@ -31,9 +31,10 @@ 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{
"react": true,
"preact": true,
"vue": true,
"react": true,
"preact": true,
"solid-js": true,
"vue": true,
}

// reserved packages, for `deno` target use `npm:package` to import (skip build)
Expand Down

0 comments on commit 03851b0

Please sign in to comment.