Skip to content

Commit

Permalink
v70
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Mar 18, 2022
1 parent d7519a8 commit f0ae3f6
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

## v70

- Return `bare` code when `target` and `pin` provided to reduce requests
```js
// https://esm.sh/[email protected]
export * from "https://cdn.esm.sh/v69/[email protected]/es2021/react.js";
```
```js
// https://esm.sh/[email protected]?target=es2020&pin=v70
{content just from https://cdn.esm.sh/v69/[email protected]/es2021/react.js}
```
- Rollback `parseCJSModuleExports` function to v68 (close [#277](https://github.com/esm-dev/esm.sh/issues/277), [#279](https://github.com/esm-dev/esm.sh/issues/279))
- Fix `exports` resolving in package.json (close [#278](https://github.com/esm-dev/esm.sh/issues/278), [#280](https://github.com/esm-dev/esm.sh/issues/280))
- Upgrade deno `std/node` to **0.130.0**

## v69

- Force the dependency version of react equals to react-dom's version
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=v69"
import React from "https://esm.sh/[email protected]?pin=v70"
```

## 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 = 69
const VERSION = 70

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

0 comments on commit f0ae3f6

Please sign in to comment.