Skip to content

Commit

Permalink
v97
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Nov 7, 2022
1 parent 4287760 commit 9535255
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 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

## v97

- Add `https://esm.sh/build-target` endpoint to return the build `target` of current browser/runtime by checking `User-Agent` header.
- Support `--npm-token` option to support private packages ([#435](https://github.com/ije/esm.sh/issues/435)).
- Update `polyfills/node_process`: replace timeout with `queueMicrotask` ([#444](https://github.com/ije/esm.sh/issues/444)).
- Upgrade `deno/std` to **0.162.0**.

## v96

- Update the fake node `fs` ployfill for browsers(add `createReadStream` and `createWriteStream` methods)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ import unescape from "https://esm.sh/lodash/unescape?no-dts"
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=v96"
import React from "https://esm.sh/[email protected]?pin=v97"
```

## Global CDN
Expand Down
12 changes: 6 additions & 6 deletions server/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ package server

const (
// esm.sh build version
VERSION = 96
VERSION = 97
nodejsMinVersion = 16
denoStdVersion = "0.153.0"
nodejsLatestLTS = "16.17.1"
nodeTypesVersion = "16.11.62"
denoStdVersion = "0.162.0"
nodejsLatestLTS = "16.18.1"
nodeTypesVersion = "16.18.3"
)

// fix some package versions
var fixedPkgVersions = map[string]string{
"@types/react@17": "17.0.50",
"@types/react@18": "18.0.21",
"@types/react@17": "17.0.52",
"@types/react@18": "18.0.25",
}

// stable build for UI libraries like react, to make sure the runtime is single copy
Expand Down

0 comments on commit 9535255

Please sign in to comment.