Skip to content

Commit

Permalink
v112
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Mar 22, 2023
1 parent 4a992fc commit fa4a08c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Change Log

## v112

- Use `.mjs` extension for the package main module to resolve subpath conflicts
- Ignore `?exports` query when importing stable modules
- Fix npm naming regexp (close [#541](https://github.com/esm-dev/esm.sh/issues/541))
- Fix node buffer import for denonext target (closed [#556](https://github.com/esm-dev/esm.sh/issues/556))
- Fix tree shaking (close [#521](https://github.com/esm-dev/esm.sh/issues/521))
- Fix package nested conditions export ([#546](https://github.com/esm-dev/esm.sh/pull/546) by @Justinidlerz)
- Fix esm imports in cjs (close [#557](https://github.com/esm-dev/esm.sh/issues/557))
- Improve server performance ([#543](https://github.com/esm-dev/esm.sh/pull/543) by @Justinidlerz)
- Update requireModeAllowList (close [#540](https://github.com/esm-dev/esm.sh/issues/540), [#548](https://github.com/esm-dev/esm.sh/issues/548))

For Deno:
- Inject `XHR` polyfill for `axios`, `cross-fetch`, `whatwg-fetch` automatically
- CLI: Use user-specified indent size ([#551](https://github.com/esm-dev/esm.sh/pull/551) by @npg418)

## v111

- Print package `deprecated` message
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=v111&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v111&dev/",
"react-dom": "https://esm.sh/[email protected]?pin=v112&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v112&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=v111"
import React from "https://esm.sh/react-dom?pin=v112"
// or use version prefix
import React from "https://esm.sh/v111/react-dom"
import React from "https://esm.sh/v112/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
4 changes: 2 additions & 2 deletions server/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package server

const (
// esm.sh build version
VERSION = 111
VERSION = 112
// esm.sh stable build version, used for UI libraries like react, to make sure the runtime is single copy
// change this carefully
STABLE_VERSION = 110
STABLE_VERSION = 112
)

const (
Expand Down

0 comments on commit fa4a08c

Please sign in to comment.