Skip to content

Commit

Permalink
v125
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Jun 6, 2023
1 parent add0938 commit ea01ee3
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 22 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## v125

- Fix `node-fetch` import in cjs modules (close #649)
- Add `node:worker_threads` polyfill(fake) (close #648)
- Use `denonext` target for Deno >= 1.33.2 (close #646)
- Fix `.json.js` path (close #645)
- Fix cache missing content (close #641)
- Upgrade `deno/std` to **0.177.1**

## v124

- Fix the dts walker (close #642)
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apt-get update -y && apt-get install -y xz-utils
RUN useradd -u 1000 -m esm
RUN mkdir /esm && chown esm:esm /esm
RUN git clone https://github.com/esm-dev/esm.sh /esm/esm.sh
RUN git checkout v124
RUN git checkout v125

USER esm
WORKDIR /esm
Expand Down
2 changes: 1 addition & 1 deletion HOSTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,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/v124/server --port=8080
deno run -A https://esm.sh/v125/server --port=8080
```
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ You may also use a [semver](https://docs.npmjs.com/cli/v6/using-npm/semver) or a
fixed version number, or omit the version/tag entirely to use the `latest` tag:

```javascript
import React from "https://esm.sh/react"; // 18.2.0 (latest)
import React from "https://esm.sh/react@17"; // 17.0.2
import React from "https://esm.sh/react@canary"; // 18.3.0-canary-7cd98ef2b-20230509
import React from "https://esm.sh/react"; // 18.2.0 (latest)
import React from "https://esm.sh/react@17"; // 17.0.2
import React from "https://esm.sh/react@canary"; // 18.3.0-canary-e1ad4aa36-20230601
```

### Import from GitHub Repos
Expand Down Expand Up @@ -246,8 +246,8 @@ package version.
```json
{
"imports": {
"react-dom": "https://esm.sh/[email protected]?pin=v124&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v124&dev/"
"react-dom": "https://esm.sh/[email protected]?pin=v125&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v125&dev/"
}
}
```
Expand Down Expand Up @@ -391,9 +391,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.

```javascript
import React from "https://esm.sh/react-dom?pin=v124";
import React from "https://esm.sh/react-dom?pin=v125";
// or use version prefix
import React from "https://esm.sh/v124/react-dom";
import React from "https://esm.sh/v125/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.124
npm install esm-worker@0.125
```

## 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.124.1",
"version": "0.125.0",
"type": "module",
"module": "dist/index.js",
"types": "types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-worker/src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// consts defined in `server/consts.go` generated by `build.mjs`
// do not edit manually.
export const VERSION = 124;
export const VERSION = 125;
export const STABLE_VERSION = 118;
export const stableBuild = new Set(["preact","react","solid-js","svelte","vue"]);
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"]);
Expand Down
4 changes: 2 additions & 2 deletions packages/esm.sh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esm.sh",
"version": "0.0.1",
"version": "0.0.2",
"description": "A fast, smart, & global content delivery network (CDN) for modern(es2015+) web development.",
"repository": "https://github.com/esm-dev/esm.sh",
"license": "MIT",
Expand All @@ -25,7 +25,7 @@
}
},
"dependencies": {
"esm-worker": "^0.124.1"
"esm-worker": "^0.125.0"
},
"devDependencies": {
"esbuild": "^0.17.19"
Expand Down
14 changes: 9 additions & 5 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.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.124.1";
import { withESMWorker } from "https://esm.sh/esm-worker@0.124.1";
} from "https://esm.sh/esm-worker@0.125.0";
import { withESMWorker } from "https://esm.sh/esm-worker@0.125.0";

type Handler = (
request: Request,
Expand Down
2 changes: 1 addition & 1 deletion 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 = 124
VERSION = 125
// esm.sh stable build version, used for UI libraries like react, to make sure the runtime is single copy
// change this carefully!
STABLE_VERSION = 118
Expand Down

0 comments on commit ea01ee3

Please sign in to comment.