Skip to content

Commit 61605b6

Browse files
authored
Merge pull request #154 from wasmerio/prepare-1.0.0-beta1
chore: Update the changelog
2 parents ae73aec + 104e97d commit 61605b6

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

CHANGELOG.md

+36-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,46 @@ All notable changes to this project will be documented in this file.
44

55
## Table of Contents
66

7-
* [Unreleased](#unreleased)
7+
* [1.0.0-beta1](#100-beta1---2020-12-03)
88
* [0.3.1](#031---2020-02-03)
99
* [0.3.0](#030---2020-02-02)
1010
* [0.2.0](#020---2019-07-16)
1111
* [0.1.0](#010---2019-05-29)
1212

13-
## [Unreleased]
13+
## [1.0.0-beta1] - 2020-12-03
14+
15+
### Changed
16+
17+
* The whole API changed to better match Wasmer and Wasm C API
18+
19+
```go
20+
// Create an Engine
21+
engine := wasmer.NewEngine()
22+
23+
// Create a Store
24+
store := wasmer.NewStore(engine)
25+
26+
fmt.Println("Compiling module...")
27+
module, err := wasmer.NewModule(store, wasmBytes)
28+
29+
if err != nil {
30+
fmt.Println("Failed to compile module:", err)
31+
}
32+
33+
// Create an empty import object.
34+
importObject := wasmer.NewImportObject()
35+
36+
fmt.Println("Instantiating module...")
37+
// Let's instantiate the Wasm module.
38+
instance, err := wasmer.NewInstance(module, importObject)
39+
40+
if err != nil {
41+
panic(fmt.Sprintln("Failed to instantiate the module:", err))
42+
}
43+
```
44+
45+
Please refer to the [examples](examples) and
46+
[documentation](https://docs.wasmer.io/integrations/go) to learn more about the changes.
1447

1548
## [0.3.1] - 2020-02-03
1649

@@ -318,7 +351,7 @@ All notable changes to this project will be documented in this file.
318351
First release.
319352

320353

321-
[Unreleased]: https://github.com/wasmerio/wasmer-go/compare/v0.3.1...HEAD
354+
[1.0.0-beta1]: https://github.com/wasmerio/wasmer-go/compare/v0.3.1...v1.0.0-beta1
322355
[0.3.1]: https://github.com/wasmerio/wasmer-go/compare/0.3.0...v0.3.1
323356
[0.3.0]: https://github.com/wasmerio/wasmer-go/compare/0.2.0...0.3.0
324357
[0.2.0]: https://github.com/wasmerio/wasmer-go/compare/0.1.0...0.2.0

0 commit comments

Comments
 (0)