Skip to content

Commit

Permalink
v132
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Sep 4, 2023
1 parent 6855ed9 commit 6774bc7
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#######################################
FROM golang:1.20-alpine AS build-stage

ENV ESM_SH_VERSION v131
ENV ESM_SH_VERSION v132
ENV ESM_SH_GIT_URL https://github.com/esm-dev/esm.sh

RUN apk update && apk add --no-cache git
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-push-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
context: ./.github/docker
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/esm-dev/esm.sh:latest,ghcr.io/esm-dev/esm.sh:v131
tags: ghcr.io/esm-dev/esm.sh:latest,ghcr.io/esm-dev/esm.sh:v132
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v132

- Resolve node internal modules when `?external=*` set (close #714)
- Fix builds with `bigint` and `top-level-await` for all targets (close #711)
- Fix `node:process` ployfill module mssing the `hrtime` method
- Fix docker image missing `git` command
- esm-worker: add `varyUA` option for polyfill modules

## v131

- Add cache layer for the `/build` API
Expand Down
4 changes: 2 additions & 2 deletions HOSTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ esm.sh provides an official docker image for deployment. You can pull the contai

```bash
docker pull ghcr.io/esm-dev/esm.sh # latest version
docker pull ghcr.io/esm-dev/esm.sh:v131 # specific version
docker pull ghcr.io/esm-dev/esm.sh:v132 # specific version
docker pull ghcr.io/esm-dev/esm.sh:dev # latest development version
```

Expand Down Expand Up @@ -112,5 +112,5 @@ More details check [esm-worker](./packages/esm-worker/README.md).
We also provide a server for [Deno](https://deno.land) which is powered by the [esm-worker](./packages/esm-worker/README.md).

```bash
deno run -A https://esm.sh/v131/server --port=8080
deno run -A https://esm.sh/v132/server --port=8080
```
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ package version.
```json
{
"imports": {
"react-dom": "https://esm.sh/[email protected]?pin=v131&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v131&dev/"
"react-dom": "https://esm.sh/[email protected]?pin=v132&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v132&dev/"
}
}
```
Expand Down Expand Up @@ -424,9 +424,9 @@ 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.

```js
import React from "https://esm.sh/react-dom?pin=v131";
import React from "https://esm.sh/react-dom?pin=v132";
// or use version prefix
import React from "https://esm.sh/v131/react-dom";
import React from "https://esm.sh/v132/react-dom";
```

By using the `?pin` query in the import statement, you can rest assured that the
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ all requests of esm.sh at the edge(earth).
## Installation

```bash
npm install esm-worker@^0.131.0
npm install esm-worker@^0.132.0
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "esm-worker",
"description": "A Cloudflare worker handles all requests of esm.sh at the edge(earth).",
"version": "0.131.1",
"version": "0.132.1",
"type": "module",
"module": "dist/index.js",
"types": "types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/esm-worker/src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// consts defined in `server/consts.go` generated by `build.mjs`
// do not edit manually.
export const VERSION = 131;
export const VERSION = 132;
export const STABLE_VERSION = 128;
export const stableBuild = new Set(["preact","react","solid-js","svelte","vue","@vue/reactivity","@vue/runtime-core","@vue/runtime-dom","@vue/shared"]);
export const assetsExts = new Set(["wasm","css","less","sass","scss","stylus","styl","json","jsonc","csv","xml","plist","tmLanguage","tmTheme","yml","yaml","pdf","txt","glsl","frag","vert","md","mdx","markdown","html","htm","vue","svelte","svg","png","jpg","jpeg","webp","gif","ico","eot","ttf","otf","woff","woff2","m4a","mp3","m3a","ogg","oga","wav","weba","mp4","m4v","ogv","webm","zip","gz","tar","tgz"]);
export const cssPackages = {"@unocss/reset":"tailwind.css","inter-ui":"inter.css","normalize.css":"normalize.css","modern-normalize":"modern-normalize.css","reset-css":"reset.css"};
export const fixedPkgVersions = {"@types/react@17":"17.0.64","@types/react@18":"18.2.20","isomorphic-ws@4":"5.0.0","[email protected]":"1.22.2"};
export const fixedPkgVersions = {"@types/react@17":"17.0.65","@types/react@18":"18.2.21","isomorphic-ws@4":"5.0.0","[email protected]":"1.22.2"};
2 changes: 1 addition & 1 deletion packages/esm.sh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
},
"dependencies": {
"esm-worker": "^0.131.0"
"esm-worker": "^0.132.0"
},
"devDependencies": {
"esbuild": "0.19.2"
Expand Down
8 changes: 4 additions & 4 deletions packages/esm.sh/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import type {
Context,
HttpMetadata,
WorkerStorage,
} from "https://esm.sh/esm-worker@0.131.0";
import { withESMWorker } from "https://esm.sh/esm-worker@0.131.0";
} from "https://esm.sh/esm-worker@0.132.0";
import { withESMWorker } from "https://esm.sh/esm-worker@0.132.0";

type Handler = (
request: Request,
Expand Down
6 changes: 3 additions & 3 deletions 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 = 131
VERSION = 132
// esm.sh stable build version, used for UI libraries like react, to make sure the runtime is single copy
// change this carefully!
STABLE_VERSION = 128
Expand All @@ -17,8 +17,8 @@ const (

// fix some npm package versions
var fixedPkgVersions = map[string]string{
"@types/react@17": "17.0.64",
"@types/react@18": "18.2.20",
"@types/react@17": "17.0.65",
"@types/react@18": "18.2.21",
"isomorphic-ws@4": "5.0.0",
"[email protected]": "1.22.2", // 1.22.3+ will read package.json from disk
}
Expand Down

0 comments on commit 6774bc7

Please sign in to comment.