@@ -4,13 +4,46 @@ All notable changes to this project will be documented in this file.
4
4
5
5
## Table of Contents
6
6
7
- * [ Unreleased ] ( #unreleased )
7
+ * [ 1.0.0-beta1 ] ( #100-beta1---2020-12-03 )
8
8
* [ 0.3.1] ( #031---2020-02-03 )
9
9
* [ 0.3.0] ( #030---2020-02-02 )
10
10
* [ 0.2.0] ( #020---2019-07-16 )
11
11
* [ 0.1.0] ( #010---2019-05-29 )
12
12
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.
14
47
15
48
## [ 0.3.1] - 2020-02-03
16
49
@@ -318,7 +351,7 @@ All notable changes to this project will be documented in this file.
318
351
First release.
319
352
320
353
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
322
355
[ 0.3.1 ] : https://github.com/wasmerio/wasmer-go/compare/0.3.0...v0.3.1
323
356
[ 0.3.0 ] : https://github.com/wasmerio/wasmer-go/compare/0.2.0...0.3.0
324
357
[ 0.2.0 ] : https://github.com/wasmerio/wasmer-go/compare/0.1.0...0.2.0
0 commit comments