Skip to content

Commit

Permalink
v118
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Apr 30, 2023
1 parent f6ddc48 commit 5a6d6b5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## v118

- feat: Publish system (#607)
- **esm-cjs-lexer**: Support `__export(require("..."))` pattern (close #611)
- Add `Auth` middleware
- Upgrade `stableBuild` to v118
- Remove **lit** from `stableBuild`
- Fix submodule types (close #606)
- Fix arch for darwin arm64 (#617 by @JLugagne)

## v117

- Fix Buffer polyfill for deno (close #574)
Expand Down
4 changes: 3 additions & 1 deletion CLI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ const VERSION = /^\/v\d+$/.test(importUrl.pathname)

// stable build for UI libraries like react, to make sure the runtime is single copy
const stableBuild = new Set([
"react",
"preact",
"react",
"solid-js",
"svelte",
"vue",
]);

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 v117
RUN git checkout v118

USER esm
WORKDIR /esm
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ Import maps supports [**trailing slash**](https://github.com/WICG/import-maps#pa
```json
{
"imports": {
"react-dom": "https://esm.sh/[email protected]?pin=v117&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v117&dev/",
"react-dom": "https://esm.sh/[email protected]?pin=v118&dev",
"react-dom/": "https://esm.sh/[email protected]&pin=v118&dev/",
}
}
```
Expand Down Expand Up @@ -272,9 +272,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=v117"
import React from "https://esm.sh/react-dom?pin=v118"
// or use version prefix
import React from "https://esm.sh/v117/react-dom"
import React from "https://esm.sh/v118/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
5 changes: 2 additions & 3 deletions server/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package server

const (
// esm.sh build version
VERSION = 117
VERSION = 118
// 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
STABLE_VERSION = 118
)

const (
Expand All @@ -32,7 +32,6 @@ var cssPackages = map[string]string{

// stable build for UI libraries like react, to make sure the runtime is single copy
var stableBuild = map[string]bool{
"lit": true,
"preact": true,
"react": true,
"solid-js": true,
Expand Down

0 comments on commit 5a6d6b5

Please sign in to comment.