Skip to content

Commit

Permalink
v114
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Apr 6, 2023
1 parent b058371 commit cd296b2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 7 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand All @@ -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

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Import maps supports [**trailing slash**](https://github.com/WICG/import-maps#pa
```json
{
"imports": {
"react-dom": "https://esm.sh/[email protected]?pin=v113&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v113&dev/",
"react-dom": "https://esm.sh/[email protected]?pin=v114&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v114&dev/",
}
}
```
Expand Down Expand Up @@ -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.
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 = 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
Expand Down

0 comments on commit cd296b2

Please sign in to comment.