0.69.0 • Published 1 day ago

@deno/eszip v0.69.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 day ago

eszip

The eszip format lets you losslessly serialize an ECMAScript module graph (represented by deno_graph::ModuleGraph) into a single compact file.

The eszip file format is designed to be compact and streaming capable. This allows for efficient loading of large ECMAScript module graphs.

https://eszip-viewer.deno.dev/ is a tool for inspecting eszip files.

Examples

Creating an eszip

cargo run --example eszip_builder https://deno.land/std/http/file_server.ts file_server.eszip2

Viewing the contents of an eszip

cargo run --example eszip_viewer file_server.eszip2

Loading the eszip into V8

cargo run --example eszip_load file_server.eszip2 https://deno.land/std/http/file_server.ts

File format

The file format looks as follows:

Eszip:
| Magic (8) | Header size (4) | Header (n) | Header hash (32) | Sources size (4) | Sources (n) | SourceMaps size (4) | SourceMaps (n) |

Header:
( | Specifier size (4) | Specifier (n) | Entry type (1) | Entry (n) | )*

Entry (redirect):
| Specifier size (4) | Specifier (n) |

Entry (module):
| Source offset (4) | Source size (4) | SourceMap offset (4) | SourceMap size (4) | Module type (1) |

Sources:
( | Source (n) | Hash (32) | )*

SourceMaps:
( | SourceMap (n) | Hash (32) | )*

There is one optimization for empty source / source map entries. If both the offset and size are set to 0, no entry and no hash is present in the data sections for that module.

Development

When opening a PR make sure to rebuild Wasm by running:

deno task build
0.69.0

1 day ago

0.68.5

3 days ago

0.68.4

21 days ago

0.68.3

22 days ago

0.68.2

22 days ago

0.68.1

24 days ago

0.68.0

28 days ago

0.67.0

1 month ago

0.66.0

1 month ago

0.65.0

1 month ago

0.64.1

3 months ago

0.64.2

3 months ago

0.64.0

3 months ago

0.63.0

3 months ago

0.62.0

3 months ago

0.61.0

3 months ago

0.60.0

4 months ago

0.59.0

4 months ago

0.58.0

4 months ago

0.57.0

4 months ago

0.56.0

5 months ago

0.55.5

6 months ago

0.55.4

6 months ago

0.55.2

7 months ago

0.55.0

7 months ago

0.55.1

7 months ago

0.53.0

8 months ago

0.54.0

8 months ago

0.51.0

9 months ago

0.50.1

9 months ago

0.52.0

8 months ago

0.50.0

9 months ago

0.48.0

10 months ago

0.49.0

9 months ago

0.46.0

10 months ago

0.47.0

10 months ago

0.45.0

11 months ago

0.42.0

12 months ago

0.43.0

12 months ago

0.41.0

1 year ago

0.44.0

12 months ago

0.40.0

1 year ago

0.38.2

1 year ago

0.39.0

1 year ago

0.38.1

1 year ago

0.38.0

1 year ago

0.37.0

1 year ago

0.32.0

1 year ago

0.36.0

1 year ago

0.35.0

1 year ago

0.34.0

1 year ago

0.33.0

1 year ago

0.31.0

1 year ago

0.30.0

2 years ago

0.29.0

2 years ago

0.28.0

2 years ago

0.27.0

2 years ago

0.26.0

2 years ago

0.25.0

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.22.0

2 years ago

0.21.0

2 years ago

0.20.0

2 years ago

0.19.0

2 years ago

0.18.0

2 years ago

0.17.0

2 years ago

0.16.1

2 years ago