diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d85c1b14..d8bd75516 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## v114 + +- Add `?conditions` query as esbuild option +- Use **pnpm** to install packages instead of yarn (save the server disk space & improve the build performance) +- Serve static files on local (#564 @Justinidlerz) +- Support `.d.mts` extension (close #580) +- Fix cjs transpiling (close #577) +- Fix types bulid (close #572, #576) +- Fix invalid type URL if submodule is main entry (#579 @marvinhagemeister) +- Upgrade esbuild to 0.17.14 + ## v113 - `express` is working in Deno diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0a16b8ffb..567311904 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing to esm.sh -Welcome, and thank you for taking time in contributing to esm.sh project! ♥️ +Welcome, and thank you for taking time in contributing to esm.sh project! ## Development Setup @@ -16,7 +16,7 @@ You will need [Golang](https://golang.org/) 1.18+. ## Configration -To configure the server, you need to create a `config.json` file then pass it to the server bootstrap command. For example: +To configure the server, create a `config.json` file in the root directory. Here is an example: ```jsonc // config.json @@ -28,26 +28,27 @@ To configure the server, you need to create a `config.json` file then pass it to } ``` -You can find all the server options in [config.exmaple.jsonc](./config.example.jsonc). (**Note**: the `config.example.jsonc` is not a valid JSON file, it's a JSONC file.) +You can find all the server options in [config.exmaple.jsonc](./config.example.jsonc). ## Run the sever in development mode ```bash -go run main.go --config=config.json --dev +go run main.go --dev ``` -Then you can import `React` from http://localhost:8080/react +Then you can import `React` from "http://localhost:8080/react" ## Run testings ```bash # Run all tests ./test/bootstrap.sh + # Run tests for a specific module ./test/bootstrap.sh preact ``` -All tests are written in Deno, you can find them in [test/](./test) directory. +All the tests are written in Deno, you can find them in [test/](./test) directory. ## Code of Conduct diff --git a/README.md b/README.md index 52b69af6f..9c95bdc90 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,8 @@ Import maps supports [**trailing slash**](https://github.com/WICG/import-maps#pa ```json { "imports": { - "react-dom": "https://esm.sh/react-dom@18.2.0?pin=v113&dev", - "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v113&dev/", + "react-dom": "https://esm.sh/react-dom@18.2.0?pin=v114&dev", + "react-dom/": "https://esm.sh/react-dom@18.2.0&pin=v114&dev/", } } ``` @@ -246,9 +246,9 @@ To ensure stable and consistent behavior, you may want to pin the build version 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=v113" +import React from "https://esm.sh/react-dom?pin=v114" // or use version prefix -import React from "https://esm.sh/v113/react-dom" +import React from "https://esm.sh/v114/react-dom" ``` By using the `?pin` query in the import statement, you can rest assured that the version of the module you're using will not change, even if updates are pushed to the esm.sh server. This helps ensure the stability and reliability of your application. diff --git a/server/consts.go b/server/consts.go index a08c82bfa..80358ebb6 100644 --- a/server/consts.go +++ b/server/consts.go @@ -2,7 +2,7 @@ package server const ( // esm.sh build version - VERSION = 113 + VERSION = 114 // esm.sh stable build version, used for UI libraries like react, to make sure the runtime is single copy // change this carefully STABLE_VERSION = 112