Skip to content

Commit

Permalink
v108
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Feb 26, 2023
1 parent 75d485f commit 8d3fd5e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Change Log

## v108

- Add `denonext` target to use [deno 1.31 node compatibility layer](https://deno.com/blog/v1.31#compatibility-layer-is-now-part-of-the-runtime)
- Redirect to css file for css packages
```
https://esm.sh/normalize.css -> https://esm.sh/normalize.css/normalize.css
```
- Fix wasm packages can't get the wasm file.
```js
import init, { transform } from "https://esm.sh/lightningcss-wasm";
// before: you need to specify the wasm file path
await init("https://esm.sh/lightningcss-wasm/lightningcss_node.wasm")
// after: you don't need to specify it
await init()
```
- Disable `bundle` mode for stable builds
- Fix alias export (close [#527](https://github.com/ije/esm.sh/issues/527))
- Update references to reqOrigin to use cdnOrigin ([#529](https://github.com/ije/esm.sh/pull/529) by [@jaredcwhite](https://github.com/jaredcwhite))

## v107

- Add `?cjs-export` query (close [#512](https://github.com/ije/esm.sh/issues/512))<br>
Expand Down
10 changes: 7 additions & 3 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=v107&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v107&dev/",
"react-dom": "https://esm.sh/[email protected]?pin=v108&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v108&dev/",
}
}
```
Expand Down Expand Up @@ -242,11 +242,15 @@ 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/[email protected]?pin=v107"
import React from "https://esm.sh/react-dom?pin=v108"
// or use version prefix
import React from "https://esm.sh/v108/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.
For UI libraries like [React](https://reactjs.org/) and [Vue](https://vuejs.org/), esm.sh uses a special build version `stable` to ensure single version of the library is used in the whole application.
## Global CDN
<img width="150" align="right" src="./server/embed/assets/cf.svg">
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 = 107
VERSION = 108
nodejsMinVersion = 16
denoStdVersion = "0.177.0"
nodejsLatestLTS = "16.19.1"
Expand Down

0 comments on commit 8d3fd5e

Please sign in to comment.