From ea01ee397bb57ed4deea3f2745859b5310cf000e Mon Sep 17 00:00:00 2001 From: X Date: Wed, 7 Jun 2023 00:57:01 +0800 Subject: [PATCH] v125 --- CHANGELOG.md | 9 +++++++++ Dockerfile | 2 +- HOSTING.md | 2 +- README.md | 14 +++++++------- packages/esm-worker/README.md | 2 +- packages/esm-worker/package.json | 2 +- packages/esm-worker/src/consts.ts | 2 +- packages/esm.sh/package.json | 4 ++-- packages/esm.sh/pnpm-lock.yaml | 14 +++++++++----- server.ts | 4 ++-- server/consts.go | 2 +- 11 files changed, 35 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26ac99618..92108d46a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Dockerfile b/Dockerfile index 9407b091b..b59ab5500 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/HOSTING.md b/HOSTING.md index 82e2a5f61..514d40f63 100644 --- a/HOSTING.md +++ b/HOSTING.md @@ -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 ``` diff --git a/README.md b/README.md index 9636f660f..89819616c 100644 --- a/README.md +++ b/README.md @@ -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 @@ -246,8 +246,8 @@ package version. ```json { "imports": { - "react-dom": "https://esm.sh/react-dom@18.2.0?pin=v124&dev", - "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v124&dev/" + "react-dom": "https://esm.sh/react-dom@18.2.0?pin=v125&dev", + "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v125&dev/" } } ``` @@ -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 diff --git a/packages/esm-worker/README.md b/packages/esm-worker/README.md index 0a56cd183..daf1cd172 100644 --- a/packages/esm-worker/README.md +++ b/packages/esm-worker/README.md @@ -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 diff --git a/packages/esm-worker/package.json b/packages/esm-worker/package.json index ad899d5b0..1ef9550ef 100644 --- a/packages/esm-worker/package.json +++ b/packages/esm-worker/package.json @@ -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", diff --git a/packages/esm-worker/src/consts.ts b/packages/esm-worker/src/consts.ts index 8b351ef08..e8b51bc85 100644 --- a/packages/esm-worker/src/consts.ts +++ b/packages/esm-worker/src/consts.ts @@ -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"]); diff --git a/packages/esm.sh/package.json b/packages/esm.sh/package.json index a1f9497c5..dad34e561 100644 --- a/packages/esm.sh/package.json +++ b/packages/esm.sh/package.json @@ -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", @@ -25,7 +25,7 @@ } }, "dependencies": { - "esm-worker": "^0.124.1" + "esm-worker": "^0.125.0" }, "devDependencies": { "esbuild": "^0.17.19" diff --git a/packages/esm.sh/pnpm-lock.yaml b/packages/esm.sh/pnpm-lock.yaml index 94435ee94..f688b1d3a 100644 --- a/packages/esm.sh/pnpm-lock.yaml +++ b/packages/esm.sh/pnpm-lock.yaml @@ -1,9 +1,13 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false dependencies: esm-worker: - specifier: ^0.124.1 - version: 0.124.1 + specifier: ^0.125.0 + version: 0.125.0 devDependencies: esbuild: @@ -240,6 +244,6 @@ packages: '@esbuild/win32-x64': 0.17.19 dev: true - /esm-worker@0.124.1: - resolution: {integrity: sha512-mrCdcFhClMa/L5rNDHhgeMUBc5Sh1iyNECM6gRUFyO0j4QLP4Hpm6PRE52Eu74ZsWPlt144XFZxfTxwkGOsexw==} + /esm-worker@0.125.0: + resolution: {integrity: sha512-9pap5oMBL9rUm1hDcDrzym/DqlwCgm9i26QUso0MfdYVonQAs7PMsB2oikbt/vORHrn0bNTR7qI3HExYQlhxAQ==} dev: false diff --git a/server.ts b/server.ts index 910bdb91d..0f5cd20c3 100644 --- a/server.ts +++ b/server.ts @@ -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, diff --git a/server/consts.go b/server/consts.go index d026817d8..cb5cbdfba 100644 --- a/server/consts.go +++ b/server/consts.go @@ -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