Skip to content

Commit

Permalink
v133
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Oct 8, 2023
1 parent 4491dd1 commit 2a9f8ff
Show file tree
Hide file tree
Showing 14 changed files with 209 additions and 191 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 v132
ENV ESM_SH_VERSION v133
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:v132
tags: ghcr.io/esm-dev/esm.sh:latest,ghcr.io/esm-dev/esm.sh:v133
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## v133

- Add `?raw` to support requests for raw package source files (#731 by @johnyanarella)
- Add global `setMaxListeners` to `node:events` polyfill (#719)
- cjs-lexer: resolving error now doesn't break build (close #738)
- Fix `cwd` method of `node:process` polyfill (close #718)
- Fix `applyConditions` function use `node` condition for browser (close #732)
- Fix `*.css.js` path (close #728)
- Fix some invalid _require_ imports (close #724)
- Fix relative path resolving of `browser` in package.json
- Upgrade esbuild to **0.19.4**

## v132

- Resolve node internal modules when `?external=*` set (close #714)
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:v132 # specific version
docker pull ghcr.io/esm-dev/esm.sh:v133 # 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/v132/server --port=8080
deno run -A https://esm.sh/v133/server --port=8080
```
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ package version.
```json
{
"imports": {
"react-dom": "https://esm.sh/[email protected]?pin=v132&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v132&dev/"
"react-dom": "https://esm.sh/[email protected]?pin=v133&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v133&dev/"
}
}
```
Expand All @@ -289,15 +289,15 @@ without transformation into ES modules. To do so, you need to add a `?raw`
query to the request URL.

For example, you might need to register a package's source script as a service worker
in a browser that [does not yet support](https://caniuse.com/mdn-api_serviceworker_ecmascript_modules)
in a browser that [does not yet support](https://caniuse.com/mdn-api_serviceworker_ecmascript_modules)
the `type: "module"` option:

```js
await navigator.serviceWorker.register(
new URL(
"https://esm.sh/[email protected]/playground-service-worker.js?raw",
"https://esm.sh/[email protected]/playground-service-worker.js?raw",
import.meta.url.href
),
),
{ scope: '/' }
);
```
Expand Down Expand Up @@ -468,9 +468,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=v132";
import React from "https://esm.sh/react-dom?pin=v133";
// or use version prefix
import React from "https://esm.sh/v132/react-dom";
import React from "https://esm.sh/v133/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.132.0
npm install esm-worker@^0.133.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.132.1",
"version": "0.133.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.20230814.0",
"@types/ua-parser-js": "0.7.36",
"@cloudflare/workers-types": "4.20231002.0",
"@types/ua-parser-js": "0.7.37",
"compare-versions": "6.1.0",
"esbuild": "0.19.2",
"ua-parser-js": "1.0.35"
"esbuild": "0.19.4",
"ua-parser-js": "1.0.36"
},
"repository": "https://github.com/esm-dev/esm.sh",
"license": "MIT"
Expand Down
Loading

0 comments on commit 2a9f8ff

Please sign in to comment.