Skip to content

Commit 59bab0c

Browse files
committed
v130
1 parent 44e9d24 commit 59bab0c

26 files changed

+283
-212
lines changed

.github/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#######################################
66
FROM golang:1.20-alpine AS build-stage
77

8-
ENV ESM_SH_VERSION v129
8+
ENV ESM_SH_VERSION v130
99
ENV ESM_SH_GIT_URL https://github.com/esm-dev/esm.sh
1010

1111
RUN apk update && apk add --no-cache git

.github/workflows/docker-push-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
context: ./.github/docker
3838
platforms: linux/amd64,linux/arm64
3939
push: true
40-
tags: ghcr.io/esm-dev/esm.sh:latest,ghcr.io/esm-dev/esm.sh:v129
40+
tags: ghcr.io/esm-dev/esm.sh:latest,ghcr.io/esm-dev/esm.sh:v130

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v130
4+
5+
- esm-cjs-lexer: support minified UMD exports (#689)
6+
- Support sub `.mjs` module (close #691)
7+
- Fix `?bundle` mode ignores `node_process.js` (close #694)
8+
- Upgrade `@types/react@18` to **18.2.15**
9+
- Upgrade esbuild to **0.18.17**
10+
311
## v129
412

513
- BREAKING: Remove `x-esm-deps` header (close #683)

CLI.deno.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ async function saveImportMap(importMap: ImportMap): Promise<void> {
308308
);
309309
}
310310

311-
async function getDenoConfig(): Promise<Record<string, unknown>> {
311+
// todo: support deno.jsonc
312+
// deno-lint-ignore no-explicit-any
313+
async function getDenoConfig(): Promise<Record<string, any>> {
312314
try {
313315
const config = await Deno.readTextFile("deno.json");
314316
return JSON.parse(config);

HOSTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ esm.sh provides an official docker image for deployment. You can pull the contai
6767

6868
```bash
6969
docker pull ghcr.io/esm-dev/esm.sh # latest version
70-
docker pull ghcr.io/esm-dev/esm.sh:v129 # specific version
70+
docker pull ghcr.io/esm-dev/esm.sh:v130 # specific version
7171
docker pull ghcr.io/esm-dev/esm.sh:dev # latest development version
7272
```
7373

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

114114
```bash
115-
deno run -A https://esm.sh/v129/server --port=8080
115+
deno run -A https://esm.sh/v130/server --port=8080
116116
```

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const { sayHi } = await esm`
3030
import chalk from "chalk";
3131
export const sayHi = () => chalk.blue("Hi!");
3232
`;
33-
console.log(sayHi()); // prints "Hi!" message with blue color
33+
console.log(sayHi()); // prints "Hi!" message in blue color
3434
```
3535

3636
> More usage check out [here](#building-a-module-with-custom-inputcode).
@@ -260,8 +260,8 @@ package version.
260260
```json
261261
{
262262
"imports": {
263-
"react-dom": "https://esm.sh/react-dom@18.2.0?pin=v129&dev",
264-
"react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v129&dev/"
263+
"react-dom": "https://esm.sh/react-dom@18.2.0?pin=v130&dev",
264+
"react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v130&dev/"
265265
}
266266
}
267267
```
@@ -425,9 +425,9 @@ The `?pin` query allows you to specify a specific build version of a module,
425425
which is an **immutable** cached version stored on the esm.sh CDN.
426426

427427
```js
428-
import React from "https://esm.sh/react-dom?pin=v129";
428+
import React from "https://esm.sh/react-dom?pin=v130";
429429
// or use version prefix
430-
import React from "https://esm.sh/v129/react-dom";
430+
import React from "https://esm.sh/v130/react-dom";
431431
```
432432

433433
By using the `?pin` query in the import statement, you can rest assured that the

build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
export type BuildOptions = {
1+
export type BuildInput = {
22
code: string;
33
loader?: "js" | "jsx" | "ts" | "tsx";
44
dependencies?: Record<string, string>;
55
types?: string;
66
};
77

8-
export type BuildResult = {
8+
export type BuildOutput = {
99
id: string;
1010
url: string;
1111
bundleUrl: string;
1212
};
1313

14-
export async function build(code: string): Promise<BuildResult>;
15-
export async function build(options: BuildOptions): Promise<BuildResult>;
14+
export async function build(code: string): Promise<BuildOutput>;
15+
export async function build(options: BuildInput): Promise<BuildOutput>;
1616
export async function build(
17-
codeOrOptions: BuildOptions | string,
18-
): Promise<BuildResult> {
17+
codeOrOptions: BuildInput | string,
18+
): Promise<BuildOutput> {
1919
const options = typeof codeOrOptions === "string"
2020
? { code: codeOrOptions }
2121
: codeOrOptions;

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.18
44

55
require (
66
github.com/Masterminds/semver/v3 v3.2.1
7-
github.com/evanw/esbuild v0.18.10
8-
github.com/ije/esbuild-internal v0.18.10
7+
github.com/evanw/esbuild v0.18.17
8+
github.com/ije/esbuild-internal v0.18.17
99
github.com/ije/gox v0.6.1
1010
github.com/ije/rex v1.9.1
1111
github.com/mssola/useragent v1.0.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYr
33
github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs=
44
github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
55
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
6-
github.com/evanw/esbuild v0.18.10 h1:QPpRUR5aOMQ4LQQDA9zZFpSuyT8+luBoyvPqVy8Vuv0=
7-
github.com/evanw/esbuild v0.18.10/go.mod h1:iINY06rn799hi48UqEnaQvVfZWe6W9bET78LbvN8VWk=
8-
github.com/ije/esbuild-internal v0.18.10 h1:Tp7L6GP9lE0iw6DwKq8qvE9pI+/iC+8kk6RzBgNlpbY=
9-
github.com/ije/esbuild-internal v0.18.10/go.mod h1:UoKsnSemBwKVxxw6hikmxdxaxaB9PLe9IbbnrM1abZU=
6+
github.com/evanw/esbuild v0.18.17 h1:TloKIlGqcShk4gqyMFz0j+O2VwIL95GfDWVkfMQLI9c=
7+
github.com/evanw/esbuild v0.18.17/go.mod h1:iINY06rn799hi48UqEnaQvVfZWe6W9bET78LbvN8VWk=
8+
github.com/ije/esbuild-internal v0.18.17 h1:rGrbRrstlH9A39keV5myFGFdmDXUY4t2t6pR+qIOQWU=
9+
github.com/ije/esbuild-internal v0.18.17/go.mod h1:UoKsnSemBwKVxxw6hikmxdxaxaB9PLe9IbbnrM1abZU=
1010
github.com/ije/gox v0.6.1 h1:GGWzuAb5EugWYXqwgFrWDJah3tFZGgG8hA8Hl5Dgj8E=
1111
github.com/ije/gox v0.6.1/go.mod h1:HeDdgw2DUqWKHUyRjy9pdS4ESVxxv+0N5iOufd1JGRs=
1212
github.com/ije/rex v1.9.1 h1:FgJZh4P2CFm0N9nDFquCAjsmUNPQInTjDZ/hbironus=

packages/esm-node-services/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)