Skip to content

Commit

Permalink
v135
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Nov 22, 2023
1 parent 3263c9a commit 712a0dd
Show file tree
Hide file tree
Showing 15 changed files with 196 additions and 187 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/esm-dev/esm.sh:latest,ghcr.io/esm-dev/esm.sh:v134
tags: ghcr.io/esm-dev/esm.sh:latest,ghcr.io/esm-dev/esm.sh:v135
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## v135

- Introduce https://esm.sh/run
- worker: Use `raw.esm.sh` hostname for ?raw option
- Add `?no-bundle` option
- Support `esm.sh` field in package.json
- Fix sub-module resolving (close #754, #743)
- Upgrade esbuild to **0.19.7**

## v134

- Add `transformOnly` option for build api
Expand Down
2 changes: 1 addition & 1 deletion 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 v134
ENV ESM_SH_VERSION v135
ENV ESM_SH_GIT_URL https://github.com/esm-dev/esm.sh

RUN apk update && apk add --no-cache git
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:v134 # specific version
docker pull ghcr.io/esm-dev/esm.sh:v135 # 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/v134/server --port=8080
deno run -A https://esm.sh/v135/server --port=8080
```
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ package version.
```json
{
"imports": {
"react-dom": "https://esm.sh/[email protected]?pin=v134&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v134&dev/"
"react-dom": "https://esm.sh/[email protected]?pin=v135&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v135&dev/"
}
}
```
Expand Down Expand Up @@ -493,9 +493,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=v134";
import React from "https://esm.sh/react-dom?pin=v135";
// or use version prefix
import React from "https://esm.sh/v134/react-dom";
import React from "https://esm.sh/v135/react-dom";
```
By using the `?pin` query in the import statement, you can rest assured that the
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.18

require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/evanw/esbuild v0.19.5
github.com/ije/esbuild-internal v0.19.5
github.com/evanw/esbuild v0.19.7
github.com/ije/esbuild-internal v0.19.7
github.com/ije/gox v0.6.1
github.com/ije/rex v1.10.7
github.com/mssola/useragent v1.0.0
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYr
github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs=
github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/evanw/esbuild v0.19.5 h1:9ildZqajUJzDAwNf9MyQsLh2RdDRKTq3kcyyzhE39us=
github.com/evanw/esbuild v0.19.5/go.mod h1:D2vIQZqV/vIf/VRHtViaUtViZmG7o+kKmlBfVQuRi48=
github.com/ije/esbuild-internal v0.19.5 h1:OCyR/CrLE0qdKFjmzrYh+RDBAtskQ8fTfi1Bbk1h6qk=
github.com/ije/esbuild-internal v0.19.5/go.mod h1:s7HvKZ4ZGifyzvgWpSwnJOQTr6b+bsgfNBZ8HAEwwSM=
github.com/evanw/esbuild v0.19.7 h1:bAzcG5A0ctW6VhqzkWYIY0PuZuUmvYJCualhBsXWIYU=
github.com/evanw/esbuild v0.19.7/go.mod h1:D2vIQZqV/vIf/VRHtViaUtViZmG7o+kKmlBfVQuRi48=
github.com/ije/esbuild-internal v0.19.7 h1:LGFfosWQwPVHSJyPljQzPfoDHSw0nrbjLV6R6PVbBRA=
github.com/ije/esbuild-internal v0.19.7/go.mod h1:s7HvKZ4ZGifyzvgWpSwnJOQTr6b+bsgfNBZ8HAEwwSM=
github.com/ije/gox v0.6.1 h1:GGWzuAb5EugWYXqwgFrWDJah3tFZGgG8hA8Hl5Dgj8E=
github.com/ije/gox v0.6.1/go.mod h1:HeDdgw2DUqWKHUyRjy9pdS4ESVxxv+0N5iOufd1JGRs=
github.com/ije/rex v1.10.7 h1:NEGQ0XIblz1+wlwZnecivqfbmBGnhwQoR0Q1b9RGqsw=
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.134.0
npm install esm-worker@^0.135.0
```

## Configuration
Expand Down
10 changes: 5 additions & 5 deletions 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.134.0",
"version": "0.135.0",
"type": "module",
"module": "dist/index.js",
"types": "types/index.d.ts",
Expand All @@ -13,11 +13,11 @@
"types/index.d.ts"
],
"devDependencies": {
"@cloudflare/workers-types": "4.20231002.0",
"@types/ua-parser-js": "0.7.37",
"@cloudflare/workers-types": "4.20231121.0",
"@types/ua-parser-js": "0.7.39",
"compare-versions": "6.1.0",
"esbuild": "0.19.5",
"ua-parser-js": "1.0.36"
"esbuild": "0.19.7",
"ua-parser-js": "1.0.37"
},
"repository": "https://github.com/esm-dev/esm.sh",
"license": "MIT"
Expand Down
Loading

0 comments on commit 712a0dd

Please sign in to comment.