Skip to content

Commit

Permalink
v74
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Mar 26, 2022
1 parent bd9c4dd commit b254d7d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Change Log

## v74

- Support `?no-require` flag, with this option you can ignore the `require(...)` call in ESM packages. To support logic like below:
```ts
// index.mjs

let depMod;
try {
depMod = await import("/path")
} finally {
// `?no-require` will skip next line when resolving
depMod = require("/path")
}
```

## v73

- Fix types dependency path (close [#287](https://github.com/esm-dev/esm.sh/issues/287))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ import unescape from "https://esm.sh/lodash/unescape?no-check"
Since we update esm.sh server frequently, sometime we may break packages that work fine previously by mistake, the server will rebuild all modules when the patch pushed. To avoid this, you can **pin** the build version by the `?pin=BUILD_VERSON` query. This will give you an **immutable** cached module.

```javascript
import React from "https://esm.sh/[email protected]?pin=v73"
import React from "https://esm.sh/[email protected]?pin=v74"
```

## Global CDN
Expand Down
2 changes: 1 addition & 1 deletion server/consts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package server

// ems.sh version
const VERSION = 73
const VERSION = 74

const (
pkgCacheTimeout = 10 * 60 // 10 minutes
Expand Down

0 comments on commit b254d7d

Please sign in to comment.